"use strict";

exports.__esModule = true;
exports.NonIndicator = exports.Label = exports.Indicator = exports.BeforeIndicator = void 0;
var _styledComponents = _interopRequireWildcard(require("styled-components"));
var _Icon = _interopRequireDefault(require("../Icon"));
var _utils = require("../../utils");
var _settings = require("./settings");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
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 Indicator = exports.Indicator = (0, _styledComponents.default)(_Icon.default).attrs(function (props) {
  return {
    id: (0, _utils.ifFlag)("open", (0, _utils.getThemeProp)(["icons", "indicators", "down"], "chevron-down"), (0, _utils.getThemeProp)(["icons", "indicators", "right"], "chevron-right"))(props)
  };
}).withConfig({
  displayName: "Label__Indicator",
  componentId: "sc-eaonh1-0"
})(["font-size:10px;padding:10px 0 10px 10px;cursor:pointer;flex:0 0 auto;color:", ";"], (0, _utils.ifFlag)("open", (0, _utils.ifFlag)("dark", (0, _utils.getThemeProp)(["colors", "textLight"], "#cccccc"), (0, _utils.getThemeProp)(["colors", "text"], "#333333")), (0, _utils.getThemeProp)(["colors", "application", "base"], "#ffffff")));
var BeforeIndicator = exports.BeforeIndicator = _styledComponents.default.div.withConfig({
  displayName: "Label__BeforeIndicator",
  componentId: "sc-eaonh1-1"
})(["background-color:#666;margin-left:-", "px;width:", "px;height:1px;z-index:99;position:absolute;"], function (props) {
  return (0, _settings.branchLength)(props) + 1;
}, function (props) {
  return (0, _settings.branchLength)(props) + 1;
});
var NonIndicator = exports.NonIndicator = _styledComponents.default.div.withConfig({
  displayName: "Label__NonIndicator",
  componentId: "sc-eaonh1-2"
})(["height:1px;width:", "px;margin:auto 0 auto -", "px;background-color:#666;align-self:stretch;flex:0 0 auto;z-index:99;"], function (props) {
  return (0, _settings.branchLength)(props) + 21;
}, function (props) {
  return (0, _settings.branchLength)(props) + 1;
});
var Label = exports.Label = _styledComponents.default.div.withConfig({
  displayName: "Label",
  componentId: "sc-eaonh1-3"
})(["cursor:pointer;flex-grow:1;width:100%;", ";"], (0, _utils.ifFlag)("isSelectedNode", (0, _styledComponents.css)(["background-color:#222;border:1px solid ", ";"], (0, _utils.getThemeProp)(["colors", "application", "base"], "#0F4E66"))));
;
(function () {
  var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
  if (!reactHotLoader) {
    return;
  }
  reactHotLoader.register(Indicator, "Indicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
  reactHotLoader.register(BeforeIndicator, "BeforeIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
  reactHotLoader.register(NonIndicator, "NonIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
  reactHotLoader.register(Label, "Label", "/home/vsts/work/1/s/src/components/Treeview/Label.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(Indicator, "Indicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
  reactHotLoader.register(BeforeIndicator, "BeforeIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
  reactHotLoader.register(NonIndicator, "NonIndicator", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
  reactHotLoader.register(Label, "Label", "/home/vsts/work/1/s/src/components/Treeview/Label.js");
})();
;
(function () {
  var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
  leaveModule && leaveModule(module);
})();