"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(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

(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 = _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);

exports.Branch = Branch;

var 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);
});

exports.Wrapper = Wrapper;
;

(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);
})();