@bigbinary/neeto-rules-frontend 0.7.0 → 0.7.2

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.cjs.js CHANGED
@@ -330,10 +330,70 @@ var ActionsDetail = function ActionsDetail(_ref) {
330
330
  });
331
331
  };
332
332
 
333
+ var OPERATORS$1 = {
334
+ or: "or_operator",
335
+ and: "and_operator"
336
+ };
337
+ var OPERATOR_LABELS = {
338
+ or_operator: i18next.t("neetoRules.operators.or"),
339
+ and_operator: i18next.t("neetoRules.operators.and")
340
+ };
341
+ var VERB_LABELS = {
342
+ is: i18next.t("neetoRules.conditionVerbs.is"),
343
+ is_not: i18next.t("neetoRules.conditionVerbs.isNot"),
344
+ contains: i18next.t("neetoRules.conditionVerbs.contains"),
345
+ does_not_contain: i18next.t("neetoRules.conditionVerbs.doesNotContain"),
346
+ contains_any_of: i18next.t("neetoRules.conditionVerbs.containsAnyOf"),
347
+ contains_all_of: i18next.t("neetoRules.conditionVerbs.containsAllOf"),
348
+ contains_none_of: i18next.t("neetoRules.conditionVerbs.containsNoneOf"),
349
+ starts_with: i18next.t("neetoRules.conditionVerbs.startsWith"),
350
+ ends_with: i18next.t("neetoRules.conditionVerbs.endsWith"),
351
+ less_than: i18next.t("neetoRules.conditionVerbs.lessThan"),
352
+ greater_than: i18next.t("neetoRules.conditionVerbs.greaterThan"),
353
+ any_time: i18next.t("neetoRules.conditionVerbs.anyTime"),
354
+ during: i18next.t("neetoRules.conditionVerbs.during"),
355
+ not_during: i18next.t("neetoRules.conditionVerbs.notDuring"),
356
+ any_of: i18next.t("neetoRules.conditionVerbs.anyOf"),
357
+ none_of: i18next.t("neetoRules.conditionVerbs.noneOf"),
358
+ is_before: i18next.t("neetoRules.conditionVerbs.isBefore"),
359
+ is_after: i18next.t("neetoRules.conditionVerbs.isAfter")
360
+ };
361
+ var CONDITION_VALUE_TYPES = {
362
+ text: "text",
363
+ number: "number",
364
+ decimal: "decimal",
365
+ url: "url",
366
+ email: "email",
367
+ dropdown: "dropdown",
368
+ multiSelect: "multi-select",
369
+ multiSelectCreate: "multi-select-create",
370
+ date: "date",
371
+ regex: "regex",
372
+ textarea: "textarea"
373
+ };
374
+ var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
375
+ var MAXIMUM_OPTION_LENGTH$3 = 7;
376
+
377
+ var PREVIEW_CONDITION_LIMIT = 3;
378
+
379
+ 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; }
380
+ 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; }
333
381
  var ConditionsDetail = function ConditionsDetail(_ref) {
334
382
  var conditions = _ref.conditions,
335
383
  conditionOptions = _ref.conditionOptions,
336
- conditionVerbs = _ref.conditionVerbs;
384
+ _ref$conditionVerbs = _ref.conditionVerbs,
385
+ conditionVerbs = _ref$conditionVerbs === void 0 ? {} : _ref$conditionVerbs,
386
+ _ref$hasEvent = _ref.hasEvent,
387
+ hasEvent = _ref$hasEvent === void 0 ? true : _ref$hasEvent;
388
+ var _useState = React.useState(false),
389
+ _useState2 = _slicedToArray$1(_useState, 2),
390
+ viewMore = _useState2[0],
391
+ setViewMore = _useState2[1];
392
+ var _useTranslation = reactI18next.useTranslation(),
393
+ t = _useTranslation.t;
394
+ var conditionsList = conditions.value;
395
+ var allConditions = viewMore && conditionsList.length > PREVIEW_CONDITION_LIMIT ? conditionsList : conditionsList.slice(0, PREVIEW_CONDITION_LIMIT);
396
+ var allConditionVerbs = _objectSpread$p(_objectSpread$p({}, VERB_LABELS), conditionVerbs);
337
397
  var getLogicOperator = function getLogicOperator(joinType) {
338
398
  return joinType === "or_operator" ? "or" : "and";
339
399
  };
@@ -354,7 +414,7 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
354
414
  }));
