@commercetools-frontend/experimental-components 6.1.5 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,7 +196,7 @@ var compact__default = /*#__PURE__*/_interopDefault(compact);
196
196
  var _Set__default = /*#__PURE__*/_interopDefault(_Set);
197
197
  var _spliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_spliceInstanceProperty);
198
198
 
199
- var styles$j = {
199
+ var styles$k = {
200
200
  "loading-container": "centered-loading-spinner-module__loading-container___3_9-h"
201
201
  };
202
202
  /**
@@ -204,7 +204,7 @@ var styles$j = {
204
204
  * - the ui-kit Spacings.Stack does not allow for custom styles, nor does it stretch to fill its container's height
205
205
  */
206
206
  const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
207
- className: styles$j['loading-container'],
207
+ className: styles$k['loading-container'],
208
208
  "data-testid": "centered-loading-spinner",
209
209
  children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
210
210
  });
@@ -246,6 +246,7 @@ const INTERVALS_IN_SECONDS = {
246
246
  [REMINDER_OPTION_10_DAY]: 864000
247
247
  };
248
248
  const EXCLUDING_PRODUCTS = 'excludingProducts';
249
+ const PRODUCT_TAILORING_FOR_ATTRIBUTES = 'productTailoringForAttributes';
249
250
 
250
251
  // TODO: apply a more robust solution to overlaying issues
251
252
  const Z_INDEX_DROPDOWN = 30000;
