import OverflowTooltip from '../../coreX/OverflowTooltip/index.js';
import { Select } from 'antd';
import React__default from 'react';

var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
  enumerable: true,
  configurable: true,
  writable: true,
  value
}) : obj[key] = value;
var __spreadValues = (a, b) => {
  for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
  if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
    if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
  }
  return a;
};
var __objRest = (source, exclude) => {
  var target = {};
  for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
  if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
    if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
  }
  return target;
};
const OptionStyle = "E_4100_0_7_oa99sl3";
const LeftStyle = "E_4100_0_7_lvp5pj7";
const SlotStyle = "E_4100_0_7_s1io1lws";
const AntdOption = Select.Option;
function getOptions(options) {
  return options.map(option => {
    const _a = option,
      {
        prefix,
        suffix,
        children
      } = _a,
      restProps = __objRest(_a, ["prefix", "suffix", "children"]);
    return /* @__PURE__ */React__default.createElement(AntdOption, __spreadValues({}, restProps), /* @__PURE__ */React__default.createElement("div", {
      className: OptionStyle
    }, /* @__PURE__ */React__default.createElement("span", {
      className: LeftStyle
    }, prefix ? /* @__PURE__ */React__default.createElement("span", {
      className: SlotStyle
    }, prefix) : null, /* @__PURE__ */React__default.createElement(OverflowTooltip, {
      content: children
    })), suffix ? /* @__PURE__ */React__default.createElement("span", {
      className: SlotStyle
    }, suffix) : null));
  });
}

export { getOptions };