355
415
  return /*#__PURE__*/jsxRuntime.jsx(MultiSelectValues, {
356
416
  values: values,
357
- separator: i18next.t("neetoRules.common.or")
417
+ separator: t("neetoRules.common.or")
358
418
  });
359
419
  }
360
420
  if (conditionOption.type === "dropdown") {
@@ -368,12 +428,12 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
368
428
  return null;
369
429
  };
370
430
  var renderCondition = function renderCondition(condition) {
371
- var _conditionVerbs$condi;
431
+ var _allConditionVerbs$co;
372
432
  var conditionOption = neetoCist.findBy({
373
433
  value: condition.field
374
434
  }, conditionOptions);
375
435
  if (!conditionOption) return null;
376
- var conditionVerb = (_conditionVerbs$condi = conditionVerbs[condition.verb]) === null || _conditionVerbs$condi === void 0 ? void 0 : _conditionVerbs$condi.toLowerCase();
436
+ var conditionVerb = (_allConditionVerbs$co = allConditionVerbs[condition.verb]) === null || _allConditionVerbs$co === void 0 ? void 0 : _allConditionVerbs$co.toLowerCase();
377
437
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
378
438
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
379
439
  className: "neeto-ui-text-gray-800",
@@ -388,31 +448,46 @@ var ConditionsDetail = function ConditionsDetail(_ref) {
388
448
  }), renderConditionValues(condition, conditionOption)]
389
449
  });
390
450
  };
391
- return /*#__PURE__*/jsxRuntime.jsx("div", {
392
- className: "mt-2",
393
- children: conditions.map(function (condition, index) {
394
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
395
- className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
396
- children: [!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
397
- className: "neeto-ui-text-gray-700",
398
- style: "h5",
399
- weight: "normal",
400
- children: i18next.t("neetoRules.common.and", {
401
- what: ""
402
- })
403
- }), !!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
404
- className: "neeto-ui-text-gray-800",
405
- style: "h5",
406
- weight: "semibold",
407
- children: getLogicOperator(condition.joinType)
408
- }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
409
- className: "neeto-ui-text-gray-700",
410
- style: "h5",
411
- weight: "normal",
412
- children: i18next.t("neetoRules.common.when").toLowerCase()
413
- }), renderCondition(condition)]
414
- }, condition.id);
415
- })
451
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
452
+ children: [/*#__PURE__*/jsxRuntime.jsx("div", {
453
+ className: "mt-2",
454
+ children: allConditions.map(function (condition, index) {
455
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
456
+ className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
457
+ children: [!index && hasEvent && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
458
+ className: "neeto-ui-text-gray-700",
459
+ style: "h5",
460
+ weight: "normal",
461
+ children: t("neetoRules.common.and", {
462
+ what: ""
463
+ })
464
+ }), !!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
465
+ className: "neeto-ui-text-gray-800",
466
+ style: "h5",
467
+ weight: "semibold",
468
+ children: getLogicOperator(condition.joinType)
469
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
470
+ className: "neeto-ui-text-gray-700",
471
+ style: "h5",
472
+ weight: "normal",
473
+ children: t("neetoRules.common.when")
474
+ }), renderCondition(condition)]
475
+ }, condition.id);
476
+ })
477
+ }), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
478
+ className: "mt-3 w-full",
479
+ children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
480
+ icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
481
+ size: "small",
482
+ style: "link",
483
+ label: !viewMore ? t("neetoRules.common.viewMore") : t("neetoRules.common.viewLess"),
484
+ onClick: function onClick() {
485
+ return setViewMore(function (prevState) {
486
+ return !prevState;
487
+ });
488
+ }
489
+ })
490
+ })]
416
491
  });
417
492
  };
