@bjsdistribution/dms-client-return 0.1.45-prod → 0.1.46-prod

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.
@@ -16435,39 +16435,20 @@ function Print() {
16435
16435
  });
16436
16436
  var menuItems = {
16437
16437
  items: filteredOptions == null ? void 0 : filteredOptions.map(function (option) {
16438
- var disabled = isOptionDisabled(option.value);
16438
+ // const disabled = isOptionDisabled(option.value);
16439
16439
  return {
16440
16440
  key: option.value,
16441
- disabled: disabled,
16442
16441
  label: React__default.createElement("div", {
16443
16442
  onClick: function onClick(e) {
16444
16443
  e.stopPropagation();
16445
- if (!disabled) {
16446
- handleSelectChange(option);
16447
- }
16448
- },
16449
- style: {
16450
- color: disabled ? '#bfbfbf' : undefined,
16451
- cursor: disabled ? 'not-allowed' : 'pointer'
16444
+ // if (!disabled) {
16445
+ handleSelectChange(option);
16446
+ // }
16452
16447
  }
16453
16448
  }, option.label)
16454
16449
  };
16455
16450
  })
16456
16451
  };
16457
- var optionToLabelKey = {
16458
- proofofdelivery: 'deliver',
16459
- returnlabels: 'return',
16460
- returncovernote: 'collect'
16461
- };
16462
- var isOptionDisabled = function isOptionDisabled(optionValue) {
16463
- var labels = orderDetails == null ? void 0 : orderDetails.labels;
16464
- // If labels not loaded yet → disable all
16465
- if (!labels) return true;
16466
- var labelKey = optionToLabelKey[optionValue];
16467
- // If option does not require a label → always enabled
16468
- if (!labelKey) return false;
16469
- return labels[labelKey] !== true;
16470
- };
16471
16452
  return React__default.createElement(Container$1k, null, React__default.createElement(antd.Dropdown, {
16472
16453
  menu: menuItems,
16473
16454
  trigger: ['hover']