"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getSingleSelectValue = void 0;
var getSingleSelectValue = exports.getSingleSelectValue = function getSingleSelectValue(value) {
  if (!value.length) {
    return [];
  }
  if (!value.some(function (x) {
    return x.options;
  })) {
    return value;
  }
  return value.find(function (x) {
    return x.options;
  }).options;
};