418
493
 
@@ -421,21 +496,17 @@ var EventsDetail = function EventsDetail(_ref) {
421
496
  var events = _ref.events,
422
497
  performer = _ref.performer,
423
498
  conditions = _ref.conditions;
424
- var _useState = React.useState(false),
425
- _useState2 = _slicedToArray$1(_useState, 2),
426
- viewMore = _useState2[0],
427
- setViewMore = _useState2[1];
499
+ var _useTranslation = reactI18next.useTranslation(),
500
+ t = _useTranslation.t;
428
501
  var eventNames = ramda.pluck("name", events.value);
429
502
  var allEvents = events.eventOptions.filter(function (event) {
430
503
  return eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(event.value);
431
504
  });
432
- var conditionsList = conditions.value;
433
- var allConditions = viewMore && conditionsList.length > 3 ? conditionsList : conditionsList.slice(0, 3);
434
505
  var currentPerformer = neetoCist.findBy({
435
506
  value: performer.value
436
507
  }, performer.options);
437
508
  return /*#__PURE__*/jsxRuntime.jsxs(Title, {
438
- title: i18next.t("neetoRules.common.when"),
509
+ title: t("neetoRules.common.when"),
439
510
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
440
511
  className: "flex flex-wrap gap-x-2 gap-y-2",
441
512
  children: [allEvents.map(function (event, index) {
@@ -445,12 +516,12 @@ var EventsDetail = function EventsDetail(_ref) {
445
516
  className: "neeto-ui-text-gray-700 my-auto",
446
517
  style: "h5",
447
518
  weight: "normal",
448
- children: i18next.t("neetoRules.common.when")
519
+ children: t("neetoRules.common.when")
449
520
  }), !!index && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
450
521
  className: "neeto-ui-text-gray-700 my-auto",
451
522
  style: "h5",
452
523
  weight: "normal",
453
- children: i18next.t("neetoRules.common.or")
524
+ children: t("neetoRules.common.or")
454
525
  }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
455
526
  className: "neeto-ui-text-gray-800",
456
527
  style: "h5",
@@ -462,7 +533,7 @@ var EventsDetail = function EventsDetail(_ref) {
462
533
  className: "neeto-ui-text-gray-700",
463
534
  style: "h5",
464
535
  weight: "normal",
465
- children: i18next.t("neetoRules.common.by")
536
+ children: t("neetoRules.common.by")
466
537
  }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
467
538
  className: "neeto-ui-text-gray-800",
468
539
  style: "h5",
@@ -470,22 +541,9 @@ var EventsDetail = function EventsDetail(_ref) {
470
541
  children: currentPerformer === null || currentPerformer === void 0 || (_currentPerformer$lab = currentPerformer.label) === null || _currentPerformer$lab === void 0 ? void 0 : _currentPerformer$lab.toLowerCase()
471
542
  })]
472
543
  }), /*#__PURE__*/jsxRuntime.jsx(ConditionsDetail, {
544
+ conditions: conditions,
473
545
  conditionOptions: conditions.conditionOptions,
474
- conditionVerbs: conditions.verbs,
475
- conditions: allConditions
476
- }), conditionsList.length > 3 && /*#__PURE__*/jsxRuntime.jsx("div", {
477
- className: "mt-3 w-full",
478
- children: /*#__PURE__*/jsxRuntime.jsx(Button__default["default"], {
479
- icon: !viewMore ? neetoIcons.Down : neetoIcons.Up,
480
- size: "small",
481
- style: "link",
482
- label: !viewMore ? i18next.t("neetoRules.common.viewMore") : i18next.t("neetoRules.common.viewLess"),
483
- onClick: function onClick() {
484
- return setViewMore(function (prevState) {
485
- return !prevState;
486
- });
487
- }
488
- })
546
+ conditionVerbs: conditions.verbs
489
547
  })]
490
548
  });
491
549
  };
