"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = exports.badgeSelectItemBuilder = void 0;
var _react = _interopRequireDefault(require("react"));
var _BadgeSelectItemSt = require("./BadgeSelectItem.st.css.js");
var _ListItemSelect = _interopRequireDefault(require("../ListItemSelect"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/BadgeSelectItem/BadgeSelectItem.tsx";
var BadgeSelectItem = _ref => {
  var {
    dataHook,
    skin,
    text,
    subtitle,
    ellipsis,
    selected,
    highlighted,
    disabled,
    className,
    size,
    suffix
  } = _ref;
  var prefix = /*#__PURE__*/_react.default.createElement("div", {
    className: (0, _BadgeSelectItemSt.st)(_BadgeSelectItemSt.classes.marker, {
      skin
    }),
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 23,
      columnNumber: 18
    }
  });
  return /*#__PURE__*/_react.default.createElement(_ListItemSelect.default, {
    className: (0, _BadgeSelectItemSt.st)(_BadgeSelectItemSt.classes.root, className),
    title: text,
    ellipsis: ellipsis,
    dataHook: dataHook,
    prefix: prefix,
    selected: selected,
    highlighted: highlighted,
    disabled: disabled,
    subtitle: subtitle,
    size: size,
    suffix: suffix,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 26,
      columnNumber: 5
    }
  });
};
var _default = exports.default = BadgeSelectItem;
var badgeSelectItemBuilder = _ref2 => {
  var {
    id,
    className,
    text,
    skin,
    subtitle,
    ellipsis,
    disabled,
    dataHook,
    size,
    suffix
  } = _ref2;
  return {
    id,
    disabled,
    overrideOptionStyle: true,
    value: _ref3 => {
      var {
        selected,
        hovered,
        disabled: optionDisabled
      } = _ref3;
      return /*#__PURE__*/_react.default.createElement(BadgeSelectItem, {
        dataHook: dataHook,
        className: className,
        skin: skin,
        text: text,
        subtitle: subtitle,
        ellipsis: ellipsis,
        selected: selected,
        highlighted: hovered,
        disabled: optionDisabled,
        size: size,
        suffix: suffix,
        __self: void 0,
        __source: {
          fileName: _jsxFileName,
          lineNumber: 60,
          columnNumber: 5
        }
      });
    }
  };
};
exports.badgeSelectItemBuilder = badgeSelectItemBuilder;
//# sourceMappingURL=BadgeSelectItem.js.map