@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.
@@ -3210,7 +3210,8 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3210
3210
  onBlur = _ref.onBlur,
3211
3211
  value = _ref.value,
3212
3212
  hasError = _ref.hasError,
3213
- onError = _ref.onError;
3213
+ onError = _ref.onError,
3214
+ placeholder = _ref.placeholder;
3214
3215
  var formatLocalizedFieldToString = useFormatLocalizedFieldToString();
3215
3216
  var _useIntl = reactIntl.useIntl(),
3216
3217
  formatMessage = _useIntl.formatMessage;
@@ -3292,7 +3293,7 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3292
3293
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
3293
3294
  id: name,
3294
3295
  name: name,
3295
- placeholder: formatMessage(messages$F.placeholder),
3296
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$F.placeholder),
3296
3297
  loadOptions: loadOptionsDebounced,
3297
3298
  defaultOptions: true,
3298
3299
  showOptionGroupDivider: true,
@@ -3318,11 +3319,11 @@ var ChannelPickerInput = function ChannelPickerInput(_ref) {
3318
3319
  };
3319
3320
  ChannelPickerInput.displayName = 'ChannelPickerInput';
3320
3321
 
3321
- 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); }; }
3322
- 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; } }
3322
+ 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); }; }
3323
+ 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; } }
3323
3324
  var FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
3324
3325
  _inherits(FormattedDateTime, _PureComponent);
3325
- var _super = _createSuper$b(FormattedDateTime);
3326
+ var _super = _createSuper$9(FormattedDateTime);
3326
3327
  function FormattedDateTime() {
3327
3328
  _classCallCheck(this, FormattedDateTime);
3328
3329
  return _super.apply(this, arguments);
@@ -3354,12 +3355,12 @@ var keepDisplayName = function keepDisplayName(component) {
3354
3355
 
3355
3356
  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; }
3356
3357
  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; }
3357
- 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); }; }
3358
- 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; } }
3358
+ 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); }; }
3359
+ 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; } }
3359
3360
  var withMouseOverState = function withMouseOverState(BaseComponent) {
3360
3361
  var WithMouseOverState = /*#__PURE__*/function (_Component) {
3361
3362
  _inherits(WithMouseOverState, _Component);
3362
- var _super = _createSuper$a(WithMouseOverState);
3363
+ var _super = _createSuper$8(WithMouseOverState);
3363
3364
  function WithMouseOverState() {
3364
3365
  var _context;
3365
3366
  var _this;
@@ -3403,8 +3404,8 @@ var withMouseOverState = function withMouseOverState(BaseComponent) {
3403
3404
 
3404
3405
  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; }
3405
3406
  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; }
3406
- 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); }; }
3407
- 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; } }
3407
+ 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); }; }
3408
+ 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; } }
3408
3409
  var styles$i = {
3409
3410
  "size": "throttled-field-module__size___324jx",
3410
3411
  "input-text": "throttled-field-module__input-text___3zFFp",
@@ -3419,7 +3420,7 @@ var styles$i = {
3419
3420
  };
3420
3421
  var ThrottledField = /*#__PURE__*/function (_PureComponent) {
3421
3422
  _inherits(ThrottledField, _PureComponent);
3422
- var _super = _createSuper$9(ThrottledField);
3423
+ var _super = _createSuper$7(ThrottledField);
3423
3424
  function ThrottledField() {
3424
3425
  var _context;
3425
3426
  var _this;
@@ -3578,8 +3579,8 @@ var messages$E = reactIntl.defineMessages({
3578
3579
  }
3579
3580
  });
3580
3581
 
3581
- 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); }; }
3582
- 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; } }
3582
+ 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); }; }
3583
+ 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; } }
3583
3584
  var styles$h = {
3584
3585
  "block": "search-input-module__block___1uM-y",
3585
3586
  "container": "search-input-module__container___9u6if",
@@ -3597,7 +3598,7 @@ var styles$h = {
3597
3598
  };
3598
3599
  var SearchInput = /*#__PURE__*/function (_Component) {
3599
3600
  _inherits(SearchInput, _Component);
3600
- var _super = _createSuper$8(SearchInput);
3601
+ var _super = _createSuper$6(SearchInput);
3601
3602
  function SearchInput() {
3602
3603
  var _context;
3603
3604
  var _this;
@@ -5209,13 +5210,13 @@ var GetProductTypesQuery = { kind: "Document", definitions: [{ kind: "OperationD
5209
5210
 
5210
5211
  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; }
5211
5212
  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; }
5212
- 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); }; }
5213
- 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; } }
5213
+ 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); }; }
5214
+ 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; } }
5214
5215
  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 } } } };
