@commercetools-frontend/experimental-components 7.2.4 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 styles$k = {
221
- "loading-container": "centered-loading-spinner-module__loading-container___3_9-h"
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
- className: styles$k['loading-container'],
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
- className: classnames__default["default"](styles$j.textarea, styles$j[`textarea-${this.props.style}`], {
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
- className: classnames__default["default"](styles$j[`input-${this.props.style}`], {
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 styles$i = {
1388
- "block": "search-input-module__block___1uM-y",
1389
- "container": "search-input-module__container___9u6if",
1390
- "input-container": "search-input-module__input-container___mJnyZ",
1391
- "input-container-disabled": "search-input-module__input-container-disabled___23jR8",
1392
- "input-container-hoverable": "search-input-module__input-container-hoverable___1xjqn",
1393
- "input-container-granular": "search-input-module__input-container-granular___33Pm- search-input-module__input-container___mJnyZ",
1394
- "search-icon-container": "search-input-module__search-icon-container___cbHQY",
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, styles$i.block),
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, styles$i.container),
1470
+ className: classnames__default["default"](this.props.containerClassName),
1471
+ css: _ref$f,
1465
1472
  children: [jsxRuntime.jsx("div", {
1466
- className: classnames__default["default"](styles$i['input-container'], {
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
- className: classnames__default["default"](styles$i['clear-icon-container'], {
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
- className: classnames__default["default"](styles$i['search-icon-container'], {
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 = _ref => {
5395
- let ids = _ref.ids,
5396
- loadItemsBySearchTerm = _ref.loadItemsBySearchTerm,
5397
- loadItemsByIds = _ref.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))?.(_ref2 => {
5460
- let id = _ref2.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
- className: styles$h.container,
5484
+ css: containerStyles,
5486
5485
  children: [areSomeItemsMissing && jsxRuntime.jsx("div", {
5487
- className: styles$h['missing-label'],
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"](styles$g.button, isDisabled ? styles$g.disabled : null, className),
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 styles$f = {
5871
- "button": "file-input-module__button___2KypN",
5872
- "input": "file-input-module__input___3MP4D"
5873
- };
5874
- const FileInput = _ref => {
5875
- let _ref$children = _ref.children,
5876
- children = _ref$children === void 0 ? jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$_({}, messages$F.chooseFile)) : _ref$children,
5877
- _ref$allowMultiple = _ref.allowMultiple,
5878
- allowMultiple = _ref$allowMultiple === void 0 ? false : _ref$allowMultiple,
5879
- _ref$acceptTypes = _ref.acceptTypes,
5880
- acceptTypes = _ref$acceptTypes === void 0 ? 'image/png,image/jpeg,image/gif' : _ref$acceptTypes,
5881
- props = _objectWithoutProperties(_ref, _excluded$d);
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
- className: styles$f.button,
5872
+ css: getFileInputStyles(),
5885
5873
  children: [jsxRuntime.jsx("input", {
5886
- className: styles$f.input,
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, "px;position:relative;" + ("" ), "" ),
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: "none",
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$2 = {
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$2,
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("div", {
6079
- children: jsxRuntime.jsx(uiKit.Stamp, {
6080
- tone: item.stampTone,
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
- className: classnames__default["default"]({
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 styles$d = {
6557
- "topAlign": "set-buttons-module__topAlign___3AZwc",
6558
- "gap": "set-buttons-module__gap___38Qr0"
6559
- }; // TODO(pa3): alignment of buttons made in a kinda ugly way (i.e. gap class).
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
- className: styles$d.gap
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
- className: styles$c.container,
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$1 = {
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$1,
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
- className: classnames__default["default"]({
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,13 @@ const SelectableFieldSearchInput = props => {
9203
9189
  setSearchText = _useState2[1];
9204
9190
  const intl = reactIntl.useIntl();
9205
9191
  return jsxRuntime.jsx("div", {
9206
- className: styles$a.container,
9192
+ css: `
9193
+ width: 100%;
9194
+ position: relative;
9195
+ display: flex;
9196
+ z-index: 3;
9197
+ max-width: ${uiKit.designTokens.constraint15};
9198
+ `,
9207
9199
  children: jsxRuntime.jsx(uiKit.SelectableSearchInput, {
9208
9200
  menuHorizontalConstraint: 5,
9209
9201
  options: props.options,
@@ -9596,21 +9588,17 @@ var useStoresByFieldFetcher$1 = useStoresByFieldFetcher;
9596
9588
  const _excluded$4 = ["shouldFetchProductSelections"];
9597
9589
  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
9590
  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
9591
+ 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
9592
  const hasErrors = errors => {
9605
9593
  var _context;
9606
9594
  return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
9607
9595
  };
9608
- const createQueryVariables$1 = _ref => {
9596
+ const createQueryVariables$1 = _ref2 => {
9609
9597
  var _context2;
9610
- let searchText = _ref.searchText,
9611
- dataLocale = _ref.dataLocale,
9612
- allAccessibleStoreKeysThroughDataFencePermissions = _ref.allAccessibleStoreKeysThroughDataFencePermissions,
9613
- shouldFetchProductSelections = _ref.shouldFetchProductSelections;
9598
+ let searchText = _ref2.searchText,
9599
+ dataLocale = _ref2.dataLocale,
9600
+ allAccessibleStoreKeysThroughDataFencePermissions = _ref2.allAccessibleStoreKeysThroughDataFencePermissions,
9601
+ shouldFetchProductSelections = _ref2.shouldFetchProductSelections;
9614
9602
  const sanitizedSearchText = sanitize(_trimInstanceProperty__default["default"](searchText).call(searchText, searchText));
9615
9603
  const keyQuery = `key = "${sanitizedSearchText}"`;
9616
9604
 
@@ -9640,14 +9628,14 @@ const createQueryVariables$1 = _ref => {
9640
9628
  excludeProductSelections: !shouldFetchProductSelections
9641
9629
  };
9642
9630
  };
9643
- const getValueFromOptions = _ref2 => {
9631
+ const getValueFromOptions = _ref3 => {
9644
9632
  var _context3, _context4, _context5;
9645
- let isMulti = _ref2.isMulti,
9646
- value = _ref2.value,
9647
- dataLocale = _ref2.dataLocale,
9648
- languages = _ref2.languages,
9649
- storesByFieldFetcher = _ref2.storesByFieldFetcher,
9650
- renderSelectInputOptionValuesByField = _ref2.renderSelectInputOptionValuesByField;
9633
+ let isMulti = _ref3.isMulti,
9634
+ value = _ref3.value,
9635
+ dataLocale = _ref3.dataLocale,
9636
+ languages = _ref3.languages,
9637
+ storesByFieldFetcher = _ref3.storesByFieldFetcher,
9638
+ renderSelectInputOptionValuesByField = _ref3.renderSelectInputOptionValuesByField;
9651
9639
  if (!value) {
9652
9640
  return undefined;
9653
9641
  }
@@ -9665,10 +9653,14 @@ const getValueFromOptions = _ref2 => {
9665
9653
  return selectedOptions[0];
9666
9654
  }
9667
9655
  };
9668
- const StoresSearchSelectInput = _ref3 => {
9669
- let _ref3$shouldFetchProd = _ref3.shouldFetchProductSelections,
9670
- shouldFetchProductSelections = _ref3$shouldFetchProd === void 0 ? false : _ref3$shouldFetchProd,
9671
- props = _objectWithoutProperties(_ref3, _excluded$4);
9656
+ var _ref$6 = {
9657
+ name: "axl87t",
9658
+ 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;}"
9659
+ } ;
9660
+ const StoresSearchSelectInput = _ref4 => {
9661
+ let _ref4$shouldFetchProd = _ref4.shouldFetchProductSelections,
9662
+ shouldFetchProductSelections = _ref4$shouldFetchProd === void 0 ? false : _ref4$shouldFetchProd,
9663
+ props = _objectWithoutProperties(_ref4, _excluded$4);
9672
9664
  // hooks
9673
9665
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
9674
9666
  dataLocale: applicationContext.dataLocale,
@@ -9694,9 +9686,9 @@ const StoresSearchSelectInput = _ref3 => {
9694
9686
  projectKey: props.projectKey
9695
9687
  },
9696
9688
  fetchPolicy: 'network-only'
9697
- }).then(_ref4 => {
9689
+ }).then(_ref5 => {
9698
9690
  var _context6, _context7, _context8;
9699
- let data = _ref4.data;
9691
+ let data = _ref5.data;
9700
9692
  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
9693
  store,
9702
9694
  dataLocale,
@@ -9713,12 +9705,14 @@ const StoresSearchSelectInput = _ref3 => {
9713
9705
  return extractMatchedStores;
9714
9706
  };
9715
9707
  const loadOptionsDebounced = debounce__default["default"](handleLoadOptions, 500);
9716
- const renderNoOptions = _ref5 => {
9717
- let inputValue = _ref5.inputValue;
9708
+ const renderLabelContainerStyles = _ref$6;
9709
+ const customLabelStyles = /*#__PURE__*/react$1.css("&>div{border-bottom:1px solid ", uiKit.designTokens.colorNeutral90, "!important;padding-bottom:4px;}" + ("" ), "" );
9710
+ const renderNoOptions = _ref6 => {
9711
+ let inputValue = _ref6.inputValue;
9718
9712
  return jsxRuntime.jsxs("div", {
9719
- className: styles$9.renderLabelContainer,
9713
+ css: renderLabelContainerStyles,
9720
9714
  children: [jsxRuntime.jsx("div", {
9721
- className: styles$9.customLabel,
9715
+ css: customLabelStyles,
9722
9716
  children: props?.renderLabel && props?.renderLabel
9723
9717
  }), jsxRuntime.jsx("div", {
9724
9718
  children: intl.formatMessage(inputValue ? messages$u.searchSelectInputNoOptionsFoundMessage : messages$u.searchSelectInputNoValueMessage)
@@ -9776,21 +9770,22 @@ var StoresSearchSelectInput$1 = StoresSearchSelectInput;
9776
9770
  const _excluded$3 = ["lowerStoresLimit", "upperStoresLimit", "renderSelectInputOptionValuesByField", "optionType", "shouldFetchProductSelections"];
9777
9771
  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
9772
  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 styles$8 = {
9780
- "customOption": "store-select-input-module__customOption___2SC00"
9781
- };
9782
- const StoreSelectInput = _ref => {
9783
- let _ref$lowerStoresLimit = _ref.lowerStoresLimit,
9784
- lowerStoresLimit = _ref$lowerStoresLimit === void 0 ? LOWER_STORES_LIMIT : _ref$lowerStoresLimit,
9785
- _ref$upperStoresLimit = _ref.upperStoresLimit,
9786
- upperStoresLimit = _ref$upperStoresLimit === void 0 ? UPPER_STORES_LIMIT : _ref$upperStoresLimit,
9787
- _ref$renderSelectInpu = _ref.renderSelectInputOptionValuesByField,
9788
- renderSelectInputOptionValuesByField = _ref$renderSelectInpu === void 0 ? 'id' : _ref$renderSelectInpu,
9789
- _ref$optionType = _ref.optionType,
9790
- optionType = _ref$optionType === void 0 ? 'double-property' : _ref$optionType,
9791
- _ref$shouldFetchProdu = _ref.shouldFetchProductSelections,
9792
- shouldFetchProductSelections = _ref$shouldFetchProdu === void 0 ? false : _ref$shouldFetchProdu,
9793
- props = _objectWithoutProperties(_ref, _excluded$3);
9773
+ var _ref$5 = {
9774
+ name: "1r0yqr6",
9775
+ styles: "margin-top:10px"
9776
+ } ;
9777
+ const StoreSelectInput = _ref2 => {
9778
+ let _ref2$lowerStoresLimi = _ref2.lowerStoresLimit,
9779
+ lowerStoresLimit = _ref2$lowerStoresLimi === void 0 ? LOWER_STORES_LIMIT : _ref2$lowerStoresLimi,
9780
+ _ref2$upperStoresLimi = _ref2.upperStoresLimit,
9781
+ upperStoresLimit = _ref2$upperStoresLimi === void 0 ? UPPER_STORES_LIMIT : _ref2$upperStoresLimi,
9782
+ _ref2$renderSelectInp = _ref2.renderSelectInputOptionValuesByField,
9783
+ renderSelectInputOptionValuesByField = _ref2$renderSelectInp === void 0 ? 'id' : _ref2$renderSelectInp,
9784
+ _ref2$optionType = _ref2.optionType,
9785
+ optionType = _ref2$optionType === void 0 ? 'double-property' : _ref2$optionType,
9786
+ _ref2$shouldFetchProd = _ref2.shouldFetchProductSelections,
9787
+ shouldFetchProductSelections = _ref2$shouldFetchProd === void 0 ? false : _ref2$shouldFetchProd,
9788
+ props = _objectWithoutProperties(_ref2, _excluded$3);
9794
9789
  const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1(props.projectKey);
9795
9790
  const components = React.useMemo(() => {
9796
9791
  return {
@@ -9801,7 +9796,7 @@ const StoreSelectInput = _ref => {
9801
9796
  }
9802
9797
  const isSearchSelectInput = totalNumberOfStoresFetcher.total > upperStoresLimit;
9803
9798
  return jsxRuntime.jsx("div", {
9804
- className: isSearchSelectInput ? styles$8.customOption : '',
9799
+ css: isSearchSelectInput ? _ref$5 : '',
9805
9800
  children: jsxRuntime.jsx(selectUtils.CustomSelectInputOption, {
9806
9801
  optionType: optionType,
9807
9802
  optionInnerProps: optionInnerProps
@@ -9928,11 +9923,6 @@ function ownKeys$z(e, r) { var t = _Object$keys__default["default"](e); if (_Obj
9928
9923
  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
9924
  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
9925
  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
9926
  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
9927
  const getIsEvent = event => typeof event === 'object' && !isNil__default["default"](event.target);
9938
9928
  const validateRequired = value => {
@@ -10000,8 +9990,8 @@ commonTags.oneLineTrim`
10000
9990
  \`validatedInput\` is no longer supported.
10001
9991
  Please use \`formik\` instead.
10002
9992
  `;
10003
- const ToolTipWrapperComponent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
10004
- let children = _ref.children;
9993
+ const ToolTipWrapperComponent = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
9994
+ let children = _ref2.children;
10005
9995
  return jsxRuntime.jsx(uiKit.Constraints.Horizontal, {
10006
9996
  max: 'scale',
10007
9997
  children: jsxRuntime.jsx("div", {
@@ -10014,15 +10004,19 @@ ToolTipWrapperComponent.displayName = 'ToolTipWrapperComponent';
10014
10004
  ToolTipWrapperComponent.propTypes = {
10015
10005
  children: PropTypes__default["default"].element
10016
10006
  };
10007
+ var _ref$4 = {
10008
+ name: "1u4hpl4",
10009
+ styles: "display:inline"
10010
+ } ;
10017
10011
  function validatedInput(InnerComponent, validators) {
10018
- let _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
10019
- containerClassName = _ref2.containerClassName;
10020
- _ref2.tooltipContainerClassName;
10021
- let _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
10022
- _ref3$changeHandler = _ref3.changeHandler,
10023
- changeHandler = _ref3$changeHandler === void 0 ? null : _ref3$changeHandler,
10024
- _ref3$blurHandler = _ref3.blurHandler,
10025
- blurHandler = _ref3$blurHandler === void 0 ? null : _ref3$blurHandler;
10012
+ let _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
10013
+ containerClassName = _ref3.containerClassName;
10014
+ _ref3.tooltipContainerClassName;
10015
+ let _ref4 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
10016
+ _ref4$changeHandler = _ref4.changeHandler,
10017
+ changeHandler = _ref4$changeHandler === void 0 ? null : _ref4$changeHandler,
10018
+ _ref4$blurHandler = _ref4.blurHandler,
10019
+ blurHandler = _ref4$blurHandler === void 0 ? null : _ref4$blurHandler;
10026
10020
  let _InnerComponent = InnerComponent;
10027
10021
  if (typeof InnerComponent === 'string') _InnerComponent = simpleInput(InnerComponent);
10028
10022
  const _validators = [];
@@ -10050,9 +10044,9 @@ function validatedInput(InnerComponent, validators) {
10050
10044
  }
10051
10045
  };
10052
10046
  _this.handleChange = function (event) {
10053
- let _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
10054
- _ref4$triggerUpdate = _ref4.triggerUpdate,
10055
- triggerUpdate = _ref4$triggerUpdate === void 0 ? true : _ref4$triggerUpdate;
10047
+ let _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
10048
+ _ref5$triggerUpdate = _ref5.triggerUpdate,
10049
+ triggerUpdate = _ref5$triggerUpdate === void 0 ? true : _ref5$triggerUpdate;
10056
10050
  let value = '';
10057
10051
  const nextValidStatus = {};
10058
10052
  const onChange = changeHandler && _this.props[changeHandler] || _this.props.onChange;
@@ -10130,7 +10124,8 @@ function validatedInput(InnerComponent, validators) {
10130
10124
  });
10131
10125
  const firstFailedValidator = _findInstanceProperty__default["default"](_validators).call(_validators, v => !this.state.validStatus[v.name]);
10132
10126
  return jsxRuntime.jsx("div", {
10133
- className: classnames__default["default"](styles$7.container, containerClassName),
10127
+ className: classnames__default["default"](containerClassName),
10128
+ css: _ref$4,
10134
10129
  children: jsxRuntime.jsx(uiKit.Tooltip, {
10135
10130
  placement: "top",
10136
10131
  title: firstFailedValidator && this.props.intl.formatMessage(firstFailedValidator.message) || '',
@@ -10171,9 +10166,8 @@ function simpleInput(type) {
10171
10166
  key: "render",
10172
10167
  value: function render() {
10173
10168
  return jsxRuntime.jsx("input", {
10174
- className: classnames__default["default"](this.props.className, {
10175
- [styles$7.invalid]: !this.props.isValid
10176
- }),
10169
+ className: classnames__default["default"](this.props.className),
10170
+ css: /*#__PURE__*/react$1.css(this.props.isValid ? '' : `border-color: ${uiKit.designTokens.colorError}!important;border: 1px solid;`, ";" + ("" ), "" ),
10177
10171
  name: this.props.name,
10178
10172
  disabled: this.props.disabled,
10179
10173
  ref: this.props.getInputRef,
@@ -12042,9 +12036,10 @@ var messages$h = reactIntl.defineMessages({
12042
12036
 
12043
12037
  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
12038
  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 styles$6 = {
12046
- "status": "platform-limits-customers-status-module__status___3rXYM"
12047
- };
12039
+ var _ref$3 = {
12040
+ name: "1670krd",
12041
+ styles: "min-width:max-content"
12042
+ } ;
12048
12043
  const PlatformLimitsCustomersStatus = () => {
12049
12044
  const intl = reactIntl.useIntl();
12050
12045
  const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
@@ -12056,7 +12051,7 @@ const PlatformLimitsCustomersStatus = () => {
12056
12051
  current = _platformLimits$custo.current,
12057
12052
  limit = _platformLimits$custo.limit;
12058
12053
  return jsxRuntime.jsx("div", {
12059
- className: styles$6.status,
12054
+ css: _ref$3,
12060
12055
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
12061
12056
  tone: "secondary",
12062
12057
  isInline: true,
@@ -12218,16 +12213,13 @@ const PlatformLimitsCustomersErrorModal = _ref => {
12218
12213
  PlatformLimitsCustomersErrorModal.displayName = 'PlatformLimitsCustomersErrorModal';
12219
12214
  var CustomersErrorModal = PlatformLimitsCustomersErrorModal;
12220
12215
 
12221
- var styles$5 = {
12222
- "combined": "platform-limits-customers-combined-module__combined___OszDd"
12223
- };
12224
12216
  const PlatformLimitsCustomersCombined = () => {
12225
12217
  // on the customer create only show the warning message
12226
12218
  const _useCustomersPlatform = useCustomersPlatformLimitsStatus(),
12227
12219
  hasReachedCustomersErrorLimit = _useCustomersPlatform.hasReachedCustomersErrorLimit,
12228
12220
  hasReachedCustomersWarningLimit = _useCustomersPlatform.hasReachedCustomersWarningLimit;
12229
12221
  return jsxRuntime.jsx("div", {
12230
- className: styles$5.combined,
12222
+ css: /*#__PURE__*/react$1.css("margin-bottom:", uiKit.designTokens.spacingS, ";" + ("" ), "" ),
12231
12223
  children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
12232
12224
  scale: "xl",
12233
12225
  justifyContent: "space-between",
@@ -12424,9 +12416,10 @@ var messages$e = reactIntl.defineMessages({
12424
12416
 
12425
12417
  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
12418
  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 styles$4 = {
12428
- "status": "platform-limits-customer-groups-status-module__status___6099G"
12429
- };
12419
+ var _ref$2 = {
12420
+ name: "1670krd",
12421
+ styles: "min-width:max-content"
12422
+ } ;
12430
12423
  const PlatformLimitsCustomerGroupsStatus = () => {
12431
12424
  const intl = reactIntl.useIntl();
12432
12425
  const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
@@ -12438,7 +12431,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
12438
12431
  current = _platformLimits$custo.current,
12439
12432
  limit = _platformLimits$custo.limit;
12440
12433
  return jsxRuntime.jsx("div", {
12441
- className: styles$4.status,
12434
+ css: _ref$2,
12442
12435
  children: jsxRuntime.jsx(uiKit.Text.Detail, {
12443
12436
  tone: "secondary",
12444
12437
  isInline: true,
@@ -12600,16 +12593,13 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
12600
12593
  PlatformLimitsCustomerGroupsErrorModal.displayName = 'PlatformLimitsCustomerGroupsErrorModal';
12601
12594
  var CustomerGroupsErrorModal = PlatformLimitsCustomerGroupsErrorModal;
12602
12595
 
12603
- var styles$3 = {
12604
- "combined": "platform-limits-customer-groups-combined-module__combined___WjRoI"
12605
- };
12606
12596
  const PlatformLimitsCustomerGroupsCombined = () => {
12607
12597
  // on the customer create only show the warning message
12608
12598
  const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus$1(),
12609
12599
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsErrorLimit,
12610
12600
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsWarningLimit;
12611
12601
  return jsxRuntime.jsx("div", {
12612
- className: styles$3.combined,
12602
+ css: /*#__PURE__*/react$1.css("margin-bottom:", uiKit.designTokens.spacingS, ";" + ("" ), "" ),
12613
12603
  children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
12614
12604
  scale: "xl",
12615
12605
  justifyContent: "space-between",
@@ -12804,13 +12794,14 @@ var messages$b = messages$a;
12804
12794
 
12805
12795
  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
12796
  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 styles$2 = {
12808
- "label": "label-range-module__label___3Tb0p"
12809
- };
12810
- const LabelRange = _ref => {
12811
- let type = _ref.type;
12797
+ var _ref$1 = {
12798
+ name: "1rk22b8",
12799
+ styles: "font-size:0.9rem;font-weight:bold"
12800
+ } ;
12801
+ const LabelRange = _ref2 => {
12802
+ let type = _ref2.type;
12812
12803
  return jsxRuntime.jsx("label", {
12813
- className: styles$2.label,
12804
+ css: _ref$1,
12814
12805
  children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$7({}, messages$b[type]))
12815
12806
  });
12816
12807
  };
@@ -12856,27 +12847,15 @@ var messages$8 = reactIntl.defineMessages({
12856
12847
 
12857
12848
  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
12849
  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
12850
  const IS_MULTI_VALUE_FLAG = '?isMulti=true';
12870
12851
  const MultiValueSelectorDropdown = props => {
12871
12852
  if (!props.isOpen) return null;
12872
12853
  if (props.multiValue.length > 0) {
12873
12854
  return jsxRuntime.jsxs("div", {
12874
- className: styles$1.submittingTip,
12855
+ 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
12856
  children: [jsxRuntime.jsx("div", {
12876
12857
  onClick: props.handleSingleValueSubmit,
12877
- className: classnames__default["default"](styles$1['submitting-tip-content'], {
12878
- [styles$1['submitting-tip-content-hoverable']]: true
12879
- }),
12858
+ css: /*#__PURE__*/react$1.css("padding:", uiKit.designTokens.spacingS, ";&:hover{background-color:", uiKit.designTokens.colorNeutral95, ";border-radius:", uiKit.designTokens.borderRadiusForInput, ";}" + ("" ), "" ),
12880
12859
  children: jsxRuntime.jsx(uiKit.Text.Body, {
12881
12860
  truncate: true,
12882
12861
  intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterWholeInput), {}, {
@@ -12887,9 +12866,7 @@ const MultiValueSelectorDropdown = props => {
12887
12866
  })
12888
12867
  }), jsxRuntime.jsx("div", {
12889
12868
  onClick: props.handleMultiValueSubmit,
12890
- className: classnames__default["default"](styles$1['submitting-tip-content-separate'], {
12891
- [styles$1['submitting-tip-content-separate-hoverable']]: true
12892
- }),
12869
+ 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
12870
  children: jsxRuntime.jsx(uiKit.Text.Body, {
12894
12871
  truncate: true,
12895
12872
  intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterSeparateValues), {}, {
@@ -12902,14 +12879,18 @@ const MultiValueSelectorDropdown = props => {
12902
12879
  });
12903
12880
  }
12904
12881
  return jsxRuntime.jsx("div", {
12905
- className: styles$1.submittingTip,
12882
+ 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
12883
  children: jsxRuntime.jsx("div", {
12907
- className: styles$1['submitting-tip-single'],
12884
+ css: /*#__PURE__*/react$1.css("padding:", uiKit.designTokens.spacingS, ";color:", uiKit.designTokens.fontColorForInputWhenDisabled, ";" + ("" ), "" ),
12908
12885
  children: props.tooltip
12909
12886
  })
12910
12887
  });
12911
12888
  };
12912
12889
  MultiValueSelectorDropdown.displayName = 'MultiValueSelectorDropdown';
12890
+ var _ref = {
12891
+ name: "bjn8wh",
12892
+ styles: "position:relative"
12893
+ } ;
12913
12894
  const MultiValueSearchInput = props => {
12914
12895
  const _useState = React.useState(''),
12915
12896
  _useState2 = _slicedToArray(_useState, 2),
@@ -12980,7 +12961,7 @@ const MultiValueSearchInput = props => {
12980
12961
  clearRunningTooltipTimer();
12981
12962
  });
12982
12963
  return jsxRuntime.jsxs("div", {
12983
- className: styles$1.container,
12964
+ css: _ref,
12984
12965
  children: [jsxRuntime.jsx(uiKit.Spacings.Stack, {
12985
12966
  size: "s",
12986
12967
  children: jsxRuntime.jsx(uiKit.SearchTextInput, {
@@ -13008,10 +12989,6 @@ function ownKeys$4(e, r) { var t = _Object$keys__default["default"](e); if (_Obj
13008
12989
  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
12990
  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
12991
  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
12992
  Cleave__default["default"].displayName = 'Cleave';
13016
12993
 
13017
12994
  // only allow values of type Number or values that are nil (null or undefined)
@@ -13086,10 +13063,8 @@ let NumericFormatInput = /*#__PURE__*/function (_PureComponent) {
13086
13063
  numeralIntegerScale: 0
13087
13064
  },
13088
13065
  name: this.props.name,
13089
- className: classnames__default["default"](this.props.className, {
13090
- [styles.invalid]: !this.props.isValid,
13091
- [styles.disabled]: this.props.disabled
13092
- }),
13066
+ className: classnames__default["default"](this.props.className),
13067
+ css: /*#__PURE__*/react$1.css(this.props.isValid ? '' : `border-color: ${uiKit.designTokens.colorError}!important;border: 1px solid;`, " ", this.props.disabled ? 'cursor: not-allowed;' : '', ";" + ("" ), "" ),
13093
13068
  onChange: this.handleChange,
13094
13069
  onInit: this.handleInit,
13095
13070
  onBlur: this.handleBlur,