vue-data-ui 2.3.92 → 2.3.94

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 (148) hide show
  1. package/dist/{Arrow-CdJD01md.cjs → Arrow-Dqk-HgBj.cjs} +1 -1
  2. package/dist/{Arrow-16rQhq4i.js → Arrow-FQNwuQt_.js} +1 -1
  3. package/dist/{BaseIcon-CAmYNoaf.js → BaseIcon-CcOdzI48.js} +1 -1
  4. package/dist/{BaseIcon-dYWMubrH.cjs → BaseIcon-DhAyJ2rW.cjs} +1 -1
  5. package/dist/{DataTable-BXnbua0J.js → DataTable-D1vDu_2B.js} +2 -2
  6. package/dist/{DataTable-oa0Srfuc.cjs → DataTable-kOScyzFF.cjs} +1 -1
  7. package/dist/{Legend-Dhm9_peB.cjs → Legend-BJdr5n-o.cjs} +1 -1
  8. package/dist/{Legend-Cr1hulgT.js → Legend-CZk6McMv.js} +1 -1
  9. package/dist/{PackageVersion-BVZfgDqm.js → PackageVersion-DDKechCD.js} +1 -1
  10. package/dist/{PackageVersion-BkgJVmj1.cjs → PackageVersion-Tm6EPIDH.cjs} +1 -1
  11. package/dist/{Shape-hGbEoQOv.cjs → Shape-CHWOgbhq.cjs} +1 -1
  12. package/dist/{Shape-D75m5xWM.js → Shape-CY3Tsyaq.js} +1 -1
  13. package/dist/{Slicer-B7ya0m2Q.cjs → Slicer-C0R4JA2q.cjs} +1 -1
  14. package/dist/{Slicer-Bx8AozB8.js → Slicer-DBVND1TR.js} +15 -15
  15. package/dist/{Title-1Sw6EmHy.js → Title-B6kWQmNb.js} +1 -1
  16. package/dist/{Title-Bjrh7khe.cjs → Title-DAEaaXFr.cjs} +1 -1
  17. package/dist/{Tooltip-CPATjuur.cjs → Tooltip-Cb9jWppv.cjs} +1 -1
  18. package/dist/{Tooltip-EJf3VBPR.js → Tooltip-Cwp4dS4t.js} +1 -1
  19. package/dist/{index-DhJby8wL.js → index-Bu852AzK.js} +725 -705
  20. package/dist/index-jAZxyteD.cjs +9 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1 -0
  23. package/dist/types/vue-data-ui.d.ts +1 -0
  24. package/dist/{useNestedProp-CrHvyupb.js → useNestedProp-1sCLAHuR.js} +1 -1
  25. package/dist/{useNestedProp-Bwd7mK1Z.cjs → useNestedProp-DksYpyh6.cjs} +1 -1
  26. package/dist/{usePrinter-Bwm8J3RQ.js → usePrinter-CaNEdNUc.js} +1 -1
  27. package/dist/{usePrinter-DdsPm5a4.cjs → usePrinter-Cx-xmAjb.cjs} +1 -1
  28. package/dist/{vue-data-ui-CLxne31S.js → vue-data-ui-DRT0INR_.js} +57 -57
  29. package/dist/{vue-data-ui-ZitCqVgG.cjs → vue-data-ui-DVWQuwQb.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +5 -5
  32. package/dist/{vue-ui-3d-bar-Dg87_AAm.js → vue-ui-3d-bar-CwTmIafL.js} +8 -8
  33. package/dist/{vue-ui-3d-bar-DAv5cYGJ.cjs → vue-ui-3d-bar-fPokAY4t.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-Cn5Jbplg.js → vue-ui-accordion-CBwmD_zS.js} +3 -3
  35. package/dist/{vue-ui-accordion-BAHX7KzB.cjs → vue-ui-accordion-WXKee19V.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-PlamQWqC.js → vue-ui-age-pyramid-BuJ384HP.js} +9 -9
  37. package/dist/{vue-ui-age-pyramid-GzHwQzsH.cjs → vue-ui-age-pyramid-CSlbHHIq.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-Dd5KF_cy.js → vue-ui-annotator-CQQfgcyq.js} +1 -1
  39. package/dist/{vue-ui-annotator-DGgQwl-K.cjs → vue-ui-annotator-DqCVD1IT.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BIEB2J1w.cjs → vue-ui-candlestick-2uxcI-Xb.cjs} +1 -1
  41. package/dist/{vue-ui-candlestick-DTzwPhV5.js → vue-ui-candlestick-O0pBnymd.js} +10 -10
  42. package/dist/{vue-ui-carousel-table-YEfvPESA.js → vue-ui-carousel-table-CpaHwBTF.js} +4 -4
  43. package/dist/{vue-ui-carousel-table-HNTf5AYY.cjs → vue-ui-carousel-table-DJelccvO.cjs} +1 -1
  44. package/dist/{vue-ui-chestnut-DzjdAYsT.cjs → vue-ui-chestnut-DoS0ZkSz.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-PzMOM7mp.js → vue-ui-chestnut-bP29gPF2.js} +7 -7
  46. package/dist/{vue-ui-cursor-DWea2yXV.js → vue-ui-cursor-BXsEO1jQ.js} +2 -2
  47. package/dist/{vue-ui-cursor-C5rsiCdn.cjs → vue-ui-cursor-DvrLmTy2.cjs} +1 -1
  48. package/dist/{vue-ui-dashboard-BqXhoS8m.cjs → vue-ui-dashboard-CtAtCuEu.cjs} +1 -1
  49. package/dist/{vue-ui-dashboard-CVespiTo.js → vue-ui-dashboard-VQiRxgUe.js} +2 -2
  50. package/dist/{vue-ui-digits-gNKgZqYU.js → vue-ui-digits-2h-uYg5M.js} +2 -2
  51. package/dist/{vue-ui-digits-wmDN7Vkf.cjs → vue-ui-digits-DxwUUK2a.cjs} +1 -1
  52. package/dist/vue-ui-donut-CVkNiaR7.js +999 -0
  53. package/dist/vue-ui-donut-ClCDBTXq.cjs +1 -0
  54. package/dist/{vue-ui-donut-evolution-DhDxLZ1J.cjs → vue-ui-donut-evolution-CVy-DhHk.cjs} +1 -1
  55. package/dist/{vue-ui-donut-evolution-Ch6HH0ja.js → vue-ui-donut-evolution-D0HDE6fN.js} +53 -53
  56. package/dist/{vue-ui-dumbbell-B9Z_pjnG.cjs → vue-ui-dumbbell-CblIThyd.cjs} +1 -1
  57. package/dist/{vue-ui-dumbbell-lFlZX8Yi.js → vue-ui-dumbbell-DIVxIXgO.js} +9 -9
  58. package/dist/{vue-ui-flow-CSIOC-JR.js → vue-ui-flow-Cy5HKKbs.js} +20 -20
  59. package/dist/{vue-ui-flow-BaFpUJg-.cjs → vue-ui-flow-Dbw0yzSb.cjs} +1 -1
  60. package/dist/{vue-ui-galaxy-DL2mnel_.js → vue-ui-galaxy-CBR86BVE.js} +23 -23
  61. package/dist/{vue-ui-galaxy-BIR5GxIc.cjs → vue-ui-galaxy-Z5-e5hHG.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-BMq7KT3t.js → vue-ui-gauge-BwC9HPyF.js} +19 -19
  63. package/dist/{vue-ui-gauge-r_qvpwE7.cjs → vue-ui-gauge-DAgx6nds.cjs} +1 -1
  64. package/dist/{vue-ui-gizmo-DBas_Sw_.cjs → vue-ui-gizmo-5FygVg05.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-Dj7zvNI1.js → vue-ui-gizmo-D6U5riWt.js} +3 -3
  66. package/dist/{vue-ui-heatmap-pqBYIrxm.js → vue-ui-heatmap-PVlvCw_B.js} +9 -9
  67. package/dist/{vue-ui-heatmap-qPgEhAzc.cjs → vue-ui-heatmap-XVVbgtw6.cjs} +1 -1
  68. package/dist/{vue-ui-kpi-Cmo9J7wp.cjs → vue-ui-kpi-2eoTT0Hv.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-ZPBinMiF.js → vue-ui-kpi-DiG34MXd.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-DOTWhLi9.js → vue-ui-mini-loader-CVOfsZ-d.js} +2 -2
  71. package/dist/{vue-ui-mini-loader-Ce-jbgMT.cjs → vue-ui-mini-loader-DpoTiQhx.cjs} +1 -1
  72. package/dist/{vue-ui-molecule-RDpgNrHQ.js → vue-ui-molecule-85QzZoSm.js} +29 -29
  73. package/dist/{vue-ui-molecule-D429iwPP.cjs → vue-ui-molecule-Mt0YXGcP.cjs} +1 -1
  74. package/dist/{vue-ui-mood-radar-CdLJxrkT.cjs → vue-ui-mood-radar-B3xF0_xt.cjs} +1 -1
  75. package/dist/{vue-ui-mood-radar-CD5L8WCU.js → vue-ui-mood-radar-Ds21V6oP.js} +21 -21
  76. package/dist/{vue-ui-nested-donuts-A-tid5cQ.js → vue-ui-nested-donuts-BrMouz8T.js} +46 -46
  77. package/dist/{vue-ui-nested-donuts-DyM3uc7x.cjs → vue-ui-nested-donuts-DFrY4v-O.cjs} +1 -1
  78. package/dist/{vue-ui-onion-BKql8oal.cjs → vue-ui-onion-CQu0-ZlV.cjs} +1 -1
  79. package/dist/{vue-ui-onion-Cap01Ehu.js → vue-ui-onion-ZWa0bPAG.js} +10 -10
  80. package/dist/{vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs → vue-ui-parallel-coordinate-plot-Cet-vJ3E.cjs} +1 -1
  81. package/dist/{vue-ui-parallel-coordinate-plot-CcDKe4L0.js → vue-ui-parallel-coordinate-plot-SpCkXomG.js} +11 -11
  82. package/dist/{vue-ui-quadrant-CZzdpeQ2.cjs → vue-ui-quadrant-B1fnSqPf.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-BDEfAeyJ.js → vue-ui-quadrant-DwxUTnpH.js} +11 -11
  84. package/dist/{vue-ui-quick-chart-DlAUYg5u.js → vue-ui-quick-chart-DDSDdZMZ.js} +8 -8
  85. package/dist/{vue-ui-quick-chart-DpGYUyhq.cjs → vue-ui-quick-chart-DSOONkrO.cjs} +1 -1
  86. package/dist/{vue-ui-radar-oBeaHlpT.cjs → vue-ui-radar-CQJzxB9Y.cjs} +1 -1
  87. package/dist/{vue-ui-radar-CbTln7gs.js → vue-ui-radar-Cc4hxNkF.js} +11 -11
  88. package/dist/{vue-ui-rating-BkDncqow.js → vue-ui-rating-CRs01ao2.js} +7 -7
  89. package/dist/{vue-ui-rating-BU7-F3_e.cjs → vue-ui-rating-DRLfSg4n.cjs} +1 -1
  90. package/dist/{vue-ui-relation-circle-IWiJWgcB.cjs → vue-ui-relation-circle-BZcoHhTb.cjs} +1 -1
  91. package/dist/{vue-ui-relation-circle-C5B6UNGd.js → vue-ui-relation-circle-mlXpg86O.js} +6 -6
  92. package/dist/{vue-ui-rings-BujVUJ90.js → vue-ui-rings-DHlbwWrt.js} +37 -37
  93. package/dist/{vue-ui-rings-Df2cRgD8.cjs → vue-ui-rings-OeMdVo_s.cjs} +1 -1
  94. package/dist/{vue-ui-scatter-jFTeM2hW.cjs → vue-ui-scatter-D65sxQAb.cjs} +1 -1
  95. package/dist/{vue-ui-scatter-D6yqZJ7s.js → vue-ui-scatter-DtX5NOb_.js} +34 -34
  96. package/dist/{vue-ui-screenshot-CVu8IM33.cjs → vue-ui-screenshot-B1pv3wKU.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-CHAySwpv.js → vue-ui-screenshot-BwgdW92q.js} +1 -1
  98. package/dist/{vue-ui-skeleton-ASX40MGk.js → vue-ui-skeleton-B-obKEDg.js} +49 -49
  99. package/dist/{vue-ui-skeleton-CAlTn_Cg.cjs → vue-ui-skeleton-C14g9G-o.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-dwCqhB0r.cjs → vue-ui-smiley-CHY-BKbe.cjs} +1 -1
  101. package/dist/{vue-ui-smiley-DGVzhza2.js → vue-ui-smiley-i8xqKjND.js} +2 -2
  102. package/dist/{vue-ui-spark-trend-B7XhDvTj.js → vue-ui-spark-trend-DzZsfML2.js} +20 -20
  103. package/dist/{vue-ui-spark-trend-A1EHFK_r.cjs → vue-ui-spark-trend-i3VmY_gx.cjs} +1 -1
  104. package/dist/{vue-ui-sparkbar-BuNcvi66.js → vue-ui-sparkbar-7rOXvOgH.js} +4 -4
  105. package/dist/{vue-ui-sparkbar-CwNjHOjD.cjs → vue-ui-sparkbar-BnYKNJWQ.cjs} +1 -1
  106. package/dist/{vue-ui-sparkgauge-ISu154lS.cjs → vue-ui-sparkgauge-BuOMrzYW.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-JY2kB9WX.js → vue-ui-sparkgauge-DnphjNVE.js} +11 -11
  108. package/dist/{vue-ui-sparkhistogram-C8zyC-ii.cjs → vue-ui-sparkhistogram-DZaNR3tu.cjs} +1 -1
  109. package/dist/{vue-ui-sparkhistogram-DyEPWxkP.js → vue-ui-sparkhistogram-DvLl4E_s.js} +5 -5
  110. package/dist/{vue-ui-sparkline-DL3Thtc4.cjs → vue-ui-sparkline-BpmqNCQy.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-DYC3sdvQ.js → vue-ui-sparkline-CPjnG7wg.js} +21 -21
  112. package/dist/{vue-ui-sparkstackbar-7TmtP3WR.js → vue-ui-sparkstackbar-BGgNBuJz.js} +4 -4
  113. package/dist/{vue-ui-sparkstackbar-ChIM9bn2.cjs → vue-ui-sparkstackbar-CJ17fiW5.cjs} +1 -1
  114. package/dist/{vue-ui-stackbar-DrtiSaNc.cjs → vue-ui-stackbar-CFoe4XwZ.cjs} +1 -1
  115. package/dist/{vue-ui-stackbar-CP5C6Gb_.js → vue-ui-stackbar-SFKe9f6_.js} +11 -11
  116. package/dist/{vue-ui-strip-plot-BMYMIHGu.cjs → vue-ui-strip-plot-B8utOfmZ.cjs} +1 -1
  117. package/dist/{vue-ui-strip-plot-DJQCq_KE.js → vue-ui-strip-plot-CGgheJ1-.js} +10 -10
  118. package/dist/{vue-ui-table-D6hvgMif.cjs → vue-ui-table-BpSsgihB.cjs} +1 -1
  119. package/dist/{vue-ui-table-IJi0xaVg.js → vue-ui-table-JOi6x-Kt.js} +10 -10
  120. package/dist/{vue-ui-table-heatmap-Ls8_xq0D.js → vue-ui-table-heatmap-EeR8_0fs.js} +23 -23
  121. package/dist/{vue-ui-table-heatmap-BZNKXZNs.cjs → vue-ui-table-heatmap-fNf5Hgfn.cjs} +1 -1
  122. package/dist/{vue-ui-table-sparkline-BeuvdssX.js → vue-ui-table-sparkline-of9ZervK.js} +15 -15
  123. package/dist/{vue-ui-table-sparkline-BQFK30H1.cjs → vue-ui-table-sparkline-yjChfsNj.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-DKm8SXlE.cjs → vue-ui-thermometer-Ct59Zrkd.cjs} +1 -1
  125. package/dist/{vue-ui-thermometer-DPWIvG92.js → vue-ui-thermometer-Hb5jQa3y.js} +6 -6
  126. package/dist/{vue-ui-timer-CEzDvZf7.js → vue-ui-timer-Duo6PjNq.js} +5 -5
  127. package/dist/{vue-ui-timer-n6lv7oTx.cjs → vue-ui-timer-nIKem40S.cjs} +1 -1
  128. package/dist/{vue-ui-tiremarks-B33mHXZN.cjs → vue-ui-tiremarks-D5vYyYcq.cjs} +1 -1
  129. package/dist/{vue-ui-tiremarks-BUGoY22W.js → vue-ui-tiremarks-rxEA2WzL.js} +6 -6
  130. package/dist/{vue-ui-treemap-DPxBZUUr.cjs → vue-ui-treemap-DK5klTWq.cjs} +1 -1
  131. package/dist/{vue-ui-treemap-DmOYjJ_F.js → vue-ui-treemap-DWDrLYPR.js} +10 -10
  132. package/dist/{vue-ui-vertical-bar-BpVKdSY5.js → vue-ui-vertical-bar-3TzyIQBn.js} +10 -10
  133. package/dist/{vue-ui-vertical-bar-BJMYX8t4.cjs → vue-ui-vertical-bar-CCOjOr9t.cjs} +1 -1
  134. package/dist/{vue-ui-waffle-ULg6SwPx.js → vue-ui-waffle-CUiQJf4B.js} +23 -23
  135. package/dist/{vue-ui-waffle-DGcueccy.cjs → vue-ui-waffle-CzbWP2YI.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-CWKq-CFW.cjs → vue-ui-wheel-BgLqSlSe.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DlmgZd-_.js → vue-ui-wheel-DJe1aYWh.js} +6 -6
  138. package/dist/vue-ui-word-cloud-CS4EPwJc.cjs +1 -0
  139. package/dist/{vue-ui-word-cloud-DWyboczt.js → vue-ui-word-cloud-ouNY0ixo.js} +75 -75
  140. package/dist/{vue-ui-xy-Cz81fw_E.cjs → vue-ui-xy-DkHIDMtO.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-B9cRe5gT.js → vue-ui-xy-canvas-CGG7Levw.js} +34 -34
  142. package/dist/{vue-ui-xy-canvas-GiuHOyj5.cjs → vue-ui-xy-canvas-iMF1sItL.cjs} +1 -1
  143. package/dist/{vue-ui-xy-V13Ns1gv.js → vue-ui-xy-iQJGfaFk.js} +28 -28
  144. package/package.json +1 -1
  145. package/dist/index-D09qCApg.cjs +0 -4
  146. package/dist/vue-ui-donut-n37BZPxr.cjs +0 -1
  147. package/dist/vue-ui-donut-sQunZI1L.js +0 -871
  148. package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-D09qCApg.cjs"),ie=require("./useResponsive-B3TrDDIG.cjs"),Ce=require("./Title-Bjrh7khe.cjs"),ve=require("./usePrinter-DdsPm5a4.cjs"),xe=require("./DataTable-oa0Srfuc.cjs"),_e=require("./Tooltip-CPATjuur.cjs"),Be=require("./Legend-Dhm9_peB.cjs"),Se=require("./vue-ui-skeleton-CAlTn_Cg.cjs"),$e=require("./vue-ui-accordion-BAHX7KzB.cjs"),de=require("./useNestedProp-Bwd7mK1Z.cjs"),Le=require("./PackageVersion-BkgJVmj1.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=B=>(e.pushScopeId("data-v-98fd948d"),B=B(),e.popScopeId(),B),Ve=["id"],Oe=["xmlns","viewBox"],ze=["id"],Te=["stop-color"],Fe=["offset","stop-color"],De=["offset","stop-color"],Pe=["stop-color"],Me=["id"],Xe=["id"],Ae=Ee(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Ie=["id"],qe=["flood-color"],Re=["d","stroke","filter"],Ge=["cx","cy","r","fill","filter"],Ye=["stroke","d"],Ue=["d","fill","stroke","stroke-width","filter"],je=["cx","cy","r","fill","stroke"],He=["cx","cy","r","fill"],We=["d","fill","onMouseenter","onClick"],Je=["x","y","fill","font-size"],Ke=["x","y","fill","font-size"],Qe=["x","y","fill","font-size"],Ze=["x","y","fill","font-size"],et=["filter"],tt={key:0},lt=["x","y"],at={key:1},ot=["cx","cy","fill","filter","onClick"],rt=["text-anchor","x","y","fill","font-size","onClick"],nt=["text-anchor","x","y","fill","font-size","onClick"],ut={key:2},st=["x","y","width"],ct={key:3,class:"vue-data-ui-watermark"},it=["onClick"],vt={key:0,style:{"font-variant-numeric":"tabular-nums"}},dt={key:1},ft=["innerHTML"],ht={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(B,{expose:fe,emit:X}){const p=B,{vue_ui_donut:he}=o.useConfig(),S=e.computed({get(){return!!p.dataset&&p.dataset.length},set(a){return a}}),$=e.ref(null),A=e.ref(null),I=e.ref(null),V=e.ref(null),q=e.ref(0),R=e.ref(0),G=e.ref(0);e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{V.value&&V.value.disconnect()});function Y(){if(o.objectIsEmpty(p.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):p.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=ie.throttle(()=>{const{width:r,height:l}=ie.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)}}const y=e.ref(o.createUid()),ye=e.ref(null),T=e.ref(!1),F=e.ref(""),b=e.ref(null),U=e.ref(0);function j(){const a=de.useNestedProp({userConfig:p.config,defaultConfig:he});return a.theme?{...de.useNestedProp({userConfig:o.themes.vue_ui_donut[a.theme]||p.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}const t=e.computed({get:()=>j(),set:a=>a});e.watch(()=>p.config,a=>{t.value=j(),Y(),q.value+=1,R.value+=1,G.value+=1},{deep:!0});const{isPrinting:H,isImaging:W,generatePdf:J,generateImage:K}=ve.usePrinter({elementId:`donut__${y.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),Q=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,l=r>h.value?h.value:r;return l<24?24:l}),k=e.computed(()=>p.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:a.values.reduce((l,n)=>l+n,0),absoluteValues:a.values,comment:a.comment||""}))),f=e.ref(k.value);e.watch(()=>k.value,a=>f.value=a);function pe(){return k.value.map(a=>({name:a.name,color:a.color,value:a.value}))}const m=e.ref([]),Z=e.ref(null),ee=e.ref(null),w=e.ref(!1);function te(a){const r=k.value.find((u,i)=>i===a);let n=f.value.find((u,i)=>i===a).value;if(m.value.includes(a)){let i=function(){n>u?(cancelAnimationFrame(Z.value),f.value=f.value.map((c,M)=>a===M?{...c,value:u}:c),w.value=!1):(w.value=!0,n+=u*.025,f.value=f.value.map((c,M)=>a===M?{...c,value:n}:c),Z.value=requestAnimationFrame(i))};m.value=m.value.filter(c=>c!==a);const u=r.value;i()}else if(m.value.length<k.value.length-1){let u=function(){n<.1?(cancelAnimationFrame(ee.value),m.value.push(a),f.value=f.value.map((i,c)=>a===c?{...i,value:0}:i),w.value=!1):(w.value=!0,n/=1.1,f.value=f.value.map((i,c)=>a===c?{...i,value:n}:i),ee.value=requestAnimationFrame(u))};u()}X("selectLegend",x.value.map(u=>({name:u.name,color:u.color,value:u.value})))}const x=e.computed(()=>(f.value.forEach((a,r)=>{if([null,void 0].includes(a.values))return{...a,values:[]}}),f.value.map((a,r)=>({...a,seriesIndex:r})).filter((a,r)=>!m.value.includes(r)))),le=e.computed(()=>p.dataset.map((a,r)=>({name:a.name,color:o.convertColorToHex(a.color)||Q.value[r]||o.palette[r]||o.palette[r%o.palette.length],value:(a.values||[]).reduce((l,n)=>l+n,0),shape:"circle"})).map((a,r)=>({...a,proportion:a.value/p.dataset.map(l=>(l.values||[]).reduce((n,u)=>n+u,0)).reduce((l,n)=>l+n,0),opacity:m.value.includes(r)?.5:1,segregate:()=>te(r),isSegregated:m.value.includes(r)}))),me=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":""})),h=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,h.value,h.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 ae(a,r){const l=a.value/be(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 be(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)),oe=e.computed(()=>d.value/x.value.length),D=e.ref(null),N=e.ref(!1);function ge({datapoint:a,relativeIndex:r,seriesIndex:l,show:n=!1}){D.value={datapoint:a,seriesIndex:l,config:t.value,series:k.value},T.value=n,b.value=r;let u="";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(u+=`<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>`,u+=`<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&&(u+=`<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?u+=`<span>(${c})</span></div>`:u+=`<b>${c}</b></div>`}t.value.style.chart.comments.showInTooltip&&a.comment&&(u+=`<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>${u}</div>`}}function P(a){return t.value.useBlurOnHover&&![null,void 0].includes(b.value)&&b.value!==a?`url(#blur_${y.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 re(){e.nextTick(()=>{const a=g.value.head.map((n,u)=>[[n.name],[g.value.body[u]],[isNaN(g.value.body[u]/d.value)?"-":g.value.body[u]/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 O=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((u,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:u.color,name:u.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 ke(a){E.value=a,U.value+=1}const ne=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function we(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 ue(){v.value.showTable=!v.value.showTable}function se(){v.value.dataLabels.show=!v.value.dataLabels.show}function ce(){v.value.showTooltip=!v.value.showTooltip}return fe({getData:pe,generatePdf:J,generateCsv:re,generateImage:K,toggleTable:ue,toggleLabels:se,toggleTooltip:ce}),(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__${y.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:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${q.value}`,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"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&S.value?(e.openBlock(),e.createBlock(ve.UserOptions,{ref_key:"details",ref:ye,key:`user_option_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(H),isImaging:e.unref(W),uid:y.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,position:t.value.userOptions.position,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:ke,onGeneratePdf:e.unref(J),onGenerateCsv:re,onGenerateImage:e.unref(K),onToggleTable:ue,onToggleLabels:se,onToggleTooltip:ce},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:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","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:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Le._sfc_main),e.createElementVNode("defs",null,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Te),e.createElementVNode("stop",{offset:`${(1-L.value/h.value)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Fe),e.createElementVNode("stop",{offset:`${(1-L.value/h.value/2)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Pe)],8,ze)):e.createCommentVNode("",!0)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${y.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${y.value}`},null,8,Xe),Ae],8,Me),e.createElementVNode("filter",{id:`shadow_${y.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,qe)],8,Ie)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,n)=>(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(n)},null,8,Re)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:s.value.width/2,cy:s.value.height/2,r:h.value<=0?10:h.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${y.value})`:""},null,8,Ge),d.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,Ye))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(o.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:P(n)},null,8,Ue))),256))],64)):(e.openBlock(),e.createElementBlock("circle",{key:1,cx:s.value.width/2,cy:s.value.height/2,r:h.value<=0?10:h.value,fill:t.value.style.chart.backgroundColor,stroke:e.unref(o.adaptColorToBackground)(t.value.style.chart.background)},null,8,je)),t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("circle",{key:2,cx:s.value.width/2,cy:s.value.height/2,r:h.value<=0?10:h.value,fill:`url(#gradient_${y.value})`},null,8,He)):e.createCommentVNode("",!0),d.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(C.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:l.arcSlice,fill:b.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:u=>ge({datapoint:l,relativeIndex:n,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=u=>{T.value=!1,b.value=null}),onClick:u=>z(l,n)},null,40,We))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:4,"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,Je)):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.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,Ke)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.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.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,Qe)):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.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,oe.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:oe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Ze)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",{filter:P(n),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",tt,[(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)-(ne.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===n,isSafari:ne.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:ae(l,C.value)})),void 0,!0)])],8,lt))])):(e.openBlock(),e.createElementBlock("g",at,[_(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===n?"":`url(#blur_${y.value})`,onClick:u=>z(l,n)},null,8,ot)):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:u=>z(l,n)},e.toDisplayString(ae(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,rt)):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:u=>z(l,n)},e.toDisplayString(l.name),13,nt)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",ut,[_(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,st)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,et))),256)),e.renderSlot(a.$slots,"svg",{svg:s.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(H)||e.unref(W)})),void 0,!0)])):e.createCommentVNode("",!0),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.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(Be.Legend,{key:`legend_${G.value}`,legendSet:le.value,config:me.value,onClickMarker:r[1]||(r[1]=({i:l})=>te(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:u=>l.segregate(),style:e.normalizeStyle(`opacity:${m.value.includes(n)?.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:n}))+" ",1),m.value.includes(n)?(e.openBlock(),e.createElementBlock("span",dt," ( "+e.toDisplayString(we(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",vt," ("+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,it)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:le.value},void 0,!0)],512),e.createVNode(_e._sfc_main,{show:v.value.showTooltip&&T.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($e.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.openBlock(),e.createBlock(xe.DataTable,{key:`table_${R.value}`,colNames:O.value.colNames,head:O.value.head,body:O.value.body,config:O.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,ft)]),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,Ve))}},yt=Ne._export_sfc(ht,[["__scopeId","data-v-98fd948d"]]);exports.default=yt;