5215
5216
  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'];
5216
5217
  var CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
5217
5218
  _inherits(CustomFieldDefinitionsConnector, _Component);
5218
- var _super = _createSuper$7(CustomFieldDefinitionsConnector);
5219
+ var _super = _createSuper$5(CustomFieldDefinitionsConnector);
5219
5220
  function CustomFieldDefinitionsConnector() {
5220
5221
  _classCallCheck(this, CustomFieldDefinitionsConnector);
5221
5222
  return _super.apply(this, arguments);
@@ -5390,8 +5391,8 @@ var createEmptyCustomFields = function createEmptyCustomFields(typeDefinition) {
5390
5391
  };
5391
5392
  };
5392
5393
 
5393
- 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); }; }
5394
- 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; } }
5394
+ 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); }; }
5395
+ 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; } }
5395
5396
  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 } } } };
5396
5397
  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'];
5397
5398
  var emptyTypeDefinitions = {
@@ -5401,7 +5402,7 @@ var emptyTypeDefinitions = {
5401
5402
  };
5402
5403
  var CustomFieldTypeDefinitionsConnector = /*#__PURE__*/function (_Component) {
5403
5404
  _inherits(CustomFieldTypeDefinitionsConnector, _Component);
5404
- var _super = _createSuper$6(CustomFieldTypeDefinitionsConnector);
5405
+ var _super = _createSuper$4(CustomFieldTypeDefinitionsConnector);
5405
5406
  function CustomFieldTypeDefinitionsConnector() {
5406
5407
  _classCallCheck(this, CustomFieldTypeDefinitionsConnector);
5407
5408
  return _super.apply(this, arguments);
@@ -7359,84 +7360,6 @@ function CustomNestedFieldInput(props) {
7359
7360
  }
7360
7361
  CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
7361
7362
 
7362
- 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); }; }
7363
- 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; } }
7364
- var isEmptyChildren = function isEmptyChildren(children) {
7365
- return React.Children.count(children) === 0;
7366
- };
7367
- var Match = /*#__PURE__*/function (_PureComponent) {
7368
- _inherits(Match, _PureComponent);
7369
- var _super = _createSuper$5(Match);
7370
- function Match() {
7371
- _classCallCheck(this, Match);
7372
- return _super.apply(this, arguments);
7373
- }
7374
- _createClass(Match, [{
7375
- key: "render",
7376
- value: function render() {
7377
- if (this.props.isTouched && this.props.hasError) {
7378
- if (this.props.component) return /*#__PURE__*/React.createElement(this.props.component);
7379
- if (this.props.children && !isEmptyChildren(this.props.children)) return React.Children.only(this.props.children);
7380
- }
7381
- return null;
7382
- }
7383
- }]);
7384
- return Match;
7385
- }(React.PureComponent);
7386
- Match.displayName = 'ValidationErrorMatch';
7387
-
7388
- 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); }; }
7389
- 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; } }
7390
- var hasUnknownChildren = function hasUnknownChildren(children) {
7391
- var _context;
7392
- return _someInstanceProperty__default["default"](_context = React.Children.toArray(children)).call(_context, function (child) {
7393
- return child.type.displayName !== Match.displayName;
7394
- });
7395
- };
7396
- var hasError = function hasError(errors, rule) {
7397
- return Boolean(errors[rule]);
7398
- };
7399
- var Switch = /*#__PURE__*/function (_PureComponent) {
7400
- _inherits(Switch, _PureComponent);
7401
- var _super = _createSuper$4(Switch);
7402
- function Switch() {
7403
- _classCallCheck(this, Switch);
7404
- return _super.apply(this, arguments);
7405
- }
7406
- _createClass(Switch, [{
7407
- key: "componentDidMount",
7408
- value: function componentDidMount() {
7409
- /**
7410
- * NOTE:
7411
- * The `<ValidationError.Switch>` only works with `<ValidationError.Match>` as its children.
7412
- */
7413
- !!hasUnknownChildren(this.props.children) ? process.env.NODE_ENV !== "production" ? invariant__default["default"](false, '@commercetools-local/core/src/validation-error/validation-error-switch: children can only be of type <ValidationError.Match>') : invariant__default["default"](false) : void 0;
7414
- }
7415
- }, {
7416
- key: "render",
7417
- value: function render() {
7418
- var _this = this;
7419
- return _mapInstanceProperty__default["default"](React.Children).call(React.Children, this.props.children, function (child) {
7420
- return /*#__PURE__*/React.cloneElement(child, {
7421
- isTouched: _this.props.isTouched,
7422
- hasError: hasError(_this.props.errors, child.props.rule)
7423
- });
7424
- });
7425
- }
7426
- }]);
7427
- return Switch;
7428
- }(React.PureComponent);
7429
- Switch.displayName = 'ValidationErrorSwitch';
7430
- Switch.defaultProps = {
7431
- errors: {},
7432
- isTouched: false
7433
- };
7434
-
7435
- var ValidationError = {
7436
- Switch: Switch,
7437
- Match: Match
7438
- };
7439
-
7440
7363
  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; }
