(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e2c58"],{"7fb5":function(e,t,a){"use strict";a.r(t);var c=a("7a23");const n={class:"data-designer-chart-instance count-content-style",ref:"designerChartViewRef"},o=["xclass"];function l(e,t,a,l,i,r){return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",n,[Object(c["createElementVNode"])("div",{class:"data-designer-chart-view-count",style:Object(c["normalizeStyle"])(e.countContentStyle)},[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(e.countDataList,t=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:Object(c["normalizeClass"])(["data-designer-count-item",e.countItemClass(t)]),style:Object(c["normalizeStyle"])(e.countItemStyle)},[Object(c["createElementVNode"])("div",{xclass:e.countDisplayNameClass,style:Object(c["normalizeStyle"])(e.countDisplayNameStyle(t))},Object(c["toDisplayString"])(t.displayName),13,o),Object(c["createElementVNode"])("div",{style:Object(c["normalizeStyle"])(e.countValueStyle(t))},Object(c["toDisplayString"])(t.value),5)],6))),256))],4)],512)}var i=a("ec41"),r=a("3b20"),s=a("a955"),u=a("6fde"),b=a("700f"),d=Object(c["defineComponent"])({props:Object.assign({},r["h"].props),data(){return{engine:b["a"].DATA_DESIGNER,chartType:[s["N"].BASE_EXPONENT]}},mixins:[r["h"]],setup(e,{emit:t}){const a=Object(c["ref"])(1),n=Object(c["ref"])(.9),o=Object(c["ref"])(null),l=Object(c["ref"])(0),r=Object(c["computed"])(()=>e.chartData?Object(u["R"])(Object(i["a"])(e.chartData,"chartStyleObj.alignStyle")):{}),b=Object(c["computed"])(()=>e.chartData?Object(u["bb"])(Object(i["a"])(e.chartData,"chartStyleObj.alignStyle")):{}),d=Object(c["computed"])(()=>e.chartData?Object(u["ab"])(Object(i["a"])(e.chartData,"chartStyleObj.alignStyle")):{}),O=t=>{var a;if(!e.chartData)return{};const{fieldAlign:c,exponentLocation:n}=(null===(a=e.chartData)||void 0===a?void 0:a.chartStyleObj.alignStyle)||{},{fieldFontSize:o,fieldFontColor:l,fieldLocation:i}=t,r=Object(u["T"])({fontSize:o,fontColor:l,exponentLocation:n,fieldLocation:i,fieldAlign:c,type:"name",isReport:!!e.config.reportOnly,isScreen:!!e.config.height}),b=Object(u["sd"])(e.config,r,"main"),d=Object(u["Wc"])(e.config),O=Object(u["Ub"])(e.config);return d?d==s["ub"].THEME02?b.color=O.map.startColor:b.color=s["Y"]:e.config.reportOnly,b},j=t=>{var a;if(!e.chartData)return{};const{valueAlign:c,exponentLocation:n}=(null===(a=e.chartData)||void 0===a?void 0:a.chartStyleObj.alignStyle)||{},{valueFontSize:o,valueFontColor:l,fieldLocation:i}=t,r=Object(u["T"])({fontSize:o,fontColor:l,fieldLocation:i,valueAlign:c,type:"num",exponentLocation:n,isReport:!!e.config.reportOnly,isScreen:!!e.config.height}),s=Object(u["sd"])(e.config,r,"main"),b=Object(u["Wc"])(e.config);return b||e.config.reportOnly,s},f=t=>e.chartData?Object(u["S"])(t):{};Object(c["onMounted"])(()=>{}),Object(c["watch"])(()=>o.value,()=>{Object(c["nextTick"])(()=>{l.value=o.value&&o.value.offsetWidth||0})},{immediate:!0}),Object(c["watch"])(()=>e.config,()=>{Object(c["nextTick"])(()=>{var t;if(e.config.reportOnly){const e=o.value&&o.value.offsetWidth||0;if(l.value<200){const t=e/200;a.value=t-.6+.6,n.value=t-.6+.9}else{const t=e/l.value;a.value=t-.4+.6,n.value=t-.2+.9}}else if(e.config&&(null===(t=e.config)||void 0===t?void 0:t.width)>s["W"].width){const t=e.config.width/s["W"].width;a.value=t-.8+.6,n.value=t-.8+.9}else a.value=1,n.value=.9})},{immediate:!0,deep:!0});const h=Object(c["computed"])(()=>{const t=Object(u["Rb"])(e.chartData),a=Object.assign({},...e.chartDataResult.data);let c=[];for(const[e,o]of Object.entries(a))c.push({name:e,value:o});let n=[];return c.length&&e.chartDataResult.data&&e.chartDataResult.data.length&&(n=t.map((e,t)=>{const a=c.find(t=>t.name===e.chartField.displayName)||{};return Object.assign(Object.assign({},e),{displayName:e.chartField.displayName,value:a.value})})),n});return{countDataList:h,countDisplayNameClass:r,countDisplayNameStyle:O,countValueStyle:j,designerChartViewRef:o,countItemStyle:b,countContentStyle:d,countItemClass:f}}}),O=a("6b0d"),j=a.n(O);const f=j()(d,[["render",l]]);t["default"]=f}}]);