@@ -508,73 +566,47 @@ var RulePreview = reactUtils.withT(function (_ref) {
508
566
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
509
567
  className: "flex items-center justify-between gap-x-3",
510
568
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
511
- style: "h2",
569
+ className: "line-clamp-2",
570
+ style: "h4",
512
571
  weight: "semibold",
513
- children: t("neetoRules.labels.ruleSummary")
572
+ children: ruleDetails.name.value
514
573
  }), neetoCist.isNotEmpty(moreDropdownProps) && /*#__PURE__*/jsxRuntime.jsx(MoreDropdown__default["default"], _objectSpread$o({}, moreDropdownProps))]
515
574
  })
516
575
  }), /*#__PURE__*/jsxRuntime.jsx(Pane__default["default"].Body, {
517
576
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
518
- className: "w-full",
577
+ className: "mt-2 w-full",
519
578
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
520
- className: "neeto-ui-rounded mb-4 border p-4",
521
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
522
- className: "mb-3 flex flex-wrap justify-between gap-x-4",
579
+ className: "mb-6",
580
+ children: [ruleDetails.description && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
581
+ className: "my-auto mb-4",
582
+ style: "body2",
583
+ children: ruleDetails.description.value
584
+ }), ruleDetails.entity && /*#__PURE__*/jsxRuntime.jsxs("div", {
585
+ className: "flex space-x-8",
523
586
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
524
- className: "neeto-ui-text-gray-700 my-auto",
587
+ className: "neeto-ui-text-gray-800 col-span-1",
525
588
  style: "h5",
526
589
  weight: "semibold",
527
- children: t("neetoRules.common.name")
528
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
529
- className: "flex w-72 flex-wrap",
530
- children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
531
- className: "neeto-ui-text-gray-800 my-auto",
532
- style: "h5",
533
- weight: "normal",
534
- children: ruleDetails.name.value
535
- })
536
- })]
537
- }), ruleDetails.description && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
538
- children: [/*#__PURE__*/jsxRuntime.jsx("hr", {}), /*#__PURE__*/jsxRuntime.jsxs("div", {
539
- className: "my-3 flex flex-wrap justify-between gap-x-2",
540
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
541
- className: "neeto-ui-text-gray-700 my-auto",
542
- style: "h5",
543
- weight: "semibold",
544
- children: t("neetoRules.common.description")
545
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
546
- className: "flex w-72 flex-wrap",
547
- children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
548
- className: "neeto-ui-text-gray-800 my-auto",
549
- style: "h5",
550
- weight: "normal",
551
- children: ruleDetails.description.value
552
- })
553
- })]
554
- })]
555
- }), ruleDetails.entity && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
556
- children: [/*#__PURE__*/jsxRuntime.jsx("hr", {}), /*#__PURE__*/jsxRuntime.jsxs("div", {
557
- className: "my-3 flex flex-wrap justify-between gap-x-2",
558
- children: [/*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
559
- className: "neeto-ui-text-gray-700 my-auto",
560
- style: "h5",
561
- weight: "semibold",
562
- children: ruleDetails.entity.label
563
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
564
- className: "flex w-72 flex-wrap",
565
- children: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
566
- className: "neeto-ui-text-gray-800 my-auto",
567
- style: "h5",
568
- weight: "normal",
569
- children: ruleDetails.entity.value
570
- })
571
- })]
590
+ children: ruleDetails.entity.label
591
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
592
+ className: "neeto-ui-text-gray-800 col-span-2",
593
+ style: "h5",
594
+ weight: "normal",
595
+ children: ruleDetails.entity.value
572
596
  })]
573
597
  })]
574
- }), /*#__PURE__*/jsxRuntime.jsx(EventsDetail, {
598
+ }), ruleDetails.events && neetoCist.isNotEmpty(ruleDetails.events) ? /*#__PURE__*/jsxRuntime.jsx(EventsDetail, {
575
599
  conditions: ruleDetails.conditions,
576
600
  events: ruleDetails.events,
577
601
  performer: ruleDetails.performer
602
+ }) : /*#__PURE__*/jsxRuntime.jsx(Title, {
603
+ title: t("neetoRules.common.when"),
604
+ children: /*#__PURE__*/jsxRuntime.jsx(ConditionsDetail, {
605
+ conditionOptions: ruleDetails.conditions.conditionOptions,
606
+ conditionVerbs: ruleDetails.conditions.verbs,
607
+ conditions: ruleDetails.conditions,
608
+ hasEvent: false
609
+ })
578
610
  }), /*#__PURE__*/jsxRuntime.jsx(ActionsDetail, {
579
611
  actions: ruleDetails.actions
580
612
  })]
@@ -9972,52 +10004,8 @@ var DEFAULT_RULE_ACTION = {
9972
10004
  };
9973
10005
  var EDITOR_ADDONS = ["code-block", "block-quote", "image-upload"];
9974
10006
  var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
9975
- var MAXIMUM_OPTION_LENGTH$3 = 7;
9976
- var ACTION_INPUT_TYPES = ["text", "number", "decimal", "regex"];
9977
-
9978
- var OPERATORS$1 = {
9979
- or: "or_operator",
9980
- and: "and_operator"
9981
- };
9982
- var OPERATOR_LABELS = {
9983
- or_operator: i18next.t("neetoRules.operators.or"),
9984
- and_operator: i18next.t("neetoRules.operators.and")
9985
- };
9986
- var VERB_LABELS = {
9987
- is: i18next.t("neetoRules.conditionVerbs.is"),
9988
- is_not: i18next.t("neetoRules.conditionVerbs.isNot"),
9989
- contains: i18next.t("neetoRules.conditionVerbs.contains"),
9990
- does_not_contain: i18next.t("neetoRules.conditionVerbs.doesNotContain"),
9991
- contains_any_of: i18next.t("neetoRules.conditionVerbs.containsAnyOf"),
9992
- contains_all_of: i18next.t("neetoRules.conditionVerbs.containsAllOf"),
9993
- contains_none_of: i18next.t("neetoRules.conditionVerbs.containsNoneOf"),
9994
- starts_with: i18next.t("neetoRules.conditionVerbs.startsWith"),
9995
- ends_with: i18next.t("neetoRules.conditionVerbs.endsWith"),
9996
- less_than: i18next.t("neetoRules.conditionVerbs.lessThan"),
9997
- greater_than: i18next.t("neetoRules.conditionVerbs.greaterThan"),
9998
- any_time: i18next.t("neetoRules.conditionVerbs.anyTime"),
9999
- during: i18next.t("neetoRules.conditionVerbs.during"),
10000
- not_during: i18next.t("neetoRules.conditionVerbs.notDuring"),
10001
- any_of: i18next.t("neetoRules.conditionVerbs.anyOf"),
10002
- none_of: i18next.t("neetoRules.conditionVerbs.noneOf"),
10003
- is_before: i18next.t("neetoRules.conditionVerbs.isBefore"),
10004
- is_after: i18next.t("neetoRules.conditionVerbs.isAfter")
10005
- };
10006
- var CONDITION_VALUE_TYPES = {
10007
- text: "text",
10008
- number: "number",
10009
- decimal: "decimal",
10010
- url: "url",
10011
- email: "email",
10012
- dropdown: "dropdown",
10013
- multiSelect: "multi-select",
10014
- multiSelectCreate: "multi-select-create",
10015
- date: "date",
10016
- regex: "regex",
10017
- textarea: "textarea"
10018
- };
10019
- var INPUT_FIELD_TYPES = ["email", "text", "number", "decimal", "url", "regex"];
10020
10007
  var MAXIMUM_OPTION_LENGTH$2 = 7;
10008
+ var ACTION_INPUT_TYPES = ["text", "number", "decimal", "regex"];
10021
10009
 
10022
10010
  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; }
10023
10011
  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; }
@@ -11101,7 +11089,7 @@ var DropdownField$1 = function DropdownField(_ref) {
11101
11089
  onClose: handleClose,
11102
11090
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$a, {
11103
11091
  className: "max-h-60 max-w-2xl p-3",
11104
- children: [dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11092
+ children: [dropdownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11105
11093
  autoFocus: true,
11106
11094
  className: "mb-1",
11107
11095
  "data-cy": "search-text-field",
@@ -11115,7 +11103,7 @@ var DropdownField$1 = function DropdownField(_ref) {
11115
11103
  return e.stopPropagation();
11116
11104
  }
11117
11105
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
11118
- hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3,
11106
+ hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$2,
11119
11107
  children: searchedOptions.map(function (option, idx) {
11120
11108
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$9.Button, {
11121
11109
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -11749,7 +11737,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11749
11737
  onClose: handleClose,
11750
11738
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$9, {
11751
11739
  className: "max-h-60 max-w-2xl p-3",
11752
- children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11740
+ children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
11753
11741
  autoFocus: true,
11754
11742
  className: "mb-1",
11755
11743
  "data-cy": "search-text-field",
@@ -11760,7 +11748,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
11760
11748
  return setSearchTerm(e.target.value);
11761
11749
  }
11762
11750
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
11763
- hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3,
11751
+ hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2,
11764
11752
  children: searchedOptions.map(function (option, idx) {
11765
11753
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$8.Button, {
11766
11754
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -20444,7 +20432,7 @@ var DropdownField = function DropdownField(_ref) {
20444
20432
  onClose: handleClose,
20445
20433
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$6, {
20446
20434
  className: "max-h-60 max-w-2xl p-3",
20447
- children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20435
+ children: [options.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20448
20436
  autoFocus: true,
20449
20437
  className: "mb-1",
20450
20438
  "data-cy": "search-text-field",
@@ -20458,7 +20446,7 @@ var DropdownField = function DropdownField(_ref) {
20458
20446
  return e.stopPropagation();
20459
20447
  }
20460
20448
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
20461
- hasScroll: options.length > MAXIMUM_OPTION_LENGTH$2,
20449
+ hasScroll: options.length > MAXIMUM_OPTION_LENGTH$3,
20462
20450
  children: searchedOptions.map(function (option, idx) {
20463
20451
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$6.Button, {
20464
20452
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -20566,7 +20554,7 @@ var Dropdown = function Dropdown(_ref) {
20566
20554
  onClose: handleClose,
20567
20555
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$5, {
20568
20556
  className: "max-h-60 max-w-2xl p-3",
20569
- children: [options.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20557
+ children: [options.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20570
20558
  autoFocus: true,
20571
20559
  className: "mb-1",
20572
20560
  "data-cy": "search-text-field",
@@ -20580,7 +20568,7 @@ var Dropdown = function Dropdown(_ref) {
20580
20568
  return e.stopPropagation();
20581
20569
  }
20582
20570
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
20583
- hasScroll: options.length > MAXIMUM_OPTION_LENGTH$2,
20571
+ hasScroll: options.length > MAXIMUM_OPTION_LENGTH$3,
20584
20572
  children: searchedOptions.map(function (option, idx) {
20585
20573
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$5.Button, {
20586
20574
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
@@ -20740,7 +20728,7 @@ var MultiSelect = function MultiSelect(_ref) {
20740
20728
  onClose: handleClose,
20741
20729
  children: /*#__PURE__*/jsxRuntime.jsxs(Menu$4, {
20742
20730
  className: "max-h-60 max-w-2xl p-3",
20743
- children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20731
+ children: [dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3 && /*#__PURE__*/jsxRuntime.jsx(Input__default["default"], {
20744
20732
  autoFocus: true,
20745
20733
  className: "mb-1",
20746
20734
  "data-cy": "search-text-field",
@@ -20751,7 +20739,7 @@ var MultiSelect = function MultiSelect(_ref) {
20751
20739
  return setSearchTerm(e.target.value);
20752
20740
  }
20753
20741
  }), /*#__PURE__*/jsxRuntime.jsx(OptionsWrapper, {
20754
- hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$2,
20742
+ hasScroll: dropDownOptions.length > MAXIMUM_OPTION_LENGTH$3,
20755
20743
  children: searchedOptions.map(function (option, idx) {
20756
20744
  return /*#__PURE__*/jsxRuntime.jsx(MenuItem$4.Button, {
20757
20745
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),