7441
7364
  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; }
7442
7365
  var mergeSetItemsErrors = function mergeSetItemsErrors(errors) {
@@ -7452,19 +7375,11 @@ var CustomFieldErrors = function CustomFieldErrors(props) {
7452
7375
  // but also after manually triggered form validation.
7453
7376
  var didFormValidationFail = useDidFormValidationFail();
7454
7377
  var errors = _Array$isArray__default["default"](props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
7455
- return jsxRuntime.jsxs(ValidationError.Switch, {
7456
- errors: errors,
7457
- isTouched: props.isTouched || didFormValidationFail,
7458
- children: [jsxRuntime.jsx(ValidationError.Match, {
7459
- rule: "missing",
7460
- children: jsxRuntime.jsx(_.ErrorMessage, {
7461
- intlMessage: messages$J.required
7462
- })
7463
- }), jsxRuntime.jsx(ValidationError.Match, {
7464
- rule: "duplicated",
7465
- children: jsxRuntime.jsx(_.ErrorMessage, {
7466
- intlMessage: messages$J.unique
7467
- })
7378
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, {
7379
+ children: [props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.missing) && jsxRuntime.jsx(_.ErrorMessage, {
7380
+ intlMessage: messages$J.required
7381
+ }), props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.duplicated) && jsxRuntime.jsx(_.ErrorMessage, {
7382
+ intlMessage: messages$J.unique
7468
7383
  })]
7469
7384
  });
7470
7385
  };
@@ -7981,6 +7896,8 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7981
7896
  var _useIntl3 = reactIntl.useIntl(),
7982
7897
  formatMessage = _useIntl3.formatMessage;
7983
7898
  var formik$1 = formik.useFormikContext();
7899
+ var _useTheme = designSystem.useTheme(),
7900
+ isNewTheme = _useTheme.isNewTheme;
7984
7901
  var confirmationModal = applicationComponents.useModalState();
7985
7902
  var nestingLevel = React.useContext(NestingLevelContext);
7986
7903
  var handleClose = function handleClose() {
@@ -7991,7 +7908,7 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
7991
7908
  confirmationModal.closeModal();
7992
7909
  props.onClose();
7993
7910
  };
7994
- var columnsTemplate = nestingLevel === 1 ? "repeat(2, ".concat(uiKit.customProperties.constraint11, ")") : nestingLevel === 5 ? "".concat(uiKit.customProperties.constraint10) : "repeat(2, ".concat(uiKit.customProperties.constraint10, ")");
7911
+ 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, ")");
7995
7912
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
7996
7913
  children: [jsxRuntime.jsx(applicationComponents.CustomFormModalPage, {
7997
7914
  isOpen: props.isOpen,
@@ -8010,13 +7927,15 @@ var NestedAttributeModalPage = function NestedAttributeModalPage(props) {
8010
7927
  onClose: handleClose,
8011
7928
  shouldDelayOnClose: false,
8012
7929
  title: props.title,
8013
- children: props.isOpen && jsxRuntime.jsx(uiKit.Grid, {
8014
- gridTemplateColumns: columnsTemplate,
8015
- gridGap: uiKit.customProperties.spacingM,
8016
- children: jsxRuntime.jsx(ProductAttributes, {
8017
- isDisabled: props.isDisabled,
8018
- isReadOnly: props.isReadOnly,
8019
- attributeDefinitions: props.productType.attributeDefinitions
7930
+ children: jsxRuntime.jsx(applicationComponents.PageContentNarrow, {
7931
+ children: props.isOpen && jsxRuntime.jsx(uiKit.Grid, {
7932
+ gridTemplateColumns: columnsTemplate,
7933
+ gridGap: uiKit.customProperties.spacingM,
7934
+ children: jsxRuntime.jsx(ProductAttributes, {
7935
+ isDisabled: props.isDisabled,
7936
+ isReadOnly: props.isReadOnly,
7937
+ attributeDefinitions: props.productType.attributeDefinitions
7938
+ })
8020
7939
  })
8021
7940
  })
8022
7941
  }), jsxRuntime.jsx(DropChangesConfirmation, {
@@ -8817,7 +8736,8 @@ var CustomerGroupPickerInput = function CustomerGroupPickerInput(_ref) {
8817
8736
  onBlur = _ref.onBlur,
8818
8737
  value = _ref.value,
8819
8738
  hasError = _ref.hasError,
8820
- onError = _ref.onError;
8739
+ onError = _ref.onError,
8740
+ placeholder = _ref.placeholder;
8821
8741
  var _useIntl = reactIntl.useIntl(),
8822
8742
  formatMessage = _useIntl.formatMessage;
8823
8743
  var variables = React.useMemo(function () {
@@ -8897,7 +8817,7 @@ var CustomerGroupPickerInput = function CustomerGroupPickerInput(_ref) {
8897
8817
  children: jsxRuntime.jsx(uiKit.AsyncSelectInput, {
8898
8818
  id: name,
8899
8819
  name: name,
8900
- placeholder: formatMessage(messages$t.placeholder),
8820
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$t.placeholder),
8901
8821
  loadOptions: loadOptionsDebounced,
8902
8822
  defaultOptions: true,
8903
8823
  showOptionGroupDivider: true,
@@ -10567,7 +10487,6 @@ var RESOURCES_WITH_PLATFORM_LIMITS = {
10567
10487
  shippingMethods: 'shippingMethods',
10568
10488
  carts: 'carts'
10569
10489
  };
10570
- var CUSTOMER_SUPPORT_LINK = 'https://jira.commercetools.com/servicedesk/customer/portal/1';
10571
10490
 
10572
10491
  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; }
10573
10492
  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; }
@@ -10681,26 +10600,26 @@ function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) {
10681
10600
  var getCustomerSupportLink$1 = function getCustomerSupportLink(msg) {
10682
10601
  return jsxRuntime.jsx(uiKit.Link, {
10683
10602
  isExternal: true,
10684
- to: CUSTOMER_SUPPORT_LINK,
10603
+ to: constants.SUPPORT_PORTAL_URL,
10685
10604
  children: msg
10686
10605
  });
10687
10606
  };
10688
10607
  var PlatformLimitWarningNotification = function PlatformLimitWarningNotification(_ref) {
10689
10608
  var resource = _ref.resource,
10690
10609
  limit = _ref.limit;
10691
- return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
10692
- scale: "xs",
10693
- children: [jsxRuntime.jsx(uiKit.WarningIcon, {
10694
- color: "warning",
10695
- size: "medium"
10696
- }), jsxRuntime.jsx(uiKit.Text.Body, {
10697
- intlMessage: _objectSpread$z(_objectSpread$z({}, messages$m[resource]), {}, {
10698
- values: {
10699
- limit: limit,
10700
- customersupport: getCustomerSupportLink$1
10701
- }
10702
- })
10703
- })]
10610
+ return jsxRuntime.jsx(uiKit.ContentNotification, {
10611
+ type: "warning",
10612
+ children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$z(_objectSpread$z({}, messages$m[resource]), {}, {
10613
+ values: {
10614
+ limit: limit,
10615
+ customersupport: getCustomerSupportLink$1
10616
+ },
10617
+ children: function children(message) {
10618
+ return jsxRuntime.jsx("div", {
10619
+ children: message
10620
+ });
10621
+ }
10622
+ }))
10704
10623
  });
10705
10624
  };
10706
10625
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
@@ -10738,7 +10657,7 @@ function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) {
10738
10657
  var getCustomerSupportLink = function getCustomerSupportLink(msg) {
10739
10658
  return jsxRuntime.jsx(uiKit.Link, {
10740
10659
  isExternal: true,
10741
- to: CUSTOMER_SUPPORT_LINK,
10660
+ to: constants.SUPPORT_PORTAL_URL,
10742
10661
  children: msg
10743
10662
  }, msg);
10744
10663
  };
@@ -13103,6 +13022,10 @@ function validatedInput(InnerComponent, validators) {
13103
13022
  if (onChange && triggerUpdate) onChange(event);
13104
13023
  _this.conditionalSetValidStatus(nextValidStatus);
13105
13024
  };
13025
+ /**
13026
+ * Only triggers when there is a value, but its not valid
13027
+ * so it must be an invalid numeric value
13028
+ */
13106
13029
  _this.handleInvalid = function () {
13107
13030
  var nextValidStatus = _objectSpread$8({}, _this.state.validStatus);
13108
13031
  if (has__default["default"](nextValidStatus, 'numeric')) {
@@ -14525,7 +14448,6 @@ exports.ThrottledField = ThrottledField;
14525
14448
  exports.VALIDATOR_INTEGER = VALIDATOR_INTEGER;
14526
14449
  exports.VALIDATOR_NUMERIC = VALIDATOR_NUMERIC;
14527
14450
  exports.VALIDATOR_REQUIRED = VALIDATOR_REQUIRED;
14528
- exports.ValidationError = ValidationError;
14529
14451
  exports.WithPimIndexer = WithPimIndexer;
14530
14452
  exports.allowedProperties = allowedProperties;
14531
14453
  exports.and = and;
@@ -14667,9 +14589,11 @@ exports.usePrevious = usePrevious;
14667
14589
  exports.useProductSelectionsFetcher = useProductSelectionsFetcher;
14668
14590
  exports.useProductSelectionsTotalFetcher = useProductSelectionsTotalFetcher;
14669
14591
  exports.useRoleNotificationEffect = useRoleNotificationEffect;
14592
+ exports.useShippingMethodsPlatformLimits = useShippingMethodsLimits;
14670
14593
  exports.useStorage = useStorage;
14671
14594
  exports.useStoreKeysInDataFences = useStoreKeysInDataFences;
14672
14595
  exports.useStoresListFetcher = useStoresListFetcher;
14596
+ exports.useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
14673
14597
  exports.useTotalNumberOfBusinessUnitsFetcherHandlers = handlers$1;
14674
14598
  exports.useTotalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher;
14675
14599
  exports.useTotalNumberOfStoresFetcherHandlers = handlers$3;