"use strict";

exports.__esModule = true;
exports.Root = exports.Leaf = void 0;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _utils = require("../../utils");
var _settings = require("./settings");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
(function () {
  var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
  enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
  return a;
};
var Root = exports.Root = _styledComponents.default.li.withConfig({
  displayName: "Leaf__Root",
  componentId: "sc-1vcyrj3-0"
})(["position:relative;display:flex;align-items:center;"]);
var Leaf = exports.Leaf = (0, _styledComponents.default)(Root).withConfig({
  displayName: "Leaf",
  componentId: "sc-1vcyrj3-1"
})(["&:last-child::after{content:\" \";background-color:", ";position:absolute;top:calc(50%);left:-", "px;bottom:0;height:", "px;width:1px;height:50%;}"], (0, _utils.ifFlag)("dark", (0, _utils.getThemeProp)(["colors", "bgDark"], "#333333"), "#fff"), function (props) {
  return (0, _settings.branchLength)(props) + 1;
}, _settings.branchHeight);
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(Root, "Root", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
  reactHotLoader.register(Leaf, "Leaf", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(Root, "Root", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
  reactHotLoader.register(Leaf, "Leaf", "/home/vsts/work/1/s/src/components/Treeview/Leaf.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();