v-org-tree.umd.min.js 23 KB

1
  1. (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["v-org-tree"]=n():t["v-org-tree"]=n()})("undefined"!==typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"01f9":function(t,n,e){"use strict";var r=e("2d00"),o=e("5ca1"),i=e("2aba"),a=e("32e9"),c=e("84f2"),u=e("41a0"),f=e("7f20"),s=e("38fd"),p=e("2b4c")("iterator"),l=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",v="values",b=function(){return this};t.exports=function(t,n,e,y,x,_,g){u(e,n,y);var m,w,S,O=function(t){if(!l&&t in T)return T[t];switch(t){case h:return function(){return new e(this,t)};case v:return function(){return new e(this,t)}}return function(){return new e(this,t)}},E=n+" Iterator",j=x==v,P=!1,T=t.prototype,C=T[p]||T[d]||x&&T[x],N=C||O(x),A=x?j?O("entries"):N:void 0,M="Array"==n&&T.entries||C;if(M&&(S=s(M.call(new t)),S!==Object.prototype&&S.next&&(f(S,E,!0),r||"function"==typeof S[p]||a(S,p,b))),j&&C&&C.name!==v&&(P=!0,N=function(){return C.call(this)}),r&&!g||!l&&!P&&T[p]||a(T,p,N),c[n]=N,c[E]=b,x)if(m={values:j?N:O(v),keys:_?N:O(h),entries:A},g)for(w in m)w in T||i(T,w,m[w]);else o(o.P+o.F*(l||P),n,m);return m}},"07e3":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"0d58":function(t,n,e){var r=e("ce10"),o=e("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"11e9":function(t,n,e){var r=e("52a7"),o=e("4630"),i=e("6821"),a=e("6a99"),c=e("69a8"),u=e("c69a"),f=Object.getOwnPropertyDescriptor;n.f=e("9e1e")?f:function(t,n){if(t=i(t),n=a(n,!0),u)try{return f(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},1495:function(t,n,e){var r=e("86cc"),o=e("cb7c"),i=e("0d58");t.exports=e("9e1e")?Object.defineProperties:function(t,n){o(t);var e,a=i(n),c=a.length,u=0;while(c>u)r.f(t,e=a[u++],n[e]);return t}},"1af6":function(t,n,e){var r=e("63b6");r(r.S,"Array",{isArray:e("9003")})},"1bc3":function(t,n,e){var r=e("f772");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,n,e){var r=e("f772"),o=e("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"230e":function(t,n,e){var r=e("d3f4"),o=e("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"294c":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"2aba":function(t,n,e){var r=e("7726"),o=e("32e9"),i=e("69a8"),a=e("ca5a")("src"),c=e("fa5b"),u="toString",f=(""+c).split(u);e("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var u="function"==typeof e;u&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(u&&(i(e,a)||o(e,a,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(t,n,e){var r=e("cb7c"),o=e("1495"),i=e("e11e"),a=e("613b")("IE_PROTO"),c=function(){},u="prototype",f=function(){var t,n=e("230e")("iframe"),r=i.length,o="<",a=">";n.style.display="none",e("fab2").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),f=t.F;while(r--)delete f[u][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[u]=r(t),e=new c,c[u]=null,e[a]=t):e=f(),void 0===n?e:o(e,n)}},"2b4c":function(t,n,e){var r=e("5537")("wks"),o=e("ca5a"),i=e("7726").Symbol,a="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};c.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"32e9":function(t,n,e){var r=e("86cc"),o=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"35e8":function(t,n,e){var r=e("d9f6"),o=e("aebd");t.exports=e("8e60")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"38fd":function(t,n,e){var r=e("69a8"),o=e("4bf8"),i=e("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,n,e){"use strict";var r=e("2aeb"),o=e("4630"),i=e("7f20"),a={};e("32e9")(a,e("2b4c")("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(a,{next:o(1,e)}),i(t,n+" Iterator")}},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"4bf8":function(t,n,e){var r=e("be13");t.exports=function(t){return Object(r(t))}},"52a7":function(t,n){n.f={}.propertyIsEnumerable},5537:function(t,n,e){var r=e("8378"),o=e("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,n){return a[t]||(a[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"584a":function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},"5ca1":function(t,n,e){var r=e("7726"),o=e("8378"),i=e("32e9"),a=e("2aba"),c=e("9b43"),u="prototype",f=function(t,n,e){var s,p,l,d,h=t&f.F,v=t&f.G,b=t&f.S,y=t&f.P,x=t&f.B,_=v?r:b?r[n]||(r[n]={}):(r[n]||{})[u],g=v?o:o[n]||(o[n]={}),m=g[u]||(g[u]={});for(s in v&&(e=n),e)p=!h&&_&&void 0!==_[s],l=(p?_:e)[s],d=x&&p?c(l,r):y&&"function"==typeof l?c(Function.call,l):l,_&&a(_,s,l,t&f.U),g[s]!=l&&i(g,s,d),y&&m[s]!=l&&(m[s]=l)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},"5dbc":function(t,n,e){var r=e("d3f4"),o=e("8b97").set;t.exports=function(t,n,e){var i,a=n.constructor;return a!==e&&"function"==typeof a&&(i=a.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},"613b":function(t,n,e){var r=e("5537")("keys"),o=e("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,n,e){var r=e("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"63b6":function(t,n,e){var r=e("e53d"),o=e("584a"),i=e("d864"),a=e("35e8"),c=e("07e3"),u="prototype",f=function(t,n,e){var s,p,l,d=t&f.F,h=t&f.G,v=t&f.S,b=t&f.P,y=t&f.B,x=t&f.W,_=h?o:o[n]||(o[n]={}),g=_[u],m=h?r:v?r[n]:(r[n]||{})[u];for(s in h&&(e=n),e)p=!d&&m&&void 0!==m[s],p&&c(_,s)||(l=p?m[s]:e[s],_[s]=h&&"function"!=typeof m[s]?e[s]:y&&p?i(l,r):x&&m[s]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[u]=t[u],n}(l):b&&"function"==typeof l?i(Function.call,l):l,b&&((_.virtual||(_.virtual={}))[s]=l,t&f.R&&g&&!g[s]&&a(g,s,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},6821:function(t,n,e){var r=e("626a"),o=e("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},"77f1":function(t,n,e){var r=e("4588"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},"794b":function(t,n,e){t.exports=!e("8e60")&&!e("294c")(function(){return 7!=Object.defineProperty(e("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"7f20":function(t,n,e){var r=e("86cc").f,o=e("69a8"),i=e("2b4c")("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},"7f7f":function(t,n,e){var r=e("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||e("9e1e")&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8378:function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},"84f2":function(t,n){t.exports={}},"86cc":function(t,n,e){var r=e("cb7c"),o=e("c69a"),i=e("6a99"),a=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return a(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"8b97":function(t,n,e){var r=e("d3f4"),o=e("cb7c"),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e("9b43")(Function.call,e("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(o){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},"8e60":function(t,n,e){t.exports=!e("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},9003:function(t,n,e){var r=e("6b4c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},9093:function(t,n,e){var r=e("ce10"),o=e("e11e").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"9c6c":function(t,n,e){var r=e("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&e("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,n,e){var r=e("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a745:function(t,n,e){t.exports=e("f410")},aa77:function(t,n,e){var r=e("5ca1"),o=e("be13"),i=e("79e5"),a=e("fdef"),c="["+a+"]",u="​…",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),p=function(t,n,e){var o={},c=i(function(){return!!a[t]()||u[t]()!=u}),f=o[t]=c?n(l):a[t];e&&(o[e]=f),r(r.P+r.F*c,"String",o)},l=p.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};t.exports=p},ac6a:function(t,n,e){for(var r=e("cadf"),o=e("0d58"),i=e("2aba"),a=e("7726"),c=e("32e9"),u=e("84f2"),f=e("2b4c"),s=f("iterator"),p=f("toStringTag"),l=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(d),v=0;v<h.length;v++){var b,y=h[v],x=d[y],_=a[y],g=_&&_.prototype;if(g&&(g[s]||c(g,s,l),g[p]||c(g,p,y),u[y]=l,x))for(b in r)g[b]||i(g,b,r[b],!0)}},aebd:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},bcfc:function(t,n,e){},be13:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,n,e){var r=e("6821"),o=e("9def"),i=e("77f1");t.exports=function(t){return function(n,e,a){var c,u=r(n),f=o(u.length),s=i(a,f);if(t&&e!=e){while(f>s)if(c=u[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in u)&&u[s]===e)return t||s||0;return!t&&-1}}},c5f6:function(t,n,e){"use strict";var r=e("7726"),o=e("69a8"),i=e("2d95"),a=e("5dbc"),c=e("6a99"),u=e("79e5"),f=e("9093").f,s=e("11e9").f,p=e("86cc").f,l=e("aa77").trim,d="Number",h=r[d],v=h,b=h.prototype,y=i(e("2aeb")(b))==d,x="trim"in String.prototype,_=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=x?n.trim():l(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var a,u=n.slice(2),f=0,s=u.length;f<s;f++)if(a=u.charCodeAt(f),a<48||a>o)return NaN;return parseInt(u,r)}}return+n};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof h&&(y?u(function(){b.valueOf.call(e)}):i(e)!=d)?a(new v(_(n)),e,h):_(n)};for(var g,m=e("9e1e")?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;m.length>w;w++)o(v,g=m[w])&&!o(h,g)&&p(h,g,s(v,g));h.prototype=b,b.constructor=h,e("2aba")(r,d,h)}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")(function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cadf:function(t,n,e){"use strict";var r=e("9c6c"),o=e("d53b"),i=e("84f2"),a=e("6821");t.exports=e("01f9")(Array,"Array",function(t,n){this._t=a(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,n,e){var r=e("69a8"),o=e("6821"),i=e("c366")(!1),a=e("613b")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),u=0,f=[];for(e in c)e!=a&&r(c,e)&&f.push(e);while(n.length>u)r(c,e=n[u++])&&(~i(f,e)||f.push(e));return f}},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},d864:function(t,n,e){var r=e("79aa");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,n,e){var r=e("e4ae"),o=e("794b"),i=e("1bc3"),a=Object.defineProperty;n.f=e("8e60")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return a(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},da0a:function(t,n,e){"use strict";function r(t){return Object.prototype.toString.call(t).slice(8,-1)}function o(t){let n=[];function e(t){if(t&&"Object"===r(t)){if(-1!==n.indexOf(t))return!0;for(var o in n.push(t),t)if(!0===t.hasOwnProperty(o)&&e(t[o]))return!0}return!1}return e(t)}const i=function(t){if(null===t||void 0===t)return;const n=r(t);if("Date"===n){let n=new Date;return n.setTime(t.getTime()),n}if("Object"===n){if(!0===o(t))return t;let n={};for(let e in t)n[e]=i(t[e]);return n}if("Array"===n){let n=[];for(var e=0;e<t.length;e++)n.push(i(t[e]));return n}return t};t.exports=i},e11e:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,n,e){var r=e("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},f410:function(t,n,e){e("1af6"),t.exports=e("584a").Array.isArray},f772:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,n,e){t.exports=e("5537")("native-function-to-string",Function.toString)},fab2:function(t,n,e){var r=e("7726").document;t.exports=r&&r.documentElement},fb15:function(t,n,e){"use strict";var r;(e.r(n),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(e.p=r[1]));e("7f7f");var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"org-tree-container"},[e("div",{staticClass:"org-tree",class:{horizontal:t.horizontal,collapsable:t.collapsable}},[e("org-tree-node",t._b({attrs:{data:t.dataCloned,props:t.props,horizontal:t.horizontal,"label-width":t.labelWidth,collapsable:t.collapsable,"node-render":t.nodeRender,"button-render":t.buttonRender,"label-class-name":t.labelClassName},on:{"on-expand":t.handleExpand,"on-node-click":t.handleNodeClick}},"org-tree-node",t.$listeners,!1))],1)])},i=[],a=e("a745"),c=e.n(a),u=(e("ac6a"),e("c5f6"),function(t,n){return!(c()(t[n])&&t[n].length>0)}),f=function(t,n,e){var r=e.props,o=["org-tree-node"],i=[],a=n[r.props.children];return u(n,r.props.children)?o.push("is-leaf"):r.collapsable&&!n[r.props.expand]&&o.push("collapsed"),i.push(p(t,n,e)),r.collapsable&&!n[r.props.expand]||i.push(l(t,a,e)),t("div",{domProps:{className:o.join(" ")}},i)},s=function(t,n,e){var r=e.props,o=e.listeners["on-expand"],i=["org-tree-node-btn"];return n[r.props.expand]&&i.push("expanded"),t("span",{class:"org-tree-button-wrapper",on:{click:function(t){t.stopPropagation(),o&&o(n)}}},[r.buttonRender?r.buttonRender(t,n):t("span",{class:i.join(" ")})])},p=function(t,n,e){var r=e.props,o=n[r.props.label],i=r.nodeRender,a=e.listeners["on-node-click"],c=e.listeners["on-node-mousedown"],f=e.listeners["on-node-mouseup"],p=e.listeners["on-node-touchstart"],l=e.listeners["on-node-touchleave"],d=[];if("function"===typeof i){var h=i(t,n);h&&d.push(h)}else d.push(o);r.collapsable&&!u(n,r.props.children)&&d.push(s(t,n,e));var v=["org-tree-node-label-inner"],b=r.labelWidth,y=r.labelClassName;return"number"===typeof b&&(b+="px"),"function"===typeof y&&(y=y(n)),y&&v.push(y),t("div",{domProps:{className:"org-tree-node-label"},on:{click:function(t){return a&&a(t,n)},mousedown:function(t){return c&&c(t,n)},mouseup:function(t){return f&&f(t,n)},touchstart:function(t){return p&&p(t,n)},touchleave:function(t){return l&&l(t,n)}}},[t("div",{domProps:{className:v.join(" ")},style:{width:b}},d)])},l=function(t,n,e){if(c()(n)&&n.length){var r=n.map(function(n){return f(t,n,e)});return t("div",{domProps:{className:"org-tree-node-children"}},r)}return""},d=function(t,n){var e=n.props;return f(t,e.data,n)},h=d,v=e("da0a"),b=e.n(v),y={name:"VOrgTree",components:{OrgTreeNode:{render:h,functional:!0}},props:{data:{type:Object,required:!0},props:{type:Object,default:function(){return{id:"id",label:"label",expand:"expand",children:"children"}}},horizontal:Boolean,collapsable:Boolean,nodeRender:Function,buttonRender:Function,labelWidth:[String,Number],labelClassName:[Function,String],expandAll:{type:Boolean,default:!1}},data:function(){return{flatData:{},dataCloned:{}}},watch:{data:function(t){var n=this;this._handleData(t),this._mapData(this.dataCloned,function(t){var e=n.flatData[t[n.prop_id]]||{},r=e.expand;r&&n.$set(t,n.prop_expand,!0)}),this._toggleExpand(this.dataCloned,this.expandAll)},expandAll:function(t){this._toggleExpand(this.dataCloned,t)}},computed:{prop_id:function(){return this.props.id},prop_label:function(){return this.props.label},prop_expand:function(){return this.props.expand},prop_children:function(){return this.props.children}},methods:{_handleData:function(t){this._cloneData(t)},_cloneData:function(t){this.dataCloned=b()(t)},_setFlatData:function(t){this.flatData[t[this.prop_id]]=t},_mapData:function(t,n){var e=this;n(t);var r=t[this.prop_children];r&&r.forEach(function(t){e._mapData(t,n)})},_updateExpandStatus:function(){this._mapData(this.dataCloned,this._setFlatData)},collapse:function(t){var n=this,e=this;t.forEach(function(t){t[n.prop_expand]&&(t[n.prop_expand]=!1);var r=t[n.prop_children];r&&e.collapse(r)})},handleExpand:function(t){if(this.prop_expand in t){t[this.prop_expand]=!t[this.prop_expand];var n=t[this.prop_children];!t[this.prop_expand]&&n&&this.collapse(n)}else this.$set(t,this.prop_expand,!0);this.$emit("on-expand",t,t[this.prop_expand]),this._updateExpandStatus()},_toggleExpand:function(t,n){var e=this,r=this;if(c()(t))t.forEach(function(t){r.$set(t,e.prop_expand,n);var o=t[e.prop_children];o&&r._toggleExpand(o,n)});else{r.$set(t,this.prop_expand,n);var o=t[this.prop_children];o&&r._toggleExpand(o,n)}},handleNodeClick:function(t,n){var e=this;this.$emit("on-node-click",t,n,function(){e.handleExpand(n)})},toggleExpand:function(){this._toggleExpand(this.dataCloned,this.expandAll),this._updateExpandStatus()}},mounted:function(){this._handleData(this.data),this._updateExpandStatus(),this._toggleExpand(this.dataCloned,this.expandAll)}},x=y;e("fcc4");function _(t,n,e,r,o,i,a,c){var u,f="function"===typeof t?t.options:t;if(n&&(f.render=n,f.staticRenderFns=e,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(f.functional){f._injectStyles=u;var s=f.render;f.render=function(t,n){return u.call(n),s(t,n)}}else{var p=f.beforeCreate;f.beforeCreate=p?[].concat(p,u):[u]}return{exports:t,options:f}}var g=_(x,o,i,!1,null,null,null),m=g.exports,w=function t(n){t.installed||(t.installed=!0,n.component(m.name,m))};m.install=w,"undefined"!==typeof window&&window.Vue&&window.Vue.use(m);var S=m;n["default"]=S},fcc4:function(t,n,e){"use strict";var r=e("bcfc"),o=e.n(r);o.a},fdef:function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})});