import './Item.styles_vojgko.css';
import { styled } from '@linaria/react';
import { tokens } from '../../../../Combobox.tokens.js';
import { IconDisclosureRightCentered } from '../../../../../../_Icon/Icons/IconDisclosureRightCentered.js';
import { IconDone } from '../../../../../../_Icon/Icons/IconDone.js';
import { component, mergeConfig } from '../../../../../../../engines/common.js';
import { checkboxConfig } from '../../../../../../Checkbox/Checkbox.js';
import { cellConfig } from '../../../../../../Cell/Cell.js';
import { indicatorConfig } from '../../../../../../Indicator/Indicator.js';

var ItemWrapper = /*#__PURE__*/styled('div')({
  name: "ItemWrapper",
  "class": "i6zdc62",
  propsAsIs: false
});
var mergedCheckboxConfig = /*#__PURE__*/mergeConfig(checkboxConfig);
var Checkbox = /*#__PURE__*/component(mergedCheckboxConfig);
var mergedCellConfig = /*#__PURE__*/mergeConfig(cellConfig);
var Cell = /*#__PURE__*/component(mergedCellConfig);
var mergedIndicatorConfig = /*#__PURE__*/mergeConfig(indicatorConfig);
var Indicator = /*#__PURE__*/component(mergedIndicatorConfig);

// TODO: #1548
var _exp = function _exp() {
  return Cell;
};
var StyledCell = /*#__PURE__*/styled(_exp())({
  name: "StyledCell",
  "class": "swacibr",
  propsAsIs: true
});
var _exp31 = function _exp31() {
  return Checkbox;
};
var StyledCheckbox = /*#__PURE__*/styled(_exp31())({
  name: "StyledCheckbox",
  "class": "s1eith9v",
  propsAsIs: true
});
var _exp46 = function _exp46() {
  return Indicator;
};
var StyledIndicator = /*#__PURE__*/styled(_exp46())({
  name: "StyledIndicator",
  "class": "srzm47e",
  propsAsIs: true
});
var _exp51 = function _exp51() {
  return IconDisclosureRightCentered;
};
var _exp53 = function _exp53() {
  return function (_ref) {
    var _ref$size = _ref.size,
      size = _ref$size === void 0 ? 'xs' : _ref$size;
    return "var(".concat(tokens.disclosureIconSize, ", ").concat({
      xs: "1rem",
      s: "1.5rem"
    }[size], ")");
  };
};
var StyledArrowLeft = /*#__PURE__*/styled(_exp51())({
  name: "StyledArrowLeft",
  "class": "s192qkx1",
  propsAsIs: true,
  vars: {
    "s192qkx1-0": [/*#__PURE__*/_exp53()]
  }
});
var _exp55 = function _exp55() {
  return IconDisclosureRightCentered;
};
var _exp57 = function _exp57() {
  return function (_ref2) {
    var _ref2$size = _ref2.size,
      size = _ref2$size === void 0 ? 'xs' : _ref2$size;
    return "var(".concat(tokens.disclosureIconSize, ", ").concat({
      xs: "1rem",
      s: "1.5rem"
    }[size], ")");
  };
};
var StyledArrowRight = /*#__PURE__*/styled(_exp55())({
  name: "StyledArrowRight",
  "class": "s1q9myss",
  propsAsIs: true,
  vars: {
    "s1q9myss-0": [/*#__PURE__*/_exp57()]
  }
});
var _exp59 = function _exp59() {
  return IconDone;
};
var _exp61 = function _exp61() {
  return function (_ref3) {
    var _ref3$size = _ref3.size,
      size = _ref3$size === void 0 ? 'xs' : _ref3$size;
    return "var(".concat(tokens.disclosureIconSize, ", ").concat({
      xs: "1rem",
      s: "1.5rem"
    }[size], ")");
  };
};
var StyledIconDone = /*#__PURE__*/styled(_exp59())({
  name: "StyledIconDone",
  "class": "s10m1bkx",
  propsAsIs: true,
  vars: {
    "s10m1bkx-0": [/*#__PURE__*/_exp61()]
  }
});
var _exp63 = function _exp63() {
  return function (_ref4) {
    var visibility = _ref4.visibility;
    return visibility || 'visible';
  };
};
var DisclosureIconWrapper = /*#__PURE__*/styled('div')({
  name: "DisclosureIconWrapper",
  "class": "d1r53w2d",
  propsAsIs: false,
  vars: {
    "d1r53w2d-0": [/*#__PURE__*/_exp63()]
  }
});
var _exp66 = function _exp66() {
  return function (_ref5) {
    var variant = _ref5.variant;
    return "var(".concat(variant === 'tight' ? tokens.itemIconSizeTight : tokens.itemIconSize, ")");
  };
};
var IconWrapper = /*#__PURE__*/styled('div')({
  name: "IconWrapper",
  "class": "i1v61vfm",
  propsAsIs: false,
  vars: {
    "i1v61vfm-0": [/*#__PURE__*/_exp66()]
  }
});
var StyledText = /*#__PURE__*/styled('div')({
  name: "StyledText",
  "class": "s6hijvp",
  propsAsIs: false
});
var _exp71 = function _exp71() {
  return function (_ref6) {
    var variant = _ref6.variant;
    return "var(".concat(variant === 'tight' ? tokens.itemPaddingTight : tokens.itemPadding, ")");
  };
};
var Wrapper = /*#__PURE__*/styled('div')({
  name: "Wrapper",
  "class": "w1j1q6dk",
  propsAsIs: false,
  vars: {
    "w1j1q6dk-0": [/*#__PURE__*/_exp71()]
  }
});
var StyledCheckboxWrapper = /*#__PURE__*/styled('span')({
  name: "StyledCheckboxWrapper",
  "class": "s1ftsp23",
  propsAsIs: false
});
var ChildItems = /*#__PURE__*/styled('div')({
  name: "ChildItems",
  "class": "c1utuo68",
  propsAsIs: false
});
var _exp88 = function _exp88() {
  return function (_ref7) {
    var depth = _ref7.depth;
    return depth || 0;
  };
};
var Offset = /*#__PURE__*/styled('div')({
  name: "Offset",
  "class": "o6bsi2w",
  propsAsIs: false,
  vars: {
    "o6bsi2w-0": [/*#__PURE__*/_exp88()]
  }
});

export { ChildItems, DisclosureIconWrapper, IconWrapper, ItemWrapper, Offset, StyledArrowLeft, StyledArrowRight, StyledCell, StyledCheckbox, StyledCheckboxWrapper, StyledIconDone, StyledIndicator, StyledText, Wrapper };
//# sourceMappingURL=Item.styles.js.map
