(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-42f4ba39"],{1659:function(t,e,a){"use strict";a.r(e);var r=(a("d3b7"),a("5530")),s=a("2b0e").a.extend({name:"TeamTree",components:{"app-icon":function(){return Promise.all([a.e("chunk-0a381f90"),a.e("chunk-38af0870")]).then(a.bind(null,"73f7"))}},props:{treeData:{type:Array,default:function(){return[]}},teams:{type:Array,default:function(){return[]}},showTree:{type:Boolean,default:!0}},methods:{clickChild:function(t,e){this.$emit("click-child",Object(r.a)({parentName:e},t))},goPre:function(t){this.$emit("click-bread",t)}}}),n=a("2877"),l=Object(n.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"tree text-text-primary"},[r("div",{staticClass:"bread py-3 flex items-center overflow-x-auto"},t._l(t.teams,(function(e,a){return r("div",{key:e.id,staticClass:"pre flex items-center flex-shrink-0",class:a===t.teams.length-1?"text-color-primary":"text-text-secondary",on:{click:function(a){return t.goPre(e)}}},[r("div",{staticClass:"flex-shrink-0"},[t._v(t._s(e.name))]),a<t.teams.length-1?r("div",[r("app-icon",{attrs:{"icon-name":"left-arrow","class-name":"w-3 h-3 transform rotate-180 ml-1 mr-2"}})],1):t._e()])})),0),t.treeData&&t.treeData.length>0&&t.showTree?r("div",{staticClass:"children"},t._l(t.treeData,(function(e,s){return r("div",{key:e.id,staticClass:"child-wrapper py-3 relative pl-10",on:{click:function(a){return t.clickChild(e,e.name)}}},[r("div",{staticClass:"left-border w-0.5 bg-border-lighter absolute left-3 top-0",class:s<t.treeData.length-1?"h-full":"h-1/2"}),r("div",{staticClass:"left absolute z-10 left-6 h-1.5 w-1.5 bg-color-primary rounded-sm top-1/2 transform -translate-y-1/2"}),r("div",{staticClass:"absolute w-3 h-0.5 left-3 bg-border-lighter top-1/2 transform -translate-y-1/2"}),r("div",{staticClass:"title"},[t._v(t._s(e.name)+" "+t._s(e.staffNum?"("+e.staffNum+")":""))]),r("div",{staticClass:"dot absolute right-3 top-1/2 transform -translate-y-1/2"},[r("app-icon",{attrs:{type:"png",path:a("8562"),"class-name":"h-5 w-1"}})],1)])})),0):t._e()])}),[],!1,null,null,null);e.default=l.exports},8562:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABQBAMAAADiheg+AAAAFVBMVEXT3+ZHcEzU4OfV4efU4ebU4OfU4Of77TwFAAAAB3RSTlP/ANUrj5S9u+Ck7AAAAEtJREFUKM9jEBQ0UWByFhRkEBRlAIJAICMBxGATZAALAIUYDCAMZgYHCIOFQQHCYGLABHApuGK4driBcCsQlsKdAQWDhzEaPkMofACcnCKJPi+oxwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=chunk-42f4ba39.27ade033.js.map