@commercetools-frontend/experimental-components 7.2.4 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-frontend-experimental-components.cjs.dev.js +343 -291
- package/dist/commercetools-frontend-experimental-components.cjs.prod.js +252 -283
- package/dist/commercetools-frontend-experimental-components.esm.js +347 -295
- package/dist/declarations/src/components/buttons/button/button.d.ts +3 -0
- package/dist/declarations/src/components/carousel/carousel.d.ts +10 -7
- package/dist/declarations/src/fields/search-input/search-input.d.ts +0 -1
- package/package.json +2 -2
- package/dist/styles.css +0 -612
|
@@ -36,11 +36,13 @@ var _everyInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/inst
|
|
|
36
36
|
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
37
37
|
var _setTimeout = require('@babel/runtime-corejs3/core-js-stable/set-timeout');
|
|
38
38
|
var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
39
|
+
var react$1 = require('@emotion/react');
|
|
39
40
|
var fastEquals = require('fast-equals');
|
|
40
41
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
41
42
|
var _trimInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/trim');
|
|
42
43
|
var classnames = require('classnames');
|
|
43
44
|
var camelCase = require('lodash/camelCase');
|
|
45
|
+
var designSystem = require('@commercetools-uikit/design-system');
|
|
44
46
|
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
45
47
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
46
48
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
@@ -74,7 +76,6 @@ var actionsGlobal = require('@commercetools-frontend/actions-global');
|
|
|
74
76
|
var applicationComponents = require('@commercetools-frontend/application-components');
|
|
75
77
|
var _ = require('@commercetools-frontend/ui-kit/');
|
|
76
78
|
var PropTypes = require('prop-types');
|
|
77
|
-
var react$1 = require('@emotion/react');
|
|
78
79
|
var dnd = require('@hello-pangea/dnd');
|
|
79
80
|
var ReactDOM = require('react-dom');
|
|
80
81
|
var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
@@ -217,15 +218,12 @@ var invariant__default = /*#__PURE__*/_interopDefault(invariant);
|
|
|
217
218
|
var hoistNonReactStatics__default = /*#__PURE__*/_interopDefault(hoistNonReactStatics);
|
|
218
219
|
var get__default = /*#__PURE__*/_interopDefault(get);
|
|
219
220
|
|
|
220
|
-
var
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
* renders a centered LoadingSpinner that assumes the height of its parent
|
|
225
|
-
* - the ui-kit Spacings.Stack does not allow for custom styles, nor does it stretch to fill its container's height
|
|
226
|
-
*/
|
|
221
|
+
var _ref$h = {
|
|
222
|
+
name: "1tmmbhs",
|
|
223
|
+
styles: "height:100%;display:flex;flex-grow:1;align-items:center;justify-content:center"
|
|
224
|
+
} ;
|
|
227
225
|
const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
|
|
228
|
-
|
|
226
|
+
css: _ref$h,
|
|
229
227
|
"data-testid": "centered-loading-spinner",
|
|
230
228
|
children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
|
|
231
229
|
});
|
|
@@ -1211,22 +1209,17 @@ const withMouseOverState = BaseComponent => {
|
|
|
1211
1209
|
};
|
|
1212
1210
|
var withMouseOverState$1 = withMouseOverState;
|
|
1213
1211
|
|
|
1212
|
+
const getTextareaStyles = props => /*#__PURE__*/react$1.css("transition:0.2s ease;border-radius:", designSystem.designTokens.borderRadiusForInput, ";border-style:solid;border-width:1px;color:", designSystem.designTokens.colorSolid, ";font-weight:", designSystem.designTokens.fontWeight500, ";font-size:", designSystem.designTokens.fontSize10, ";font-family:", designSystem.designTokens.fontFamily, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";outline:none;box-shadow:none;appearance:none;width:100%;min-height:", designSystem.designTokens.heightForInput, ";resize:vertical;", props.style === 'primary' && /*#__PURE__*/react$1.css("border-color:", designSystem.designTokens.colorNeutral, ";background-color:", designSystem.designTokens.colorSurface, ";" + ("" ), "" ), " ", props.style === 'secondary' && /*#__PURE__*/react$1.css("background-color:", designSystem.designTokens.colorNeutral95, ";border-color:", designSystem.designTokens.colorSurface, ";" + ("" ), "" ), " ", props.disabled && /*#__PURE__*/react$1.css("cursor:not-allowed;background-color:", designSystem.designTokens.colorAccent98, ";color:", designSystem.designTokens.colorSolid, ";opacity:1;" + ("" ), "" ), " ", !props.isValid && /*#__PURE__*/react$1.css("border-color:", designSystem.designTokens.colorError, ";border:1px solid;" + ("" ), "" ), ";" + ("" ), "" );
|
|
1213
|
+
var _ref$g = {
|
|
1214
|
+
name: "7g7czh",
|
|
1215
|
+
styles: "border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0"
|
|
1216
|
+
} ;
|
|
1217
|
+
const getInputStyles = props => /*#__PURE__*/react$1.css("transition:0.2s ease;border-radius:", designSystem.designTokens.borderRadiusForInput, ";border-style:solid;border-width:1px;color:", designSystem.designTokens.colorSolid, ";font-weight:", designSystem.designTokens.fontWeight500, ";font-size:", designSystem.designTokens.fontSize10, ";font-family:", designSystem.designTokens.fontFamily, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";outline:none;box-shadow:none;appearance:none;width:100%;min-height:", designSystem.designTokens.heightForInput, ";", props.style === 'primary' && /*#__PURE__*/react$1.css("border-color:", designSystem.designTokens.colorNeutral, ";background-color:", designSystem.designTokens.colorSurface, ";" + ("" ), "" ), " ", props.style === 'secondary' && /*#__PURE__*/react$1.css("background-color:", designSystem.designTokens.colorNeutral95, ";border-color:", designSystem.designTokens.colorSurface, ";" + ("" ), "" ), " ", props.disabled && /*#__PURE__*/react$1.css("cursor:not-allowed;background-color:", designSystem.designTokens.colorAccent98, ";color:", designSystem.designTokens.colorSolid, ";opacity:1;" + ("" ), "" ), " ", !props.isValid && /*#__PURE__*/react$1.css("border-color:", designSystem.designTokens.colorError, "!important;border:1px solid;" + ("" ), "" ), " ", props.isGranular && _ref$g, ";" + ("" ), "" );
|
|
1218
|
+
|
|
1214
1219
|
function ownKeys$1n(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1215
1220
|
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__default["default"](_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1216
1221
|
function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1217
1222
|
function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
|
|
1218
|
-
var styles$j = {
|
|
1219
|
-
"size": "throttled-field-module__size___324jx",
|
|
1220
|
-
"input-text": "throttled-field-module__input-text___3zFFp",
|
|
1221
|
-
"input-secondary": "throttled-field-module__input-secondary___cFo9e throttled-field-module__input-text___3zFFp throttled-field-module__size___324jx",
|
|
1222
|
-
"input-primary": "throttled-field-module__input-primary___26G3R throttled-field-module__input-text___3zFFp throttled-field-module__size___324jx",
|
|
1223
|
-
"textarea": "throttled-field-module__textarea___3ZNEs",
|
|
1224
|
-
"textarea-primary": "throttled-field-module__textarea-primary___24Wwt throttled-field-module__textarea___3ZNEs throttled-field-module__input-text___3zFFp",
|
|
1225
|
-
"textarea-secondary": "throttled-field-module__textarea-secondary___2rmFG throttled-field-module__textarea___3ZNEs throttled-field-module__input-text___3zFFp",
|
|
1226
|
-
"invalid": "throttled-field-module__invalid___1yZLW",
|
|
1227
|
-
"disabled": "throttled-field-module__disabled___qVj79",
|
|
1228
|
-
"granular": "throttled-field-module__granular___2LXJf"
|
|
1229
|
-
};
|
|
1230
1223
|
let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
1231
1224
|
function ThrottledField() {
|
|
1232
1225
|
var _this;
|
|
@@ -1324,10 +1317,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
1324
1317
|
})
|
|
1325
1318
|
}), this.props.as === 'textarea' ? jsxRuntime.jsx(Textarea__default["default"], _objectSpread$1n(_objectSpread$1n({}, commonProps), {}, {
|
|
1326
1319
|
id: inputId,
|
|
1327
|
-
|
|
1328
|
-
[styles$j.invalid]: !this.props.isValid,
|
|
1329
|
-
[styles$j.disabled]: this.props.disabled
|
|
1330
|
-
}),
|
|
1320
|
+
css: getTextareaStyles(this.props),
|
|
1331
1321
|
rows: 1,
|
|
1332
1322
|
maxRows: this.props.autoSize ? undefined : 1,
|
|
1333
1323
|
cacheMeasurements: true
|
|
@@ -1335,11 +1325,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
|
|
|
1335
1325
|
id: inputId,
|
|
1336
1326
|
ref: this.props.inputRef,
|
|
1337
1327
|
type: this.props.as,
|
|
1338
|
-
|
|
1339
|
-
[styles$j.invalid]: !this.props.isValid,
|
|
1340
|
-
[styles$j.disabled]: this.props.disabled,
|
|
1341
|
-
[styles$j.granular]: this.props.isGranular
|
|
1342
|
-
})
|
|
1328
|
+
css: getInputStyles(this.props)
|
|
1343
1329
|
}))]
|
|
1344
1330
|
});
|
|
1345
1331
|
}
|
|
@@ -1382,23 +1368,42 @@ var messages$O = reactIntl.defineMessages({
|
|
|
1382
1368
|
}
|
|
1383
1369
|
});
|
|
1384
1370
|
|
|
1371
|
+
const getInputContainerStyles = props => /*#__PURE__*/react$1.css("border-color:", props.isGranular ? designSystem.designTokens.colorPrimary : designSystem.designTokens.borderColorForInput, ";height:", designSystem.designTokens.heightForInput, ";position:relative;&>input{padding-right:calc(", designSystem.designTokens.spacingXl, " * 2);}&>input::placeholder{font-weight:", designSystem.designTokens.fontWeight400, ";font-size:1rem;font-family:", designSystem.designTokens.fontFamily, ";color:", designSystem.designTokens.colorNeutral60, ";}", !props.disabled && `
|
|
1372
|
+
& > input:hover {
|
|
1373
|
+
border: 1px solid ${designSystem.designTokens.borderColorForInput};
|
|
1374
|
+
background-color: ${designSystem.designTokens.backgroundColorForInputWhenHovered};
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
& > input:focus {
|
|
1378
|
+
box-shadow: inset 0 0 0 1px ${designSystem.designTokens.colorPrimary};
|
|
1379
|
+
border-color: ${designSystem.designTokens.borderColorForInputWhenFocused};
|
|
1380
|
+
}
|
|
1381
|
+
`, " ", props.disabled && props.enableDisabledStyle && `
|
|
1382
|
+
& > input {
|
|
1383
|
+
border-color: ${designSystem.designTokens.colorNeutral};
|
|
1384
|
+
}
|
|
1385
|
+
`, " ", props.isGranular && `
|
|
1386
|
+
right: 3px;
|
|
1387
|
+
`, ";" + ("" ), "" );
|
|
1388
|
+
const getSecondaryIconButtonStyles = props => /*#__PURE__*/react$1.css("background-color:transparent;border-color:transparent;position:absolute;right:36px;top:11px;z-index:2;", props.isGranular && `
|
|
1389
|
+
right: 41px;
|
|
1390
|
+
`, ";" + ("" ), "" );
|
|
1391
|
+
const getSearchButtonStyles = props => /*#__PURE__*/react$1.css("background-color:transparent;border-color:transparent;position:absolute;right:36px;top:11px;z-index:2;", props.isGranular && `
|
|
1392
|
+
right: 15px;
|
|
1393
|
+
`, " ", !props.disabled && `
|
|
1394
|
+
cursor: pointer;
|
|
1395
|
+
`, ";" + ("" ), "" );
|
|
1396
|
+
|
|
1385
1397
|
function _callSuper$6(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1386
1398
|
function _isNativeReflectConstruct$6() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$6 = function () { return !!t; })(); }
|
|
1387
|
-
var
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
"clear-icon-container": "search-input-module__clear-icon-container___3RQvu",
|
|
1396
|
-
"clear-icon-container-granular": "search-input-module__clear-icon-container-granular___1mbin search-input-module__clear-icon-container___3RQvu",
|
|
1397
|
-
"search-icon-container-hoverable": "search-input-module__search-icon-container-hoverable___1kTwJ",
|
|
1398
|
-
"search-icon-container-granular": "search-input-module__search-icon-container-granular___3fAsR",
|
|
1399
|
-
"hidden": "search-input-module__hidden___z07GX",
|
|
1400
|
-
"action": "search-input-module__action___1GqGT"
|
|
1401
|
-
};
|
|
1399
|
+
var _ref$f = {
|
|
1400
|
+
name: "kbieq5",
|
|
1401
|
+
styles: "position:relative;flex-grow:1"
|
|
1402
|
+
} ;
|
|
1403
|
+
var _ref2$1 = {
|
|
1404
|
+
name: "n2lgmn",
|
|
1405
|
+
styles: "display:inline-flex;flex-direction:row;align-items:flex-start;width:100%;max-width:800px"
|
|
1406
|
+
} ;
|
|
1402
1407
|
let SearchInput = /*#__PURE__*/function (_Component) {
|
|
1403
1408
|
function SearchInput() {
|
|
1404
1409
|
var _this;
|
|
@@ -1459,15 +1464,13 @@ let SearchInput = /*#__PURE__*/function (_Component) {
|
|
|
1459
1464
|
key: "render",
|
|
1460
1465
|
value: function render() {
|
|
1461
1466
|
return jsxRuntime.jsx("div", {
|
|
1462
|
-
className: classnames__default["default"](this.props.blockClassName
|
|
1467
|
+
className: classnames__default["default"](this.props.blockClassName),
|
|
1468
|
+
css: _ref2$1,
|
|
1463
1469
|
children: jsxRuntime.jsxs("div", {
|
|
1464
|
-
className: classnames__default["default"](this.props.containerClassName
|
|
1470
|
+
className: classnames__default["default"](this.props.containerClassName),
|
|
1471
|
+
css: _ref$f,
|
|
1465
1472
|
children: [jsxRuntime.jsx("div", {
|
|
1466
|
-
|
|
1467
|
-
[styles$i['input-container-hoverable']]: !this.props.disabled,
|
|
1468
|
-
[styles$i['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
|
|
1469
|
-
[styles$i['input-container-granular']]: this.props.isGranular
|
|
1470
|
-
}),
|
|
1473
|
+
css: getInputContainerStyles(this.props),
|
|
1471
1474
|
children: jsxRuntime.jsx(ThrottledField$1, {
|
|
1472
1475
|
style: "primary",
|
|
1473
1476
|
name: "search-text",
|
|
@@ -1484,19 +1487,14 @@ let SearchInput = /*#__PURE__*/function (_Component) {
|
|
|
1484
1487
|
isGranular: this.props.isGranular
|
|
1485
1488
|
})
|
|
1486
1489
|
}), this.state.text && jsxRuntime.jsx(uiKit.SecondaryIconButton, {
|
|
1487
|
-
|
|
1488
|
-
[styles$i['clear-icon-container-granular']]: this.props.isGranular
|
|
1489
|
-
}),
|
|
1490
|
+
css: getSecondaryIconButtonStyles(this.props),
|
|
1490
1491
|
icon: jsxRuntime.jsx(uiKit.CloseIcon, {}),
|
|
1491
1492
|
size: "30",
|
|
1492
1493
|
label: "clear-button",
|
|
1493
1494
|
onClick: this.handleClear
|
|
1494
1495
|
}), jsxRuntime.jsx("div", {
|
|
1495
1496
|
"data-testid": "search-button",
|
|
1496
|
-
|
|
1497
|
-
[styles$i['search-icon-container-hoverable']]: !this.props.disabled,
|
|
1498
|
-
[styles$i['search-icon-container-granular']]: this.props.isGranular
|
|
1499
|
-
}),
|
|
1497
|
+
css: getSearchButtonStyles(this.props),
|
|
1500
1498
|
onClick: this.props.disabled ? null : this.handleSubmit,
|
|
1501
1499
|
label: "search-button",
|
|
1502
1500
|
onMouseOver: this.props.handleMouseOver,
|
|
@@ -5372,10 +5370,6 @@ function getCartDiscountById(apolloClient, options) {
|
|
|
5372
5370
|
}).then(response => response.data?.cartDiscount ? transformLocalizedFieldsForCartDiscount(response.data.cartDiscount) : null);
|
|
5373
5371
|
}
|
|
5374
5372
|
|
|
5375
|
-
var styles$h = {
|
|
5376
|
-
"container": "reference-search-module__container___3-iK3",
|
|
5377
|
-
"missing-label": "reference-search-module__missing-label___az9AO"
|
|
5378
|
-
}; // This is a hashmap of loaded items used to map a value to an item
|
|
5379
5373
|
const itemCache = new _Map__default["default"]();
|
|
5380
5374
|
|
|
5381
5375
|
// Keep track of "mounted" state to safe-guard updating React state
|
|
@@ -5391,10 +5385,10 @@ const useMountedState = () => {
|
|
|
5391
5385
|
}, []);
|
|
5392
5386
|
return isMounted;
|
|
5393
5387
|
};
|
|
5394
|
-
const useReferenceSearchItems =
|
|
5395
|
-
let ids =
|
|
5396
|
-
loadItemsBySearchTerm =
|
|
5397
|
-
loadItemsByIds =
|
|
5388
|
+
const useReferenceSearchItems = _ref2 => {
|
|
5389
|
+
let ids = _ref2.ids,
|
|
5390
|
+
loadItemsBySearchTerm = _ref2.loadItemsBySearchTerm,
|
|
5391
|
+
loadItemsByIds = _ref2.loadItemsByIds;
|
|
5398
5392
|
const isMounted = useMountedState();
|
|
5399
5393
|
const _useState = React.useState([]),
|
|
5400
5394
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5453,11 +5447,15 @@ const useReferenceSearchItems = _ref => {
|
|
|
5453
5447
|
items
|
|
5454
5448
|
};
|
|
5455
5449
|
};
|
|
5450
|
+
var _ref$e = {
|
|
5451
|
+
name: "befiq5",
|
|
5452
|
+
styles: "width:100%;>div{width:100%;}"
|
|
5453
|
+
} ;
|
|
5456
5454
|
function ReferenceSearch(props) {
|
|
5457
5455
|
const ids = React.useMemo(() => {
|
|
5458
5456
|
var _context, _context2;
|
|
5459
|
-
return props.value ? props.isMulti ? ((_context = props.value) == null ? void 0 : _bindInstanceProperty__default["default"](_context2 = Function.call).call(_context2, _mapInstanceProperty__default["default"](_context), _context))?.(
|
|
5460
|
-
let id =
|
|
5457
|
+
return props.value ? props.isMulti ? ((_context = props.value) == null ? void 0 : _bindInstanceProperty__default["default"](_context2 = Function.call).call(_context2, _mapInstanceProperty__default["default"](_context), _context))?.(_ref3 => {
|
|
5458
|
+
let id = _ref3.id;
|
|
5461
5459
|
return id;
|
|
5462
5460
|
}) : [props.value?.id] : [];
|
|
5463
5461
|
}, [props.value, props.isMulti]);
|
|
@@ -5481,10 +5479,11 @@ function ReferenceSearch(props) {
|
|
|
5481
5479
|
const option = props.isMulti ? _mapInstanceProperty__default["default"](_context3 = event.target.value).call(_context3, item => item.value) : event.target.value?.value || null;
|
|
5482
5480
|
props.onChange(option);
|
|
5483
5481
|
};
|
|
5482
|
+
const containerStyles = _ref$e;
|
|
5484
5483
|
return jsxRuntime.jsxs("div", {
|
|
5485
|
-
|
|
5484
|
+
css: containerStyles,
|
|
5486
5485
|
children: [areSomeItemsMissing && jsxRuntime.jsx("div", {
|
|
5487
|
-
|
|
5486
|
+
css: /*#__PURE__*/react$1.css("color:", uiKit.designTokens.colorWarning, ";font-size:0.9rem;margin-left:", uiKit.designTokens.spacingXs, ";" + ("" ), "" ),
|
|
5488
5487
|
children: props.referenceIsMissingLabel
|
|
5489
5488
|
}), jsxRuntime.jsx(CustomFieldTooltip$1, {
|
|
5490
5489
|
title: tooltipTitle,
|
|
@@ -5804,34 +5803,20 @@ function useCachedCategoryOptions(ids) {
|
|
|
5804
5803
|
}]));
|
|
5805
5804
|
}
|
|
5806
5805
|
|
|
5806
|
+
var _ref$d = {
|
|
5807
|
+
name: "1d3w5wq",
|
|
5808
|
+
styles: "width:100%"
|
|
5809
|
+
} ;
|
|
5810
|
+
var _ref2 = {
|
|
5811
|
+
name: "164dmm0",
|
|
5812
|
+
styles: "pointer-events:none;opacity:0.5"
|
|
5813
|
+
} ;
|
|
5814
|
+
const getButtonStyles = props => /*#__PURE__*/react$1.css("transition:background-color 0.08s linear;border:none;border-radius:", designSystem.designTokens.borderRadiusForInput, ";color:", designSystem.designTokens.colorSolid, ";cursor:pointer;display:inline-block;font-family:", designSystem.designTokens.fontFamily, ";font-size:", designSystem.designTokens.fontSize10, ";padding:", designSystem.designTokens.spacingS, " ", designSystem.designTokens.spacingM, ";vertical-align:middle;min-height:", designSystem.designTokens.heightForInput, ";", props.variant === 'cancel' && /*#__PURE__*/react$1.css("background:", designSystem.designTokens.colorSurface, ";border:1px solid ", designSystem.designTokens.colorNeutral, ";&:hover{border-color:", designSystem.designTokens.colorPrimary, ";color:", designSystem.designTokens.colorPrimary, ";}" + ("" ), "" ), " ", props.variant === 'confirm' && /*#__PURE__*/react$1.css("background:", designSystem.designTokens.colorPrimary, ";color:", designSystem.designTokens.colorSurface, ";&:hover{background:", designSystem.designTokens.colorPrimary25, ";}" + ("" ), "" ), " ", props.variant === 'save' && /*#__PURE__*/react$1.css("background:", designSystem.designTokens.colorPrimary, ";color:", designSystem.designTokens.colorSurface, "!important;&:hover{background:", designSystem.designTokens.colorPrimary25, ";}" + ("" ), "" ), " ", props.variant === 'add' && /*#__PURE__*/react$1.css("background:", designSystem.designTokens.colorSurface, ";border:1px solid ", designSystem.designTokens.colorNeutral, ";color:", designSystem.designTokens.colorSolid, ";padding:5.5px 15px 5.5px 10px;&:hover{background:", designSystem.designTokens.colorPrimary, ";border-color:", designSystem.designTokens.colorPrimary, ";color:", designSystem.designTokens.colorSurface, ";}" + ("" ), "" ), " ", props.isDisabled && _ref2, " ", props.fullWidth && _ref$d, " ", props.isAlt && /*#__PURE__*/react$1.css("color:", designSystem.designTokens.colorSurface, ";border-radius:20px;border:2px ", designSystem.designTokens.colorSurface, " solid;padding-left:30px;padding-right:30px;" + ("" ), "" ), ";" + ("" ), "" );
|
|
5815
|
+
var getButtonStyles$1 = getButtonStyles;
|
|
5816
|
+
|
|
5807
5817
|
const _excluded$e = ["type"];
|
|
5808
5818
|
function ownKeys$$(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5809
5819
|
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$$(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$$(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5810
|
-
var styles$g = {
|
|
5811
|
-
"button": "button-module__button___1OzVf",
|
|
5812
|
-
"cancel": "button-module__cancel___1-jYL button-module__button___1OzVf",
|
|
5813
|
-
"confirm": "button-module__confirm___-W92x button-module__button___1OzVf",
|
|
5814
|
-
"save": "button-module__save___1-KXp button-module__confirm___-W92x button-module__button___1OzVf",
|
|
5815
|
-
"add": "button-module__add___1fbPS button-module__button___1OzVf",
|
|
5816
|
-
"add-url": "button-module__add-url___1e6xE button-module__add___1fbPS button-module__button___1OzVf",
|
|
5817
|
-
"icon-add": "button-module__icon-add___2X7fc",
|
|
5818
|
-
"icon-chain": "button-module__icon-chain___1pvWT",
|
|
5819
|
-
"switch": "button-module__switch___2bt5z",
|
|
5820
|
-
"icon": "button-module__icon___wuw4Z",
|
|
5821
|
-
"switch--active": "button-module__switch--active___1s4ZM button-module__switch___2bt5z",
|
|
5822
|
-
"switch-squared": "button-module__switch-squared___QnrOG button-module__button___1OzVf button-module__switch___2bt5z",
|
|
5823
|
-
"switch-squared--active": "button-module__switch-squared--active___2ZbEC button-module__switch-squared___QnrOG button-module__button___1OzVf button-module__switch___2bt5z button-module__switch--active___1s4ZM button-module__switch___2bt5z",
|
|
5824
|
-
"switch-rounded": "button-module__switch-rounded___1CBs_ button-module__switch___2bt5z",
|
|
5825
|
-
"switch-rounded--active": "button-module__switch-rounded--active___2Ckga button-module__switch-rounded___1CBs_ button-module__switch___2bt5z button-module__switch--active___1s4ZM button-module__switch___2bt5z",
|
|
5826
|
-
"switch-label": "button-module__switch-label___2FAdy",
|
|
5827
|
-
"disabled": "button-module__disabled___2Azpu",
|
|
5828
|
-
"full": "button-module__full___264Zw",
|
|
5829
|
-
"alt": "button-module__alt___Z6PWx",
|
|
5830
|
-
"confirm-alt": "button-module__confirm-alt___2Zcqz button-module__confirm___-W92x button-module__button___1OzVf button-module__alt___Z6PWx",
|
|
5831
|
-
"cancel-alt": "button-module__cancel-alt___u5EAw button-module__cancel___1-jYL button-module__button___1OzVf button-module__alt___Z6PWx",
|
|
5832
|
-
"save-alt": "button-module__save-alt___6iHMF button-module__save___1-KXp button-module__confirm___-W92x button-module__button___1OzVf button-module__alt___Z6PWx",
|
|
5833
|
-
"add-button": "button-module__add-button___1f093"
|
|
5834
|
-
};
|
|
5835
5820
|
const Button = _ref => {
|
|
5836
5821
|
let _ref$type = _ref.type,
|
|
5837
5822
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
@@ -5846,7 +5831,8 @@ const Button = _ref => {
|
|
|
5846
5831
|
return jsxRuntime.jsx("button", _objectSpread$$(_objectSpread$$({
|
|
5847
5832
|
onClick: isDisabled ? null : onClick,
|
|
5848
5833
|
type: type,
|
|
5849
|
-
className: classnames__default["default"](
|
|
5834
|
+
className: classnames__default["default"](className),
|
|
5835
|
+
css: getButtonStyles$1(props),
|
|
5850
5836
|
disabled: isDisabled,
|
|
5851
5837
|
"aria-label": props['aria-label']
|
|
5852
5838
|
}, dataProps), {}, {
|
|
@@ -5856,6 +5842,8 @@ const Button = _ref => {
|
|
|
5856
5842
|
Button.displayName = 'Button';
|
|
5857
5843
|
var Button$1 = Button;
|
|
5858
5844
|
|
|
5845
|
+
const getFileInputStyles = () => /*#__PURE__*/react$1.css("display:inline-flex;background-color:", designSystem.designTokens.colorSurface, ";border:1px solid ", designSystem.designTokens.colorNeutral, ";box-shadow:none;border-radius:", designSystem.designTokens.borderRadius4, ";color:", designSystem.designTokens.colorSolid, ";height:", designSystem.designTokens.heightForButtonAsBig, ";font-size:", designSystem.designTokens.fontSize20, ";font-weight:", designSystem.designTokens.fontWeight500, ";align-items:center;transition:background-color ", designSystem.designTokens.transitionLinear80Ms, ";padding:0 ", designSystem.designTokens.spacingM, ";&:hover,&:focus{cursor:pointer;background-color:", designSystem.designTokens.backgroundColorForButtonWhenHovered, ";box-shadow:none;}&:active{box-shadow:", designSystem.designTokens.shadow9, ";background-color:", designSystem.designTokens.colorSurface, ";}" + ("" ), "" );
|
|
5846
|
+
|
|
5859
5847
|
var messages$F = reactIntl.defineMessages({
|
|
5860
5848
|
chooseFile: {
|
|
5861
5849
|
id: 'ButtonFileInput.chooseFile',
|
|
@@ -5867,23 +5855,23 @@ var messages$F = reactIntl.defineMessages({
|
|
|
5867
5855
|
const _excluded$d = ["children", "allowMultiple", "acceptTypes"];
|
|
5868
5856
|
function ownKeys$_(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5869
5857
|
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$_(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$_(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
5870
|
-
var
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
};
|
|
5874
|
-
const FileInput =
|
|
5875
|
-
let
|
|
5876
|
-
children =
|
|
5877
|
-
|
|
5878
|
-
allowMultiple =
|
|
5879
|
-
|
|
5880
|
-
acceptTypes =
|
|
5881
|
-
props = _objectWithoutProperties(
|
|
5858
|
+
var _ref$c = {
|
|
5859
|
+
name: "1wq0eh7",
|
|
5860
|
+
styles: "visibility:hidden;width:1px;height:1px"
|
|
5861
|
+
} ;
|
|
5862
|
+
const FileInput = _ref2 => {
|
|
5863
|
+
let _ref2$children = _ref2.children,
|
|
5864
|
+
children = _ref2$children === void 0 ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$_({}, messages$F.chooseFile)) : _ref2$children,
|
|
5865
|
+
_ref2$allowMultiple = _ref2.allowMultiple,
|
|
5866
|
+
allowMultiple = _ref2$allowMultiple === void 0 ? false : _ref2$allowMultiple,
|
|
5867
|
+
_ref2$acceptTypes = _ref2.acceptTypes,
|
|
5868
|
+
acceptTypes = _ref2$acceptTypes === void 0 ? 'image/png,image/jpeg,image/gif' : _ref2$acceptTypes,
|
|
5869
|
+
props = _objectWithoutProperties(_ref2, _excluded$d);
|
|
5882
5870
|
return jsxRuntime.jsx("label", {
|
|
5883
5871
|
children: jsxRuntime.jsxs("span", {
|
|
5884
|
-
|
|
5872
|
+
css: getFileInputStyles(),
|
|
5885
5873
|
children: [jsxRuntime.jsx("input", {
|
|
5886
|
-
|
|
5874
|
+
css: _ref$c,
|
|
5887
5875
|
type: "file",
|
|
5888
5876
|
accept: acceptTypes,
|
|
5889
5877
|
name: props.name,
|
|
@@ -5945,7 +5933,11 @@ const PAGINATION_CONTROL_HEIGHT = 26;
|
|
|
5945
5933
|
const IMAGE_AREA_HEIGHT = 200;
|
|
5946
5934
|
const BaseCarousel = _ref2 => {
|
|
5947
5935
|
let items = _ref2.items,
|
|
5948
|
-
renderItem = _ref2.renderItem
|
|
5936
|
+
renderItem = _ref2.renderItem,
|
|
5937
|
+
_ref2$fullWidth = _ref2.fullWidth,
|
|
5938
|
+
fullWidth = _ref2$fullWidth === void 0 ? false : _ref2$fullWidth,
|
|
5939
|
+
_ref2$borderless = _ref2.borderless,
|
|
5940
|
+
borderless = _ref2$borderless === void 0 ? false : _ref2$borderless;
|
|
5949
5941
|
// Randomize input array and cache across rerenders
|
|
5950
5942
|
const _useState = React.useState(shuffle__default["default"](items)),
|
|
5951
5943
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5981,6 +5973,7 @@ const BaseCarousel = _ref2 => {
|
|
|
5981
5973
|
}
|
|
5982
5974
|
};
|
|
5983
5975
|
const getLinkTo = activeItem => {
|
|
5976
|
+
if (!activeItem?.linkTo) return undefined;
|
|
5984
5977
|
return activeItem.isExternal ? activeItem.linkTo() : activeItem.linkTo(projectKey);
|
|
5985
5978
|
};
|
|
5986
5979
|
|
|
@@ -5992,17 +5985,18 @@ const BaseCarousel = _ref2 => {
|
|
|
5992
5985
|
return null;
|
|
5993
5986
|
}
|
|
5994
5987
|
return jsxRuntime.jsxs("div", {
|
|
5995
|
-
css: /*#__PURE__*/react$1.css("width:", CAROUSEL_WIDTH
|
|
5988
|
+
css: /*#__PURE__*/react$1.css("width:", fullWidth ? '100%' : `${CAROUSEL_WIDTH}px`, ";position:relative;" + ("" ), "" ),
|
|
5996
5989
|
role: "region",
|
|
5997
5990
|
"aria-roledescription": "carousel",
|
|
5998
5991
|
"aria-label": "rotunda",
|
|
5999
5992
|
children: [jsxRuntime.jsx("a", {
|
|
6000
|
-
href: getLinkTo(currentItem),
|
|
5993
|
+
href: currentItem.linkTo && currentItem.isExternal ? getLinkTo(currentItem) : undefined,
|
|
6001
5994
|
target: currentItem.isExternal ? '_blank' : '_self',
|
|
6002
5995
|
rel: "noopener noreferrer",
|
|
6003
5996
|
children: jsxRuntime.jsx(uiKit.Card, {
|
|
6004
|
-
insetScale:
|
|
5997
|
+
insetScale: 'none',
|
|
6005
5998
|
onClick: () => {},
|
|
5999
|
+
type: borderless ? 'flat' : undefined,
|
|
6006
6000
|
children: jsxRuntime.jsx("div", {
|
|
6007
6001
|
css: /*#__PURE__*/react$1.css("position:relative;display:flex;scroll-snap-type:x mandatory;overflow:hidden;margin:0;padding-bottom:", uiKit.designTokens.spacing60, ";" + ("" ), "" ),
|
|
6008
6002
|
ref: scrollRef,
|
|
@@ -6043,14 +6037,15 @@ const BaseCarousel = _ref2 => {
|
|
|
6043
6037
|
})]
|
|
6044
6038
|
});
|
|
6045
6039
|
};
|
|
6046
|
-
var _ref$
|
|
6040
|
+
var _ref$b = {
|
|
6047
6041
|
name: "97rk2e",
|
|
6048
6042
|
styles: "width:100%;height:100%;flex-shrink:0;scroll-snap-align:start"
|
|
6049
6043
|
} ;
|
|
6050
6044
|
const CarouselContent = _ref3 => {
|
|
6051
6045
|
let item = _ref3.item,
|
|
6052
6046
|
handleFilterItemsWhenFlagDisabled = _ref3.handleFilterItemsWhenFlagDisabled,
|
|
6053
|
-
idx = _ref3.idx
|
|
6047
|
+
idx = _ref3.idx,
|
|
6048
|
+
hasPadding = _ref3.hasPadding;
|
|
6054
6049
|
const isEnabled = applicationShell.useFeatureToggle(item.flag || '');
|
|
6055
6050
|
const intl = reactIntl.useIntl();
|
|
6056
6051
|
React.useEffect(() => {
|
|
@@ -6065,22 +6060,19 @@ const CarouselContent = _ref3 => {
|
|
|
6065
6060
|
role: "group",
|
|
6066
6061
|
"aria-roledescription": "slide",
|
|
6067
6062
|
"aria-label": `slide-${idx + 1}`,
|
|
6068
|
-
css: _ref$
|
|
6063
|
+
css: _ref$b,
|
|
6069
6064
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
6070
|
-
children: [jsxRuntime.jsx("img", {
|
|
6065
|
+
children: [item.imgSrc && item.imgAlt && jsxRuntime.jsx("img", {
|
|
6071
6066
|
css: /*#__PURE__*/react$1.css("width:100%;height:", IMAGE_AREA_HEIGHT, "px;" + ("" ), "" ),
|
|
6072
6067
|
src: item.imgSrc,
|
|
6073
6068
|
alt: intl.formatMessage(item.imgAlt)
|
|
6074
6069
|
}), jsxRuntime.jsx("div", {
|
|
6075
|
-
css: /*#__PURE__*/react$1.css("padding:0 ", uiKit.designTokens.spacingL, " 0 ", uiKit.designTokens.spacingL, ";" + ("" ), "" ),
|
|
6070
|
+
css: /*#__PURE__*/react$1.css("padding:0 ", hasPadding ? uiKit.designTokens.spacingL : 0, " 0 ", hasPadding ? uiKit.designTokens.spacingL : 0, ";" + ("" ), "" ),
|
|
6076
6071
|
children: jsxRuntime.jsxs(uiKit.Spacings.Stack, {
|
|
6077
6072
|
scale: "xs",
|
|
6078
|
-
children: [jsxRuntime.jsx(
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
isCondensed: true,
|
|
6082
|
-
label: intl.formatMessage(item.stampLabel)
|
|
6083
|
-
})
|
|
6073
|
+
children: [item.stampLabel && item.stampTone && jsxRuntime.jsx(uiKit.Stamp, {
|
|
6074
|
+
tone: item.stampTone,
|
|
6075
|
+
label: intl.formatMessage(item.stampLabel)
|
|
6084
6076
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
6085
6077
|
intlMessage: item.textContent
|
|
6086
6078
|
})]
|
|
@@ -6090,15 +6082,24 @@ const CarouselContent = _ref3 => {
|
|
|
6090
6082
|
});
|
|
6091
6083
|
};
|
|
6092
6084
|
const Carousel = _ref4 => {
|
|
6093
|
-
let items = _ref4.items
|
|
6085
|
+
let items = _ref4.items,
|
|
6086
|
+
_ref4$fullWidth = _ref4.fullWidth,
|
|
6087
|
+
fullWidth = _ref4$fullWidth === void 0 ? false : _ref4$fullWidth,
|
|
6088
|
+
_ref4$borderless = _ref4.borderless,
|
|
6089
|
+
borderless = _ref4$borderless === void 0 ? true : _ref4$borderless,
|
|
6090
|
+
_ref4$hasPadding = _ref4.hasPadding,
|
|
6091
|
+
hasPadding = _ref4$hasPadding === void 0 ? true : _ref4$hasPadding;
|
|
6094
6092
|
return jsxRuntime.jsx(BaseCarousel, {
|
|
6093
|
+
fullWidth: fullWidth,
|
|
6094
|
+
borderless: borderless,
|
|
6095
6095
|
items: items,
|
|
6096
6096
|
renderItem: (_ref5, handleFilterItemsWhenFlagDisabled, idx) => {
|
|
6097
6097
|
let item = _ref5.item;
|
|
6098
6098
|
return jsxRuntime.jsx(CarouselContent, {
|
|
6099
6099
|
handleFilterItemsWhenFlagDisabled: handleFilterItemsWhenFlagDisabled,
|
|
6100
6100
|
item: item,
|
|
6101
|
-
idx: idx
|
|
6101
|
+
idx: idx,
|
|
6102
|
+
hasPadding: hasPadding
|
|
6102
6103
|
}, item.id);
|
|
6103
6104
|
}
|
|
6104
6105
|
});
|
|
@@ -6353,25 +6354,21 @@ const CustomerGroupPickerInput = _ref => {
|
|
|
6353
6354
|
CustomerGroupPickerInput.displayName = 'CustomerGroupPickerInput';
|
|
6354
6355
|
var CustomerGroupPickerInput$1 = CustomerGroupPickerInput;
|
|
6355
6356
|
|
|
6356
|
-
var styles$e = {
|
|
6357
|
-
"divider": "divider-module__divider___4-vdy",
|
|
6358
|
-
"divider-horizontal": "divider-module__divider-horizontal___RuUcj",
|
|
6359
|
-
"divider-vertical": "divider-module__divider-vertical___32kJG",
|
|
6360
|
-
"divider-solid": "divider-module__divider-solid___3Fs4q divider-module__divider___4-vdy",
|
|
6361
|
-
"divider-dashed": "divider-module__divider-dashed___2Em8A divider-module__divider___4-vdy"
|
|
6362
|
-
};
|
|
6363
6357
|
function Divider(_ref) {
|
|
6364
6358
|
let _ref$isDashed = _ref.isDashed,
|
|
6365
6359
|
isDashed = _ref$isDashed === void 0 ? false : _ref$isDashed,
|
|
6366
6360
|
_ref$orientation = _ref.orientation,
|
|
6367
6361
|
orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
|
|
6362
|
+
const dividerStyles = /*#__PURE__*/react$1.css("box-sizing:border-box;margin:0;border:0;border-color:var(--color-neutral-90);border-style:", isDashed ? 'dashed' : 'solid', ";", orientation === 'horizontal' ? `
|
|
6363
|
+
width: 100%;
|
|
6364
|
+
border-top-width: 1px;
|
|
6365
|
+
` : `
|
|
6366
|
+
width: 1px;
|
|
6367
|
+
height: 2vmax;
|
|
6368
|
+
border-left-width: 1px;
|
|
6369
|
+
`, ";" + ("" ), "" );
|
|
6368
6370
|
return jsxRuntime.jsx("hr", {
|
|
6369
|
-
|
|
6370
|
-
[styles$e['divider-solid']]: !isDashed,
|
|
6371
|
-
[styles$e['divider-dashed']]: isDashed,
|
|
6372
|
-
[styles$e['divider-horizontal']]: orientation === 'horizontal',
|
|
6373
|
-
[styles$e['divider-vertical']]: orientation === 'vertical'
|
|
6374
|
-
})
|
|
6371
|
+
css: dividerStyles
|
|
6375
6372
|
});
|
|
6376
6373
|
}
|
|
6377
6374
|
Divider.displayName = 'Divider';
|
|
@@ -6553,11 +6550,10 @@ const ExpandButton = props => props.totalValues > 1 ? jsxRuntime.jsxs(uiKit.Spac
|
|
|
6553
6550
|
ExpandButton.displayName = 'ExpandButton';
|
|
6554
6551
|
var ExpandButton$1 = ExpandButton;
|
|
6555
6552
|
|
|
6556
|
-
var
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
};
|
|
6560
|
-
// have to find a better way to do it.
|
|
6553
|
+
var _ref$a = {
|
|
6554
|
+
name: "1yjx7km",
|
|
6555
|
+
styles: "padding:20px"
|
|
6556
|
+
} ;
|
|
6561
6557
|
const SetButtons = props => {
|
|
6562
6558
|
return jsxRuntime.jsx("div", {
|
|
6563
6559
|
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
@@ -6574,7 +6570,7 @@ const SetButtons = props => {
|
|
|
6574
6570
|
size: "big",
|
|
6575
6571
|
icon: jsxRuntime.jsx(uiKit.PlusBoldIcon, {})
|
|
6576
6572
|
}) : jsxRuntime.jsx("div", {
|
|
6577
|
-
|
|
6573
|
+
css: _ref$a
|
|
6578
6574
|
})]
|
|
6579
6575
|
})
|
|
6580
6576
|
});
|
|
@@ -6946,9 +6942,6 @@ CustomLocalizedTextInput.displayName = 'CustomLocalizedTextInput';
|
|
|
6946
6942
|
|
|
6947
6943
|
function ownKeys$S(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6948
6944
|
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6949
|
-
var styles$c = {
|
|
6950
|
-
"container": "custom-money-input-module__container___1fdO2"
|
|
6951
|
-
};
|
|
6952
6945
|
const fixCurrencyCode = (value, currencies) => {
|
|
6953
6946
|
if (value.currencyCode) return value;
|
|
6954
6947
|
const firstCurrency = currencies[0];
|
|
@@ -6979,6 +6972,10 @@ const fixEnteredValue = (newValue, initialValue, currencies) => {
|
|
|
6979
6972
|
}
|
|
6980
6973
|
return withFixedCurrency;
|
|
6981
6974
|
};
|
|
6975
|
+
var _ref$9 = {
|
|
6976
|
+
name: "1d3w5wq",
|
|
6977
|
+
styles: "width:100%"
|
|
6978
|
+
} ;
|
|
6982
6979
|
function CustomMoneyInput(props) {
|
|
6983
6980
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
6984
6981
|
currencies: applicationContext.project.currencies,
|
|
@@ -7011,7 +7008,7 @@ function CustomMoneyInput(props) {
|
|
|
7011
7008
|
|
|
7012
7009
|
// TODO(pa3): fix setting proper id in UIKit
|
|
7013
7010
|
return jsxRuntime.jsxs("div", {
|
|
7014
|
-
|
|
7011
|
+
css: _ref$9,
|
|
7015
7012
|
"aria-labelledby": props.name,
|
|
7016
7013
|
children: [jsxRuntime.jsx(uiKit.AccessibleHidden, {
|
|
7017
7014
|
children: jsxRuntime.jsx("label", {
|
|
@@ -7948,7 +7945,7 @@ function CustomFieldsLabelSubtitle(_ref3) {
|
|
|
7948
7945
|
}
|
|
7949
7946
|
}
|
|
7950
7947
|
const Portal = props => /*#__PURE__*/ReactDOM__default["default"].createPortal(props.children, document.body);
|
|
7951
|
-
var _ref$
|
|
7948
|
+
var _ref$8 = {
|
|
7952
7949
|
name: "ar8y70",
|
|
7953
7950
|
styles: "cursor:pointer;line-height:normal"
|
|
7954
7951
|
} ;
|
|
@@ -7967,7 +7964,7 @@ function CustomFieldsCountIndicator(_ref4) {
|
|
|
7967
7964
|
TooltipWrapperComponent: Portal
|
|
7968
7965
|
},
|
|
7969
7966
|
children: jsxRuntime.jsx("div", {
|
|
7970
|
-
css: _ref$
|
|
7967
|
+
css: _ref$8,
|
|
7971
7968
|
children: jsxRuntime.jsx(uiKit.SwitcherIcon, {
|
|
7972
7969
|
color: "info",
|
|
7973
7970
|
size: "medium"
|
|
@@ -8090,7 +8087,7 @@ DragHandle.displayName = 'DragHandle';
|
|
|
8090
8087
|
|
|
8091
8088
|
function ownKeys$M(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8092
8089
|
function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$M(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$M(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8093
|
-
var _ref = {
|
|
8090
|
+
var _ref$7 = {
|
|
8094
8091
|
name: "1onfs6j",
|
|
8095
8092
|
styles: "z-index:100000!important"
|
|
8096
8093
|
} ;
|
|
@@ -8122,7 +8119,7 @@ const DraggableWrapper = _ref2 => {
|
|
|
8122
8119
|
const child = jsxRuntime.jsx("div", _objectSpread$M(_objectSpread$M({
|
|
8123
8120
|
ref: provided.innerRef
|
|
8124
8121
|
}, provided.draggableProps), {}, {
|
|
8125
|
-
css: _ref,
|
|
8122
|
+
css: _ref$7,
|
|
8126
8123
|
children: jsxRuntime.jsx(DraggingCard, {
|
|
8127
8124
|
isDragging: snapshot.isDragging,
|
|
8128
8125
|
children: jsxRuntime.jsxs(uiKit.Grid, {
|
|
@@ -9123,17 +9120,10 @@ const RecurrentIntervalPicker = _ref => {
|
|
|
9123
9120
|
var RecurrentIntervalPicker$1 = RecurrentIntervalPicker;
|
|
9124
9121
|
|
|
9125
9122
|
// NOTE: this component is duplicated in `app-shell/from-core`.
|
|
9126
|
-
var styles$b = {
|
|
9127
|
-
"colored": "required-indicator-module__colored____YUFm",
|
|
9128
|
-
"indicatorAsterisk": "required-indicator-module__indicatorAsterisk___3lEdX"
|
|
9129
|
-
};
|
|
9130
9123
|
const RequiredIndicator = _ref => {
|
|
9131
9124
|
let uncolored = _ref.uncolored;
|
|
9132
9125
|
return jsxRuntime.jsx("em", {
|
|
9133
|
-
|
|
9134
|
-
[styles$b.colored]: !uncolored,
|
|
9135
|
-
[styles$b.indicatorAsterisk]: true
|
|
9136
|
-
}),
|
|
9126
|
+
css: /*#__PURE__*/react$1.css("color:", uncolored ? uiKit.designTokens.colorNeutral90 : uiKit.designTokens.colorWarning, ";font-style:normal;margin-left:2px;" + ("" ), "" ),
|
|
9137
9127
|
children: '*'
|
|
9138
9128
|
});
|
|
9139
9129
|
};
|
|
@@ -9192,10 +9182,6 @@ var messages$v = reactIntl.defineMessages({
|
|
|
9192
9182
|
}
|
|
9193
9183
|
});
|
|
9194
9184
|
|
|
9195
|
-
var styles$a = {
|
|
9196
|
-
"container": "selectable-field-search-input-module__container___z2ltR",
|
|
9197
|
-
"search-mode-menu": "selectable-field-search-input-module__search-mode-menu___Od6Le"
|
|
9198
|
-
};
|
|
9199
9185
|
const SelectableFieldSearchInput = props => {
|
|
9200
9186
|
const _useState = React.useState(props.initialValue ?? ''),
|
|
9201
9187
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -9203,7 +9189,7 @@ const SelectableFieldSearchInput = props => {
|
|
|
9203
9189
|
setSearchText = _useState2[1];
|
|
9204
9190
|
const intl = reactIntl.useIntl();
|
|
9205
9191
|
return jsxRuntime.jsx("div", {
|
|
9206
|
-
|
|
9192
|
+
css: /*#__PURE__*/react$1.css("width:100%;position:relative;display:flex;z-index:3;max-width:", uiKit.designTokens.constraint15, ";" + ("" ), "" ),
|
|
9207
9193
|
children: jsxRuntime.jsx(uiKit.SelectableSearchInput, {
|
|
9208
9194
|
menuHorizontalConstraint: 5,
|
|
9209
9195
|
options: props.options,
|
|
@@ -9596,21 +9582,17 @@ var useStoresByFieldFetcher$1 = useStoresByFieldFetcher;
|
|
|
9596
9582
|
const _excluded$4 = ["shouldFetchProductSelections"];
|
|
9597
9583
|
function ownKeys$C(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9598
9584
|
function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys$C(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context0 = ownKeys$C(Object(t))).call(_context0, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9599
|
-
var FetchStoresByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } }, 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", alias: { kind: "Name", value: "storesByWherePredicate" }, name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } } }] }], 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: "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: "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: 525, source: { body: "query FetchStoresByWherePredicate(\n $where: String!\n $skipFetchingStores: Boolean!\n $excludeProductSelections: Boolean!\n) {\n storesByWherePredicate: stores(where: $where) @skip(if: $skipFetchingStores) {\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
9600
|
-
var styles$9 = {
|
|
9601
|
-
"renderLabelContainer": "stores-search-selector-module__renderLabelContainer___3_PBc",
|
|
9602
|
-
"customLabel": "stores-search-selector-module__customLabel___1Xse8"
|
|
9603
|
-
}; // check wether there are any errors
|
|
9585
|
+
var FetchStoresByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } }, 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", alias: { kind: "Name", value: "storesByWherePredicate" }, name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } } }] }], 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: "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: "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: 525, source: { body: "query FetchStoresByWherePredicate(\n $where: String!\n $skipFetchingStores: Boolean!\n $excludeProductSelections: Boolean!\n) {\n storesByWherePredicate: stores(where: $where) @skip(if: $skipFetchingStores) {\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } }; // check wether there are any errors
|
|
9604
9586
|
const hasErrors = errors => {
|
|
9605
9587
|
var _context;
|
|
9606
9588
|
return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
|
|
9607
9589
|
};
|
|
9608
|
-
const createQueryVariables$1 =
|
|
9590
|
+
const createQueryVariables$1 = _ref2 => {
|
|
9609
9591
|
var _context2;
|
|
9610
|
-
let searchText =
|
|
9611
|
-
dataLocale =
|
|
9612
|
-
allAccessibleStoreKeysThroughDataFencePermissions =
|
|
9613
|
-
shouldFetchProductSelections =
|
|
9592
|
+
let searchText = _ref2.searchText,
|
|
9593
|
+
dataLocale = _ref2.dataLocale,
|
|
9594
|
+
allAccessibleStoreKeysThroughDataFencePermissions = _ref2.allAccessibleStoreKeysThroughDataFencePermissions,
|
|
9595
|
+
shouldFetchProductSelections = _ref2.shouldFetchProductSelections;
|
|
9614
9596
|
const sanitizedSearchText = sanitize(_trimInstanceProperty__default["default"](searchText).call(searchText, searchText));
|
|
9615
9597
|
const keyQuery = `key = "${sanitizedSearchText}"`;
|
|
9616
9598
|
|
|
@@ -9640,14 +9622,14 @@ const createQueryVariables$1 = _ref => {
|
|
|
9640
9622
|
excludeProductSelections: !shouldFetchProductSelections
|
|
9641
9623
|
};
|
|
9642
9624
|
};
|
|
9643
|
-
const getValueFromOptions =
|
|
9625
|
+
const getValueFromOptions = _ref3 => {
|
|
9644
9626
|
var _context3, _context4, _context5;
|
|
9645
|
-
let isMulti =
|
|
9646
|
-
value =
|
|
9647
|
-
dataLocale =
|
|
9648
|
-
languages =
|
|
9649
|
-
storesByFieldFetcher =
|
|
9650
|
-
renderSelectInputOptionValuesByField =
|
|
9627
|
+
let isMulti = _ref3.isMulti,
|
|
9628
|
+
value = _ref3.value,
|
|
9629
|
+
dataLocale = _ref3.dataLocale,
|
|
9630
|
+
languages = _ref3.languages,
|
|
9631
|
+
storesByFieldFetcher = _ref3.storesByFieldFetcher,
|
|
9632
|
+
renderSelectInputOptionValuesByField = _ref3.renderSelectInputOptionValuesByField;
|
|
9651
9633
|
if (!value) {
|
|
9652
9634
|
return undefined;
|
|
9653
9635
|
}
|
|
@@ -9665,10 +9647,14 @@ const getValueFromOptions = _ref2 => {
|
|
|
9665
9647
|
return selectedOptions[0];
|
|
9666
9648
|
}
|
|
9667
9649
|
};
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9650
|
+
var _ref$6 = {
|
|
9651
|
+
name: "axl87t",
|
|
9652
|
+
styles: "display:flex;flex-direction:column;justify-content:space-between;&>div:nth-of-type(2){margin-top:25px;}&>div:nth-of-type(1){margin-top:-4px;}"
|
|
9653
|
+
} ;
|
|
9654
|
+
const StoresSearchSelectInput = _ref4 => {
|
|
9655
|
+
let _ref4$shouldFetchProd = _ref4.shouldFetchProductSelections,
|
|
9656
|
+
shouldFetchProductSelections = _ref4$shouldFetchProd === void 0 ? false : _ref4$shouldFetchProd,
|
|
9657
|
+
props = _objectWithoutProperties(_ref4, _excluded$4);
|
|
9672
9658
|
// hooks
|
|
9673
9659
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
|
|
9674
9660
|
dataLocale: applicationContext.dataLocale,
|
|
@@ -9694,9 +9680,9 @@ const StoresSearchSelectInput = _ref3 => {
|
|
|
9694
9680
|
projectKey: props.projectKey
|
|
9695
9681
|
},
|
|
9696
9682
|
fetchPolicy: 'network-only'
|
|
9697
|
-
}).then(
|
|
9683
|
+
}).then(_ref5 => {
|
|
9698
9684
|
var _context6, _context7, _context8;
|
|
9699
|
-
let data =
|
|
9685
|
+
let data = _ref5.data;
|
|
9700
9686
|
const result = ((_context6 = data.storesByWherePredicate) == null ? void 0 : _bindInstanceProperty__default["default"](_context8 = Function.call).call(_context8, _mapInstanceProperty__default["default"](_context7 = _context6.results), _context7))?.(store => mapStoresToOptions({
|
|
9701
9687
|
store,
|
|
9702
9688
|
dataLocale,
|
|
@@ -9713,12 +9699,14 @@ const StoresSearchSelectInput = _ref3 => {
|
|
|
9713
9699
|
return extractMatchedStores;
|
|
9714
9700
|
};
|
|
9715
9701
|
const loadOptionsDebounced = debounce__default["default"](handleLoadOptions, 500);
|
|
9716
|
-
const
|
|
9717
|
-
|
|
9702
|
+
const renderLabelContainerStyles = _ref$6;
|
|
9703
|
+
const customLabelStyles = /*#__PURE__*/react$1.css("&>div{border-bottom:1px solid ", uiKit.designTokens.colorNeutral90, "!important;padding-bottom:4px;}" + ("" ), "" );
|
|
9704
|
+
const renderNoOptions = _ref6 => {
|
|
9705
|
+
let inputValue = _ref6.inputValue;
|
|
9718
9706
|
return jsxRuntime.jsxs("div", {
|
|
9719
|
-
|
|
9707
|
+
css: renderLabelContainerStyles,
|
|
9720
9708
|
children: [jsxRuntime.jsx("div", {
|
|
9721
|
-
|
|
9709
|
+
css: customLabelStyles,
|
|
9722
9710
|
children: props?.renderLabel && props?.renderLabel
|
|
9723
9711
|
}), jsxRuntime.jsx("div", {
|
|
9724
9712
|
children: intl.formatMessage(inputValue ? messages$u.searchSelectInputNoOptionsFoundMessage : messages$u.searchSelectInputNoValueMessage)
|
|
@@ -9776,21 +9764,22 @@ var StoresSearchSelectInput$1 = StoresSearchSelectInput;
|
|
|
9776
9764
|
const _excluded$3 = ["lowerStoresLimit", "upperStoresLimit", "renderSelectInputOptionValuesByField", "optionType", "shouldFetchProductSelections"];
|
|
9777
9765
|
function ownKeys$B(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9778
9766
|
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$B(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$B(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9779
|
-
var
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
optionType =
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
9767
|
+
var _ref$5 = {
|
|
9768
|
+
name: "1r0yqr6",
|
|
9769
|
+
styles: "margin-top:10px"
|
|
9770
|
+
} ;
|
|
9771
|
+
const StoreSelectInput = _ref2 => {
|
|
9772
|
+
let _ref2$lowerStoresLimi = _ref2.lowerStoresLimit,
|
|
9773
|
+
lowerStoresLimit = _ref2$lowerStoresLimi === void 0 ? LOWER_STORES_LIMIT : _ref2$lowerStoresLimi,
|
|
9774
|
+
_ref2$upperStoresLimi = _ref2.upperStoresLimit,
|
|
9775
|
+
upperStoresLimit = _ref2$upperStoresLimi === void 0 ? UPPER_STORES_LIMIT : _ref2$upperStoresLimi,
|
|
9776
|
+
_ref2$renderSelectInp = _ref2.renderSelectInputOptionValuesByField,
|
|
9777
|
+
renderSelectInputOptionValuesByField = _ref2$renderSelectInp === void 0 ? 'id' : _ref2$renderSelectInp,
|
|
9778
|
+
_ref2$optionType = _ref2.optionType,
|
|
9779
|
+
optionType = _ref2$optionType === void 0 ? 'double-property' : _ref2$optionType,
|
|
9780
|
+
_ref2$shouldFetchProd = _ref2.shouldFetchProductSelections,
|
|
9781
|
+
shouldFetchProductSelections = _ref2$shouldFetchProd === void 0 ? false : _ref2$shouldFetchProd,
|
|
9782
|
+
props = _objectWithoutProperties(_ref2, _excluded$3);
|
|
9794
9783
|
const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1(props.projectKey);
|
|
9795
9784
|
const components = React.useMemo(() => {
|
|
9796
9785
|
return {
|
|
@@ -9801,7 +9790,7 @@ const StoreSelectInput = _ref => {
|
|
|
9801
9790
|
}
|
|
9802
9791
|
const isSearchSelectInput = totalNumberOfStoresFetcher.total > upperStoresLimit;
|
|
9803
9792
|
return jsxRuntime.jsx("div", {
|
|
9804
|
-
|
|
9793
|
+
css: isSearchSelectInput ? _ref$5 : '',
|
|
9805
9794
|
children: jsxRuntime.jsx(selectUtils.CustomSelectInputOption, {
|
|
9806
9795
|
optionType: optionType,
|
|
9807
9796
|
optionInnerProps: optionInnerProps
|
|
@@ -9928,11 +9917,6 @@ function ownKeys$z(e, r) { var t = _Object$keys__default["default"](e); if (_Obj
|
|
|
9928
9917
|
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$z(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$z(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
9929
9918
|
function _callSuper$5(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9930
9919
|
function _isNativeReflectConstruct$5() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$5 = function () { return !!t; })(); }
|
|
9931
|
-
var styles$7 = {
|
|
9932
|
-
"invalid": "validated-input-module__invalid___380EL",
|
|
9933
|
-
"container": "validated-input-module__container___3L2KB"
|
|
9934
|
-
}; // Note: don't use `g`! Regex with global flag have state
|
|
9935
|
-
// and subsequent calls may give false results.
|
|
9936
9920
|
const EMAIL_REGEX = /^[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/i;
|
|
9937
9921
|
const getIsEvent = event => typeof event === 'object' && !isNil__default["default"](event.target);
|
|
9938
9922
|
const validateRequired = value => {
|
|
@@ -10000,8 +9984,8 @@ commonTags.oneLineTrim`
|
|
|
10000
9984
|
\`validatedInput\` is no longer supported.
|
|
10001
9985
|
Please use \`formik\` instead.
|
|
10002
9986
|
`;
|
|
10003
|
-
const ToolTipWrapperComponent = /*#__PURE__*/React.forwardRef((
|
|
10004
|
-
let children =
|
|
9987
|
+
const ToolTipWrapperComponent = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
9988
|
+
let children = _ref2.children;
|
|
10005
9989
|
return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
|
|
10006
9990
|
max: 'scale',
|
|
10007
9991
|
children: jsxRuntime.jsx("div", {
|
|
@@ -10014,15 +9998,19 @@ ToolTipWrapperComponent.displayName = 'ToolTipWrapperComponent';
|
|
|
10014
9998
|
ToolTipWrapperComponent.propTypes = {
|
|
10015
9999
|
children: PropTypes__default["default"].element
|
|
10016
10000
|
};
|
|
10001
|
+
var _ref$4 = {
|
|
10002
|
+
name: "1u4hpl4",
|
|
10003
|
+
styles: "display:inline"
|
|
10004
|
+
} ;
|
|
10017
10005
|
function validatedInput(InnerComponent, validators) {
|
|
10018
|
-
let
|
|
10019
|
-
containerClassName =
|
|
10020
|
-
|
|
10021
|
-
let
|
|
10022
|
-
|
|
10023
|
-
changeHandler =
|
|
10024
|
-
|
|
10025
|
-
blurHandler =
|
|
10006
|
+
let _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
10007
|
+
containerClassName = _ref3.containerClassName;
|
|
10008
|
+
_ref3.tooltipContainerClassName;
|
|
10009
|
+
let _ref4 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
|
|
10010
|
+
_ref4$changeHandler = _ref4.changeHandler,
|
|
10011
|
+
changeHandler = _ref4$changeHandler === void 0 ? null : _ref4$changeHandler,
|
|
10012
|
+
_ref4$blurHandler = _ref4.blurHandler,
|
|
10013
|
+
blurHandler = _ref4$blurHandler === void 0 ? null : _ref4$blurHandler;
|
|
10026
10014
|
let _InnerComponent = InnerComponent;
|
|
10027
10015
|
if (typeof InnerComponent === 'string') _InnerComponent = simpleInput(InnerComponent);
|
|
10028
10016
|
const _validators = [];
|
|
@@ -10050,9 +10038,9 @@ function validatedInput(InnerComponent, validators) {
|
|
|
10050
10038
|
}
|
|
10051
10039
|
};
|
|
10052
10040
|
_this.handleChange = function (event) {
|
|
10053
|
-
let
|
|
10054
|
-
|
|
10055
|
-
triggerUpdate =
|
|
10041
|
+
let _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
10042
|
+
_ref5$triggerUpdate = _ref5.triggerUpdate,
|
|
10043
|
+
triggerUpdate = _ref5$triggerUpdate === void 0 ? true : _ref5$triggerUpdate;
|
|
10056
10044
|
let value = '';
|
|
10057
10045
|
const nextValidStatus = {};
|
|
10058
10046
|
const onChange = changeHandler && _this.props[changeHandler] || _this.props.onChange;
|
|
@@ -10130,7 +10118,8 @@ function validatedInput(InnerComponent, validators) {
|
|
|
10130
10118
|
});
|
|
10131
10119
|
const firstFailedValidator = _findInstanceProperty__default["default"](_validators).call(_validators, v => !this.state.validStatus[v.name]);
|
|
10132
10120
|
return jsxRuntime.jsx("div", {
|
|
10133
|
-
className: classnames__default["default"](
|
|
10121
|
+
className: classnames__default["default"](containerClassName),
|
|
10122
|
+
css: _ref$4,
|
|
10134
10123
|
children: jsxRuntime.jsx(uiKit.Tooltip, {
|
|
10135
10124
|
placement: "top",
|
|
10136
10125
|
title: firstFailedValidator && this.props.intl.formatMessage(firstFailedValidator.message) || '',
|
|
@@ -10171,9 +10160,8 @@ function simpleInput(type) {
|
|
|
10171
10160
|
key: "render",
|
|
10172
10161
|
value: function render() {
|
|
10173
10162
|
return jsxRuntime.jsx("input", {
|
|
10174
|
-
className: classnames__default["default"](this.props.className,
|
|
10175
|
-
|
|
10176
|
-
}),
|
|
10163
|
+
className: classnames__default["default"](this.props.className),
|
|
10164
|
+
css: /*#__PURE__*/react$1.css(this.props.isValid ? '' : `border-color: ${uiKit.designTokens.colorError}!important;border: 1px solid;`, ";" + ("" ), "" ),
|
|
10177
10165
|
name: this.props.name,
|
|
10178
10166
|
disabled: this.props.disabled,
|
|
10179
10167
|
ref: this.props.getInputRef,
|
|
@@ -12042,9 +12030,10 @@ var messages$h = reactIntl.defineMessages({
|
|
|
12042
12030
|
|
|
12043
12031
|
function ownKeys$e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12044
12032
|
function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$e(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$e(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
12045
|
-
var
|
|
12046
|
-
|
|
12047
|
-
|
|
12033
|
+
var _ref$3 = {
|
|
12034
|
+
name: "1670krd",
|
|
12035
|
+
styles: "min-width:max-content"
|
|
12036
|
+
} ;
|
|
12048
12037
|
const PlatformLimitsCustomersStatus = () => {
|
|
12049
12038
|
const intl = reactIntl.useIntl();
|
|
12050
12039
|
const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
|
|
@@ -12056,7 +12045,7 @@ const PlatformLimitsCustomersStatus = () => {
|
|
|
12056
12045
|
current = _platformLimits$custo.current,
|
|
12057
12046
|
limit = _platformLimits$custo.limit;
|
|
12058
12047
|
return jsxRuntime.jsx("div", {
|
|
12059
|
-
|
|
12048
|
+
css: _ref$3,
|
|
12060
12049
|
children: jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
12061
12050
|
tone: "secondary",
|
|
12062
12051
|
isInline: true,
|
|
@@ -12218,16 +12207,13 @@ const PlatformLimitsCustomersErrorModal = _ref => {
|
|
|
12218
12207
|
PlatformLimitsCustomersErrorModal.displayName = 'PlatformLimitsCustomersErrorModal';
|
|
12219
12208
|
var CustomersErrorModal = PlatformLimitsCustomersErrorModal;
|
|
12220
12209
|
|
|
12221
|
-
var styles$5 = {
|
|
12222
|
-
"combined": "platform-limits-customers-combined-module__combined___OszDd"
|
|
12223
|
-
};
|
|
12224
12210
|
const PlatformLimitsCustomersCombined = () => {
|
|
12225
12211
|
// on the customer create only show the warning message
|
|
12226
12212
|
const _useCustomersPlatform = useCustomersPlatformLimitsStatus(),
|
|
12227
12213
|
hasReachedCustomersErrorLimit = _useCustomersPlatform.hasReachedCustomersErrorLimit,
|
|
12228
12214
|
hasReachedCustomersWarningLimit = _useCustomersPlatform.hasReachedCustomersWarningLimit;
|
|
12229
12215
|
return jsxRuntime.jsx("div", {
|
|
12230
|
-
|
|
12216
|
+
css: /*#__PURE__*/react$1.css("margin-bottom:", uiKit.designTokens.spacingS, ";" + ("" ), "" ),
|
|
12231
12217
|
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
12232
12218
|
scale: "xl",
|
|
12233
12219
|
justifyContent: "space-between",
|
|
@@ -12424,9 +12410,10 @@ var messages$e = reactIntl.defineMessages({
|
|
|
12424
12410
|
|
|
12425
12411
|
function ownKeys$a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12426
12412
|
function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
12427
|
-
var
|
|
12428
|
-
|
|
12429
|
-
|
|
12413
|
+
var _ref$2 = {
|
|
12414
|
+
name: "1670krd",
|
|
12415
|
+
styles: "min-width:max-content"
|
|
12416
|
+
} ;
|
|
12430
12417
|
const PlatformLimitsCustomerGroupsStatus = () => {
|
|
12431
12418
|
const intl = reactIntl.useIntl();
|
|
12432
12419
|
const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
|
|
@@ -12438,7 +12425,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
|
|
|
12438
12425
|
current = _platformLimits$custo.current,
|
|
12439
12426
|
limit = _platformLimits$custo.limit;
|
|
12440
12427
|
return jsxRuntime.jsx("div", {
|
|
12441
|
-
|
|
12428
|
+
css: _ref$2,
|
|
12442
12429
|
children: jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
12443
12430
|
tone: "secondary",
|
|
12444
12431
|
isInline: true,
|
|
@@ -12600,16 +12587,13 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
|
|
|
12600
12587
|
PlatformLimitsCustomerGroupsErrorModal.displayName = 'PlatformLimitsCustomerGroupsErrorModal';
|
|
12601
12588
|
var CustomerGroupsErrorModal = PlatformLimitsCustomerGroupsErrorModal;
|
|
12602
12589
|
|
|
12603
|
-
var styles$3 = {
|
|
12604
|
-
"combined": "platform-limits-customer-groups-combined-module__combined___WjRoI"
|
|
12605
|
-
};
|
|
12606
12590
|
const PlatformLimitsCustomerGroupsCombined = () => {
|
|
12607
12591
|
// on the customer create only show the warning message
|
|
12608
12592
|
const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus$1(),
|
|
12609
12593
|
hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsErrorLimit,
|
|
12610
12594
|
hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsWarningLimit;
|
|
12611
12595
|
return jsxRuntime.jsx("div", {
|
|
12612
|
-
|
|
12596
|
+
css: /*#__PURE__*/react$1.css("margin-bottom:", uiKit.designTokens.spacingS, ";" + ("" ), "" ),
|
|
12613
12597
|
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
12614
12598
|
scale: "xl",
|
|
12615
12599
|
justifyContent: "space-between",
|
|
@@ -12804,13 +12788,14 @@ var messages$b = messages$a;
|
|
|
12804
12788
|
|
|
12805
12789
|
function ownKeys$7(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12806
12790
|
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
12807
|
-
var
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12791
|
+
var _ref$1 = {
|
|
12792
|
+
name: "1rk22b8",
|
|
12793
|
+
styles: "font-size:0.9rem;font-weight:bold"
|
|
12794
|
+
} ;
|
|
12795
|
+
const LabelRange = _ref2 => {
|
|
12796
|
+
let type = _ref2.type;
|
|
12812
12797
|
return jsxRuntime.jsx("label", {
|
|
12813
|
-
|
|
12798
|
+
css: _ref$1,
|
|
12814
12799
|
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$b[type]))
|
|
12815
12800
|
});
|
|
12816
12801
|
};
|
|
@@ -12856,27 +12841,15 @@ var messages$8 = reactIntl.defineMessages({
|
|
|
12856
12841
|
|
|
12857
12842
|
function ownKeys$5(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12858
12843
|
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$5(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$5(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
12859
|
-
var styles$1 = {
|
|
12860
|
-
"container": "multi-value-search-input-module__container___2u64d",
|
|
12861
|
-
"searchInput": "multi-value-search-input-module__searchInput___363nj",
|
|
12862
|
-
"submittingTip": "multi-value-search-input-module__submittingTip___2339U",
|
|
12863
|
-
"submitting-tip-single": "multi-value-search-input-module__submitting-tip-single___1LcNy",
|
|
12864
|
-
"submitting-tip-content": "multi-value-search-input-module__submitting-tip-content___IyuVb",
|
|
12865
|
-
"submitting-tip-content-separate": "multi-value-search-input-module__submitting-tip-content-separate___3Y_CI multi-value-search-input-module__submitting-tip-content___IyuVb",
|
|
12866
|
-
"submitting-tip-content-hoverable": "multi-value-search-input-module__submitting-tip-content-hoverable___2TK6S",
|
|
12867
|
-
"submitting-tip-content-separate-hoverable": "multi-value-search-input-module__submitting-tip-content-separate-hoverable___3VUnV"
|
|
12868
|
-
};
|
|
12869
12844
|
const IS_MULTI_VALUE_FLAG = '?isMulti=true';
|
|
12870
12845
|
const MultiValueSelectorDropdown = props => {
|
|
12871
12846
|
if (!props.isOpen) return null;
|
|
12872
12847
|
if (props.multiValue.length > 0) {
|
|
12873
12848
|
return jsxRuntime.jsxs("div", {
|
|
12874
|
-
|
|
12849
|
+
css: /*#__PURE__*/react$1.css("margin-top:", uiKit.designTokens.spacingXs, ";background:", uiKit.designTokens.backgroundColorForInput, ";border:solid 1px ", uiKit.designTokens.borderColorForInputWhenFocused, ";border-radius:", uiKit.designTokens.borderRadiusForInput, ";position:relative;cursor:default;" + ("" ), "" ),
|
|
12875
12850
|
children: [jsxRuntime.jsx("div", {
|
|
12876
12851
|
onClick: props.handleSingleValueSubmit,
|
|
12877
|
-
|
|
12878
|
-
[styles$1['submitting-tip-content-hoverable']]: true
|
|
12879
|
-
}),
|
|
12852
|
+
css: /*#__PURE__*/react$1.css("padding:", uiKit.designTokens.spacingS, ";&:hover{background-color:", uiKit.designTokens.colorNeutral95, ";border-radius:", uiKit.designTokens.borderRadiusForInput, ";}" + ("" ), "" ),
|
|
12880
12853
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
12881
12854
|
truncate: true,
|
|
12882
12855
|
intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterWholeInput), {}, {
|
|
@@ -12887,9 +12860,7 @@ const MultiValueSelectorDropdown = props => {
|
|
|
12887
12860
|
})
|
|
12888
12861
|
}), jsxRuntime.jsx("div", {
|
|
12889
12862
|
onClick: props.handleMultiValueSubmit,
|
|
12890
|
-
|
|
12891
|
-
[styles$1['submitting-tip-content-separate-hoverable']]: true
|
|
12892
|
-
}),
|
|
12863
|
+
css: /*#__PURE__*/react$1.css("padding:", uiKit.designTokens.spacingS, ";&:hover{background-color:", uiKit.designTokens.colorNeutral95, ";border-bottom-left-radius:", uiKit.designTokens.borderRadiusForInput, ";border-bottom-right-radius:", uiKit.designTokens.borderRadiusForInput, ";}" + ("" ), "" ),
|
|
12893
12864
|
children: jsxRuntime.jsx(uiKit.Text.Body, {
|
|
12894
12865
|
truncate: true,
|
|
12895
12866
|
intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterSeparateValues), {}, {
|
|
@@ -12902,14 +12873,18 @@ const MultiValueSelectorDropdown = props => {
|
|
|
12902
12873
|
});
|
|
12903
12874
|
}
|
|
12904
12875
|
return jsxRuntime.jsx("div", {
|
|
12905
|
-
|
|
12876
|
+
css: /*#__PURE__*/react$1.css("margin-top:", uiKit.designTokens.spacingXs, ";background:", uiKit.designTokens.backgroundColorForInput, ";border:solid 1px ", uiKit.designTokens.borderColorForInputWhenFocused, ";border-radius:", uiKit.designTokens.borderRadiusForInput, ";position:relative;cursor:default;" + ("" ), "" ),
|
|
12906
12877
|
children: jsxRuntime.jsx("div", {
|
|
12907
|
-
|
|
12878
|
+
css: /*#__PURE__*/react$1.css("padding:", uiKit.designTokens.spacingS, ";color:", uiKit.designTokens.fontColorForInputWhenDisabled, ";" + ("" ), "" ),
|
|
12908
12879
|
children: props.tooltip
|
|
12909
12880
|
})
|
|
12910
12881
|
});
|
|
12911
12882
|
};
|
|
12912
12883
|
MultiValueSelectorDropdown.displayName = 'MultiValueSelectorDropdown';
|
|
12884
|
+
var _ref = {
|
|
12885
|
+
name: "bjn8wh",
|
|
12886
|
+
styles: "position:relative"
|
|
12887
|
+
} ;
|
|
12913
12888
|
const MultiValueSearchInput = props => {
|
|
12914
12889
|
const _useState = React.useState(''),
|
|
12915
12890
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12980,7 +12955,7 @@ const MultiValueSearchInput = props => {
|
|
|
12980
12955
|
clearRunningTooltipTimer();
|
|
12981
12956
|
});
|
|
12982
12957
|
return jsxRuntime.jsxs("div", {
|
|
12983
|
-
|
|
12958
|
+
css: _ref,
|
|
12984
12959
|
children: [jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
12985
12960
|
size: "s",
|
|
12986
12961
|
children: jsxRuntime.jsx(uiKit.SearchTextInput, {
|
|
@@ -13008,10 +12983,6 @@ function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Obj
|
|
|
13008
12983
|
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13009
12984
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13010
12985
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function () { return !!t; })(); }
|
|
13011
|
-
var styles = {
|
|
13012
|
-
"invalid": "numeric-format-input-module__invalid___3LcyE",
|
|
13013
|
-
"disabled": "numeric-format-input-module__disabled___hb6h4"
|
|
13014
|
-
};
|
|
13015
12986
|
Cleave__default["default"].displayName = 'Cleave';
|
|
13016
12987
|
|
|
13017
12988
|
// only allow values of type Number or values that are nil (null or undefined)
|
|
@@ -13086,10 +13057,8 @@ let NumericFormatInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
13086
13057
|
numeralIntegerScale: 0
|
|
13087
13058
|
},
|
|
13088
13059
|
name: this.props.name,
|
|
13089
|
-
className: classnames__default["default"](this.props.className,
|
|
13090
|
-
|
|
13091
|
-
[styles.disabled]: this.props.disabled
|
|
13092
|
-
}),
|
|
13060
|
+
className: classnames__default["default"](this.props.className),
|
|
13061
|
+
css: /*#__PURE__*/react$1.css(this.props.isValid ? '' : `border-color: ${uiKit.designTokens.colorError}!important;border: 1px solid;`, " ", this.props.disabled ? 'cursor: not-allowed;' : '', ";" + ("" ), "" ),
|
|
13093
13062
|
onChange: this.handleChange,
|
|
13094
13063
|
onInit: this.handleInit,
|
|
13095
13064
|
onBlur: this.handleBlur,
|