Cube('pandav:/com/superChart/1.0.0/src/com.jsx',['pandav:/npm/react/17.0.2','pandav:/npm/lodash/4.6.1','pandav:/com/cube-chart/0.0.1'],function(a,b,c){var d=c('pandav:/npm/react/17.0.2'),e=c('pandav:/npm/lodash/4.6.1'),f=c('pandav:/com/cube-chart/0.0.1'),g=f.utils.createObject,h=d.memo(function(a){var b=a.config,c=a.data,h=a.width,i=a.height,j=a.childrenLayer,k=void 0===j?{}:j,l=k._data,m=d.useMemo(function(){var c=b.chart,h=b.axes,i=b.series,j=b.tooltip,l=b.interaction,m=c.paddingOuter,n=c.margin,o=c.legend,p=c.animation,q=c.dataAnimation,r=o.iconSize,t=o.iconGap,u=h.xAxis,v=h.yAxis,w=h.zAxis,x=h.z1Axis,y=u.label,z=k&&k.config&&k.config.options||{},A=k._data||[];return g(g({},e.omit(b,['chart','chart','axes','series','tooltip','interaction'])),{},{dataAnimation:q,baseLine:{orientation:'bottom',config:[z],data:A},tooltip:{config:j,formatter:function(a){var b=a.series,c=a.x,e=a.data,h=c.x,i=c.config,j=i.align,k=i.font,l=i.translate,m=e.data,n=e.config,o=n.lineHeight,p=n.iconSize,q=n.name,r=n.value,u=n.suffix;return d.createElement('dl',{style:{display:'flex',flexDirection:'column',justifyContent:'space-between',height:'100%'}},d.createElement('dt',{style:g({textAlign:j,transform:f.utils.getTranslate3d(l)},f.utils.getFontStyle(k))},'date'===y.format.type?f.utils.dateFormat(h,y.format.showType):h),m.map(function(a,c){var e=a.y,g=a.s,h=b.find(function(a){return a.name===g}),i=h.type,j=h.icon,k=h.displayName,l=u.show,m=u.content,n=u.font,s=u.translate,v=f.utils.getIcon(i,j),w=new Map;return Object.values(m).forEach(function(a){w.set(a.suffix.name,a.suffix.suffix)}),d.createElement('dd',{style:{display:'flex',justifyContent:'space-between',lineHeight:o+'px'},key:c},d.createElement('span',{style:{display:'flex',alignItems:'center',gap:t}},d.createElement('span',{style:f.utils.createObject(f.utils.createObject({},v),{},{width:p,height:p})}),d.createElement('span',{style:f.utils.getFontStyle(q)},k||g)),d.createElement('span',{style:f.utils.getFontStyle(r)},e,l&&d.createElement('span',{style:f.utils.createObject(f.utils.createObject({},f.utils.getFontStyle(n)),{},{transform:f.utils.getTranslate3d(s),display:'inline-block'})},w.get(g))))}))}},chart:f.utils.createObject(f.utils.createObject({},c),{},{legend:{config:o}}),series:i.series.map(function(b,c){var d=b.mapping,e=b.showType,h=b.stackOn,j=b.areaColor,k=b.areaType,l=b.barStyle,m=b.url,n=b.size,o=b.yOrZ,p=b.label,q=b.highlight,s=b.line,u=b.opacity,v=d.fieldName,w=d.displayName,x=Object.values(i.series).filter(function(a){return'bar'==a.showType}).length;return'bar'==e?{type:'band',fieldName:v,displayName:w,yOrZ:o,stack:h?o:'',icon:{width:r.width,height:r.height,gap:t,background:'color'===l.fillType?f.utils.getColor(l.fill):'50% 50% / 100% 100% no-repeat url('+l.url+')'},bandLength:x,config:f.utils.createObject(f.utils.createObject({paddingInner:l.paddingInner,seriesIntervalWidth:l.seriesIntervalWidth},l),{},{url:l.url,highlight:q,label:f.utils.createObject(f.utils.createObject({},p),{},{font:f.utils.getFontStyle(p.font,'svg')})}),Component:f.Band}:'line'==e?{config:g(g({},b),{},{line:s,label:g(g({},p),{},{font:f.utils.getFontStyle(p.font,'svg')})}),fieldName:v,displayName:w,yOrZ:o,icon:{background:s.color,width:r.width,height:r.height,gap:t},line:{id:a.id+'-line-'+c,stroke:s.color},type:'line',Component:f.Line}:'area'==e?{type:'area',fieldName:v,displayName:w,yOrZ:o,stack:h?o:'',icon:{width:r.width,height:r.height,gap:t,background:s.color},line:{id:a.id+'-area-'+c,stroke:s.color},area:{id:a.id+'-area-'+c,fill:j,type:k,url:m,size:n,opacity:u},config:f.utils.createObject(f.utils.createObject({},b),{},{label:f.utils.createObject(f.utils.createObject({},p),{},{font:f.utils.getFontStyle(p.font,'svg')})}),Component:f.Area}:{}}),axes:[{config:u,orientation:'bottom',type:'ordinal',axisType:'x',tickCount:y.appearance.count,paddingOuter:m,rotate:y.appearance.angle,carousel:p.show,formatter:function(a,b){var c=b.appearance.wordBreak,d=b.format,e=d.type,g=d.showType,h='keep-all'===c&&isNaN(c),i='date'===e?f.utils.dateFormat(a,g):a;return h?i:f.utils.getBreakWord(i,c)}},{config:v,orientation:'left',type:'linear',axisType:'y',tickCount:v.label.count,mode:v.label.mode,step:v.label.step,auto:v.label.auto,domain:(''!==v.label.extent.min||''!==v.label.extent.max)&&v.label.extent,formatter:function(a,b){var c=b.decimal,d=b.suffix;return f.utils.toFixed(a,c)+d}},{config:w,orientation:'right',type:'linear',axisType:'z',tickCount:w.label.count,mode:w.label.mode,step:w.label.step,auto:w.label.auto,domain:(''!==w.label.extent.min||''!==w.label.extent.max)&&w.label.extent,formatter:function(a,b){var c=b.decimal,d=b.suffix;return f.utils.toFixed(a,c)+d}},{config:x,orientation:'right',type:'linear',axisType:'z1',tickCount:x.label.count,mode:x.label.mode,step:x.label.step,auto:x.label.auto,domain:(''!==x.label.extent.min||''!==x.label.extent.max)&&x.label.extent,formatter:function(a,b){var c=b.decimal,d=b.suffix;return f.utils.toFixed(a,c)+d}}],interaction:{}})},[b,l,k.config]);return d.createElement(f.Chart,Object.assign({},e.omit(a,['id','config']),{config:m,data:c,width:h||a.containSize.boxWidth,height:i||a.containSize.boxHeight,id:a.id}))});return a.exports=f.Container(h),a.exports});