@bigbinary/neeto-rules-frontend 0.7.2 → 0.8.0-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -279,70 +279,10 @@ var ActionsDetail = function ActionsDetail(_ref) {
279
279
  });
280
280
  };
281
281
 
282
- var OPERATORS$1 = {
283
- or: "or_operator",
284
- and: "and_operator"
285
- };
286
- var OPERATOR_LABELS = {
287
- or_operator: t$5("neetoRules.operators.or"),
288
- and_operator: t$5("neetoRules.operators.and")
289
- };
290
- var VERB_LABELS = {
291
- is: t$5("neetoRules.conditionVerbs.is"),
292
- is_not: t$5("neetoRules.conditionVerbs.isNot"),
293
- contains: t$5("neetoRules.conditionVerbs.contains"),
294
- does_not_contain: t$5("neetoRules.conditionVerbs.doesNotContain"),
295
- contains_any_of: t$5("neetoRules.conditionVerbs.containsAnyOf"),
296
- contains_all_of: t$5("neetoRules.conditionVerbs.containsAllOf"),
297
- contains_none_of: t$5("neetoRules.conditionVerbs.containsNoneOf"),
298
- starts_with: t$5("neetoRules.conditionVerbs.startsWith"),
299
- ends_with: t$5("neetoRules.conditionVerbs.endsWith"),
300
- less_than: t$5("neetoRules.conditionVerbs.lessThan"),
301
- greater_than: t$5("neetoRules.conditionVerbs.greaterThan"),
302
- any_time: t$5("neetoRules.conditionVerbs.anyTime"),
303
- during: t$5("neetoRules.conditionVerbs.during"),
304
- not_during: t$5("neetoRules.conditionVerbs.notDuring"),
305
- any_of: t$5("neetoRules.conditionVerbs.anyOf"),
306
- none_of: t$5("neetoRules.conditionVerbs.noneOf"),
307
- is_before: t$5("neetoRules.conditionVerbs.isBefore"),
308
- is_after: t$5("neetoRules.conditionVerbs.isAfter")
309
- };
310
- var CONDITION_VALUE_TYPES = {
311
- text: "text",
312
- number: "number",
313
- decimal: "decimal",
314
- url: "url",
315
- email: "email",
316
- dropdown: "dropdown",
317
- multiSelect: "multi-select",
318
- multiSelectCreate: "multi-select-create",
319
- date: "date",
320
- regex: "regex",
321
- textarea: "textarea"
322
- };
323
- var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
324
- var MAXIMUM_OPTION_LENGTH$3 = 7;
325
-
326
- var PREVIEW_CONDITION_LIMIT = 3;
327
-
328
- function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
329
- function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
330
282
  var ConditionsDetail = function ConditionsDetail(_ref) {
331
283
  var conditions = _ref.conditions,
332
284
  conditionOptions = _ref.conditionOptions,
333
- _ref$conditionVerbs = _ref.conditionVerbs,
334
- conditionVerbs = _ref$conditionVerbs === void 0 ? {} : _ref$conditionVerbs,
335
- _ref$hasEvent = _ref.hasEvent,
336
- hasEvent = _ref$hasEvent === void 0 ? true : _ref$hasEvent;
337
- var _useState = useState(false),
338
- _useState2 = _slicedToArray$1(_useState, 2),
339
- viewMore = _useState2[0],
340
- setViewMore = _useState2[1];
341
- var _useTranslation = useTranslation(),
342
- t = _useTranslation.t;
343
- var conditionsList = conditions.value;
344
- var allConditions = viewMore && conditionsList.length > PREVIEW_CONDITION_LIMIT ? conditionsList : conditionsList.slice(0, PREVIEW_CONDITION_LIMIT);
345
- var allConditionVerbs = _objectSpread$p(_objectSpread$p({}, VERB_LABELS), conditionVerbs);
285
+ conditionVerbs = _ref.conditionVerbs;
346
286
  var getLogicOperator = function getLogicOperator(joinType) {
347
287
  return joinType === "or_operator" ? "or" : "and";
348
288
  };
@@ -363,7 +303,7 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
363
303
  }));
364
304
  return /*#__PURE__*/jsx$1(MultiSelectValues, {
365
305
  values: values,
366
- separator: t("neetoRules.common.or")
306
+ separator: t$5("neetoRules.common.or")
367
307
  });
368
308
  }
369
309
  if (conditionOption.type === "dropdown") {
@@ -377,12 +317,12 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
377
317
  return null;
378
318
  };
