require('./Tree.styles_kj4lgh.css');
'use strict';

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

var react = require('@linaria/react');
var IconDisclosureRightCentered = require('../_Icon/Icons/IconDisclosureRightCentered.js');
var IconFolder = require('../_Icon/Icons/IconFolder.js');
var Tree_tokens = require('./Tree.tokens.js');
var common = require('../../engines/common.js');
var Spinner$1 = require('../Spinner/Spinner.js');

var mergedConfig = /*#__PURE__*/common.mergeConfig(Spinner$1.spinnerConfig);
var Spinner = /*#__PURE__*/common.component(mergedConfig);
var IconArrowWrapper = /*#__PURE__*/react.styled('div')({
  name: "IconArrowWrapper",
  "class": "i14fjwwd",
  propsAsIs: false
});
var _exp4 = function _exp4() {
  return IconDisclosureRightCentered.IconDisclosureRightCentered;
};
var StyledArrow = /*#__PURE__*/react.styled(_exp4())({
  name: "StyledArrow",
  "class": "s19rm9wr",
  propsAsIs: true
});
var _exp5 = function _exp5() {
  return IconFolder.IconFolder;
};
var StyledFolder = /*#__PURE__*/react.styled(_exp5())({
  name: "StyledFolder",
  "class": "snqzh3x",
  propsAsIs: true
});
var _exp6 = function _exp6() {
  return function (_ref) {
    var arrowPlacement = _ref.arrowPlacement,
      fullWidthItemSelection = _ref.fullWidthItemSelection;
    return arrowPlacement === 'left' && !fullWidthItemSelection ? "var(".concat(Tree_tokens.treeTokens.iconFolderMargin, ")") : 0;
  };
};
var _exp7 = function _exp7() {
  return function (_ref2) {
    var singleLine = _ref2.singleLine;
    return singleLine ? 'hidden' : 'visible';
  };
};
var TitleWrapper = /*#__PURE__*/react.styled('div')({
  name: "TitleWrapper",
  "class": "t10eh6k4",
  propsAsIs: false,
  vars: {
    "t10eh6k4-0": [/*#__PURE__*/_exp6()],
    "t10eh6k4-1": [/*#__PURE__*/_exp7()]
  }
});
var _exp9 = function _exp9() {
  return function (_ref3) {
    var singleLine = _ref3.singleLine;
    return singleLine ? 'hidden' : 'visible';
  };
};
var _exp0 = function _exp0() {
  return function (_ref4) {
    var singleLine = _ref4.singleLine;
    return singleLine ? 'ellipsis' : 'unset';
  };
};
var _exp1 = function _exp1() {
  return function (_ref5) {
    var singleLine = _ref5.singleLine;
    return singleLine ? 'nowrap' : 'normal';
  };
};
var Title = /*#__PURE__*/react.styled('span')({
  name: "Title",
  "class": "t14cot0j",
  propsAsIs: false,
  vars: {
    "t14cot0j-0": [/*#__PURE__*/_exp9()],
    "t14cot0j-1": [/*#__PURE__*/_exp0()],
    "t14cot0j-2": [/*#__PURE__*/_exp1()]
  }
});
var ContentRight = /*#__PURE__*/react.styled('div')({
  name: "ContentRight",
  "class": "cjqdo4u",
  propsAsIs: false
});
var _exp10 = function _exp10() {
  return function (_ref6) {
    var dropPosition = _ref6.dropPosition,
      variant = _ref6.variant;
    return dropPosition === -1 ? "calc(var(".concat(variant === 'normal' ? Tree_tokens.treeTokens.itemPaddingTop : Tree_tokens.treeTokens.itemPaddingTightTop, ") * -1)") : 'auto';
  };
};
var _exp11 = function _exp11() {
  return function (_ref7) {
    var left = _ref7.left;
    return left;
  };
};
var _exp12 = function _exp12() {
  return function (_ref8) {
    var dropPosition = _ref8.dropPosition,
      variant = _ref8.variant;
    return dropPosition !== -1 ? "calc(var(".concat(variant === 'normal' ? Tree_tokens.treeTokens.itemPaddingBottom : Tree_tokens.treeTokens.itemPaddingTightBottom, ") * -1)") : 'auto';
  };
};
var Line = /*#__PURE__*/react.styled('div')({
  name: "Line",
  "class": "l1qt8j90",
  propsAsIs: false,
  vars: {
    "l1qt8j90-0": [/*#__PURE__*/_exp10()],
    "l1qt8j90-1": [/*#__PURE__*/_exp11(), "px"],
    "l1qt8j90-2": [/*#__PURE__*/_exp12()]
  }
});
var base = "b8jc5jg";
var _exp81 = function _exp81() {
  return Spinner;
};
var SpinnerStyled = /*#__PURE__*/react.styled(_exp81())({
  name: "SpinnerStyled",
  "class": "s1q7x1qm",
  propsAsIs: true
});

exports.ContentRight = ContentRight;
exports.IconArrowWrapper = IconArrowWrapper;
exports.Line = Line;
exports.SpinnerStyled = SpinnerStyled;
exports.StyledArrow = StyledArrow;
exports.StyledFolder = StyledFolder;
exports.Title = Title;
exports.TitleWrapper = TitleWrapper;
exports.base = base;
