@commercetools-frontend/experimental-components 2.0.0 → 3.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.
@@ -3209,7 +3209,8 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3209
3209
  onBlur = _ref.onBlur,
3210
3210
  value = _ref.value,
3211
3211
  hasError = _ref.hasError,
3212
- onError = _ref.onError;
3212
+ onError = _ref.onError,
3213
+ placeholder = _ref.placeholder;
3213
3214
  var formatLocalizedFieldToString = useFormatLocalizedFieldToString();
3214
3215
  var _useIntl = reactIntl.useIntl(),
3215
3216
  formatMessage = _useIntl.formatMessage;
@@ -3291,7 +3292,7 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3291
3292
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
3292
3293
  id: name,
3293
3294
  name: name,
3294
- placeholder: formatMessage(messages$F.placeholder),
3295
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$F.placeholder),
3295
3296
  loadOptions: loadOptionsDebounced,
3296
3297
  defaultOptions: true,
3297
3298
  showOptionGroupDivider: true,
@@ -3317,11 +3318,11 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3317
3318
  };
3318
3319
  ChannelPickerInput.displayName = 'ChannelPickerInput';
3319
3320
 
3320
- function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3321
- function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3321
+ function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3322
+ function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3322
3323
  var FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
3323
3324
  _inherits(FormattedDateTime, _PureComponent);