379
319
  var renderCondition = function renderCondition(condition) {
380
- var _allConditionVerbs$co;
320
+ var _conditionVerbs$condi;
381
321
  var conditionOption = findBy({
382
322
  value: condition.field
383
323
  }, conditionOptions);
384
324
  if (!conditionOption) return null;
385
- var conditionVerb = (_allConditionVerbs$co = allConditionVerbs[condition.verb]) === null || _allConditionVerbs$co === void 0 ? void 0 : _allConditionVerbs$co.toLowerCase();
325
+ var conditionVerb = (_conditionVerbs$condi = conditionVerbs[condition.verb]) === null || _conditionVerbs$condi === void 0 ? void 0 : _conditionVerbs$condi.toLowerCase();
386
326
  return /*#__PURE__*/jsxs(Fragment, {
387
327
  children: [/*#__PURE__*/jsx$1(Typography, {
388
328
  className: "neeto-ui-text-gray-800",
@@ -397,46 +337,31 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
397
337
  }), renderConditionValues(condition, conditionOption)]
398
338
  });
399
339
  };
400
- return /*#__PURE__*/jsxs(Fragment, {
401
- children: [/*#__PURE__*/jsx$1("div", {
402
- className: "mt-2",
403
- children: allConditions.map(function (condition, index) {
404
- return /*#__PURE__*/jsxs("div", {
405
- className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
406
- children: [!index && hasEvent && /*#__PURE__*/jsx$1(Typography, {
407
- className: "neeto-ui-text-gray-700",
408
- style: "h5",
409
- weight: "normal",
410
- children: t("neetoRules.common.and", {
411
- what: ""
412
- })
413
- }), !!index && /*#__PURE__*/jsx$1(Typography, {
414
- className: "neeto-ui-text-gray-800",
415
- style: "h5",
416
- weight: "semibold",
417
- children: getLogicOperator(condition.joinType)
418
- }), /*#__PURE__*/jsx$1(Typography, {
419
- className: "neeto-ui-text-gray-700",
420
- style: "h5",
421
- weight: "normal",
422
- children: t("neetoRules.common.when")
423
- }), renderCondition(condition)]
424
- }, condition.id);
425
- })
426
- }), conditionsList.length > 3 && /*#__PURE__*/jsx$1("div", {
427
- className: "mt-3 w-full",
428
- children: /*#__PURE__*/jsx$1(Button, {
429
- icon: !viewMore ? Down : Up,
430
- size: "small",
431
- style: "link",
432
- label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
433
- onClick: function onClick() {
434
- return setViewMore(function (prevState) {
435
- return !prevState;
436
- });
437
- }
438
- })
439
- })]
340
+ return /*#__PURE__*/jsx$1("div", {
341
+ className: "mt-2",
342
+ children: conditions.map(function (condition, index) {
343
+ return /*#__PURE__*/jsxs("div", {
344
+ className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
345
+ children: [!index && /*#__PURE__*/jsx$1(Typography, {
346
+ className: "neeto-ui-text-gray-700",
347
+ style: "h5",
348
+ weight: "normal",
349
+ children: t$5("neetoRules.common.and", {
350
+ what: ""
351
+ })
352
+ }), !!index && /*#__PURE__*/jsx$1(Typography, {
353
+ className: "neeto-ui-text-gray-800",
354
+ style: "h5",
355
+ weight: "semibold",
356
+ children: getLogicOperator(condition.joinType)
357
+ }), /*#__PURE__*/jsx$1(Typography, {
358
+ className: "neeto-ui-text-gray-700",
359
+ style: "h5",
360
+ weight: "normal",
361
+ children: t$5("neetoRules.common.when").toLowerCase()
362
+ }), renderCondition(condition)]
363
+ }, condition.id);
364
+ })
440
365
  });
441
366
  };
442
367
 
@@ -445,17 +370,21 @@ var EventsDetail = function EventsDetail(_ref) {
445
370
  var events = _ref.events,
446
371
  performer = _ref.performer,
447
372
  conditions = _ref.conditions;
448
- var _useTranslation = useTranslation(),
449
- t = _useTranslation.t;
373
+ var _useState = useState(false),
374
+ _useState2 = _slicedToArray$1(_useState, 2),
375
+ viewMore = _useState2[0],
376
+ setViewMore = _useState2[1];
450
377
  var eventNames = pluck("name", events.value);
451
378
  var allEvents = events.eventOptions.filter(function (event) {
452
379
  return eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(event.value);
453
380
  });
381
+ var conditionsList = conditions.value;
382
+ var allConditions = viewMore && conditionsList.length > 3 ? conditionsList : conditionsList.slice(0, 3);
454
383
  var currentPerformer = findBy({
455
384
  value: performer.value
456
385
  }, performer.options);
457
386
  return /*#__PURE__*/jsxs(Title, {
458
- title: t("neetoRules.common.when"),
387
+ title: t$5("neetoRules.common.when"),
459
388
  children: [/*#__PURE__*/jsxs("div", {
460
389
  className: "flex flex-wrap gap-x-2 gap-y-2",
461
390
  children: [allEvents.map(function (event, index) {
@@ -465,12 +394,12 @@ var EventsDetail = function EventsDetail(_ref) {
465
394
  className: "neeto-ui-text-gray-700 my-auto",
466
395
  style: "h5",
467
396
  weight: "normal",
468
- children: t("neetoRules.common.when")
397
+ children: t$5("neetoRules.common.when")
469
398
  }), !!index && /*#__PURE__*/jsx$1(Typography, {
470
399
  className: "neeto-ui-text-gray-700 my-auto",
471
400
  style: "h5",
472
401
  weight: "normal",
473
- children: t("neetoRules.common.or")
402
+ children: t$5("neetoRules.common.or")
474
403
  }), /*#__PURE__*/jsx$1(Typography, {
475
404
  className: "neeto-ui-text-gray-800",
476
405
  style: "h5",
@@ -482,7 +411,7 @@ var EventsDetail = function EventsDetail(_ref) {
482
411
  className: "neeto-ui-text-gray-700",
483
412
  style: "h5",
484
413
  weight: "normal",
485
- children: t("neetoRules.common.by")
414
+ children: t$5("neetoRules.common.by")
486
415
  }), /*#__PURE__*/jsx$1(Typography, {
487
416
  className: "neeto-ui-text-gray-800",
488
417
  style: "h5",
@@ -490,18 +419,30 @@ var EventsDetail = function EventsDetail(_ref) {
490
419
  children: currentPerformer === null || currentPerformer === void 0 || (_currentPerformer$lab = currentPerformer.label) === null || _currentPerformer$lab === void 0 ? void 0 : _currentPerformer$lab.toLowerCase()
491
420
  })]
492
421
  }), /*#__PURE__*/jsx$1(ConditionsDetail, {
493
- conditions: conditions,
494
422
  conditionOptions: conditions.conditionOptions,
495
- conditionVerbs: conditions.verbs
423
+ conditionVerbs: conditions.verbs,
424
+ conditions: allConditions
425
+ }), conditionsList.length > 3 && /*#__PURE__*/jsx$1("div", {
426
+ className: "mt-3 w-full",
427
+ children: /*#__PURE__*/jsx$1(Button, {
428
+ icon: !viewMore ? Down : Up,
429
+ size: "small",
430
+ style: "link",
431
+ label: !viewMore ? t$5("neetoRules.common.viewMore") : t$5("neetoRules.common.viewLess"),
432
+ onClick: function onClick() {
433
+ return setViewMore(function (prevState) {
434
+ return !prevState;
435
+ });
436
+ }
437
+ })
496
438
  })]
497
439
  });
498
440
  };
499
441
 
500
442
  function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
501
443
  function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
502
- var RulePreview = withT(function (_ref) {
503
- var t = _ref.t,
504
- isLoading = _ref.isLoading,
444
+ var RulePreview = function RulePreview(_ref) {
445
+ var isLoading = _ref.isLoading,
505
446
  ruleDetails = _ref.ruleDetails,
506
447
  isOpen = _ref.isOpen,
507
448
  onClose = _ref.onClose,
@@ -544,18 +485,10 @@ var RulePreview = withT(function (_ref) {
544
485
  children: ruleDetails.entity.value
545
486
  })]
546
487
  })]
547
- }), ruleDetails.events && isNotEmpty(ruleDetails.events) ? /*#__PURE__*/jsx$1(EventsDetail, {
488
+ }), /*#__PURE__*/jsx$1(EventsDetail, {
548
489
  conditions: ruleDetails.conditions,
549
490
  events: ruleDetails.events,
550
491
  performer: ruleDetails.performer
551
- }) : /*#__PURE__*/jsx$1(Title, {
552
- title: t("neetoRules.common.when"),
553
- children: /*#__PURE__*/jsx$1(ConditionsDetail, {
554
- conditionOptions: ruleDetails.conditions.conditionOptions,
555
- conditionVerbs: ruleDetails.conditions.verbs,
556
- conditions: ruleDetails.conditions,
557
- hasEvent: false
558
- })
559
492
  }), /*#__PURE__*/jsx$1(ActionsDetail, {
560
493
  actions: ruleDetails.actions
561
494
  })]
