Cube('pandav:/com/basicAreaV2/1.0.2/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 h=b.chart,i=b.axes,j=b.series,l=b.tooltip,m=b.interaction,n=h.legend,o=h.animation,p=h.dataAnimation,q=h.paddingOuter,r=n.iconSize,t=n.iconGap,u=i.xAxis,v=i.yAxis,w=i.zAxis,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:p,baseLine:{orientation:'bottom',config:[z],data:A},tooltip:{config:l,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)})},w.get(g))))}))}},chart:f.utils.createObject(f.utils.createObject({},h),{},{legend:{config:n}}),series:j.series.map(function(b,c){var d=b.mapping,e=b.areaType,g=b.areaColor,h=b.url,i=b.yOrZ,j=b.label,k=b.line,l=b.size,m=b.opacity,n=d.fieldName,o=d.displayName,p=j.font;return{type:'area',fieldName:n,displayName:o,yOrZ:i,stack:i,icon:{width:r.width,height:r.height,gap:t,background:k.color},line:{id:a.id+'-area-'+c,stroke:k.color},area:{id:a.id+'-area-'+c,fill:g,type:e,url:h,size:l,opacity:m},config:f.utils.createObject(f.utils.createObject({},b),{},{label:f.utils.createObject(f.utils.createObject({},j),{},{font:f.utils.getFontStyle(p,'svg')})}),Component:f.Area}}),axes:[{config:u,orientation:'bottom',type:'ordinal',axisType:'x',tickCount:y.appearance.count,paddingOuter:q,rotate:y.appearance.angle,carousel:o.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:function(){var a=c.filter(function(a){return 0==a.y}).length;return a==c.length&&(v.label.extent.max='1'),(''!==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}}],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});