vue-data-ui 2.3.46 → 2.3.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/{Arrow-C45xNtet.cjs → Arrow-Bj64dVl2.cjs} +1 -1
  2. package/dist/{Arrow-QBHviXQB.js → Arrow-THOuTDcq.js} +1 -1
  3. package/dist/{BaseIcon-NNgCqsH0.cjs → BaseIcon-CAlmCZtL.cjs} +1 -1
  4. package/dist/{BaseIcon-Ct3EasCg.js → BaseIcon-Lz2AkAUF.js} +1 -1
  5. package/dist/{DataTable-CkeQ7c6_.js → DataTable-Cg9dMxHZ.js} +2 -2
  6. package/dist/{DataTable-BGF6x8iX.cjs → DataTable-E_zoBxXZ.cjs} +1 -1
  7. package/dist/{Legend-aFYc_s9T.js → Legend-DKGyWu7I.js} +1 -1
  8. package/dist/{Legend-DjuRskVd.cjs → Legend-L_Enr1Hx.cjs} +1 -1
  9. package/dist/{Shape-BTMZlA5Q.cjs → Shape-BLiPCHkv.cjs} +1 -1
  10. package/dist/{Shape-DoAgLIYa.js → Shape-npSEDLuX.js} +1 -1
  11. package/dist/{Slicer-I9LVm-u8.js → Slicer-DGciWCaF.js} +1 -1
  12. package/dist/{Slicer-BCr6bV0X.cjs → Slicer-DNvTnINC.cjs} +1 -1
  13. package/dist/{Title-D8HoSXgM.js → Title-C0_PhO2u.js} +1 -1
  14. package/dist/{Title-NelrBSGO.cjs → Title-DSPpszvp.cjs} +1 -1
  15. package/dist/{Tooltip-CK94hatv.cjs → Tooltip-CgSI_niS.cjs} +1 -1
  16. package/dist/{Tooltip-DTwn_FW5.js → Tooltip-dfMcr3Yl.js} +1 -1
  17. package/dist/{index-CEhe8nzy.cjs → index-Br-wm_4r.cjs} +1 -1
  18. package/dist/{index-C1-FJ0sT.js → index-ChMHOLEV.js} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-CcMb2mLY.cjs → useNestedProp-BH5s4SOa.cjs} +1 -1
  21. package/dist/{useNestedProp-1fJhHDhT.js → useNestedProp-DFwnYdme.js} +1 -1
  22. package/dist/{usePrinter-B1a6uNio.js → usePrinter-BW4S0cF1.js} +1 -1
  23. package/dist/{usePrinter-AfD8nrd2.cjs → usePrinter-DUD-LDLx.cjs} +1 -1
  24. package/dist/{vue-data-ui-DgzO0vYA.js → vue-data-ui-CbuAnIFO.js} +57 -57
  25. package/dist/{vue-data-ui-DfYg-sm0.cjs → vue-data-ui-D0OBzNWS.cjs} +1 -1
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-DctYjGhv.cjs → vue-ui-3d-bar-B9L0Q6d9.cjs} +1 -1
  29. package/dist/{vue-ui-3d-bar-ikMJ_M47.js → vue-ui-3d-bar-FHiGe0fx.js} +7 -7
  30. package/dist/{vue-ui-accordion-BLoKd0D-.js → vue-ui-accordion-Bukh98Pi.js} +3 -3
  31. package/dist/{vue-ui-accordion-CS2POBdq.cjs → vue-ui-accordion-ZPhdh-C7.cjs} +1 -1
  32. package/dist/{vue-ui-age-pyramid-6GljtWMq.cjs → vue-ui-age-pyramid-CfKlnJ-N.cjs} +1 -1
  33. package/dist/{vue-ui-age-pyramid-C9hzFCN4.js → vue-ui-age-pyramid-DLBZkGqa.js} +8 -8
  34. package/dist/{vue-ui-annotator-BFTGfEfF.cjs → vue-ui-annotator-DwJ8pgXD.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-DgdkTVYV.js → vue-ui-annotator-sEd3t3Xa.js} +1 -1
  36. package/dist/{vue-ui-candlestick-C31d7Jvz.cjs → vue-ui-candlestick-CEgbkXwC.cjs} +1 -1
  37. package/dist/{vue-ui-candlestick-BW-okjzH.js → vue-ui-candlestick-DGAu46FK.js} +9 -9
  38. package/dist/{vue-ui-carousel-table-DlFu0byl.cjs → vue-ui-carousel-table-BZRMnoU1.cjs} +1 -1
  39. package/dist/{vue-ui-carousel-table-Cw7Vpun2.js → vue-ui-carousel-table-DziSeBtT.js} +4 -4
  40. package/dist/{vue-ui-chestnut-B-H0j9-6.cjs → vue-ui-chestnut-DAaMh6sq.cjs} +1 -1
  41. package/dist/{vue-ui-chestnut-SLvSoUlS.js → vue-ui-chestnut-iLTYa9Xl.js} +6 -6
  42. package/dist/{vue-ui-cursor-eMGHt_Cm.cjs → vue-ui-cursor-D5XYd9sC.cjs} +1 -1
  43. package/dist/{vue-ui-cursor-BnoYo8DD.js → vue-ui-cursor-DUwUhpoT.js} +2 -2
  44. package/dist/{vue-ui-dashboard-cOx4Zbit.js → vue-ui-dashboard-DiXf1UFz.js} +2 -2
  45. package/dist/{vue-ui-dashboard-BpwA8NTi.cjs → vue-ui-dashboard-DyB_oaXE.cjs} +1 -1
  46. package/dist/{vue-ui-digits-MhR768JU.cjs → vue-ui-digits-DVwp3Vzr.cjs} +1 -1
  47. package/dist/{vue-ui-digits-wo7Gctkj.js → vue-ui-digits-RUrqXG5U.js} +2 -2
  48. package/dist/{vue-ui-donut-CABoxvoV.js → vue-ui-donut-CIo7evf6.js} +45 -45
  49. package/dist/vue-ui-donut-CMT341XH.cjs +1 -0
  50. package/dist/{vue-ui-donut-evolution-DzkcS9ET.cjs → vue-ui-donut-evolution-BTw0E5sZ.cjs} +1 -1
  51. package/dist/{vue-ui-donut-evolution-r6wIb3Tt.js → vue-ui-donut-evolution-DpflCS73.js} +9 -9
  52. package/dist/{vue-ui-dumbbell-D3pvOoxP.js → vue-ui-dumbbell-BgZEQGlE.js} +8 -8
  53. package/dist/{vue-ui-dumbbell-DSSBvwhU.cjs → vue-ui-dumbbell-UGicuItz.cjs} +1 -1
  54. package/dist/{vue-ui-flow-Cp7EQLnA.cjs → vue-ui-flow-BfouRr14.cjs} +1 -1
  55. package/dist/{vue-ui-flow-CCMFNXxy.js → vue-ui-flow-BqK29554.js} +7 -7
  56. package/dist/{vue-ui-galaxy-BVu0ZEeg.js → vue-ui-galaxy-CuE0gjDn.js} +9 -9
  57. package/dist/{vue-ui-galaxy-DHXdjlQl.cjs → vue-ui-galaxy-DgIe6MYv.cjs} +1 -1
  58. package/dist/{vue-ui-gauge-nnDuY2_P.cjs → vue-ui-gauge-BKi2QGVX.cjs} +1 -1
  59. package/dist/{vue-ui-gauge-DRy_VLi-.js → vue-ui-gauge-CcuW6li6.js} +5 -5
  60. package/dist/{vue-ui-gizmo-Bhqq90Gt.cjs → vue-ui-gizmo-B9LHgK5x.cjs} +1 -1
  61. package/dist/{vue-ui-gizmo-B8rEv-J5.js → vue-ui-gizmo-Cp06yGvf.js} +2 -2
  62. package/dist/{vue-ui-heatmap-DoEghJHO.cjs → vue-ui-heatmap-D1GsWm8S.cjs} +1 -1
  63. package/dist/{vue-ui-heatmap-CESWvx6H.js → vue-ui-heatmap-D5pMKFX8.js} +8 -8
  64. package/dist/{vue-ui-kpi-CBH1WOLl.js → vue-ui-kpi-B0YwsHBF.js} +3 -3
  65. package/dist/{vue-ui-kpi-CHrIMR-b.cjs → vue-ui-kpi-DuBd9Cfw.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-YjK49sOM.js → vue-ui-mini-loader-BCE21FIO.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-CP5HRcth.cjs → vue-ui-mini-loader-CAJwCMGP.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-BIuegM-N.cjs → vue-ui-molecule-DDasACBO.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-CZDSsnRY.js → vue-ui-molecule-DeI-vOCp.js} +9 -9
  70. package/dist/{vue-ui-mood-radar-CcnUPS5r.js → vue-ui-mood-radar-B8IcNhp-.js} +9 -9
  71. package/dist/{vue-ui-mood-radar-DYTpiKG1.cjs → vue-ui-mood-radar-C2ylWXY4.cjs} +1 -1
  72. package/dist/{vue-ui-nested-donuts-Dk0HSrH4.js → vue-ui-nested-donuts-CgpGyxKR.js} +9 -9
  73. package/dist/{vue-ui-nested-donuts-CvPo6PIH.cjs → vue-ui-nested-donuts-DUnTzrPT.cjs} +1 -1
  74. package/dist/{vue-ui-onion-C93R_Klx.js → vue-ui-onion-B1cdXNvI.js} +9 -9
  75. package/dist/{vue-ui-onion-C_Dy0awV.cjs → vue-ui-onion-DGjKbke1.cjs} +1 -1
  76. package/dist/{vue-ui-parallel-coordinate-plot-Do8zOqso.cjs → vue-ui-parallel-coordinate-plot-BZtCTNKa.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-aEJjFh7V.js → vue-ui-parallel-coordinate-plot-DWYOet0Y.js} +10 -10
  78. package/dist/{vue-ui-quadrant-CMP5gv34.cjs → vue-ui-quadrant-D4Pfvypx.cjs} +1 -1
  79. package/dist/{vue-ui-quadrant-7zsx3EOw.js → vue-ui-quadrant-bc2ZAF-e.js} +10 -10
  80. package/dist/{vue-ui-quick-chart-DlKpBf-X.cjs → vue-ui-quick-chart-CmJ7o4Sy.cjs} +1 -1
  81. package/dist/{vue-ui-quick-chart-yGY2-cME.js → vue-ui-quick-chart-U0Bwmo7o.js} +6 -6
  82. package/dist/{vue-ui-radar-FvOQWErL.cjs → vue-ui-radar-ClHJwcdQ.cjs} +1 -1
  83. package/dist/{vue-ui-radar-CBAE5b_H.js → vue-ui-radar-KXEodxY0.js} +10 -10
  84. package/dist/{vue-ui-rating-DCX9Hr51.js → vue-ui-rating-B4i_esmV.js} +2 -2
  85. package/dist/{vue-ui-rating-D4ytgNsW.cjs → vue-ui-rating-CUR8udEY.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-C0t4M_Eb.cjs → vue-ui-relation-circle-B0IYw3cW.cjs} +1 -1
  87. package/dist/{vue-ui-relation-circle-C5uvdRCs.js → vue-ui-relation-circle-CR0-9RVH.js} +5 -5
  88. package/dist/{vue-ui-rings-Cx9I0XCp.js → vue-ui-rings-B0quOkZB.js} +9 -9
  89. package/dist/{vue-ui-rings-CljU3aO-.cjs → vue-ui-rings-dZ5s41lD.cjs} +1 -1
  90. package/dist/{vue-ui-scatter-BkvHY89U.cjs → vue-ui-scatter-B6ONtpIT.cjs} +1 -1
  91. package/dist/{vue-ui-scatter-BxrCbWPm.js → vue-ui-scatter-DGkgA3c2.js} +10 -10
  92. package/dist/{vue-ui-screenshot-Cf9NK_5w.js → vue-ui-screenshot-C54ey8-p.js} +1 -1
  93. package/dist/{vue-ui-screenshot-B198lkuF.cjs → vue-ui-screenshot-DHzHE3bq.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-DpqVx122.cjs → vue-ui-skeleton-BWu2nLeV.cjs} +1 -1
  95. package/dist/{vue-ui-skeleton-DogpCRv2.js → vue-ui-skeleton-CwTDNzek.js} +2 -2
  96. package/dist/{vue-ui-smiley-wnlpDBHn.js → vue-ui-smiley-BfHCG14T.js} +2 -2
  97. package/dist/{vue-ui-smiley-Hv5SONWU.cjs → vue-ui-smiley-YycNcszs.cjs} +1 -1
  98. package/dist/{vue-ui-spark-trend-_STSpU0x.js → vue-ui-spark-trend-DNxVD2pk.js} +4 -4
  99. package/dist/{vue-ui-spark-trend-DBFYuxbh.cjs → vue-ui-spark-trend-Dyilmz2Z.cjs} +1 -1
  100. package/dist/{vue-ui-sparkbar-B2C4gKQS.js → vue-ui-sparkbar-Bbaou7w5.js} +3 -3
  101. package/dist/{vue-ui-sparkbar-D1OrFmz5.cjs → vue-ui-sparkbar-CUxLYyQb.cjs} +1 -1
  102. package/dist/{vue-ui-sparkgauge-fsJt_SRA.js → vue-ui-sparkgauge-CX_a9jtx.js} +3 -3
  103. package/dist/{vue-ui-sparkgauge-CgX6ZpW7.cjs → vue-ui-sparkgauge-tsCLtZpw.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-CV8k8NPB.cjs → vue-ui-sparkhistogram-Cwz2wQ1e.cjs} +1 -1
  105. package/dist/{vue-ui-sparkhistogram-gue0JMvB.js → vue-ui-sparkhistogram-DZVZ-RXk.js} +4 -4
  106. package/dist/{vue-ui-sparkline-DN7RZ5FX.cjs → vue-ui-sparkline-BEprcYEe.cjs} +1 -1
  107. package/dist/{vue-ui-sparkline-ClFxAQkz.js → vue-ui-sparkline-C-PJg1EI.js} +3 -3
  108. package/dist/{vue-ui-sparkstackbar-3D6MkgTR.js → vue-ui-sparkstackbar-CxPo843r.js} +3 -3
  109. package/dist/{vue-ui-sparkstackbar-Dxy0P3xJ.cjs → vue-ui-sparkstackbar-DGyE2dE3.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-BY0bcCBX.cjs → vue-ui-stackbar-BrX0uP0u.cjs} +1 -1
  111. package/dist/{vue-ui-stackbar-DAFHq-wh.js → vue-ui-stackbar-DFFORChg.js} +10 -10
  112. package/dist/{vue-ui-strip-plot-lfB-YBkt.cjs → vue-ui-strip-plot-C_J9uvvB.cjs} +1 -1
  113. package/dist/{vue-ui-strip-plot-B3ItWHyf.js → vue-ui-strip-plot-DhcPpafE.js} +9 -9
  114. package/dist/{vue-ui-table-CiksARcd.cjs → vue-ui-table-B0CfGG_e.cjs} +1 -1
  115. package/dist/{vue-ui-table-Dxc80GV0.js → vue-ui-table-BuBIC5Ep.js} +1 -1
  116. package/dist/{vue-ui-table-heatmap-C_Wr83fl.cjs → vue-ui-table-heatmap-BRNGFUm-.cjs} +1 -1
  117. package/dist/{vue-ui-table-heatmap-AI2JeTUR.js → vue-ui-table-heatmap-D3YP4078.js} +4 -4
  118. package/dist/{vue-ui-table-sparkline-D2KWAYWO.js → vue-ui-table-sparkline-BDaZLq9H.js} +5 -5
  119. package/dist/{vue-ui-table-sparkline-BPYQI2Vo.cjs → vue-ui-table-sparkline-OXdcU6JH.cjs} +1 -1
  120. package/dist/{vue-ui-thermometer-BopRBXkF.cjs → vue-ui-thermometer-BPHxKklC.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-szsOVqgO.js → vue-ui-thermometer-Dq6DVPKi.js} +5 -5
  122. package/dist/{vue-ui-timer-CpuqP9iZ.js → vue-ui-timer-C51UJ8cf.js} +4 -4
  123. package/dist/{vue-ui-timer-Ctcaiaej.cjs → vue-ui-timer-Cc5OaHL8.cjs} +1 -1
  124. package/dist/{vue-ui-tiremarks-9P4vBFZV.js → vue-ui-tiremarks-Cc9PjBa8.js} +5 -5
  125. package/dist/{vue-ui-tiremarks-Cge2TXFU.cjs → vue-ui-tiremarks-DWRRMm0S.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-BxdorPsS.cjs → vue-ui-treemap-BUPvuWKn.cjs} +1 -1
  127. package/dist/{vue-ui-treemap-CLOwIrHN.js → vue-ui-treemap-Dfsnew-o.js} +9 -9
  128. package/dist/{vue-ui-vertical-bar-BREOjM7U.cjs → vue-ui-vertical-bar-4E0DyBl3.cjs} +1 -1
  129. package/dist/{vue-ui-vertical-bar-Br8Slvab.js → vue-ui-vertical-bar-aTTLZNFG.js} +9 -9
  130. package/dist/{vue-ui-waffle-B62b9gwj.js → vue-ui-waffle-CDv36WNb.js} +9 -9
  131. package/dist/{vue-ui-waffle-CPqrsii3.cjs → vue-ui-waffle-CZPrfM_0.cjs} +1 -1
  132. package/dist/{vue-ui-wheel-B3Nw-ICG.js → vue-ui-wheel-DZck6SNJ.js} +5 -5
  133. package/dist/{vue-ui-wheel-HqeFI8W9.cjs → vue-ui-wheel-IMuXbp1R.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-HgAIxI93.js → vue-ui-word-cloud-C9bnwx69.js} +7 -7
  135. package/dist/{vue-ui-word-cloud-B_W87vAs.cjs → vue-ui-word-cloud-EVeSzBUX.cjs} +1 -1
  136. package/dist/{vue-ui-xy-DpqyiCx6.js → vue-ui-xy-BRRAfLis.js} +12 -12
  137. package/dist/{vue-ui-xy-CWQd12R4.cjs → vue-ui-xy-BVwJjkYt.cjs} +1 -1
  138. package/dist/{vue-ui-xy-canvas-CjGlVtb_.js → vue-ui-xy-canvas-5bhkoiT4.js} +10 -10
  139. package/dist/{vue-ui-xy-canvas-5f_5ULEA.cjs → vue-ui-xy-canvas-DhHEH5ib.cjs} +1 -1
  140. package/package.json +1 -1
  141. package/dist/vue-ui-donut-C4bFM2ww.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CEhe8nzy.cjs"),re=require("./useResponsive-B3TrDDIG.cjs"),me=require("./Title-NelrBSGO.cjs"),ue=require("./usePrinter-AfD8nrd2.cjs"),be=require("./DataTable-BGF6x8iX.cjs"),ge=require("./Tooltip-CK94hatv.cjs"),ke=require("./Legend-DjuRskVd.cjs"),we=require("./vue-ui-skeleton-DpqVx122.cjs"),Ce=require("./vue-ui-accordion-CS2POBdq.cjs"),ne=require("./useNestedProp-CcMb2mLY.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_e=B=>(e.pushScopeId("data-v-66476e18"),B=B(),e.popScopeId(),B),Be=["id"],Se=["xmlns","viewBox"],$e=["id"],Le=["stop-color"],Ne=["stop-color"],Ee=["stop-color"],Ve=["id"],Te=["id"],ze=_e(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Oe=["id"],Fe=["flood-color"],De=["d","stroke","filter"],Pe=["cx","cy","r","fill","filter"],Me=["stroke","d"],Xe=["d","fill","stroke","stroke-width","filter"],Ae=["cx","cy","r","fill","stroke"],Ie=["cx","cy","r","fill"],qe=["d","fill","onMouseenter","onClick"],Re=["cx","cy","r","fill"],Ge=["x","y","fill","font-size"],Ye=["x","y","fill","font-size"],He=["x","y","fill","font-size"],Ue=["x","y","fill","font-size"],je=["filter"],We={key:0},Je=["x","y"],Ke={key:1},Qe=["cx","cy","fill","filter","onClick"],Ze=["text-anchor","x","y","fill","font-size","onClick"],et=["text-anchor","x","y","fill","font-size","onClick"],tt={key:2},lt=["x","y","width"],at={key:3,class:"vue-data-ui-watermark"},ot=["onClick"],rt={key:0,style:{"font-variant-numeric":"tabular-nums"}},ut={key:1},nt=["innerHTML"],st={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(B,{expose:se,emit:X}){const m=B,{vue_ui_donut:ce}=o.useConfig(),S=e.computed({get(){return!!m.dataset&&m.dataset.length},set(a){return a}}),$=e.ref(null),A=e.ref(null),I=e.ref(null),V=e.ref(null);e.onMounted(()=>{if(o.objectIsEmpty(m.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):m.dataset.forEach((a,r)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{S.value=!1,o.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const a=re.throttle(()=>{const{width:r,height:l}=re.useResponsive({chart:$.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?I.value:null});s.value.width=r,s.value.height=l});V.value=new ResizeObserver(a),V.value.observe($.value.parentNode)}}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()});const f=e.ref(o.createUid()),ie=e.ref(null),O=e.ref(!1),F=e.ref(""),b=e.ref(null),q=e.ref(0),t=e.computed(()=>{const a=ne.useNestedProp({userConfig:m.config,defaultConfig:ce});return a.theme?{...ne.useNestedProp({userConfig:o.themes.vue_ui_donut[a.theme]||m.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}),{isPrinting:R,isImaging:G,generatePdf:Y,generateImage:H}=ue.usePrinter({elementId:`donut__${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),U=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:512}),L=e.computed(()=>{const a=t.value.style.chart.layout.donut.strokeWidth/512,r=s.value.width*a;return r>t.value.style.chart.layout.donut.strokeWidth?t.value.style.chart.layout.donut.strokeWidth:r}),k=e.computed(()=>m.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||U.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:a.values.reduce((l,u)=>l+u,0),absoluteValues:a.values,comment:a.comment||""}))),h=e.ref(k.value);e.watch(()=>k.value,a=>h.value=a);function ve(){return k.value.map(a=>({name:a.name,color:a.color,value:a.value}))}const y=e.ref([]),j=e.ref(null),W=e.ref(null),w=e.ref(!1);function J(a){const r=k.value.find((n,i)=>i===a);let u=h.value.find((n,i)=>i===a).value;if(y.value.includes(a)){let i=function(){u>n?(cancelAnimationFrame(j.value),h.value=h.value.map((c,M)=>a===M?{...c,value:n}:c),w.value=!1):(w.value=!0,u+=n*.025,h.value=h.value.map((c,M)=>a===M?{...c,value:u}:c),j.value=requestAnimationFrame(i))};y.value=y.value.filter(c=>c!==a);const n=r.value;i()}else if(y.value.length<k.value.length-1){let n=function(){u<.1?(cancelAnimationFrame(W.value),y.value.push(a),h.value=h.value.map((i,c)=>a===c?{...i,value:0}:i),w.value=!1):(w.value=!0,u/=1.1,h.value=h.value.map((i,c)=>a===c?{...i,value:u}:i),W.value=requestAnimationFrame(n))};n()}X("selectLegend",x.value.map(n=>({name:n.name,color:n.color,value:n.value})))}const x=e.computed(()=>(h.value.forEach((a,r)=>{if([null,void 0].includes(a.values))return{...a,values:[]}}),h.value.map((a,r)=>({...a,seriesIndex:r})).filter((a,r)=>!y.value.includes(r)))),K=e.computed(()=>m.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||U.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:(a.values||[]).reduce((l,u)=>l+u,0),shape:"circle"})).map((a,r)=>({...a,proportion:a.value/m.dataset.map(l=>(l.values||[]).reduce((u,n)=>u+n,0)).reduce((l,u)=>l+u,0),opacity:y.value.includes(r)?.5:1,segregate:()=>J(r),isSegregated:y.value.includes(r)}))),de=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),p=e.computed(()=>{const a=Math.min(s.value.width/3,s.value.height/3);return a<55?55:a}),C=e.computed(()=>o.makeDonut({series:x.value},s.value.width/2,s.value.height/2,p.value,p.value,1.99999,2,1,360,105.25,L.value));function _(a){return a.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function Q(a,r){const l=a.value/he(r);return isNaN(l)?0:o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,o.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:a})}function he(a){return[...a].map(r=>r.value).reduce((r,l)=>r+l,0)}const d=e.computed(()=>x.value.map(a=>a.value).reduce((a,r)=>a+r,0)),Z=e.computed(()=>d.value/x.value.length),D=e.ref(null),N=e.ref(!1);function fe({datapoint:a,relativeIndex:r,seriesIndex:l,show:u=!1}){D.value={datapoint:a,seriesIndex:l,config:t.value,series:k.value},O.value=u,b.value=r;let n="";const i=t.value.style.chart.tooltip.customFormat;if(N.value=!1,o.isFunction(i))try{const c=i({seriesIndex:l,datapoint:a,series:k.value,config:t.value});typeof c=="string"&&(F.value=c,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){if(n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(n+=`<b>${o.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,relativeIndex:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const c=o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,a.proportion*100,o.dataLabel({v:a.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:a,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?n+=`<span>(${c})</span></div>`:n+=`<b>${c}%</b></div>`}t.value.style.chart.comments.showInTooltip&&a.comment&&(n+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${a.color}">${a.comment}</div>`),F.value=`<div>${n}</div>`}}function P(a){return t.value.useBlurOnHover&&![null,void 0].includes(b.value)&&b.value!==a?`url(#blur_${f.value})`:""}const g=e.computed(()=>{const a=x.value.map(l=>({name:l.name,color:l.color})),r=x.value.map(l=>l.value);return{head:a,body:r}});function ee(){e.nextTick(()=>{const a=g.value.head.map((u,n)=>[[u.name],[g.value.body[n]],[isNaN(g.value.body[n]/d.value)?"-":g.value.body[n]/d.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(a),l=o.createCsvContent(r);o.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const T=e.computed(()=>{const a=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:d.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=g.value.head.map((n,i)=>{const c=o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},c,isNaN(g.value.body[i]/d.value)?"-":(g.value.body[i]/d.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:a,body:r,config:l}}),E=e.ref(!1);function ye(a){E.value=a,q.value+=1}const te=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function pe(a){return a.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function z(a,r){X("selectDatapoint",{datapoint:a,index:r})}function le(){v.value.showTable=!v.value.showTable}function ae(){v.value.dataLabels.show=!v.value.dataLabels.show}function oe(){v.value.showTooltip=!v.value.showTooltip}return se({getData:ve,generatePdf:Y,generateCsv:ee,generateImage:H,toggleTable:le,toggleLabels:ae,toggleTooltip:oe}),(a,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:$,class:e.normalizeClass(`vue-ui-donut ${E.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${f.value}`},[e.renderSlot(a.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:A,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(me._sfc_main,{config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(ue.UserOptions,{ref_key:"details",ref:ie,key:`user_option_${q.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(R),isImaging:e.unref(G),uid:f.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:E.value,chartElement:$.value,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:ye,onGeneratePdf:e.unref(Y),onGenerateCsv:ee,onGenerateImage:e.unref(H),onToggleTable:le,onToggleLabels:ae,onToggleTooltip:oe},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),S.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":E.value,"vue-data-ui-fulscreen--off":!E.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(o.convertColorToHex)(t.value.style.chart.backgroundColor)}00`},null,8,Le),e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF"+e.unref(o.opacity)[t.value.style.chart.gradientIntensity]},null,8,Ne),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(o.convertColorToHex)(t.value.style.chart.backgroundColor)}00`},null,8,Ee)],8,$e)):e.createCommentVNode("",!0)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${f.value}`},null,8,Te),ze],8,Ve),e.createElementVNode("filter",{id:`shadow_${f.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Fe)],8,Oe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:s.value.width/2,y:s.value.height/2},16,16,!1,!1,L.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:P(u)},null,8,De)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:s.value.width/2,cy:s.value.height/2,r:p.value<=0?10:p.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${f.value})`:""},null,8,Pe),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,Me))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`${l.color}CC`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(u)},null,8,Xe))),256))],64)):(e.openBlock(),e.createElementBlock("circle",{key:1,cx:s.value.width/2,cy:s.value.height/2,r:p.value<=0?10:p.value,fill:t.value.style.chart.backgroundColor,stroke:e.unref(o.adaptColorToBackground)(t.value.style.chart.background)},null,8,Ae)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("circle",{key:2,cx:s.value.width/2,cy:s.value.height/2,r:p.value<=0?10:p.value,fill:`url(#gradient_${f.value})`},null,8,Ie)):e.createCommentVNode("",!0),d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:l.arcSlice,fill:b.value===u?"rgba(0,0,0,0.1)":"transparent",onMouseenter:n=>fe({datapoint:l,relativeIndex:u,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=n=>{O.value=!1,b.value=null}),onClick:n=>z(l,u)},null,40,qe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.show?(e.openBlock(),e.createElementBlock("circle",{key:4,cx:s.value.width/2,cy:s.value.height/2,r:p.value-L.value<=0?10:p.value-L.value,fill:t.value.style.chart.backgroundColor},null,8,Re)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:5,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,Ge)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,d.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:d.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Ye)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:7,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,He)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:8,"text-anchor":"middle",x:s.value.width/2,y:s.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(w.value?"--":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,Z.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:Z.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Ue)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",{filter:P(u),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",We,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-120:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-60:e.unref(o.calcMarkerOffsetX)(l).x,y:e.unref(o.calcMarkerOffsetY)(l)-(te.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u,isSafari:te.value,isVisible:_(l)&&v.value.dataLabels.show,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor,percentage:Q(l,C.value)})),void 0,!0)])],8,Je))])):(e.openBlock(),e.createElementBlock("g",Ke,[_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.calcMarkerOffsetX)(l).x,cy:e.unref(o.calcMarkerOffsetY)(l)-3.5,fill:l.color,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(b.value)||b.value===u?"":`url(#blur_${f.value})`,onClick:n=>z(l,u)},null,8,Qe)):e.createCommentVNode("",!0),_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:n=>z(l,u)},e.toDisplayString(Q(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Ze)):e.createCommentVNode("",!0),_(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:n=>z(l,u)},e.toDisplayString(l.name),13,et)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",tt,[_(l)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(o.calcMarkerOffsetX)(l).x),y:e.unref(o.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,lt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,je))),256)),e.renderSlot(a.$slots,"svg",{svg:s.value},void 0,!0)],14,Se)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",at,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(R)||e.unref(G)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ke.Legend,{key:0,legendSet:K.value,config:de.value,onClickMarker:r[1]||(r[1]=({i:l})=>J(l))},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:n=>l.segregate(),style:e.normalizeStyle(`opacity:${y.value.includes(u)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:u}))+" ",1),y.value.includes(u)?(e.openBlock(),e.createElementBlock("span",ut," ( "+e.toDisplayString(pe(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",rt," ("+e.toDisplayString(isNaN(l.value/d.value)?"-":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,w.value?l.proportion*100:l.value/d.value*100,e.unref(o.dataLabel)({v:w.value?l.proportion*100:l.value/d.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ot)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:K.value},void 0,!0)],512),e.createVNode(ge._sfc_main,{show:v.value.showTooltip&&O.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:F.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...D.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),S.value?(e.openBlock(),e.createBlock(Ce.default,{key:5,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(be.DataTable,{colNames:T.value.colNames,head:T.value.head,body:T.value.body,config:T.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[2]||(r[2]=l=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,nt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(o.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):l:e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Be))}},ct=xe._export_sfc(st,[["__scopeId","data-v-66476e18"]]);exports.default=ct;