/* Highcharts JS v10.2.1 (2022-08-29) Organization chart series type (c) 2019-2021 Torstein Honsi License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/organization",["highcharts","highcharts/modules/sankey"],function(g){a(g);a.Highcharts=g;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function g(a,m,h,g){a.hasOwnProperty(m)||(a[m]=g.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:m,module:a[m]}})))} a=a?a._modules:{};g(a,"Series/Organization/OrganizationPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,m){function h(a){var f=a.linksFrom.length;a.linksFrom.forEach(function(d){d.id===d.toNode.linksTo[0].id?f+=h(d.toNode):f--});return f}var g=this&&this.__extends||function(){var a=function(f,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var b in c)c.hasOwnProperty(b)&&(d[b]=c[b])};return a(f,d)};return function(f, d){function n(){this.constructor=f}a(f,d);f.prototype=null===d?Object.create(d):(n.prototype=d.prototype,new n)}}(),t=m.defined,u=m.find,w=m.pick;return function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.fromNode=void 0;d.linksFrom=void 0;d.linksTo=void 0;d.options=void 0;d.series=void 0;d.toNode=void 0;return d}g(f,a);f.prototype.getSum=function(){return 1};f.prototype.setNodeColumn=function(){a.prototype.setNodeColumn.call(this);var d=this,n=d.getFromNode().fromNode;if(!t(d.options.column)&& 0!==d.linksTo.length&&n&&"hanging"===n.options.layout){d.options.layout=w(d.options.layout,"hanging");d.hangsFrom=n;var c=-1;u(n.linksFrom,function(b,q){(b=b.toNode===d)&&(c=q);return b});for(var b=0;b=m)&&(g=f=Math.floor(f+(n?-.5:.5)*a.shapeArgs.width)+k,p=a.shapeArgs.y,0c+g;)e.height-= c,b=b.hangsFrom;else e.height-=c,this.chart.inverted||(e.y+=c);a.nodeHeight=this.chart.inverted?e.width:e.height};d.defaultOptions=x(t.defaultOptions,{borderColor:"#666666",borderRadius:3,linkRadius:10,borderWidth:1,dataLabels:{nodeFormatter:function(){function a(a){return Object.keys(a).reduce(function(b,c){return b+c+":"+a[c]+";"},'style="')+'"'}var b={width:"100%",height:"100%",display:"flex","flex-direction":"row","align-items":"center","justify-content":"center"},d={"max-height":"100%","border-radius":"50%"}, f={width:"100%",padding:0,"text-align":"center","white-space":"normal"},e={margin:0},g={margin:0},h={opacity:.75,margin:"5px"};this.point.image&&(d["max-width"]="30%",f.width="70%");this.series.chart.renderer.forExport&&(b.display="block",f.position="absolute",f.left=this.point.image?"30%":0,f.top=0);b="
";this.point.image&&(b+='");b+="
";this.point.name&&(b+="

"+this.point.name+"

");this.point.title&&(b+="

"+(this.point.title||"")+"

");this.point.description&&(b+="

"+this.point.description+"

");return b+"
"},style:{fontWeight:"normal",fontSize:"13px"},useHTML:!0},hangingIndent:20,hangingIndentTranslation:"inherit",linkColor:"#666666",linkLineWidth:1,minNodeLength:10,nodeWidth:50,tooltip:{nodeFormat:"{point.name}
{point.title}
{point.description}"}});return d}(t);w(h.prototype,{pointClass:a});m.registerSeriesType("organization",h);"";"";return h});g(a,"masters/modules/organization.src.js", [],function(){})}); //# sourceMappingURL=organization.js.map