"use strict";

exports.__esModule = true;
exports.Wrapper = exports.Branch = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _utils = require("../../utils");
var _settings = require("./settings");
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
(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 baseBranch = (0, _styledComponents.css)(["margin:0;font-size:13px;list-style-type:none;border-width:0;border-style:solid;border-color:#666;position:relative;"]);
var Branch = exports.Branch = _styledComponents.default.ul.withConfig({
  displayName: "Branch",
  componentId: "sc-17ib2ll-0"
})(["", " margin-left:", "px;padding:0;padding-left:", "px;border-left-width:1px;&:last-child::after{content:\" \";background-color:", ";position:absolute;left:-", "px;bottom:0;top:-", "px;width:1px;}"], baseBranch, _settings.branchIndent, _settings.branchLength, (0, _utils.ifFlag)("dark", (0, _utils.getThemeProp)(["colors", "bgDark"], "#333333"), "#fff"), function (props) {
  return (0, _settings.branchIndent)(props) + (0, _settings.branchLength)(props) + 2;
}, _settings.branchHeight);
var Wrapper = exports.Wrapper = _styledComponents.default.ul.withConfig({
  displayName: "Branch__Wrapper",
  componentId: "sc-17ib2ll-1"
})(["", " overflow-y:auto;overflow-x:hidden;margin-left:0;padding:", "px;& > ", "{margin-left:", "px;}"], baseBranch, function (props) {
  return (0, _settings.branchLength)(props) - 5;
}, Branch, function (props) {
  return 1.5 * (0, _settings.branchIndent)(props);
});
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(baseBranch, "baseBranch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
  reactHotLoader.register(Branch, "Branch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
  reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Treeview/Branch.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(baseBranch, "baseBranch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
  reactHotLoader.register(Branch, "Branch", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
  reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Treeview/Branch.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();