3324
- var _super = _createSuper$b(FormattedDateTime);
3325
+ var _super = _createSuper$9(FormattedDateTime);
3325
3326
  function FormattedDateTime() {
3326
3327
  _classCallCheck(this, FormattedDateTime);
3327
3328
  return _super.apply(this, arguments);
@@ -3353,12 +3354,12 @@ var keepDisplayName = function keepDisplayName(component) {
3353
3354
 
3354
3355
  function ownKeys$1a(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3355
3356
  function _objectSpread$1a(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1a(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1a(Object(source))).call(_context3, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
3356
- function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3357
- function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3357
+ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3358
+ function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3358
3359
  var withMouseOverState = function withMouseOverState(BaseComponent) {
3359
3360
  var WithMouseOverState = /*#__PURE__*/function (_Component) {
3360
3361
  _inherits(WithMouseOverState, _Component);
3361
- var _super = _createSuper$a(WithMouseOverState);
3362
+ var _super = _createSuper$8(WithMouseOverState);
3362
3363
  function WithMouseOverState() {
3363
3364
  var _context;
3364
3365
  var _this;
@@ -3402,8 +3403,8 @@ var withMouseOverState = function withMouseOverState(BaseComponent) {
3402
3403
 
3403
3404
  function ownKeys$19(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3404
3405
  function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$19(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$19(Object(source))).call(_context3, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
3405
- function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3406
- function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3406
+ function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3407
+ function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3407
3408
  var styles$i = {
3408
3409
  "size": "throttled-field-module__size___324jx",
3409
3410
  "input-text": "throttled-field-module__input-text___3zFFp",
@@ -3418,7 +3419,7 @@ var styles$i = {
3418
3419
  };
3419
3420
  var ThrottledField = /*#__PURE__*/function (_PureComponent) {
3420
3421
  _inherits(ThrottledField, _PureComponent);
3421
- var _super = _createSuper$9(ThrottledField);
3422
+ var _super = _createSuper$7(ThrottledField);
3422
3423
  function ThrottledField() {
3423
3424
  var _context;
3424
3425
  var _this;
@@ -3577,8 +3578,8 @@ var messages$E = reactIntl.defineMessages({
3577
3578
  }
3578
3579
  });
3579
3580
 
3580
- function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3581
- function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3581
+ function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3582
+ function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3582
3583
  var styles$h = {
3583
3584
  "block": "search-input-module__block___1uM-y",
3584
3585
  "container": "search-input-module__container___9u6if",
@@ -3596,7 +3597,7 @@ var styles$h = {
3596
3597
  };
3597
3598
  var SearchInput = /*#__PURE__*/function (_Component) {
3598
3599
  _inherits(SearchInput, _Component);
3599
- var _super = _createSuper$8(SearchInput);
3600
+ var _super = _createSuper$6(SearchInput);
3600
3601
  function SearchInput() {
3601
3602
  var _context;
3602
3603
  var _this;
@@ -5208,13 +5209,13 @@ var GetProductTypesQuery = { kind: "Document", definitions: [{ kind: "OperationD
5208
5209
 
5209
5210
  function ownKeys$10(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5210
5211
  function _objectSpread$10(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$10(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$10(Object(source))).call(_context5, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
5211
- function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5212
- function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
5212
+ function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5213
+ function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
5213
5214
  var FetchTypeDefinitionsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1172, source: { body: "query FetchTypeDefinitionsQuery($where: String, $limit: Int, $offset: Int) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n fieldDefinitions {\n type {\n name\n ... on SetType {\n elementType {\n name\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n ... on ReferenceType {\n referenceTypeId\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
5214
5215
  var customizableResources$1 = ['asset', 'category', 'channel', 'customer', 'order', 'discount-code', 'cart-discount', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review'];
5215
5216
  var CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
5216
5217
  _inherits(CustomFieldDefinitionsConnector, _Component);
5217
- var _super = _createSuper$7(CustomFieldDefinitionsConnector);
5218
+ var _super = _createSuper$5(CustomFieldDefinitionsConnector);
5218
5219
  function CustomFieldDefinitionsConnector() {
5219
5220
  _classCallCheck(this, CustomFieldDefinitionsConnector);
5220
5221
  return _super.apply(this, arguments);
@@ -5389,8 +5390,8 @@ var createEmptyCustomFields = function createEmptyCustomFields(typeDefinition) {
5389
5390
  };
5390
5391
  };
5391
5392
 
5392
- function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5393
- function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
5393
+ function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5394
+ function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
5394
5395
  var FetchTypeDefinitionsWithNamesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsWithNamesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "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: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "required" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "inputHint" }, arguments: [], directives: [] }] } }] } }] } }] } }], loc: { start: 0, end: 1445, source: { body: "query FetchTypeDefinitionsWithNamesQuery(\n $where: String\n $limit: Int\n $offset: Int\n) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n id\n key\n nameAllLocales {\n value\n locale\n }\n fieldDefinitions {\n required\n type {\n name\n ... on ReferenceType {\n referenceTypeId\n }\n ... on SetType {\n elementType {\n name\n ... on ReferenceType {\n referenceTypeId\n name\n }\n ... on EnumType {\n values {\n key\n label\n }\n name\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n name\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n inputHint\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
5395
5396
  var customizableResources = ['asset', 'address', 'business-unit', 'category', 'channel', 'customer', 'order', 'store', 'discount-code', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'cart-discount', 'product-selection'];
5396
5397
  var emptyTypeDefinitions = {
@@ -5400,7 +5401,7 @@ var emptyTypeDefinitions = {
5400
5401
  };
5401
5402
  var CustomFieldTypeDefinitionsConnector = /*#__PURE__*/function (_Component) {
5402
5403
  _inherits(CustomFieldTypeDefinitionsConnector, _Component);
5403
- var _super = _createSuper$6(CustomFieldTypeDefinitionsConnector);
5404
+ var _super = _createSuper$4(CustomFieldTypeDefinitionsConnector);
5404
5405
  function CustomFieldTypeDefinitionsConnector() {
5405
5406
  _classCallCheck(this, CustomFieldTypeDefinitionsConnector);
5406
5407
  return _super.apply(this, arguments);
@@ -7358,84 +7359,6 @@ function CustomNestedFieldInput(props) {
7358
7359
  }
7359
7360
  CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
7360
7361
 
7361
- function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7362
- function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
7363
- var isEmptyChildren = function isEmptyChildren(children) {
7364
- return React.Children.count(children) === 0;
7365
- };
7366
- var Match = /*#__PURE__*/function (_PureComponent) {
7367
- _inherits(Match, _PureComponent);
7368
- var _super = _createSuper$5(Match);
7369
- function Match() {
7370
- _classCallCheck(this, Match);
7371
- return _super.apply(this, arguments);
7372
- }
7373
- _createClass(Match, [{
7374
- key: "render",
7375
- value: function render() {
7376
- if (this.props.isTouched && this.props.hasError) {
7377
- if (this.props.component) return /*#__PURE__*/React.createElement(this.props.component);
7378
- if (this.props.children && !isEmptyChildren(this.props.children)) return React.Children.only(this.props.children);
7379
- }
7380
- return null;
7381
- }
7382
- }]);
7383
- return Match;
7384
- }(React.PureComponent);
7385
- Match.displayName = 'ValidationErrorMatch';
7386
-
7387
- function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7388
- function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
7389
- var hasUnknownChildren = function hasUnknownChildren(children) {
7390
- var _context;
7391
- return _someInstanceProperty__default["default"](_context = React.Children.toArray(children)).call(_context, function (child) {
7392
- return child.type.displayName !== Match.displayName;
7393
- });
7394
- };
7395
- var hasError = function hasError(errors, rule) {
7396
- return Boolean(errors[rule]);
7397
- };
7398
- var Switch = /*#__PURE__*/function (_PureComponent) {
7399
- _inherits(Switch, _PureComponent);
7400
- var _super = _createSuper$4(Switch);
7401
- function Switch() {
7402
- _classCallCheck(this, Switch);
7403
- return _super.apply(this, arguments);
7404
- }
7405
- _createClass(Switch, [{
7406
- key: "componentDidMount",
7407
- value: function componentDidMount() {
7408
- /**
7409
- * NOTE:
7410
- * The `<ValidationError.Switch>` only works with `<ValidationError.Match>` as its children.
7411
- */
7412
- !!hasUnknownChildren(this.props.children) ? invariant__default["default"](false) : void 0;
7413
- }
7414
- }, {
7415
- key: "render",
7416
- value: function render() {
7417
- var _this = this;
7418
- return _mapInstanceProperty__default["default"](React.Children).call(React.Children, this.props.children, function (child) {
7419
- return /*#__PURE__*/React.cloneElement(child, {
7420
- isTouched: _this.props.isTouched,
7421
- hasError: hasError(_this.props.errors, child.props.rule)
7422
- });
7423
- });
7424
- }
7425
- }]);
7426
- return Switch;
7427
- }(React.PureComponent);
7428
- Switch.displayName = 'ValidationErrorSwitch';
7429
- Switch.defaultProps = {
7430
- errors: {},
7431
- isTouched: false
7432
- };
7433
-
7434
- var ValidationError = {
7435
- Switch: Switch,
7436
- Match: Match
7437
- };
7438
-
7439
7362
  function ownKeys$Q(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7440
7363
  function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Q(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Q(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
7441
7364
  var mergeSetItemsErrors = function mergeSetItemsErrors(errors) {
@@ -7451,19 +7374,11 @@ var CustomFieldErrors = function CustomFieldErrors(props) {
7451
7374
  // but also after manually triggered form validation.
7452
7375
  var didFormValidationFail = useDidFormValidationFail();
7453
7376
  var errors = _Array$isArray__default["default"](props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
7454
- return jsxRuntime.jsxs(ValidationError.Switch, {
7455
- errors: errors,
7456
- isTouched: props.isTouched || didFormValidationFail,
7457
- children: [jsxRuntime.jsx(ValidationError.Match, {
7458
- rule: "missing",
7459
- children: jsxRuntime.jsx(_.ErrorMessage, {
7460
- intlMessage: messages$J.required
7461
- })
7462
- }), jsxRuntime.jsx(ValidationError.Match, {
7463
- rule: "duplicated",
7464
- children: jsxRuntime.jsx(_.ErrorMessage, {
7465
- intlMessage: messages$J.unique
7466
- })
7377
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, {
7378
+ children: [props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.missing) && jsxRuntime.jsx(_.ErrorMessage, {
7379
+ intlMessage: messages$J.required
7380
+ }), props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.duplicated) && jsxRuntime.jsx(_.ErrorMessage, {
7381
+ intlMessage: messages$J.unique
7467
7382
  })]
7468
7383
  });
7469
7384
  };
@@ -7980,6 +7895,8 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7980
7895
  var _useIntl3 = reactIntl.useIntl(),
7981
7896
  formatMessage = _useIntl3.formatMessage;
7982
7897
  var formik$1 = formik.useFormikContext();
7898
+ var _useTheme = designSystem.useTheme(),
7899
+ isNewTheme = _useTheme.isNewTheme;
7983
7900
  var confirmationModal = applicationComponents.useModalState();
7984
7901
  var nestingLevel = React.useContext(NestingLevelContext);
7985
7902
  var handleClose = function handleClose() {
@@ -7990,7 +7907,7 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7990
7907
  confirmationModal.closeModal();
7991
7908
  props.onClose();
7992
7909
  };
7993
- var columnsTemplate = nestingLevel === 1 ? "repeat(2, ".concat(uiKit.customProperties.constraint11, ")") : nestingLevel === 5 ? "".concat(uiKit.customProperties.constraint10) : "repeat(2, ".concat(uiKit.customProperties.constraint10, ")");
7910
+ var columnsTemplate = isNewTheme ? "".concat(uiKit.customProperties.constraint15) : nestingLevel === 1 ? "repeat(2, ".concat(uiKit.customProperties.constraint11, ")") : nestingLevel === 5 ? "".concat(uiKit.customProperties.constraint10) : "repeat(2, ".concat(uiKit.customProperties.constraint10, ")");
7994
7911
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
7995
7912
  children: [jsxRuntime.jsx(applicationComponents.CustomFormModalPage, {
7996
7913
  isOpen: props.isOpen,
@@ -8009,13 +7926,15 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
8009
7926
  onClose: handleClose,
8010
7927
  shouldDelayOnClose: false,
8011
7928
  title: props.title,
8012
- children: props.isOpen && jsxRuntime.jsx(uiKit.Grid, {
8013
- gridTemplateColumns: columnsTemplate,
8014
- gridGap: uiKit.customProperties.spacingM,
8015
- children: jsxRuntime.jsx(ProductAttributes, {
8016
- isDisabled: props.isDisabled,
8017
- isReadOnly: props.isReadOnly,
8018
- attributeDefinitions: props.productType.attributeDefinitions
7929
+ children: jsxRuntime.jsx(applicationComponents.PageContentNarrow, {
7930
+ children: props.isOpen && jsxRuntime.jsx(uiKit.Grid, {
7931
+ gridTemplateColumns: columnsTemplate,
7932
+ gridGap: uiKit.customProperties.spacingM,
7933
+ children: jsxRuntime.jsx(ProductAttributes, {
7934
+ isDisabled: props.isDisabled,
7935
+ isReadOnly: props.isReadOnly,
7936
+ attributeDefinitions: props.productType.attributeDefinitions
7937
+ })
8019
7938
  })
8020
7939
  })
8021
7940
  }), jsxRuntime.jsx(DropChangesConfirmation, {
@@ -8816,7 +8735,8 @@ var CustomerGroupPickerInput = function CustomerGroupPickerInput(_ref) {
8816
8735
  onBlur = _ref.onBlur,
8817
8736
  value = _ref.value,
8818
8737
  hasError = _ref.hasError,
8819
- onError = _ref.onError;
8738
+ onError = _ref.onError,
8739
+ placeholder = _ref.placeholder;
8820
8740
  var _useIntl = reactIntl.useIntl(),
8821
8741
  formatMessage = _useIntl.formatMessage;
8822
8742
  var variables = React.useMemo(function () {
@@ -8896,7 +8816,7 @@ var CustomerGroupPickerInput = function CustomerGroupPickerInput(_ref) {
8896
8816
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
8897
8817
  id: name,
8898
8818
  name: name,
8899
- placeholder: formatMessage(messages$t.placeholder),
8819
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$t.placeholder),
8900
8820
  loadOptions: loadOptionsDebounced,
8901
8821
  defaultOptions: true,
8902
8822
  showOptionGroupDivider: true,
@@ -10566,7 +10486,6 @@ var RESOURCES_WITH_PLATFORM_LIMITS = {
10566
10486
  shippingMethods: 'shippingMethods',
10567
10487
  carts: 'carts'
10568
10488
  };
10569
- var CUSTOMER_SUPPORT_LINK = 'https://jira.commercetools.com/servicedesk/customer/portal/1';
10570
10489
 
10571
10490
  function ownKeys$A(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10572
10491
  function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$A(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$A(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
@@ -10680,26 +10599,26 @@ function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) {
10680
10599
  var getCustomerSupportLink$1 = function getCustomerSupportLink(msg) {
10681
10600
  return jsxRuntime.jsx(uiKit.Link, {
10682
10601
  isExternal: true,
10683
- to: CUSTOMER_SUPPORT_LINK,
10602
+ to: constants.SUPPORT_PORTAL_URL,
10684
10603
  children: msg
10685
10604
  });
10686
10605
  };
10687
10606
  var PlatformLimitWarningNotification = function PlatformLimitWarningNotification(_ref) {
10688
10607
  var resource = _ref.resource,
10689
10608
  limit = _ref.limit;
10690
- return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
10691
- scale: "xs",
10692
- children: [jsxRuntime.jsx(uiKit.WarningIcon, {
10693
- color: "warning",
10694
- size: "medium"
10695
- }), jsxRuntime.jsx(uiKit.Text.Body, {
10696
- intlMessage: _objectSpread$z(_objectSpread$z({}, messages$m[resource]), {}, {
10697
- values: {
10698
- limit: limit,
10699
- customersupport: getCustomerSupportLink$1
10700
- }
10701
- })
10702
- })]
10609
+ return jsxRuntime.jsx(uiKit.ContentNotification, {
10610
+ type: "warning",
10611
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$z(_objectSpread$z({}, messages$m[resource]), {}, {
10612
+ values: {
10613
+ limit: limit,
10614
+ customersupport: getCustomerSupportLink$1
10615
+ },
10616
+ children: function children(message) {
10617
+ return jsxRuntime.jsx("div", {
10618
+ children: message
10619
+ });
10620
+ }
10621
+ }))
10703
10622
  });
10704
10623
  };
10705
10624
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
@@ -10737,7 +10656,7 @@ function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) {
10737
10656
  var getCustomerSupportLink = function getCustomerSupportLink(msg) {
10738
10657
  return jsxRuntime.jsx(uiKit.Link, {
10739
10658
  isExternal: true,
10740
- to: CUSTOMER_SUPPORT_LINK,
10659
+ to: constants.SUPPORT_PORTAL_URL,
10741
10660
  children: msg
10742
10661
  }, msg);
10743
10662
  };
@@ -13096,6 +13015,10 @@ function validatedInput(InnerComponent, validators) {
13096
13015
  if (onChange && triggerUpdate) onChange(event);
13097
13016
  _this.conditionalSetValidStatus(nextValidStatus);
13098
13017
  };
13018
+ /**
13019
+ * Only triggers when there is a value, but its not valid
13020
+ * so it must be an invalid numeric value
13021
+ */
13099
13022
  _this.handleInvalid = function () {
13100
13023
  var nextValidStatus = _objectSpread$8({}, _this.state.validStatus);
13101
13024
  if (has__default["default"](nextValidStatus, 'numeric')) {
@@ -14516,7 +14439,6 @@ exports.ThrottledField = ThrottledField;
14516
14439
  exports.VALIDATOR_INTEGER = VALIDATOR_INTEGER;
14517
14440
  exports.VALIDATOR_NUMERIC = VALIDATOR_NUMERIC;
14518
14441
  exports.VALIDATOR_REQUIRED = VALIDATOR_REQUIRED;
14519
- exports.ValidationError = ValidationError;
14520
14442
  exports.WithPimIndexer = WithPimIndexer;
14521
14443
  exports.allowedProperties = allowedProperties;
14522
14444
  exports.and = and;
@@ -14658,9 +14580,11 @@ exports.usePrevious = usePrevious;
14658
14580
  exports.useProductSelectionsFetcher = useProductSelectionsFetcher;
14659
14581
  exports.useProductSelectionsTotalFetcher = useProductSelectionsTotalFetcher;
14660
14582
  exports.useRoleNotificationEffect = useRoleNotificationEffect;
14583
+ exports.useShippingMethodsPlatformLimits = useShippingMethodsLimits;
14661
14584
  exports.useStorage = useStorage;
14662
14585
  exports.useStoreKeysInDataFences = useStoreKeysInDataFences;
14663
14586
  exports.useStoresListFetcher = useStoresListFetcher;
14587
+ exports.useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
14664
14588
  exports.useTotalNumberOfBusinessUnitsFetcherHandlers = handlers$1;
14665
14589
  exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher;
14666
14590
  exports.useTotalNumberOfStoresFetcherHandlers = handlers$3;