@@ -1070,7 +1071,7 @@ function ownKeys$1l(e, r) { var t = _Object$keys__default["default"](e); if (_Ob
1070
1071
  function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1071
1072
  function _callSuper$7(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1072
1073
  function _isNativeReflectConstruct$7() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$7 = function () { return !!t; })(); }
1073
- var styles$i = {
1074
+ var styles$j = {
1074
1075
  "size": "throttled-field-module__size___324jx",
1075
1076
  "input-text": "throttled-field-module__input-text___3zFFp",
1076
1077
  "input-secondary": "throttled-field-module__input-secondary___cFo9e throttled-field-module__input-text___3zFFp throttled-field-module__size___324jx",
@@ -1179,9 +1180,9 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
1179
1180
  })
1180
1181
  }), this.props.as === 'textarea' ? jsxRuntime.jsx(Textarea__default["default"], _objectSpread$1l(_objectSpread$1l({}, commonProps), {}, {
1181
1182
  id: inputId,
1182
- className: classnames__default["default"](styles$i.textarea, styles$i[`textarea-${this.props.style}`], {
1183
- [styles$i.invalid]: !this.props.isValid,
1184
- [styles$i.disabled]: this.props.disabled
1183
+ className: classnames__default["default"](styles$j.textarea, styles$j[`textarea-${this.props.style}`], {
1184
+ [styles$j.invalid]: !this.props.isValid,
1185
+ [styles$j.disabled]: this.props.disabled
1185
1186
  }),
1186
1187
  rows: 1,
1187
1188
  maxRows: this.props.autoSize ? undefined : 1,
@@ -1190,10 +1191,10 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
1190
1191
  id: inputId,
1191
1192
  ref: this.props.inputRef,
1192
1193
  type: this.props.as,
1193
- className: classnames__default["default"](styles$i[`input-${this.props.style}`], {
1194
- [styles$i.invalid]: !this.props.isValid,
1195
- [styles$i.disabled]: this.props.disabled,
1196
- [styles$i.granular]: this.props.isGranular
1194
+ className: classnames__default["default"](styles$j[`input-${this.props.style}`], {
1195
+ [styles$j.invalid]: !this.props.isValid,
1196
+ [styles$j.disabled]: this.props.disabled,
1197
+ [styles$j.granular]: this.props.isGranular
1197
1198
  })
1198
1199
  }))]
1199
1200
  });
@@ -1238,7 +1239,7 @@ var messages$G = reactIntl.defineMessages({
1238
1239
 
1239
1240
  function _callSuper$6(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
1240
1241
  function _isNativeReflectConstruct$6() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$6 = function () { return !!t; })(); }
1241
- var styles$h = {
1242
+ var styles$i = {
1242
1243
  "block": "search-input-module__block___1uM-y",
1243
1244
  "container": "search-input-module__container___9u6if",
1244
1245
  "input-container": "search-input-module__input-container___mJnyZ",
@@ -1313,14 +1314,14 @@ let SearchInput = /*#__PURE__*/function (_Component) {
1313
1314
  key: "render",
1314
1315
  value: function render() {
1315
1316
  return jsxRuntime.jsx("div", {
1316
- className: classnames__default["default"](this.props.blockClassName, styles$h.block),
1317
+ className: classnames__default["default"](this.props.blockClassName, styles$i.block),
1317
1318
  children: jsxRuntime.jsxs("div", {
1318
- className: classnames__default["default"](this.props.containerClassName, styles$h.container),
1319
+ className: classnames__default["default"](this.props.containerClassName, styles$i.container),
1319
1320
  children: [jsxRuntime.jsx("div", {
1320
- className: classnames__default["default"](styles$h['input-container'], {
1321
- [styles$h['input-container-hoverable']]: !this.props.disabled,
1322
- [styles$h['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
1323
- [styles$h['input-container-granular']]: this.props.isGranular
1321
+ className: classnames__default["default"](styles$i['input-container'], {
1322
+ [styles$i['input-container-hoverable']]: !this.props.disabled,
1323
+ [styles$i['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
1324
+ [styles$i['input-container-granular']]: this.props.isGranular
1324
1325
  }),
1325
1326
  children: jsxRuntime.jsx(ThrottledField, {
1326
1327
  style: "primary",
@@ -1338,18 +1339,18 @@ let SearchInput = /*#__PURE__*/function (_Component) {
1338
1339
  isGranular: this.props.isGranular
1339
1340
  })
1340
1341
  }), this.state.text && jsxRuntime.jsx(uiKit.SecondaryIconButton, {
1341
- className: classnames__default["default"](styles$h['clear-icon-container'], {
1342
- [styles$h['clear-icon-container-granular']]: this.props.isGranular
1342
+ className: classnames__default["default"](styles$i['clear-icon-container'], {
1343
+ [styles$i['clear-icon-container-granular']]: this.props.isGranular
1343
1344
  }),
1344
1345
  icon: jsxRuntime.jsx(uiKit.CloseIcon, {}),
1345
- size: "medium",
1346
+ size: "30",
1346
1347
  label: "clear-button",
1347
1348
  onClick: this.handleClear
1348
1349
  }), jsxRuntime.jsx("div", {
1349
1350
  "data-testid": "search-button",
1350
- className: classnames__default["default"](styles$h['search-icon-container'], {
1351
- [styles$h['search-icon-container-hoverable']]: !this.props.disabled,
1352
- [styles$h['search-icon-container-granular']]: this.props.isGranular
1351
+ className: classnames__default["default"](styles$i['search-icon-container'], {
1352
+ [styles$i['search-icon-container-hoverable']]: !this.props.disabled,
1353
+ [styles$i['search-icon-container-granular']]: this.props.isGranular
1353
1354
  }),
1354
1355
  onClick: this.props.disabled ? null : this.handleSubmit,
1355
1356
  label: "search-button",
@@ -2596,10 +2597,10 @@ function defaultFilterValidator$1(_ref2) {
2596
2597
  return true;
2597
2598
  }
2598
2599
 
2599
- var localizedTextTransformer = (localizedString => {
2600
+ var localizedTextTransformer = localizedString => {
2600
2601
  var _context;
2601
2602
  return _mapInstanceProperty__default["default"](_context = _Object$keys__default["default"](localizedString)).call(_context, locale => `${locale} = "${localizedString[locale]}"`).join(' and ');
2602
- });
2603
+ };
2603
2604
 
2604
2605
  const getCentAmountClause = (value, operator, locale) => `centAmount ${operator} ${uiKit.MoneyInput.convertToMoneyValue(value, locale).centAmount}`;
2605
2606
  function moneyTransformer(value, option, locale) {
@@ -4305,23 +4306,25 @@ const createAttributeTypeValue = attribute => {
4305
4306
  * hence the action structure is flat.
4306
4307
  */
4307
4308
  const formatMoney = valueType => money => {
4308
- if (valueType === 'fixed') {
4309
- return {
4310
- [money.type]: _objectSpread$15({
4309
+ switch (valueType) {
4310
+ case 'fixed':
4311
+ return {
4312
+ [money.type]: _objectSpread$15({
4313
+ centAmount: money.centAmount,
4314
+ currencyCode: money.currencyCode
4315
+ }, money.type === PRECISION_TYPES.highPrecision && {
4316
+ preciseAmount: money.preciseAmount,
4317
+ fractionDigits: money.fractionDigits
4318
+ })
4319
+ };
4320
+ case 'absolute':
4321
+ case 'absoluteCart':
4322
+ return {
4311
4323
  centAmount: money.centAmount,
4312
4324
  currencyCode: money.currencyCode
4313
- }, money.type === PRECISION_TYPES.highPrecision && {
4314
- preciseAmount: money.preciseAmount,
4315
- fractionDigits: money.fractionDigits
4316
- })
4317
- };
4318
- } else if (valueType === 'absolute') {
4319
- return {
4320
- centAmount: money.centAmount,
4321
- currencyCode: money.currencyCode
4322
- };
4323
- } else {
4324
- throw new Error('Unexpected value type for money.');
4325
+ };
4326
+ default:
4327
+ throw new Error('Unexpected value type for money.');
4325
4328
  }
4326
4329
  };
4327
4330
 
@@ -4334,6 +4337,7 @@ const convertChangeValueAction = actionPayload => {
4334
4337
  const possibleTypeKeys = {
4335
4338
  relative: ['permyriad'],
4336
4339
  absolute: ['money'],
4340
+ absoluteCart: ['money', 'applicationMode'],
4337
4341
  fixed: ['money'],
4338
4342
  giftLineItem: ['product', 'variantId', 'distributionChannel', 'supplyChannel', 'ResourceIdentifierInput']
4339
4343
  };
@@ -5265,7 +5269,7 @@ function getCartDiscountById(apolloClient, options) {
5265
5269
  }).then(response => response.data?.cartDiscount ? transformLocalizedFieldsForCartDiscount(response.data.cartDiscount) : null);
5266
5270
  }
5267
5271
 
5268
- var styles$g = {
5272
+ var styles$h = {
5269
5273
  "container": "reference-search-module__container___3-iK3",
5270
5274
  "missing-label": "reference-search-module__missing-label___az9AO"
5271
5275
  }; // This is a hashmap of loaded items used to map a value to an item
@@ -5372,9 +5376,9 @@ function ReferenceSearch(props) {
5372
5376
  props.onChange(option);
5373
5377
  };
5374
5378
  return jsxRuntime.jsxs("div", {
5375
- className: styles$g.container,
5379
+ className: styles$h.container,
5376
5380
  children: [areSomeItemsMissing && jsxRuntime.jsx("div", {
5377
- className: styles$g['missing-label'],
5381
+ className: styles$h['missing-label'],
5378
5382
  children: props.referenceIsMissingLabel
5379
5383
  }), jsxRuntime.jsx(CustomFieldTooltip, {
5380
5384
  title: tooltipTitle,
@@ -5694,7 +5698,7 @@ function useCachedCategoryOptions(ids) {
5694
5698
 
5695
5699
  function ownKeys$Z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5696
5700
  function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5697
- var styles$f = {
5701
+ var styles$g = {
5698
5702
  "button": "button-module__button___1OzVf",
5699
5703
  "cancel": "button-module__cancel___1-jYL button-module__button___1OzVf",
5700
5704
  "confirm": "button-module__confirm___-W92x button-module__button___1OzVf",
@@ -5730,7 +5734,7 @@ const Button = props => {
5730
5734
  return jsxRuntime.jsx("button", _objectSpread$Z(_objectSpread$Z({
5731
5735
  onClick: isDisabled ? null : onClick,
5732
5736
  type: props.type,
5733
- className: classnames__default["default"](styles$f.button, isDisabled ? styles$f.disabled : null, className),
5737
+ className: classnames__default["default"](styles$g.button, isDisabled ? styles$g.disabled : null, className),
5734
5738
  disabled: isDisabled,
5735
5739
  "aria-label": props['aria-label']
5736
5740
  }, dataProps), {}, {
@@ -5752,15 +5756,15 @@ var messages$z = reactIntl.defineMessages({
5752
5756
 
5753
5757
  function ownKeys$Y(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5754
5758
  function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Y(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Y(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5755
- var styles$e = {
5759
+ var styles$f = {
5756
5760
  "button": "file-input-module__button___2KypN",
5757
5761
  "input": "file-input-module__input___3MP4D"
5758
5762
  };
5759
5763
  const FileInput = props => jsxRuntime.jsx("label", {
5760
5764
  children: jsxRuntime.jsxs("span", {
5761
- className: styles$e.button,
5765
+ className: styles$f.button,
5762
5766
  children: [jsxRuntime.jsx("input", {
5763
- className: styles$e.input,
5767
+ className: styles$f.input,
5764
5768
  type: "file",
5765
5769
  accept: props.acceptTypes,
5766
5770
  name: props.name,
@@ -6013,7 +6017,7 @@ const CustomerGroupPickerInput = _ref => {
6013
6017
  };
6014
6018
  CustomerGroupPickerInput.displayName = 'CustomerGroupPickerInput';
6015
6019
 
6016
- var styles$d = {
6020
+ var styles$e = {
6017
6021
  "divider": "divider-module__divider___4-vdy",
6018
6022
  "divider-horizontal": "divider-module__divider-horizontal___RuUcj",
6019
6023
  "divider-vertical": "divider-module__divider-vertical___32kJG",
@@ -6026,10 +6030,10 @@ function Divider(_ref) {
6026
6030
  orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
6027
6031
  return jsxRuntime.jsx("hr", {
6028
6032
  className: classnames__default["default"]({
6029
- [styles$d['divider-solid']]: !isDashed,
6030
- [styles$d['divider-dashed']]: isDashed,
6031
- [styles$d['divider-horizontal']]: orientation === 'horizontal',
6032
- [styles$d['divider-vertical']]: orientation === 'vertical'
6033
+ [styles$e['divider-solid']]: !isDashed,
6034
+ [styles$e['divider-dashed']]: isDashed,
6035
+ [styles$e['divider-horizontal']]: orientation === 'horizontal',
6036
+ [styles$e['divider-vertical']]: orientation === 'vertical'
6033
6037
  })
6034
6038
  });
6035
6039
  }
@@ -6173,7 +6177,7 @@ const ExpandButton = props => props.totalValues > 1 ? jsxRuntime.jsxs(uiKit.Spac
6173
6177
  }) : null;
6174
6178
  ExpandButton.displayName = 'ExpandButton';
6175
6179
 
6176
- var styles$c = {
6180
+ var styles$d = {
6177
6181
  "topAlign": "set-buttons-module__topAlign___3AZwc",
6178
6182
  "gap": "set-buttons-module__gap___38Qr0"
6179
6183
  }; // TODO(pa3): alignment of buttons made in a kinda ugly way (i.e. gap class).
@@ -6194,7 +6198,7 @@ const SetButtons = props => {
6194
6198
  size: "big",
6195
6199
  icon: jsxRuntime.jsx(uiKit.PlusBoldIcon, {})
6196
6200
  }) : jsxRuntime.jsx("div", {
6197
- className: styles$c.gap
6201
+ className: styles$d.gap
6198
6202
  })]
6199
6203
  })
6200
6204
  });
@@ -6564,7 +6568,7 @@ CustomLocalizedTextInput.displayName = 'CustomLocalizedTextInput';
6564
6568
 
6565
6569
  function ownKeys$S(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6566
6570
  function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6567
- var styles$b = {
6571
+ var styles$c = {
6568
6572
  "container": "custom-money-input-module__container___1fdO2"
6569
6573
  };
6570
6574
  const fixCurrencyCode = (value, currencies) => {
@@ -6629,7 +6633,7 @@ function CustomMoneyInput(props) {
6629
6633
 
6630
6634
  // TODO(pa3): fix setting proper id in UIKit
6631
6635
  return jsxRuntime.jsxs("div", {
6632
- className: styles$b.container,
6636
+ className: styles$c.container,
6633
6637
  "aria-labelledby": props.name,
6634
6638
  children: [jsxRuntime.jsx(uiKit.AccessibleHidden, {
6635
6639
  children: jsxRuntime.jsx("label", {
@@ -7829,10 +7833,15 @@ const useDnDContext = () => {
7829
7833
  const _excluded$1 = ["WrapperComponent"];
7830
7834
  function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7831
7835
  function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7836
+ const textAttributeTypes = ['text', 'ltext'];
7832
7837
  const getFieldName = (parentName, fieldName) => {
7833
7838
  if (!parentName) return fieldName;
7834
7839
  return `${parentName}.${fieldName}`;
7835
7840
  };
7841
+ const isTextAttribute = function () {
7842
+ let fieldDefinitionType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7843
+ return _includesInstanceProperty__default["default"](textAttributeTypes).call(textAttributeTypes, fieldDefinitionType.name);
7844
+ };
7836
7845
  const isNested = fieldDefinition => {
7837
7846
  const type = fieldDefinition.type;
7838
7847
  const typeName = type.name.toLowerCase();
@@ -7851,6 +7860,7 @@ const CustomFieldsInternal = _ref => {
7851
7860
  values = _valuesInstanceProperty__default["default"](_useFormikContext),
7852
7861
  handleBlur = _useFormikContext.handleBlur,
7853
7862
  status = _useFormikContext.status;
7863
+ const isTailoringAttributesEnabled = applicationShell.useFeatureToggle(PRODUCT_TAILORING_FOR_ATTRIBUTES);
7854
7864
  const didFormValidationFail = useDidFormValidationFail();
7855
7865
  const fieldDefinitions = omitSetsOfSets(props.fieldDefinitions);
7856
7866
  const _useDnDContext = useDnDContext(),
@@ -7864,6 +7874,7 @@ const CustomFieldsInternal = _ref => {
7864
7874
  children: _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, (fieldDefinition, index) => {
7865
7875
  const fieldName = getFieldName(props.name, fieldDefinition.name);
7866
7876
  const isTouched = Boolean(formik.getIn(touched, fieldName));
7877
+ const isFieldDisabled = props.isDisabled && !(isTextAttribute(fieldDefinition.type) && isTailoringAttributesEnabled);
7867
7878
  const fieldErrors = formik.getIn(errors, fieldName);
7868
7879
  const value = props.inputValuesConverter(fieldName, formik.getIn(values, fieldName));
7869
7880
 
@@ -7881,7 +7892,7 @@ const CustomFieldsInternal = _ref => {
7881
7892
  name: fieldName,
7882
7893
  value: value,
7883
7894
  fieldDefinition: fieldDefinition,
7884
- isDisabled: props.isDisabled || isDnDMode,
7895
+ isDisabled: isFieldDisabled || isDnDMode,
7885
7896
  isReadOnly: props.isReadOnly,
7886
7897
  onBlur: handleBlur,
7887
7898
  setFieldValue: props.setFieldValue,
@@ -7939,7 +7950,7 @@ const findLabel = (enumType, key) => {
7939
7950
  };
7940
7951
  const convertEnumValues = (value, attributeDefinition) => {
7941
7952
  var _context2, _context3;
7942
- if (isNil__default["default"](value)) return value;
7953
+ if (isEmpty__default["default"](value)) return value;
7943
7954
  const typeName = getTypeName(attributeDefinition.type);
7944
7955
  if (_includesInstanceProperty__default["default"](_context2 = ['enum', 'lenum']).call(_context2, typeName)) return value.key;
7945
7956
  if (typeName === 'set' && _includesInstanceProperty__default["default"](_context3 = ['enum', 'lenum']).call(_context3, getTypeName(attributeDefinition.type.elementType))) return _mapInstanceProperty__default["default"](value).call(value, _ref => {
@@ -7950,7 +7961,7 @@ const convertEnumValues = (value, attributeDefinition) => {
7950
7961
  };
7951
7962
  const customFieldToAttribute = (value, attributeDefinition) => {
7952
7963
  var _context4, _context5;
7953
- if (isNil__default["default"](value)) return value;
7964
+ if (isEmpty__default["default"](value)) return value;
7954
7965
  if (!attributeDefinition) return value;
7955
7966
  const type = attributeDefinition.type;
7956
7967
  const typeName = getTypeName(type);
@@ -8523,7 +8534,7 @@ ProductSelectionsPicker.defaultProps = {
8523
8534
  };
8524
8535
 
8525
8536
  // NOTE: this component is duplicated in `app-shell/from-core`.
8526
- var styles$a = {
8537
+ var styles$b = {
8527
8538
  "colored": "required-indicator-module__colored____YUFm",
8528
8539
  "indicatorAsterisk": "required-indicator-module__indicatorAsterisk___3lEdX"
8529
8540
  };
@@ -8531,8 +8542,8 @@ const RequiredIndicator = _ref => {
8531
8542
  let uncolored = _ref.uncolored;
8532
8543
  return jsxRuntime.jsx("em", {
8533
8544
  className: classnames__default["default"]({
8534
- [styles$a.colored]: !uncolored,
8535
- [styles$a.indicatorAsterisk]: true
8545
+ [styles$b.colored]: !uncolored,
8546
+ [styles$b.indicatorAsterisk]: true
8536
8547
  }),
8537
8548
  children: '*'
8538
8549
  });
@@ -8587,7 +8598,7 @@ var messages$r = reactIntl.defineMessages({
8587
8598
  }
8588
8599
  });
8589
8600
 
8590
- var styles$9 = {
8601
+ var styles$a = {
8591
8602
  "container": "selectable-field-search-input-module__container___z2ltR",
8592
8603
  "search-mode-menu": "selectable-field-search-input-module__search-mode-menu___Od6Le"
8593
8604
  };
@@ -8598,7 +8609,7 @@ const SelectableFieldSearchInput = props => {
8598
8609
  setSearchText = _useState2[1];
8599
8610
  const intl = reactIntl.useIntl();
8600
8611
  return jsxRuntime.jsx("div", {
8601
- className: styles$9.container,
8612
+ className: styles$a.container,
8602
8613
  children: jsxRuntime.jsx(uiKit.SelectableSearchInput, {
8603
8614
  menuHorizontalConstraint: 5,
8604
8615
  options: props.options,
@@ -8680,7 +8691,8 @@ const UPPER_STORES_LIMIT = 500;
8680
8691
  const mapStoresToOptions = _ref => {
8681
8692
  let store = _ref.store,
8682
8693
  renderSelectInputOptionValuesByField = _ref.renderSelectInputOptionValuesByField,
8683
- dataLocale = _ref.dataLocale;
8694
+ dataLocale = _ref.dataLocale,
8695
+ languages = _ref.languages;
8684
8696
  const convertedStore = l10n.applyTransformedLocalizedFields(store, [{
8685
8697
  from: 'nameAllLocales',
8686
8698
  to: 'name'
@@ -8688,6 +8700,7 @@ const mapStoresToOptions = _ref => {
8688
8700
  const localizedName = l10n.formatLocalizedString(convertedStore, {
8689
8701
  key: 'name',
8690
8702
  locale: dataLocale,
8703
+ fallbackOrder: languages,
8691
8704
  fallback: `${store.key} (key)`
8692
8705
  });
8693
8706
  return {
@@ -8743,9 +8756,11 @@ const emptyStoreOption = intl => [{
8743
8756
  const StoresAsyncSelectInput = props => {
8744
8757
  const intl = reactIntl.useIntl();
8745
8758
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
8746
- dataLocale: applicationContext.dataLocale || applicationContext.user?.locale
8759
+ dataLocale: applicationContext.dataLocale,
8760
+ projectLanguages: isEmpty__default["default"](applicationContext.project?.languages) ? props.projectLanguages : applicationContext.project?.languages
8747
8761
  })),
8748
- dataLocale = _useApplicationContex.dataLocale;
8762
+ dataLocale = _useApplicationContex.dataLocale,
8763
+ projectLanguages = _useApplicationContex.projectLanguages;
8749
8764
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8750
8765
  const storesListFetcher = useStoresListFetcher({
8751
8766
  limit: 500,
@@ -8762,6 +8777,7 @@ const StoresAsyncSelectInput = props => {
8762
8777
  return _mapInstanceProperty__default["default"](_context2 = storesListFetcher.stores?.results || []).call(_context2, store => mapStoresToOptions({
8763
8778
  store,
8764
8779
  dataLocale,
8780
+ languages: projectLanguages,
8765
8781
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
8766
8782
  }));
8767
8783
  }, [dataLocale, storesListFetcher.stores, props.renderSelectInputOptionValuesByField]);
@@ -8845,9 +8861,11 @@ const hasErrors$1 = errors => {
8845
8861
  const StoresBasicSelectInput = props => {
8846
8862
  const intl = reactIntl.useIntl();
8847
8863
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
8848
- dataLocale: applicationContext.dataLocale || applicationContext.user?.locale
8864
+ dataLocale: applicationContext.dataLocale,
8865
+ projectLanguages: isEmpty__default["default"](applicationContext.project?.languages) ? props.projectLanguages : applicationContext.project?.languages
8849
8866
  })),
8850
- dataLocale = _useApplicationContex.dataLocale;
8867
+ dataLocale = _useApplicationContex.dataLocale,
8868
+ projectLanguages = _useApplicationContex.projectLanguages;
8851
8869
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8852
8870
  const storesListFetcher = useStoresListFetcher({
8853
8871
  limit: 60,
@@ -8864,6 +8882,7 @@ const StoresBasicSelectInput = props => {
8864
8882
  const results = _mapInstanceProperty__default["default"](_context2 = storesListFetcher.stores?.results || []).call(_context2, store => mapStoresToOptions({
8865
8883
  store,
8866
8884
  dataLocale,
8885
+ languages: projectLanguages,
8867
8886
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
8868
8887
  }));
8869
8888
  return props?.renderLabel ? [{
@@ -8987,7 +9006,7 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8987
9006
  function ownKeys$C(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
8988
9007
  function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$C(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$C(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
8989
9008
  var FetchStoresByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "storesByWherePredicate" }, name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 525, source: { body: "query FetchStoresByWherePredicate(\n $where: String!\n $skipFetchingStores: Boolean!\n $excludeProductSelections: Boolean!\n) {\n storesByWherePredicate: stores(where: $where) @skip(if: $skipFetchingStores) {\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8990
- var styles$8 = {
9009
+ var styles$9 = {
8991
9010
  "renderLabelContainer": "stores-search-selector-module__renderLabelContainer___3_PBc",
8992
9011
  "customLabel": "stores-search-selector-module__customLabel___1Xse8"
8993
9012
  }; // check wether there are any errors
@@ -9034,6 +9053,7 @@ const getValueFromOptions = _ref2 => {
9034
9053
  let isMulti = _ref2.isMulti,
9035
9054
  value = _ref2.value,
9036
9055
  dataLocale = _ref2.dataLocale,
9056
+ languages = _ref2.languages,
9037
9057
  storesByFieldFetcher = _ref2.storesByFieldFetcher,
9038
9058
  renderSelectInputOptionValuesByField = _ref2.renderSelectInputOptionValuesByField;
9039
9059
  if (!value) {
@@ -9042,6 +9062,7 @@ const getValueFromOptions = _ref2 => {
9042
9062
  const selectedOptions = storesByFieldFetcher.stores?.results.map(store => mapStoresToOptions({
9043
9063
  store,
9044
9064
  dataLocale,
9065
+ languages,
9045
9066
  renderSelectInputOptionValuesByField: renderSelectInputOptionValuesByField
9046
9067
  }));
9047
9068
  if (isMulti) {
@@ -9055,9 +9076,11 @@ const getValueFromOptions = _ref2 => {
9055
9076
  const StoresSearchSelectInput = props => {
9056
9077
  // hooks
9057
9078
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
9058
- dataLocale: applicationContext.dataLocale || applicationContext.user?.locale
9079
+ dataLocale: applicationContext.dataLocale,
9080
+ projectLanguages: isEmpty__default["default"](applicationContext.project?.languages) ? props.projectLanguages : applicationContext.project?.languages
9059
9081
  })),
9060
- dataLocale = _useApplicationContex.dataLocale;
9082
+ dataLocale = _useApplicationContex.dataLocale,
9083
+ projectLanguages = _useApplicationContex.projectLanguages;
9061
9084
  const intl = reactIntl.useIntl();
9062
9085
  const client$1 = client.useApolloClient();
9063
9086
  const storesByFieldFetcher = useStoresByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
@@ -9081,6 +9104,7 @@ const StoresSearchSelectInput = props => {
9081
9104
  const result = data.storesByWherePredicate?.results.map(store => mapStoresToOptions({
9082
9105
  store,
9083
9106
  dataLocale,
9107
+ languages: projectLanguages,
9084
9108
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
9085
9109
  }));
9086
9110
  if (!props.renderLabel) {
@@ -9096,9 +9120,9 @@ const StoresSearchSelectInput = props => {
9096
9120
  const renderNoOptions = _ref4 => {
9097
9121
  let inputValue = _ref4.inputValue;
9098
9122
  return jsxRuntime.jsxs("div", {
9099
- className: styles$8.renderLabelContainer,
9123
+ className: styles$9.renderLabelContainer,
9100
9124
  children: [jsxRuntime.jsx("div", {
9101
- className: styles$8.customLabel,
9125
+ className: styles$9.customLabel,
9102
9126
  children: props?.renderLabel && props?.renderLabel
9103
9127
  }), jsxRuntime.jsx("div", {
9104
9128
  children: intl.formatMessage(inputValue ? messages$q.searchSelectInputNoOptionsFoundMessage : messages$q.searchSelectInputNoValueMessage)
@@ -9119,6 +9143,7 @@ const StoresSearchSelectInput = props => {
9119
9143
  isMulti: props.isMulti,
9120
9144
  value: props.value,
9121
9145
  dataLocale,
9146
+ languages: projectLanguages,
9122
9147
  storesByFieldFetcher,
9123
9148
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
9124
9149
  }),
@@ -9156,6 +9181,9 @@ StoresSearchSelectInput.defaultProps = {
9156
9181
 
9157
9182
  function ownKeys$B(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
9158
9183
  function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$B(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$B(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
9184
+ var styles$8 = {
9185
+ "customOption": "store-select-input-module__customOption___2SC00"
9186
+ };
9159
9187
  const StoreSelectInput = props => {
9160
9188
  const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
9161
9189
  const components = React.useMemo(() => {
@@ -9165,13 +9193,17 @@ const StoreSelectInput = props => {
9165
9193
  if (optionInnerProps.isDisabled) {
9166
9194
  return jsxRuntime.jsx(uiKit.SelectInput.Option, _objectSpread$B({}, optionInnerProps));
9167
9195
  }
9168
- return jsxRuntime.jsx(selectUtils.CustomSelectInputOption, {
9169
- optionType: props.optionType,
9170
- optionInnerProps: optionInnerProps
9196
+ const isSearchSelectInput = totalNumberOfStoresFetcher.total > props.upperStoresLimit;
9197
+ return jsxRuntime.jsx("div", {
9198
+ className: isSearchSelectInput ? styles$8.customOption : '',
9199
+ children: jsxRuntime.jsx(selectUtils.CustomSelectInputOption, {
9200
+ optionType: props.optionType,
9201
+ optionInnerProps: optionInnerProps
9202
+ })
9171
9203
  });
9172
9204
  }
9173
9205
  };
9174
- }, [props.optionType]);
9206
+ }, [props.optionType, totalNumberOfStoresFetcher.total, props.upperStoresLimit]);
9175
9207
  if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
9176
9208
  const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
9177
9209
  return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$B(_objectSpread$B({
@@ -9179,6 +9211,7 @@ const StoreSelectInput = props => {
9179
9211
  placeholder: props.placeholder,
9180
9212
  iconLeft: props.iconLeft,
9181
9213
  projectKey: props.projectKey,
9214
+ projectLanguages: props.projectLanguages,
9182
9215
  id: props.id,
9183
9216
  name: props.name,
9184
9217
  components: components,
@@ -10086,7 +10119,9 @@ const mapTypeDefinitionsToOptions = (typeDefinitions, language, languages, selec
10086
10119
  }));
10087
10120
  };
10088
10121
 
10089
- // Used to generate form state when the user selects a type definition from the dropdown
10122
+ /**
10123
+ * Creates a new form state based on the selected type definition from the dropdown.
10124
+ */
10090
10125
  const createFormStateFromTypeDefinition = selectedTypeDefinition => {
10091
10126
  return {
10092
10127
  type: {
@@ -10109,7 +10144,8 @@ const CustomTypeSubform = _ref => {
10109
10144
  const _useFormikContext = formik.useFormikContext(),
10110
10145
  formValues = _valuesInstanceProperty__default["default"](_useFormikContext),
10111
10146
  setFieldValue = _useFormikContext.setFieldValue,
10112
- validateForm = _useFormikContext.validateForm;
10147
+ validateForm = _useFormikContext.validateForm,
10148
+ initialValues = _useFormikContext.initialValues;
10113
10149
  const _useIntl = reactIntl.useIntl(),
10114
10150
  formatMessage = _useIntl.formatMessage;
10115
10151
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
@@ -10122,8 +10158,23 @@ const CustomTypeSubform = _ref => {
10122
10158
  const handleTypeDefinitionSelect = React.useCallback(event => {
10123
10159
  const selectedTypeDefinition = _findInstanceProperty__default["default"](typeDefinitions).call(typeDefinitions, typeDefinition => typeDefinition.type.key === event.target.value);
10124
10160
  if (selectedTypeDefinition) {
10125
- const nextCustom = createFormStateFromTypeDefinition(selectedTypeDefinition);
10126
- setFieldValue(rootFieldName, nextCustom).then(() => {
10161
+ const initialValueCustomType = initialValues[rootFieldName];
10162
+ const selectedCustomTypeKey = selectedTypeDefinition?.type.key;
10163
+ let newFieldValue;
10164
+
10165
+ /**
10166
+ * If the user selects the same custom type that was already selected, we need to reset the `custom` field
10167
+ * back to its initial value to ensure that the form state is consistent with the initial values.
10168
+ */
10169
+ if (initialValueCustomType?.type?.obj?.key === selectedCustomTypeKey) {
10170
+ newFieldValue = initialValueCustomType;
10171
+ /**
10172
+ * Otherwise, set the `custom` field to the new custom type definition.
10173
+ */
10174
+ } else {
10175
+ newFieldValue = createFormStateFromTypeDefinition(selectedTypeDefinition);
10176
+ }
10177
+ setFieldValue(rootFieldName, newFieldValue).then(() => {
10127
10178
  validateForm();
10128
10179
  });
10129
10180
  } else {
@@ -10145,7 +10196,7 @@ const CustomTypeSubform = _ref => {
10145
10196
  children: panelTitle || jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$s({}, messages$o.title))
10146
10197
  }),
10147
10198
  headerControls: typeDefinitions.length > 0 && jsxRuntime.jsx("div", {
10148
- css: /*#__PURE__*/react$1.css("min-width:", uiKit.designTokens.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomTypeSubform;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=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zdG9tVHlwZVN1YmZvcm0ucHJvcFR5cGVzID0ge1xuICB0eXBlRGVmaW5pdGlvbnM6IFByb3BUeXBlcy5hcnJheS5pc1JlcXVpcmVkLFxuICBpc1JlYWRPbmx5OiBQcm9wVHlwZXMuYm9vbCxcbiAgaXNDb25kZW5zZWQ6IFByb3BUeXBlcy5ib29sLFxuICBoaWRlRW1wdHlGaWVsZHM6IFByb3BUeXBlcy5ib29sLFxuICByb290Rm9ybVN0YXRlRmllbGROYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuICBwYW5lbFRpdGxlOiBQcm9wVHlwZXMubm9kZSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEN1c3RvbVR5cGVTdWJmb3JtO1xuIl19 */"),
10199
+ css: /*#__PURE__*/react$1.css("min-width:", uiKit.designTokens.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomTypeSubform;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS10eXBlLXN1YmZvcm0uanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBJb0IiLCJmaWxlIjoiY3VzdG9tLXR5cGUtc3ViZm9ybS5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VGb3JtaWtDb250ZXh0LCBnZXRJbiB9IGZyb20gJ2Zvcm1payc7XG5pbXBvcnQgeyBGb3JtYXR0ZWRNZXNzYWdlLCB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCc7XG5pbXBvcnQgeyB1c2VBcHBsaWNhdGlvbkNvbnRleHQgfSBmcm9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gICAgaGVhZGVyQ29udHJvbHM9e1xuICAgICAgICB0eXBlRGVmaW5pdGlvbnMubGVuZ3RoID4gMCAmJiAoXG4gICAgICAgICAgPGRpdlxuICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgIG1pbi13aWR0aDogJHtkZXNpZ25Ub2tlbnMuY29uc3RyYWludDExfTtcbiAgICAgICAgICAgIGB9XG4gICAgICAgICAgPlxuICAgICAgICAgICAgPFNlbGVjdElucHV0XG4gICAgICAgICAgICAgIGlzQ2xlYXJhYmxlXG4gICAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiY3VzdG9tLXR5cGUtc2VsZWN0XCJcbiAgICAgICAgICAgICAgbmFtZT17YCR7cm9vdEZpZWxkTmFtZX0udHlwZS5vYmoua2V5YH1cbiAgICAgICAgICAgICAgb3B0aW9ucz17bWFwVHlwZURlZmluaXRpb25zVG9PcHRpb25zKFxuICAgICAgICAgICAgICAgIHR5cGVEZWZpbml0aW9ucyxcbiAgICAgICAgICAgICAgICBsYW5ndWFnZSxcbiAgICAgICAgICAgICAgICBsYW5ndWFnZXMsXG5cbiAgICAgICAgICAgICAgICBnZXRJbihmb3JtVmFsdWVzLCByb290RmllbGROYW1lKT8udHlwZT8uaWRcbiAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgdmFsdWU9e2dldEluKGZvcm1WYWx1ZXMsIHJvb3RGaWVsZE5hbWUpPy50eXBlPy5vYmo/LmtleX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9e2hhbmRsZVR5cGVEZWZpbml0aW9uU2VsZWN0fVxuICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17Zm9ybWF0TWVzc2FnZShtZXNzYWdlcy50eXBlc1BsYWNlaG9sZGVyKX1cbiAgICAgICAgICAgICAgaXNSZWFkT25seT17aXNSZWFkT25seX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICAgIH1cbiAgICAgIGhlYWRlckNvbnRyb2xzQWxpZ25tZW50PVwicmlnaHRcIlxuICAgID5cbiAgICAgIDxDdXN0b21GaWVsZHNJbnB1dFdyYXBwZXJcbiAgICAgICAgdHlwZURlZmluaXRpb25zPXt0eXBlRGVmaW5pdGlvbnN9XG4gICAgICAgIGlzUmVhZE9ubHk9e2lzUmVhZE9ubHl9XG4gICAgICAgIGhpZGVFbXB0eUZpZWxkcz17aGlkZUVtcHR5RmllbGRzfVxuICAgICAgICByb290Rm9ybVN0YXRlRmllbGROYW1lPXtyb290Rm9ybVN0YXRlRmllbGROYW1lfVxuICAgICAgLz5cbiAgICA8L0NvbGxhcHNpYmxlUGFuZWw+XG4gICk7XG59O1xuXG5DdXN0b21UeXBlU3ViZm9ybS5kaXNwbGF5TmFtZSA9ICdDdXN0b21UeXBlU3ViZm9ybSc7XG5DdXN0b21UeXBlU3ViZm9ybS5wcm9wVHlwZXMgPSB7XG4gIHR5cGVEZWZpbml0aW9uczogUHJvcFR5cGVzLmFycmF5LmlzUmVxdWlyZWQsXG4gIGlzUmVhZE9ubHk6IFByb3BUeXBlcy5ib29sLFxuICBpc0NvbmRlbnNlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGhpZGVFbXB0eUZpZWxkczogUHJvcFR5cGVzLmJvb2wsXG4gIHJvb3RGb3JtU3RhdGVGaWVsZE5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gIHBhbmVsVGl0bGU6IFByb3BUeXBlcy5ub2RlLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQ3VzdG9tVHlwZVN1YmZvcm07XG4iXX0= */"),
10149
10200
  children: jsxRuntime.jsx(uiKit.SelectInput, {
10150
10201
  isClearable: true,
10151
10202
  "data-testid": "custom-type-select",
@@ -10228,7 +10279,7 @@ const defaultValue = {
10228
10279
  const PimIndexerContext = /*#__PURE__*/React.createContext(defaultValue);
10229
10280
 
10230
10281
  var FetchIndicesExist = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchIndicesExist" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "indicesExist" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "products" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchableIndexExists" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "newInProgress" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productTypes" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchableIndexExists" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "newInProgress" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 191, source: { body: "query FetchIndicesExist {\n indicesExist {\n products {\n searchableIndexExists\n newInProgress\n }\n productTypes {\n searchableIndexExists\n newInProgress\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
10231
- var fetchPimIndexStatus = ((apolloClient, projectKey) => async dispatch => {
10282
+ var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
10232
10283
  try {
10233
10284
  await dispatch(sdk.actions.head({
10234
10285
  mcApiProxyTarget: constants.MC_API_PROXY_TARGETS.PIM_SEARCH,
@@ -10266,7 +10317,7 @@ var fetchPimIndexStatus = ((apolloClient, projectKey) => async dispatch => {
10266
10317
  status: 'unreachable'
10267
10318
  };
10268
10319
  }
10269
- });
10320
+ };
10270
10321
 
10271
10322
  var messages$n = reactIntl.defineMessages({
10272
10323
  indexingSucceed: {