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ACJ,KACA,CAAE,UAAW,WAAY,QAAwC,GAA9B,EAAK,UAAY,IAAI,QACxD,MAAM,cAAc,EAAe,CAAE,KAAM,MAG/C,MAAM,cACJ,KACA,MACC,EAAK,UAAY,IAAI,OAAS,GAAK,GAEtC,MAAM,cACJ,KACA,KACA,GAEF,MAAM,cACJ,KACA,KACA,IAIR,CAKE,CAAe,GAEnB,EAEA,OAAO,QAAU","file":"/npm/react-orgchart@1.0.5/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/react-orgchart@1.0.5/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\n\nvar React = require('react');\n\nvar OrgChart = function OrgChart(_ref) {\n  var tree = _ref.tree,\n      NodeComponent = _ref.NodeComponent;\n\n\n  var renderChildren = function renderChildren(node) {\n\n    var hasSiblingRight = function hasSiblingRight(childIndex) {\n      return (node.children || []).length > childIndex + 1;\n    };\n\n    var hasSiblingLeft = function hasSiblingLeft(childIndex) {\n      return childIndex > 0;\n    };\n\n    var nodeLineBelow = React.createElement(\n      \"td\",\n      { colSpan: (node.children || []).length * 2, className: \"nodeGroupCellLines\" },\n      React.createElement(\n        \"table\",\n        { className: \"nodeLineTable\" },\n        React.createElement(\n          \"tbody\",\n          null,\n          React.createElement(\n            \"tr\",\n            null,\n            React.createElement(\"td\", { colSpan: 2, className: \"nodeLineCell nodeGroupLineVerticalMiddle\" }),\n            React.createElement(\"td\", { colSpan: 2, className: \"nodeLineCell\" })\n          )\n        )\n      )\n    );\n\n    var childrenLinesAbove = (node.children || []).map(function (child, childIndex) {\n      return React.createElement(\n        \"td\",\n        { colSpan: \"2\", className: \"nodeGroupCellLines\", key: childIndex },\n        React.createElement(\n          \"table\",\n          { className: \"nodeLineTable\" },\n          React.createElement(\n            \"tbody\",\n            null,\n            React.createElement(\n              \"tr\",\n              null,\n              React.createElement(\"td\", { colSpan: 2, className: \"nodeLineCell nodeGroupLineVerticalMiddle\" + (hasSiblingLeft(childIndex) ? ' nodeLineBorderTop' : '') }),\n              React.createElement(\"td\", { colSpan: 2, className: \"nodeLineCell\" + (hasSiblingRight(childIndex) ? \" nodeLineBorderTop\" : \"\") })\n            )\n          )\n        )\n      );\n    });\n\n    var children = (node.children || []).map(function (child, childIndex) {\n      return React.createElement(\n        \"td\",\n        { colSpan: \"2\", className: \"nodeGroupCell\", key: childIndex },\n        renderChildren(child)\n      );\n    });\n\n    return React.createElement(\n      \"table\",\n      { className: \"orgNodeChildGroup\" },\n      React.createElement(\n        \"tbody\",\n        null,\n        React.createElement(\n          \"tr\",\n          null,\n          React.createElement(\n            \"td\",\n            { className: \"nodeCell\", colSpan: (node.children || []).length * 2 },\n            React.createElement(NodeComponent, { node: node })\n          )\n        ),\n        React.createElement(\n          \"tr\",\n          null,\n          (node.children || []).length > 0 && nodeLineBelow\n        ),\n        React.createElement(\n          \"tr\",\n          null,\n          childrenLinesAbove\n        ),\n        React.createElement(\n          \"tr\",\n          null,\n          children\n        )\n      )\n    );\n  };\n\n  return React.createElement(\n    \"div\",\n    { className: \"reactOrgChart\" },\n    renderChildren(tree)\n  );\n};\n\nmodule.exports = OrgChart;"]}