require('./Item.styles_qei8qp.css');
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var react = require('@linaria/react');
var Select_tokens = require('../../../../Select.tokens.js');
var IconDone = require('../../../../../_Icon/Icons/IconDone.js');
var IconDisclosureRightCentered = require('../../../../../_Icon/Icons/IconDisclosureRightCentered.js');
var common = require('../../../../../../engines/common.js');
var Checkbox$1 = require('../../../../../Checkbox/Checkbox.js');
var Cell$1 = require('../../../../../Cell/Cell.js');
var Indicator$1 = require('../../../../../Indicator/Indicator.js');

var mergedCheckboxConfig = /*#__PURE__*/common.mergeConfig(Checkbox$1.checkboxConfig);
var Checkbox = /*#__PURE__*/common.component(mergedCheckboxConfig);
var mergedCellConfig = /*#__PURE__*/common.mergeConfig(Cell$1.cellConfig);
var Cell = /*#__PURE__*/common.component(mergedCellConfig);
var mergedIndicatorConfig = /*#__PURE__*/common.mergeConfig(Indicator$1.indicatorConfig);
var Indicator = /*#__PURE__*/common.component(mergedIndicatorConfig);

// TODO: #1548
var _exp = function _exp() {
  return Cell;
};
var StyledCell = /*#__PURE__*/react.styled(_exp())({
  name: "StyledCell",
  "class": "sl878xc",
  propsAsIs: true
});
var _exp29 = function _exp29() {
  return Checkbox;
};
var StyledCheckbox = /*#__PURE__*/react.styled(_exp29())({
  name: "StyledCheckbox",
  "class": "s1yh4c6",
  propsAsIs: true
});
var _exp44 = function _exp44() {
  return Indicator;
};
var StyledIndicator = /*#__PURE__*/react.styled(_exp44())({
  name: "StyledIndicator",
  "class": "si5kabj",
  propsAsIs: true
});

// TODO: Удалить после поддержки JS переменных в конфиге компонент
var sizeMap = {
  xs: '1rem',
  s: '1.5rem'
};
var _exp49 = function _exp49() {
  return IconDisclosureRightCentered.IconDisclosureRightCentered;
};
var _exp51 = function _exp51() {
  return function (_ref) {
    var _ref$size = _ref.size,
      size = _ref$size === void 0 ? 'xs' : _ref$size;
    return "var(".concat(Select_tokens.tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
  };
};
var StyledArrow = /*#__PURE__*/react.styled(_exp49())({
  name: "StyledArrow",
  "class": "s1iktnu9",
  propsAsIs: true,
  vars: {
    "s1iktnu9-0": [/*#__PURE__*/_exp51()]
  }
});
var _exp52 = function _exp52() {
  return IconDone.IconDone;
};
var _exp54 = function _exp54() {
  return function (_ref2) {
    var _ref2$size = _ref2.size,
      size = _ref2$size === void 0 ? 'xs' : _ref2$size;
    return "var(".concat(Select_tokens.tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
  };
};
var StyledIconDone = /*#__PURE__*/react.styled(_exp52())({
  name: "StyledIconDone",
  "class": "s199d5f1",
  propsAsIs: true,
  vars: {
    "s199d5f1-0": [/*#__PURE__*/_exp54()]
  }
});
var DisclosureIconWrapper = /*#__PURE__*/react.styled('div')({
  name: "DisclosureIconWrapper",
  "class": "dzjbsdr",
  propsAsIs: false
});
var _exp61 = function _exp61() {
  return function (_ref3) {
    var variant = _ref3.variant;
    return "var(".concat(variant === 'tight' ? Select_tokens.tokens.itemIconSizeTight : Select_tokens.tokens.itemIconSize, ")");
  };
};
var IconWrapper = /*#__PURE__*/react.styled('div')({
  name: "IconWrapper",
  "class": "i1s68lu8",
  propsAsIs: false,
  vars: {
    "i1s68lu8-0": [/*#__PURE__*/_exp61()]
  }
});
var StyledText = /*#__PURE__*/react.styled('div')({
  name: "StyledText",
  "class": "sc4ekwr",
  propsAsIs: false
});
var _exp66 = function _exp66() {
  return function (_ref4) {
    var variant = _ref4.variant;
    return "var(".concat(variant === 'tight' ? Select_tokens.tokens.itemPaddingTight : Select_tokens.tokens.itemPadding, ")");
  };
};
var Wrapper = /*#__PURE__*/react.styled('li')({
  name: "Wrapper",
  "class": "w1174w0h",
  propsAsIs: false,
  vars: {
    "w1174w0h-0": [/*#__PURE__*/_exp66()]
  }
});
var StyledCheckboxWrapper = /*#__PURE__*/react.styled('span')({
  name: "StyledCheckboxWrapper",
  "class": "s1wmah2s",
  propsAsIs: false
});

exports.DisclosureIconWrapper = DisclosureIconWrapper;
exports.IconWrapper = IconWrapper;
exports.StyledArrow = StyledArrow;
exports.StyledCell = StyledCell;
exports.StyledCheckbox = StyledCheckbox;
exports.StyledCheckboxWrapper = StyledCheckboxWrapper;
exports.StyledIconDone = StyledIconDone;
exports.StyledIndicator = StyledIndicator;
exports.StyledText = StyledText;
exports.Wrapper = Wrapper;
exports.sizeMap = sizeMap;