@@ -563,7 +496,7 @@ var RulePreview = withT(function (_ref) {
563
496
  })]
564
497
  })
565
498
  });
566
- });
499
+ };
567
500
 
568
501
  function _typeof$2(o) {
569
502
  "@babel/helpers - typeof";
@@ -9953,9 +9886,53 @@ var DEFAULT_RULE_ACTION = {
9953
9886
  };
9954
9887
  var EDITOR_ADDONS = ["code-block", "block-quote", "image-upload"];
9955
9888
  var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
9956
- var MAXIMUM_OPTION_LENGTH$2 = 7;
9889
+ var MAXIMUM_OPTION_LENGTH$3 = 7;
9957
9890
  var ACTION_INPUT_TYPES = ["text", "number", "decimal", "regex"];
9958
9891
 
9892
+ var OPERATORS$1 = {
9893
+ or: "or_operator",
9894
+ and: "and_operator"
9895
+ };
9896
+ var OPERATOR_LABELS = {
9897
+ or_operator: t$5("neetoRules.operators.or"),
9898
+ and_operator: t$5("neetoRules.operators.and")
9899
+ };
9900
+ var VERB_LABELS = {
9901
+ is: t$5("neetoRules.conditionVerbs.is"),
9902
+ is_not: t$5("neetoRules.conditionVerbs.isNot"),
9903
+ contains: t$5("neetoRules.conditionVerbs.contains"),
9904
+ does_not_contain: t$5("neetoRules.conditionVerbs.doesNotContain"),
9905
+ contains_any_of: t$5("neetoRules.conditionVerbs.containsAnyOf"),
9906
+ contains_all_of: t$5("neetoRules.conditionVerbs.containsAllOf"),
9907
+ contains_none_of: t$5("neetoRules.conditionVerbs.containsNoneOf"),
9908
+ starts_with: t$5("neetoRules.conditionVerbs.startsWith"),
9909
+ ends_with: t$5("neetoRules.conditionVerbs.endsWith"),
9910
+ less_than: t$5("neetoRules.conditionVerbs.lessThan"),
9911
+ greater_than: t$5("neetoRules.conditionVerbs.greaterThan"),
9912
+ any_time: t$5("neetoRules.conditionVerbs.anyTime"),
9913
+ during: t$5("neetoRules.conditionVerbs.during"),
9914
+ not_during: t$5("neetoRules.conditionVerbs.notDuring"),
9915
+ any_of: t$5("neetoRules.conditionVerbs.anyOf"),
9916
+ none_of: t$5("neetoRules.conditionVerbs.noneOf"),
9917
+ is_before: t$5("neetoRules.conditionVerbs.isBefore"),
9918
+ is_after: t$5("neetoRules.conditionVerbs.isAfter")
9919
+ };
9920
+ var CONDITION_VALUE_TYPES = {
9921
+ text: "text",
9922
+ number: "number",
9923
+ decimal: "decimal",
9924
+ url: "url",
9925
+ email: "email",
9926
+ dropdown: "dropdown",
9927
+ multiSelect: "multi-select",
9928
+ multiSelectCreate: "multi-select-create",
9929
+ date: "date",
9930
+ regex: "regex",
9931
+ textarea: "textarea"
9932
+ };
9933
+ var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
9934
+ var MAXIMUM_OPTION_LENGTH$2 = 7;
9935
+
9959
9936
  function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9960
9937
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9961
9938
  var getSchemaForStrings = function getSchemaForStrings(element) {
@@ -11038,7 +11015,7 @@ var DropdownField$1 = function DropdownField(_ref) {
11038
11015
  onClose: handleClose,
11039
11016
  children: /*#__PURE__*/jsxs(Menu$a, {
11040
11017
  className: "max-h-60 max-w-2xl p-3",
11041
- children: [dropdownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsx$1(Input$2, {
11018
+ children: [dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsx$1(Input$2, {
11042
11019
  autoFocus: true,
11043
11020
  className: "mb-1",
11044
11021
  "data-cy": "search-text-field",
@@ -11052,7 +11029,7 @@ var DropdownField$1 = function DropdownField(_ref) {
11052
11029
  return e.stopPropagation();
11053
11030
  }
11054
11031
  }), /*#__PURE__*/jsx$1(OptionsWrapper, {
11055
- hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$2,
11032
+ hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3,
11056
11033
  children: searchedOptions.map(function (option, idx) {
11057
11034
  return /*#__PURE__*/jsx$1(MenuItem$9.Button, {
11058
11035
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
@@ -11686,7 +11663,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11686
11663
  onClose: handleClose,
11687
11664
  children: /*#__PURE__*/jsxs(Menu$9, {
11688
11665
  className: "max-h-60 max-w-2xl p-3",
11689
- children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsx$1(Input$2, {
11666
+ children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsx$1(Input$2, {
11690
11667
  autoFocus: true,
11691
11668
  className: "mb-1",
11692
11669
  "data-cy": "search-text-field",
@@ -11697,7 +11674,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11697
11674
  return setSearchTerm(e.target.value);
11698
11675
  }
11699
11676
  }), /*#__PURE__*/jsx$1(OptionsWrapper, {
11700
- hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2,
11677
+ hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3,
11701
11678
  children: searchedOptions.map(function (option, idx) {
11702
11679
  return /*#__PURE__*/jsx$1(MenuItem$8.Button, {
11703
11680
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
@@ -20381,7 +20358,7 @@ var DropdownField = function DropdownField(_ref) {
20381
20358
  onClose: handleClose,
20382
20359
  children: /*#__PURE__*/jsxs(Menu$6, {
20383
20360
  className: "max-h-60 max-w-2xl p-3",
20384
- children: [options.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsx$1(Input$2, {
20361
+ children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsx$1(Input$2, {
20385
20362
  autoFocus: true,
20386
20363
  className: "mb-1",
20387
20364
  "data-cy": "search-text-field",
@@ -20395,7 +20372,7 @@ var DropdownField = function DropdownField(_ref) {
20395
20372
  return e.stopPropagation();
20396
20373
  }
20397
20374
  }), /*#__PURE__*/jsx$1(OptionsWrapper, {
20398
- hasScroll: options.length > MAXIMUM_OPTION_LENGTH$3,
20375
+ hasScroll: options.length > MAXIMUM_OPTION_LENGTH$2,
20399
20376
  children: searchedOptions.map(function (option, idx) {
20400
20377
  return /*#__PURE__*/jsx$1(MenuItem$6.Button, {
20401
20378
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
@@ -20503,7 +20480,7 @@ var Dropdown = function Dropdown(_ref) {
20503
20480
  onClose: handleClose,
20504
20481
  children: /*#__PURE__*/jsxs(Menu$5, {
20505
20482
  className: "max-h-60 max-w-2xl p-3",
20506
- children: [options.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsx$1(Input$2, {
20483
+ children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsx$1(Input$2, {
20507
20484
  autoFocus: true,
20508
20485
  className: "mb-1",
20509
20486
  "data-cy": "search-text-field",
@@ -20517,7 +20494,7 @@ var Dropdown = function Dropdown(_ref) {
20517
20494
  return e.stopPropagation();
20518
20495
  }
20519
20496
  }), /*#__PURE__*/jsx$1(OptionsWrapper, {
20520
- hasScroll: options.length > MAXIMUM_OPTION_LENGTH$3,
20497
+ hasScroll: options.length > MAXIMUM_OPTION_LENGTH$2,
20521
20498
  children: searchedOptions.map(function (option, idx) {
20522
20499
  return /*#__PURE__*/jsx$1(MenuItem$5.Button, {
20523
20500
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
@@ -20677,7 +20654,7 @@ var MultiSelect = function MultiSelect(_ref) {
20677
20654
  onClose: handleClose,
20678
20655
  children: /*#__PURE__*/jsxs(Menu$4, {
20679
20656
  className: "max-h-60 max-w-2xl p-3",
20680
- children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsx$1(Input$2, {
20657
+ children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsx$1(Input$2, {
20681
20658
  autoFocus: true,
20682
20659
  className: "mb-1",
20683
20660
  "data-cy": "search-text-field",
@@ -20688,7 +20665,7 @@ var MultiSelect = function MultiSelect(_ref) {
20688
20665
  return setSearchTerm(e.target.value);
20689
20666
  }
20690
20667
  }), /*#__PURE__*/jsx$1(OptionsWrapper, {
20691
- hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3,
20668
+ hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2,
20692
20669
  children: searchedOptions.map(function (option, idx) {
20693
20670
  return /*#__PURE__*/jsx$1(MenuItem$4.Button, {
20694
20671
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),