vue-data-ui 2.5.7 → 2.5.9

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 (157) hide show
  1. package/README.md +83 -1
  2. package/dist/{Arrow-BQy5IqAX.cjs → Arrow-CDI_L834.cjs} +1 -1
  3. package/dist/{Arrow-5QI0f9hp.js → Arrow-DMfadOFB.js} +1 -1
  4. package/dist/{BaseIcon-BXpK120h.js → BaseIcon-CE4KhOox.js} +1 -1
  5. package/dist/{BaseIcon-Dk8gByg1.cjs → BaseIcon-CSpqq62V.cjs} +1 -1
  6. package/dist/{DataTable-CpOh1tx3.js → DataTable-C_YX1pwI.js} +2 -2
  7. package/dist/{DataTable-D93-QmC8.cjs → DataTable-cvwMC0Ke.cjs} +1 -1
  8. package/dist/{Legend-DqRstaxU.js → Legend-BIE7T807.js} +2 -2
  9. package/dist/{Legend-Dh9aF6uH.cjs → Legend-C91nJUyp.cjs} +1 -1
  10. package/dist/{PackageVersion-CdmZAhdE.cjs → PackageVersion-B5cHkz3-.cjs} +1 -1
  11. package/dist/{PackageVersion-iscNRe7N.js → PackageVersion-N_Q2K_Kp.js} +1 -1
  12. package/dist/{PenAndPaper-BsncKiRE.cjs → PenAndPaper-BVSRnwAP.cjs} +1 -1
  13. package/dist/{PenAndPaper-B-VQ8eSo.js → PenAndPaper-NvAJhDOQ.js} +3 -3
  14. package/dist/{Shape-DZRynz5E.cjs → Shape-DvB-ALI9.cjs} +1 -1
  15. package/dist/{Shape-CB0mE9KP.js → Shape-o0w_YFes.js} +1 -1
  16. package/dist/{Slicer-Cm0a7Otv.cjs → Slicer-DFMMoat-.cjs} +1 -1
  17. package/dist/{Slicer-DiUftIFQ.js → Slicer-jSg6umvj.js} +2 -2
  18. package/dist/{Title-CiQQgFbV.js → Title-DP3fclaW.js} +1 -1
  19. package/dist/{Title-DFq_8HYJ.cjs → Title-zIr3pW0Y.cjs} +1 -1
  20. package/dist/{Tooltip-ZYQUXVWv.js → Tooltip-DpqJj1_e.js} +1 -1
  21. package/dist/{Tooltip-pcZXVRMj.cjs → Tooltip-JUdLirBN.cjs} +1 -1
  22. package/dist/documentation/installation.md +1 -1
  23. package/dist/{index-DiqenHrX.js → index-B6iCkgQj.js} +1 -1
  24. package/dist/{index-C_VTEz1N.cjs → index-j0ggGyqh.cjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +46 -0
  27. package/dist/types/vue-data-ui.d.ts +46 -0
  28. package/dist/{useNestedProp-C7bLHE7v.cjs → useNestedProp-BBCLfU_n.cjs} +1 -1
  29. package/dist/{useNestedProp-B3CQkP95.js → useNestedProp-egyWxFl6.js} +1 -1
  30. package/dist/{usePrinter-DWCqeYW6.cjs → usePrinter-CosdKiXK.cjs} +1 -1
  31. package/dist/{usePrinter-CHAgX1f-.js → usePrinter-DEBltZby.js} +1 -1
  32. package/dist/{vue-data-ui-BAAnNikX.js → vue-data-ui-D8MNJnP8.js} +61 -61
  33. package/dist/{vue-data-ui-VikO3yRe.cjs → vue-data-ui-DcaK4iTA.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +9 -8
  36. package/dist/{vue-ui-3d-bar-BR-ihA3S.cjs → vue-ui-3d-bar-DSluLRkx.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-C4OjP6pi.js → vue-ui-3d-bar-DmHG0BRY.js} +9 -9
  38. package/dist/{vue-ui-accordion-DA6XnWaz.js → vue-ui-accordion-CpTs7ThO.js} +3 -3
  39. package/dist/{vue-ui-accordion-CtBhoUw4.cjs → vue-ui-accordion-I9jITkh5.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-2AgqaHOS.js → vue-ui-age-pyramid-BO5zBebr.js} +10 -10
  41. package/dist/{vue-ui-age-pyramid-E0fCV03f.cjs → vue-ui-age-pyramid-DERS1GEK.cjs} +1 -1
  42. package/dist/{vue-ui-annotator-CdLA2R6h.js → vue-ui-annotator-BmQ1WZoF.js} +1 -1
  43. package/dist/{vue-ui-annotator-UcABxDAz.cjs → vue-ui-annotator-DPnDCeXh.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-C4wEiJn8.cjs → vue-ui-bullet-BH7ufdgn.cjs} +1 -1
  45. package/dist/{vue-ui-bullet-AFqmPWo3.js → vue-ui-bullet-QiEF5O5Z.js} +8 -8
  46. package/dist/{vue-ui-candlestick-BkQsD1Yi.cjs → vue-ui-candlestick-D8LUwHP_.cjs} +1 -1
  47. package/dist/{vue-ui-candlestick-Bs0DE1Xi.js → vue-ui-candlestick-DMhlF7OF.js} +11 -11
  48. package/dist/{vue-ui-carousel-table-NYlYQbo9.js → vue-ui-carousel-table-B_jSw5nK.js} +4 -4
  49. package/dist/{vue-ui-carousel-table-KX-cLx3F.cjs → vue-ui-carousel-table-s5TEXTHg.cjs} +1 -1
  50. package/dist/{vue-ui-chestnut-BzHRBq_Z.cjs → vue-ui-chestnut-CFeiJBCZ.cjs} +1 -1
  51. package/dist/{vue-ui-chestnut-BAJjfgKR.js → vue-ui-chestnut-DCeek-W6.js} +8 -8
  52. package/dist/vue-ui-circle-pack-B2wyvjmX.cjs +1 -0
  53. package/dist/{vue-ui-circle-pack-BoolEIij.js → vue-ui-circle-pack-B7_t2TS8.js} +227 -217
  54. package/dist/{vue-ui-cursor-ut60ihG1.js → vue-ui-cursor-BrZJeqQP.js} +2 -2
  55. package/dist/{vue-ui-cursor-BjQLjw1a.cjs → vue-ui-cursor-CBf8BAyI.cjs} +1 -1
  56. package/dist/{vue-ui-dashboard-FQxiN7Jj.js → vue-ui-dashboard-DiX6_Lu1.js} +2 -2
  57. package/dist/{vue-ui-dashboard-BXVdZdEF.cjs → vue-ui-dashboard-thDl2UZd.cjs} +1 -1
  58. package/dist/{vue-ui-digits-j2WKJUNf.cjs → vue-ui-digits-BmjxLWsH.cjs} +1 -1
  59. package/dist/{vue-ui-digits-Rb48H8et.js → vue-ui-digits-ffVg5Sdo.js} +2 -2
  60. package/dist/{vue-ui-donut-DUKnsxUu.js → vue-ui-donut-BPKISbjU.js} +12 -12
  61. package/dist/{vue-ui-donut-CbFW--I1.cjs → vue-ui-donut-Dnio43ap.cjs} +1 -1
  62. package/dist/{vue-ui-donut-evolution-n-ue754h.js → vue-ui-donut-evolution-6MFHeOYA.js} +11 -11
  63. package/dist/{vue-ui-donut-evolution-9mJgbwpR.cjs → vue-ui-donut-evolution-CVWbXBVz.cjs} +1 -1
  64. package/dist/{vue-ui-dumbbell-C4r0NeY_.js → vue-ui-dumbbell-9ON2GlRd.js} +10 -10
  65. package/dist/{vue-ui-dumbbell-sXSCnY75.cjs → vue-ui-dumbbell-BZkCJ0sm.cjs} +1 -1
  66. package/dist/{vue-ui-flow-CuZbUegy.js → vue-ui-flow-BZ59oOLx.js} +9 -9
  67. package/dist/{vue-ui-flow-C8-oqGo7.cjs → vue-ui-flow-D3_h_vbo.cjs} +1 -1
  68. package/dist/{vue-ui-funnel-Cb0LSIxk.cjs → vue-ui-funnel-CKGhYUAT.cjs} +1 -1
  69. package/dist/{vue-ui-funnel-D9whnJ6X.js → vue-ui-funnel-CfmnrlJc.js} +9 -9
  70. package/dist/{vue-ui-galaxy-CRECMRY6.js → vue-ui-galaxy-D79eHzul.js} +11 -11
  71. package/dist/{vue-ui-galaxy-DUHSlUJQ.cjs → vue-ui-galaxy-eworfjhq.cjs} +1 -1
  72. package/dist/{vue-ui-gauge-BfmvvI7e.cjs → vue-ui-gauge-Dep8eww5.cjs} +1 -1
  73. package/dist/{vue-ui-gauge-BEhMYmCg.js → vue-ui-gauge-FopbSPHo.js} +7 -7
  74. package/dist/{vue-ui-gizmo-BkZTXg7I.cjs → vue-ui-gizmo-DRfspDQI.cjs} +1 -1
  75. package/dist/{vue-ui-gizmo-DtXR6xgr.js → vue-ui-gizmo-Df5lHeLd.js} +3 -3
  76. package/dist/{vue-ui-heatmap-B1XZnqbm.cjs → vue-ui-heatmap-B2n7fqiJ.cjs} +1 -1
  77. package/dist/{vue-ui-heatmap-BlBHNDJV.js → vue-ui-heatmap-smAgvLBm.js} +10 -10
  78. package/dist/{vue-ui-history-plot-DqM3d3p7.cjs → vue-ui-history-plot-4UYJWhE5.cjs} +1 -1
  79. package/dist/{vue-ui-history-plot-BmzpDPL6.js → vue-ui-history-plot-CpO69hOT.js} +11 -11
  80. package/dist/{vue-ui-kpi-XdIADLDq.js → vue-ui-kpi-BWpoNAlF.js} +3 -3
  81. package/dist/{vue-ui-kpi-D1i-2otW.cjs → vue-ui-kpi-DN8R7Urm.cjs} +1 -1
  82. package/dist/{vue-ui-mini-loader-DZgbFjuS.cjs → vue-ui-mini-loader-DhQ61Wi8.cjs} +1 -1
  83. package/dist/{vue-ui-mini-loader-BdDY5AwD.js → vue-ui-mini-loader-nBgnWAxN.js} +2 -2
  84. package/dist/{vue-ui-molecule-a0IHQMkN.cjs → vue-ui-molecule-BV1l0DPy.cjs} +1 -1
  85. package/dist/{vue-ui-molecule-DstYXfTV.js → vue-ui-molecule-CZpmGIkh.js} +11 -11
  86. package/dist/{vue-ui-mood-radar-DjtnprtG.js → vue-ui-mood-radar-CTx3EsLc.js} +11 -11
  87. package/dist/{vue-ui-mood-radar-BafPNccC.cjs → vue-ui-mood-radar-D_Qxz-H3.cjs} +1 -1
  88. package/dist/{vue-ui-nested-donuts-XQ_auu4H.js → vue-ui-nested-donuts-CNXC60eJ.js} +11 -11
  89. package/dist/{vue-ui-nested-donuts-DC7oX5GH.cjs → vue-ui-nested-donuts-DqDmuoKl.cjs} +1 -1
  90. package/dist/{vue-ui-onion-D_myFmJv.js → vue-ui-onion-CYWHy2Ul.js} +11 -11
  91. package/dist/{vue-ui-onion-DEfVifyj.cjs → vue-ui-onion-gUY_8Pk7.cjs} +1 -1
  92. package/dist/{vue-ui-parallel-coordinate-plot-Bv3lIZ0J.cjs → vue-ui-parallel-coordinate-plot-CbWbh3YQ.cjs} +1 -1
  93. package/dist/{vue-ui-parallel-coordinate-plot-DQsyE4kf.js → vue-ui-parallel-coordinate-plot-D_ku0iBm.js} +12 -12
  94. package/dist/{vue-ui-quadrant-DXU4OdLD.cjs → vue-ui-quadrant-CcQtjV1R.cjs} +1 -1
  95. package/dist/{vue-ui-quadrant-DBvqgk3y.js → vue-ui-quadrant-DV-W3Bc7.js} +12 -12
  96. package/dist/{vue-ui-quick-chart-C-bsRZf1.js → vue-ui-quick-chart-CM_6czjm.js} +9 -9
  97. package/dist/{vue-ui-quick-chart-Dl-94hQE.cjs → vue-ui-quick-chart-m_0oN75l.cjs} +1 -1
  98. package/dist/{vue-ui-radar-QQ8vOOYq.cjs → vue-ui-radar-B3ZSBg8X.cjs} +1 -1
  99. package/dist/{vue-ui-radar-He8orFXJ.js → vue-ui-radar-CTYYMUUA.js} +12 -12
  100. package/dist/{vue-ui-rating-qUauyHHk.js → vue-ui-rating-B13cpPP5.js} +2 -2
  101. package/dist/{vue-ui-rating-6kyP3DDH.cjs → vue-ui-rating-C2O4ltHl.cjs} +1 -1
  102. package/dist/{vue-ui-relation-circle-BO4wP-bR.cjs → vue-ui-relation-circle-CCGfhiCo.cjs} +1 -1
  103. package/dist/{vue-ui-relation-circle-DfVg4VBp.js → vue-ui-relation-circle-D3-uWUh9.js} +7 -7
  104. package/dist/{vue-ui-rings-DjoVPXun.js → vue-ui-rings-B2-BG00g.js} +12 -12
  105. package/dist/{vue-ui-rings-D_cVoXDa.cjs → vue-ui-rings-CWy-hNpb.cjs} +1 -1
  106. package/dist/{vue-ui-scatter-45hc4NIf.cjs → vue-ui-scatter-B0vkzYer.cjs} +1 -1
  107. package/dist/{vue-ui-scatter-DBcO00g4.js → vue-ui-scatter-BweU03yc.js} +12 -12
  108. package/dist/{vue-ui-screenshot-zc-jsepS.js → vue-ui-screenshot-DCWrDOFK.js} +1 -1
  109. package/dist/{vue-ui-screenshot-lJJxoLDu.cjs → vue-ui-screenshot-DwbXIuKi.cjs} +1 -1
  110. package/dist/{vue-ui-skeleton-D1bJntn7.cjs → vue-ui-skeleton-B3chMg3p.cjs} +1 -1
  111. package/dist/{vue-ui-skeleton-BwWHgSoq.js → vue-ui-skeleton-BVn408dA.js} +3 -3
  112. package/dist/{vue-ui-smiley-BVFxYYJl.js → vue-ui-smiley-BNmpQkTu.js} +2 -2
  113. package/dist/{vue-ui-smiley-CZPe292C.cjs → vue-ui-smiley-Bm_Sor3t.cjs} +1 -1
  114. package/dist/{vue-ui-spark-trend-8LZqy_wz.js → vue-ui-spark-trend-CUjHlDOq.js} +5 -5
  115. package/dist/{vue-ui-spark-trend-BJ3_K1DU.cjs → vue-ui-spark-trend-iHE9BSRD.cjs} +1 -1
  116. package/dist/{vue-ui-sparkbar-C93PvNz6.js → vue-ui-sparkbar-0_5f6jHS.js} +4 -4
  117. package/dist/{vue-ui-sparkbar-B3idsjFj.cjs → vue-ui-sparkbar-Bwm4YKT1.cjs} +1 -1
  118. package/dist/{vue-ui-sparkgauge-B1uABI9w.js → vue-ui-sparkgauge-Bv39vGRr.js} +4 -4
  119. package/dist/{vue-ui-sparkgauge-66qZ-DgD.cjs → vue-ui-sparkgauge-Dou1ZAwl.cjs} +1 -1
  120. package/dist/{vue-ui-sparkhistogram-vAgBJK79.js → vue-ui-sparkhistogram-DmqjOiSy.js} +5 -5
  121. package/dist/{vue-ui-sparkhistogram-D7ECtpUW.cjs → vue-ui-sparkhistogram-DnUAwkLS.cjs} +1 -1
  122. package/dist/{vue-ui-sparkline-B2JarTjo.js → vue-ui-sparkline-0rGL6Gic.js} +4 -4
  123. package/dist/{vue-ui-sparkline-YOIgP_Dl.cjs → vue-ui-sparkline-rB-JplKe.cjs} +1 -1
  124. package/dist/{vue-ui-sparkstackbar-DMClZgds.cjs → vue-ui-sparkstackbar-BiAAKqhB.cjs} +1 -1
  125. package/dist/{vue-ui-sparkstackbar-C2E7YRP0.js → vue-ui-sparkstackbar-iWl3B8vy.js} +5 -5
  126. package/dist/{vue-ui-stackbar-n27TJh0C.js → vue-ui-stackbar-92YraSYR.js} +13 -13
  127. package/dist/{vue-ui-stackbar-BP_qrJ-s.cjs → vue-ui-stackbar-C8_nrogq.cjs} +1 -1
  128. package/dist/{vue-ui-strip-plot-DN7X6zBk.cjs → vue-ui-strip-plot-A5MnXNhF.cjs} +1 -1
  129. package/dist/{vue-ui-strip-plot-Bjy7C_Ry.js → vue-ui-strip-plot-CWkfKq60.js} +11 -11
  130. package/dist/{vue-ui-table-DnHvIIqi.js → vue-ui-table-4d9uSLEP.js} +1 -1
  131. package/dist/{vue-ui-table-6rqw4Gi-.cjs → vue-ui-table-DW_fRtOb.cjs} +1 -1
  132. package/dist/{vue-ui-table-heatmap-Dt8DAC4A.js → vue-ui-table-heatmap-D2a0wP1j.js} +4 -4
  133. package/dist/{vue-ui-table-heatmap-BQKXP9Na.cjs → vue-ui-table-heatmap-DNXHs86Z.cjs} +1 -1
  134. package/dist/{vue-ui-table-sparkline-CLQJbHX8.js → vue-ui-table-sparkline-DJLP27Ad.js} +5 -5
  135. package/dist/{vue-ui-table-sparkline-DmNJFPHo.cjs → vue-ui-table-sparkline-vLm9b1I5.cjs} +1 -1
  136. package/dist/{vue-ui-thermometer-BTmiPdUs.js → vue-ui-thermometer-CNts_rvi.js} +7 -7
  137. package/dist/{vue-ui-thermometer-DnVSE7_V.cjs → vue-ui-thermometer-DHSzFidy.cjs} +1 -1
  138. package/dist/{vue-ui-timer-D6j-aYnJ.js → vue-ui-timer-BFcOw1hO.js} +5 -5
  139. package/dist/{vue-ui-timer-CINerMki.cjs → vue-ui-timer-YFtl58_g.cjs} +1 -1
  140. package/dist/{vue-ui-tiremarks-CRGMkwwv.cjs → vue-ui-tiremarks-DoUwvkC6.cjs} +1 -1
  141. package/dist/{vue-ui-tiremarks-ztoJZwQn.js → vue-ui-tiremarks-uYzoi0Az.js} +7 -7
  142. package/dist/{vue-ui-treemap-CbqRlXgA.cjs → vue-ui-treemap-CCaxQbC5.cjs} +1 -1
  143. package/dist/{vue-ui-treemap-B0NYnKie.js → vue-ui-treemap-DyVr-7tU.js} +11 -11
  144. package/dist/{vue-ui-vertical-bar-DzcpRwPF.js → vue-ui-vertical-bar-CkIPLo9K.js} +12 -12
  145. package/dist/{vue-ui-vertical-bar-Cosr8beH.cjs → vue-ui-vertical-bar-DgkIij4V.cjs} +1 -1
  146. package/dist/{vue-ui-waffle-DkVKQERp.cjs → vue-ui-waffle-CRD2OK-Z.cjs} +1 -1
  147. package/dist/{vue-ui-waffle-CE1MnOqa.js → vue-ui-waffle-DMF4YPMb.js} +12 -12
  148. package/dist/{vue-ui-wheel-CGYGLKyG.cjs → vue-ui-wheel-B33BipCK.cjs} +1 -1
  149. package/dist/{vue-ui-wheel-DMS12xPv.js → vue-ui-wheel-GRUDawxW.js} +7 -7
  150. package/dist/{vue-ui-word-cloud-D_CyZOE0.js → vue-ui-word-cloud-BWkyB_vh.js} +10 -10
  151. package/dist/{vue-ui-word-cloud-C1klEiea.cjs → vue-ui-word-cloud-C3bj_ty9.cjs} +1 -1
  152. package/dist/{vue-ui-xy-GgA45y9X.js → vue-ui-xy-B5cBN3Pc.js} +14 -14
  153. package/dist/{vue-ui-xy-Nj-5ko1z.cjs → vue-ui-xy-D0hbPR0k.cjs} +1 -1
  154. package/dist/{vue-ui-xy-canvas-BRPQBL8l.js → vue-ui-xy-canvas-1ZUGY0mI.js} +11 -11
  155. package/dist/{vue-ui-xy-canvas-CQt5pre_.cjs → vue-ui-xy-canvas-CmrS0Mvt.cjs} +1 -1
  156. package/package.json +1 -1
  157. package/dist/vue-ui-circle-pack-BrmdreXG.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-C_VTEz1N.cjs"),Z=require("./usePrinter-DWCqeYW6.cjs"),me=require("./vue-ui-skeleton-D1bJntn7.cjs"),be=require("./BaseIcon-Dk8gByg1.cjs"),ge=require("./vue-ui-accordion-CtBhoUw4.cjs"),ee=require("./useNestedProp-C7bLHE7v.cjs"),ke=require("./PackageVersion-CdmZAhdE.cjs"),_e=require("./PenAndPaper-BsncKiRE.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se=["xmlns","viewBox"],Ce=["width","height"],we={key:1},ze=["fill","font-weight","font-size","x","y"],Ve=["fill","font-weight","font-size","x","y"],$e=["id"],Te=["stop-color"],Fe=["stop-color"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Me=["stop-color"],Ie=["stop-color"],Re=["stop-color"],Xe=["id"],Ae=["stop-color"],je=["stop-color"],Ge=["stop-color"],Ue=["id"],qe=["stop-color"],Ye=["stop-color"],He=["stop-color"],We={key:2},Ke=["x","y","font-size","font-weight","fill"],Je=["x","y","font-size","font-weight","fill"],Qe=["d","stroke"],Ze=["cx","cy","r","fill"],et=["cx","cy","r","fill","stroke","stroke-width","onClick"],tt={key:3},lt=["x","y","font-size","fill","onClick"],at={key:0},ot=["x","y","fill","font-size","font-weight"],nt=["x","y","height","width","fill","rx","onClick"],rt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],st={key:4},ut=["x","y","fill","font-size","onClick"],ct=["d","stroke"],it=["fill","cx","cy","r","onClick"],dt={key:5},yt=["x","y","font-size","font-weight","fill"],vt=["x1","x2","y1","y2","stroke","stroke-width"],ht=["y","height","width"],pt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},ft={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},mt={viewBox:"0 0 20 20",height:"16",width:"16"},bt=["fill"],gt={key:7},kt=["y","height","width"],_t={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},xt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},Bt={viewBox:"0 0 20 20",height:"16",width:"16"},Et=["fill"],Nt=["cx","cy","fill"],St=["d","stroke"],Ct=["cx","cy","fill"],wt=["d","stroke"],zt=["cx","cy","fill"],Vt=["cx","cy","fill"],$t=["x","y","fill","font-size","font-weight"],Tt=["x","y","fill","font-size","font-weight"],Ft=["x","text-anchor","y","fill","font-size"],Lt=["x","text-anchor","y","fill","font-size"],Dt=["x","text-anchor","y","fill","font-size"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],Mt=["x","y","font-size","fill"],It=["x","y","font-size","fill"],Rt=["x","y","font-size","fill"],Xt={key:4,class:"vue-data-ui-watermark"},At={key:6,ref:"source",dir:"auto"},jt={style:{"padding-top":"36px",position:"relative"}},Gt={class:"vue-ui-data-table"},Ut={key:0},qt=["data-cell"],Yt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ht={key:0},Wt={key:1},Kt=["data-cell"],Jt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qt={key:0},Zt={key:1},el=["data-cell"],tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ll={key:0},al={key:1},ol=["data-cell"],nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rl={key:0},sl={key:1},ul=["data-cell"],cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},il={key:0},dl={key:1},yl=["data-cell"],vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},hl={key:0},pl={key:1},fl=["data-cell"],ml={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},bl={key:0},gl={key:1},kl=["data-cell"],_l={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},xl=["data-cell"],Bl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},El=["data-cell"],Nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Sl=["data-cell"],Cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},wl=["data-cell"],zl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Vl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(te,{expose:le,emit:S}){const k=te;e.useCssVars(a=>({a946cfe6:a.tdo}));const{vue_ui_chestnut:ae}=o.useConfig(),z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),T=e.ref(null),oe=e.ref(null),I=e.ref(0),t=e.computed({get:()=>A(),set:a=>a}),{userOptionsVisible:F,setUserOptionsVisibility:R,keepUserOptionState:X}=xe.useUserOptionState({config:t.value});function A(){const a=ee.useNestedProp({userConfig:k.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=A(),F.value=!t.value.userOptions.showOnChartHover,C.value.showTable=t.value.table.show,K()},{deep:!0});const{isPrinting:j,isImaging:G,generatePdf:U,generateImage:q}=Z.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),ne=e.computed(()=>t.value.userOptions.show),L=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),C=e.ref({showTable:t.value.table.show}),D=e.ref(null),Y=e.ref(!1),re=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||L.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function se(){return m.value}const ue=e.computed(()=>m.value.flatMap(a=>a.branches).length),ce=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ie=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),H=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/ce.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),de=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ye=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>ye.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:H.value,x2:384*a.value/ie.value*de.value+H.value})));function O(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function ve(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),S("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,S("selectNut",null)}function P(a){v.value&&v.value.id===a.id?(v.value=null,p(),S("selectBranch",null)):(p(),v.value=a,S("selectBranch",a))}function W(a){b.value&&b.value.id===a.id?(p(),S("selectRoot",null)):(p(),b.value=a,S("selectRoot",a))}function he(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function pe(){const a=new ResizeObserver(s=>{s.forEach(l=>{Y.value=l.contentRect.width<re.value})});D.value&&a.observe(D.value)}e.onMounted(()=>{K()});function K(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ue.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,pe()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Tl)=>y.table)));return{head:a,body:s}});function J(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function fe(a){V.value=a,I.value+=1}function Q(){C.value.showTable=!C.value.showTable}const $=e.ref(!1);function M(){$.value=!$.value}return le({getData:se,generatePdf:U,generateCsv:J,generateImage:q,toggleTable:Q,toggleAnnotator:M}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:T,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:oe,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(G),isPrinting:e.unref(j),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(q),onToggleTable:Q,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}: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:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",we,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Ve)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Fe)],8,$e))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Oe)],8,Le))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Me),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Re)],8,Pe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ge)],8,Xe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,qe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,He)],8,Ue)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",We,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ke),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,Je)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-j0ggGyqh.cjs"),Z=require("./usePrinter-CosdKiXK.cjs"),me=require("./vue-ui-skeleton-B3chMg3p.cjs"),be=require("./BaseIcon-CSpqq62V.cjs"),ge=require("./vue-ui-accordion-I9jITkh5.cjs"),ee=require("./useNestedProp-BBCLfU_n.cjs"),ke=require("./PackageVersion-B5cHkz3-.cjs"),_e=require("./PenAndPaper-BVSRnwAP.cjs"),xe=require("./useUserOptionState-BgepsfED.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Ne={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},Se=["xmlns","viewBox"],Ce=["width","height"],we={key:1},ze=["fill","font-weight","font-size","x","y"],Ve=["fill","font-weight","font-size","x","y"],$e=["id"],Te=["stop-color"],Fe=["stop-color"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Me=["stop-color"],Ie=["stop-color"],Re=["stop-color"],Xe=["id"],Ae=["stop-color"],je=["stop-color"],Ge=["stop-color"],Ue=["id"],qe=["stop-color"],Ye=["stop-color"],He=["stop-color"],We={key:2},Ke=["x","y","font-size","font-weight","fill"],Je=["x","y","font-size","font-weight","fill"],Qe=["d","stroke"],Ze=["cx","cy","r","fill"],et=["cx","cy","r","fill","stroke","stroke-width","onClick"],tt={key:3},lt=["x","y","font-size","fill","onClick"],at={key:0},ot=["x","y","fill","font-size","font-weight"],nt=["x","y","height","width","fill","rx","onClick"],rt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],st={key:4},ut=["x","y","fill","font-size","onClick"],ct=["d","stroke"],it=["fill","cx","cy","r","onClick"],dt={key:5},yt=["x","y","font-size","font-weight","fill"],vt=["x1","x2","y1","y2","stroke","stroke-width"],ht=["y","height","width"],pt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},ft={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},mt={viewBox:"0 0 20 20",height:"16",width:"16"},bt=["fill"],gt={key:7},kt=["y","height","width"],_t={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},xt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},Bt={viewBox:"0 0 20 20",height:"16",width:"16"},Et=["fill"],Nt=["cx","cy","fill"],St=["d","stroke"],Ct=["cx","cy","fill"],wt=["d","stroke"],zt=["cx","cy","fill"],Vt=["cx","cy","fill"],$t=["x","y","fill","font-size","font-weight"],Tt=["x","y","fill","font-size","font-weight"],Ft=["x","text-anchor","y","fill","font-size"],Lt=["x","text-anchor","y","fill","font-size"],Dt=["x","text-anchor","y","fill","font-size"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],Mt=["x","y","font-size","fill"],It=["x","y","font-size","fill"],Rt=["x","y","font-size","fill"],Xt={key:4,class:"vue-data-ui-watermark"},At={key:6,ref:"source",dir:"auto"},jt={style:{"padding-top":"36px",position:"relative"}},Gt={class:"vue-ui-data-table"},Ut={key:0},qt=["data-cell"],Yt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Ht={key:0},Wt={key:1},Kt=["data-cell"],Jt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Qt={key:0},Zt={key:1},el=["data-cell"],tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ll={key:0},al={key:1},ol=["data-cell"],nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rl={key:0},sl={key:1},ul=["data-cell"],cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},il={key:0},dl={key:1},yl=["data-cell"],vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},hl={key:0},pl={key:1},fl=["data-cell"],ml={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},bl={key:0},gl={key:1},kl=["data-cell"],_l={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},xl=["data-cell"],Bl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},El=["data-cell"],Nl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Sl=["data-cell"],Cl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},wl=["data-cell"],zl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Vl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(te,{expose:le,emit:S}){const k=te;e.useCssVars(a=>({a946cfe6:a.tdo}));const{vue_ui_chestnut:ae}=o.useConfig(),z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),T=e.ref(null),oe=e.ref(null),I=e.ref(0),t=e.computed({get:()=>A(),set:a=>a}),{userOptionsVisible:F,setUserOptionsVisibility:R,keepUserOptionState:X}=xe.useUserOptionState({config:t.value});function A(){const a=ee.useNestedProp({userConfig:k.config,defaultConfig:ae});return a.theme?{...ee.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=A(),F.value=!t.value.userOptions.showOnChartHover,C.value.showTable=t.value.table.show,K()},{deep:!0});const{isPrinting:j,isImaging:G,generatePdf:U,generateImage:q}=Z.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),ne=e.computed(()=>t.value.userOptions.show),L=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),C=e.ref({showTable:t.value.table.show}),D=e.ref(null),Y=e.ref(!1),re=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||L.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||L.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function se(){return m.value}const ue=e.computed(()=>m.value.flatMap(a=>a.branches).length),ce=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ie=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),H=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/ce.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),de=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),ye=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>ye.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:H.value,x2:384*a.value/ie.value*de.value+H.value})));function O(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function ve(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),S("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,S("selectNut",null)}function P(a){v.value&&v.value.id===a.id?(v.value=null,p(),S("selectBranch",null)):(p(),v.value=a,S("selectBranch",a))}function W(a){b.value&&b.value.id===a.id?(p(),S("selectRoot",null)):(p(),b.value=a,S("selectRoot",a))}function he(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function pe(){const a=new ResizeObserver(s=>{s.forEach(l=>{Y.value=l.contentRect.width<re.value})});D.value&&a.observe(D.value)}e.onMounted(()=>{K()});function K(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ue.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,pe()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Tl)=>y.table)));return{head:a,body:s}});function J(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function fe(a){V.value=a,I.value+=1}function Q(){C.value.showTable=!C.value.showTable}const $=e.ref(!1);function M(){$.value=!$.value}return le({getData:se,generatePdf:U,generateCsv:J,generateImage:q,toggleTable:Q,toggleAnnotator:M}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:T,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(_e.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Ne,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(Z.UserOptions,{ref_key:"details",ref:oe,key:`user_options_${I.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(G),isPrinting:e.unref(j),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:fe,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(q),onToggleTable:Q,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}: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:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ke._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",we,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Ve)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,Te),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Fe)],8,$e))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Oe)],8,Le))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Me),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Re)],8,Pe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,je),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ge)],8,Xe),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,qe),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,He)],8,Ue)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",We,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ke),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,Je)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
2
2
  ${l.x1},${l.y1+d}
3
3
  C${l.x1-20},${l.y1+d}
4
4
  ${l.x1-80},${l.y1+d}
@@ -1,12 +1,12 @@
1
1
  import { useCssVars as Ye, computed as m, ref as T, watch as qe, onMounted as He, openBlock as a, createElementBlock as o, normalizeClass as k, normalizeStyle as h, unref as n, createBlock as K, createCommentVNode as f, createSlots as We, withCtx as X, renderSlot as F, normalizeProps as ue, guardReactiveProps as ne, createVNode as $e, toDisplayString as c, createElementVNode as s, Fragment as g, renderList as _, createTextVNode as J, withKeys as Ke, nextTick as Ce } from "vue";
2
- import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-DiqenHrX.js";
3
- import { u as nt, U as rt } from "./usePrinter-CHAgX1f-.js";
4
- import it from "./vue-ui-skeleton-BwWHgSoq.js";
5
- import ct from "./BaseIcon-BXpK120h.js";
6
- import dt from "./vue-ui-accordion-DA6XnWaz.js";
7
- import { u as Se } from "./useNestedProp-B3CQkP95.js";
8
- import { _ as vt } from "./PackageVersion-iscNRe7N.js";
9
- import { P as yt } from "./PenAndPaper-B-VQ8eSo.js";
2
+ import { u as Je, c as Qe, t as Ze, a as et, p as P, b as tt, g as re, e as Q, d as ie, o as lt, X as at, s as S, w as Te, i as G, f as z, G as ze, m as Ne, j as ot, k as V, n as H, q as st, r as ut } from "./index-B6iCkgQj.js";
3
+ import { u as nt, U as rt } from "./usePrinter-DEBltZby.js";
4
+ import it from "./vue-ui-skeleton-BVn408dA.js";
5
+ import ct from "./BaseIcon-CE4KhOox.js";
6
+ import dt from "./vue-ui-accordion-CpTs7ThO.js";
7
+ import { u as Se } from "./useNestedProp-egyWxFl6.js";
8
+ import { _ as vt } from "./PackageVersion-N_Q2K_Kp.js";
9
+ import { P as yt } from "./PenAndPaper-NvAJhDOQ.js";
10
10
  import { u as ht } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  const bt = ["id"], pt = {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-j0ggGyqh.cjs"),me=require("./useNestedProp-BBCLfU_n.cjs"),fe=require("./usePrinter-CosdKiXK.cjs"),Fe=require("./Title-zIr3pW0Y.cjs"),Ie=require("./PenAndPaper-BVSRnwAP.cjs"),Me=require("./useUserOptionState-BgepsfED.cjs"),De=require("./PackageVersion-B5cHkz3-.cjs"),Ae=require("./vue-ui-accordion-I9jITkh5.cjs"),Le=require("./DataTable-cvwMC0Ke.cjs"),Re=require("./vue-ui-skeleton-B3chMg3p.cjs"),_e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),qe=["id"],Ue=["xmlns","viewBox"],He=["x","y","width","height"],Ge=["id"],Ye=["stop-color"],We=["stop-color"],Xe=["stop-color"],je={key:0},Ze=["x","y","width","height","stroke","stroke-width","fill","rx","onMouseenter","onClick"],Je=["x","y","width","height","stroke","stroke-width","fill","rx"],Ke=["opacity","x","y","font-size","fill","font-weight"],Qe=["opacity","x","y","font-size","fill","font-weight"],et=["d","fill"],tt=["cx","cy","r","opacity","stroke","fill"],lt={key:0,style:{pointerEvents:"none"}},at={key:1},ot=["opacity","x","y","font-size","fill","font-weight"],rt=["opacity","x","y","font-size","fill","font-weight"],nt={key:6,class:"vue-data-ui-watermark"},st=["innerHTML"],ut={__name:"vue-ui-circle-pack",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(he,{expose:pe,emit:ye}){const y=he;e.useCssVars(l=>({"3d829984":C.value,"205f8306":M.value}));const{vue_ui_circle_pack:ke}=r.useConfig(),$=e.computed(()=>!!y.dataset&&y.dataset.length),g=e.ref(r.createUid()),V=e.ref(null),ge=e.ref(null),be=e.ref(null),H=e.ref(0),G=e.ref(0),Y=e.ref(0),Ce=e.ref(null),t=e.computed({get:()=>j(),set:l=>l}),{userOptionsVisible:O,setUserOptionsVisibility:W,keepUserOptionState:X}=Me.useUserOptionState({config:t.value});function j(){const l=me.useNestedProp({userConfig:y.config,defaultConfig:ke});return l.theme?{...me.useNestedProp({userConfig:r.themes.vue_ui_circle_pack[l.theme]||y.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>y.config,l=>{t.value=j(),O.value=!t.value.userOptions.showOnChartHover,F(),H.value+=1,G.value+=1,b.value.showTable=t.value.table.show},{deep:!0});const{isPrinting:Z,isImaging:J,generatePdf:K,generateImage:Q}=fe.usePrinter({elementId:`vue-ui-circle-pack_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-circle-pack"}),xe=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),b=e.ref({showTable:t.value.table.show});async function F(){r.objectIsEmpty(y.dataset)&&r.error({componentName:"VueUiCirclePack",type:"dataset"}),await $e()}e.onMounted(F),e.watch(()=>y.dataset,async l=>{await F()},{deep:!0});const ee=e.computed(()=>r.convertCustomPalette(t.value.customPalette));function te(l,o){return Math.hypot(o.x-l.x,o.y-l.y)}function le(l,o){return o.some(a=>te(l,a)<l.radius+a.radius)}function we(l,o,a,s){const c=o*2;for(let h of l)for(let p=0;p<360;p+=1){let B=p*Math.PI/180,i=h.x+c*Math.cos(B),n=h.y-c*Math.sin(B),f={x:i,y:n,radius:o};if(i-o>=0&&i+o<=a&&n-o>=0&&n+o<=s&&!le(f,l))return{x:i,y:n}}return null}function ze({datapoints:l,width:o,height:a,maxRadius:s,offsetX:c=0,offsetY:h=0}){const p=Math.max(...l.map(f=>f.value)),i=l.map((f,d)=>({...f,radius:f.value/p*s,index:d})).map((f,d)=>({...f,index:d})).toSorted((f,d)=>d.radius-f.radius);let n=[];n.push({...i[0],x:o/2+c,y:a/2+h});for(let f of i.slice(1)){let{radius:d,...ue}=f,L=we(n,d,o,a);if(L)n.push({...ue,x:L.x,y:L.y,radius:d});else{let R=null,ie=1/0;for(let E of n)for(let _=0;_<360;_+=15){let ce=_*Math.PI/180,q=E.x+(d+E.radius)*Math.cos(ce),U=E.y+(d+E.radius)*Math.sin(ce),T={...ue,x:q,y:U,radius:d};if(q-d>=0&&q+d<=o&&U-d>=0&&U+d<=a&&!le(T,n)){let de=n.reduce((Oe,ve)=>Oe+(te(T,ve)<T.radius+ve.radius?1:0),0);de<ie&&(ie=de,R=T)}}R&&n.push(R)}}return n}const I=e.computed(()=>y.dataset.map((l,o)=>{const a=r.convertColorToHex(l.color)||ee.value[o]||r.themePalettes[t.value.theme||"default"][o%r.themePalettes[t.value.theme||"default"].length]||r.palette[o]||r.palette[o%r.palette.length];return{...l,id:r.createUid(),color:a}}).filter(l=>![null,void 0,1/0,-1/0].includes(l.value))),m=e.ref([]),Be=e.computed(()=>Math.max(...m.value.map(l=>l.radius)));function ae(l,o){return o/Be.value*l}async function $e(){m.value=ze({datapoints:I.value,width:1e4,height:1e4,maxRadius:32})}const oe=e.computed(()=>({width:100,height:100})),v=e.computed(()=>{const l=m.value.reduce((i,n)=>n.x-n.radius<i.x-i.radius?n:i,m.value[0]),o=m.value.reduce((i,n)=>n.y-n.radius<i.y-i.radius?n:i,m.value[0]),a=m.value.reduce((i,n)=>n.x+n.radius>i.x+i.radius?n:i,m.value[0]),s=m.value.reduce((i,n)=>n.y+n.radius>i.y+i.radius?n:i,m.value[0]),c=(l==null?void 0:l.x)||0,h=(a==null?void 0:a.x)||oe.value.width,p=(o==null?void 0:o.y)||0,B=(s==null?void 0:s.y)||oe.value.height;return{maxX:h,minX:c,width:Math.abs(h-c)+(l?l.radius:0)+(a?a.radius:0)+t.value.style.chart.circles.strokeWidth*4,height:Math.abs(B-p)+(o?o.radius:0)+(s?s.radius:0)+t.value.style.chart.circles.strokeWidth*4,x:l?(l==null?void 0:l.x)-(l==null?void 0:l.radius)-t.value.style.chart.circles.strokeWidth*2:0,y:o?(o==null?void 0:o.y)-(o==null?void 0:o.radius)-t.value.style.chart.circles.strokeWidth*2:0}}),Se=e.computed(()=>m.value.map(l=>{if(l.breakdown)return r.makeDonut({series:l.breakdown.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||ee.value[a]||r.palette[a]||r.palette[a%r.palette.length]}))},l.x,l.y,l.radius,l.radius,1.99999,2,1,360,105.25,l.radius/2)})),u=e.ref(null);function Pe(l){t.value.style.chart.circles.zoom.show&&(u.value=l)}const C=e.computed(()=>u.value?u.value.radius:0),M=e.computed(()=>u.value?u.value.radius>v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio?u.value.radius:v.value.width/6*t.value.style.chart.circles.zoom.zoomRatio:0),k=e.ref(0),Ne=e.computed(()=>({pointerEvents:"none",opacity:k.value,filter:`drop-shadow(0px 0px 6px ${r.darkenHexColor(u.value.color,t.value.style.chart.circles.zoom.shadowForce)})`})),x=e.ref(C.value);e.watchEffect(()=>{x.value=C.value,k.value=0;let l=null;function o(a){l||(l=a);const s=(a-l)/t.value.style.chart.circles.zoom.animationFrameMs;s<1?(x.value=C.value+(M.value-C.value)*s,k.value=0+t.value.style.chart.circles.zoom.opacity*s,requestAnimationFrame(o)):(x.value=M.value,k.value=t.value.style.chart.circles.zoom.opacity)}requestAnimationFrame(o)});const w=e.computed(()=>({name:t.value.style.chart.circles.zoom.label.name.fontSize*v.value.width/300,value:t.value.style.chart.circles.zoom.label.value.fontSize*v.value.width/300}));function D(l){return r.applyDataLabel(t.value.style.chart.circles.labels.value.formatter,l.value,r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:l.value,s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding}))}function Ee(){return r.applyDataLabel(t.value.style.chart.circles.zoom.label.value.formatter,u.value.value,r.dataLabel({p:t.value.style.chart.circles.zoom.label.value.prefix,v:u.value.value,s:t.value.style.chart.circles.zoom.label.value.suffix,r:t.value.style.chart.circles.zoom.label.value.rounding}))}function re(l){if(!l)return 0;const o=l.radius/D(l).length*(D(l).length===1?1:2);return Math.min(l.radius/2.5,o)}const z=e.ref(!1);function Te(l){z.value=l,Y.value+=1}const S=e.ref(!1);function A(){S.value=!S.value}const P=e.computed(()=>{const l=I.value.map(a=>({name:a.name,value:a.value,color:a.color})).toSorted((a,s)=>s.value-a.value),o=l.map(a=>a.value);return{head:l,body:o}});function ne(){e.nextTick(()=>{const l=P.value.head.map((s,c)=>[[s.name],[P.value.body[c]]]),o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(l),a=r.createCsvContent(o);r.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-circle-pack"})})}const N=e.computed(()=>{const l=[t.value.table.columnNames.datapoint,t.value.table.columnNames.value],o=P.value.head.map((c,h)=>{const p=r.dataLabel({p:t.value.style.chart.circles.labels.value.prefix,v:P.value.body[h],s:t.value.style.chart.circles.labels.value.suffix,r:t.value.style.chart.circles.labels.value.rounding});return[{color:c.color,name:c.name},p]}),a={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.datapoint,t.value.table.columnNames.value],head:l,body:o,config:a}});function se(){b.value.showTable=!b.value.showTable}function Ve(){return I.value}return pe({getData:Ve,generateCsv:ne,generatePdf:K,generateImage:Q,toggleTable:se,toggleAnnotator:A}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`vue-ui-circle-pack_${g.value}`,class:e.normalizeClass(`vue-ui-circle-pack ${z.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"circlePackChart",ref:V,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:o[2]||(o[2]=()=>e.unref(W)(!0)),onMouseleave:o[3]||(o[3]=()=>e.unref(W)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:S.value,onClose:A},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"userConfig",{},void 0,!0),xe.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:be,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:ge,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(Fe._sfc_main,{key:`title_${H.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&&$.value&&(e.unref(X)||e.unref(O))?(e.openBlock(),e.createBlock(fe.UserOptions,{ref:"details",key:`user_option_${Y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Z),isImaging:e.unref(J),uid:g.value,hasTooltip:!1,hasLabel:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:z.value,chartElement:V.value,position:t.value.userOptions.position,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:S.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(K),onGenerateCsv:ne,onGenerateImage:e.unref(Q),onToggleTable:se,onToggleAnnotator:A,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(O)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"4"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),viewBox:`${v.value.x} ${v.value.y} ${v.value.width} ${v.value.height}`,width:"100%",class:e.normalizeClass({"vue-data-ui-fullscreen--on":z.value,"vue-data-ui-fulscreen--off":!z.value}),style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(De._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:v.value.x,y:v.value.y,width:v.value.width,height:v.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,He)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:a.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(a.color,t.value.style.chart.circles.gradient.intensity/100)},null,8,Ye),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,We),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Xe)],8,Ge)]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("defs",null,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({...a,patternId:`pattern_${g.value}_${a.id}`})),void 0,!0)])])):e.createCommentVNode("",!0),e.createElementVNode("rect",{x:a.x-a.radius,y:a.y-a.radius,width:a.radius*2,height:a.radius*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,fill:t.value.style.chart.circles.gradient.show?`url(#${a.id})`:a.color,rx:a.radius,onMouseenter:()=>Pe(a),onMouseout:o[0]||(o[0]=s=>u.value=null),onClick:s=>ye("selectDatapoint",a)},null,40,Ze),l.$slots.pattern?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.radius,y:a.y-a.radius,width:a.radius*2,height:a.radius*2,stroke:t.value.style.chart.circles.stroke,"stroke-width":t.value.style.chart.circles.strokeWidth,fill:`url(#pattern_${g.value}_${a.id})`,rx:a.radius,style:{pointerEvents:"none"}},null,8,Je)):e.createCommentVNode("",!0),l.$slots["data-label"]?e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.mergeProps({key:2},{...a,createTSpans:e.unref(r.createTSpans),fontSize:{name:a.radius/3*t.value.style.chart.circles.labels.name.fontSizeRatio,value:re(a)*t.value.style.chart.circles.labels.value.fontSizeRatio},color:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(r.adaptColorToBackground)(a.color)})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.circles.labels.name.show&&a.name?(e.openBlock(),e.createElementBlock("text",{key:0,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:u.value?.2:1,x:a.x,y:a.y+ae(a.radius,t.value.style.chart.circles.labels.name.offsetY)-a.radius/6,"font-size":a.radius/3*t.value.style.chart.circles.labels.name.fontSizeRatio,fill:t.value.style.chart.circles.labels.name.color?t.value.style.chart.circles.labels.name.color:e.unref(r.adaptColorToBackground)(a.color),"font-weight":t.value.style.chart.circles.labels.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(a.name),9,Ke)):e.createCommentVNode("",!0),t.value.style.chart.circles.labels.value.show?(e.openBlock(),e.createElementBlock("text",{key:1,style:{pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},opacity:u.value?.2:1,x:a.x,y:a.y+ae(a.radius,t.value.style.chart.circles.labels.value.offsetY)+a.radius/3,"font-size":re(a)*t.value.style.chart.circles.labels.value.fontSizeRatio,fill:t.value.style.chart.circles.labels.value.color?t.value.style.chart.circles.labels.value.color:e.unref(r.adaptColorToBackground)(a.color),"font-weight":t.value.style.chart.circles.labels.value.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(D(a)),9,Qe)):e.createCommentVNode("",!0)],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Se.value,s=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s,c=>(e.openBlock(),e.createElementBlock("path",{d:c.arcSlice,fill:c.color,stroke:"black"},null,8,et))),256))],64))),256))],64))),256)),u.value&&t.value.style.chart.circles.zoom.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("circle",{style:e.normalizeStyle(Ne.value),cx:u.value.x,cy:u.value.y,r:x.value,opacity:k.value,stroke:t.value.style.chart.circles.stroke,fill:t.value.style.chart.circles.gradient.show?`url(#${u.value.id})`:u.value.color},null,12,tt),l.$slots["zoom-label"]?(e.openBlock(),e.createElementBlock("g",lt,[e.renderSlot(l.$slots,"zoom-label",e.normalizeProps(e.guardReactiveProps({...u.value,zoomOpacity:k.value,currentRadius:x.value,fontSize:w.value})),void 0,!0)])):(e.openBlock(),e.createElementBlock("g",at,[e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:k.value,x:u.value.x,y:u.value.y+t.value.style.chart.circles.zoom.label.name.offsetY-w.value.name/4,"text-anchor":"middle","font-size":w.value.name,fill:t.value.style.chart.circles.zoom.label.name.color?t.value.style.chart.circles.zoom.label.name.color:e.unref(r.adaptColorToBackground)(u.value.color),"font-weight":t.value.style.chart.circles.zoom.label.name.bold?"bold":"normal"},e.toDisplayString(u.value.name),9,ot),e.createElementVNode("text",{style:{pointerEvents:"none"},opacity:k.value,x:u.value.x,y:u.value.y+w.value.value+t.value.style.chart.circles.zoom.label.value.offsetY,"text-anchor":"middle","font-size":w.value.value,fill:t.value.style.chart.circles.zoom.label.value.color?t.value.style.chart.circles.zoom.label.value.color:e.unref(r.adaptColorToBackground)(u.value.color),"font-weight":t.value.style.chart.circles.zoom.label.value.bold?"bold":"normal"},e.toDisplayString(Ee()),9,rt)]))],64)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:{...v.value}},void 0,!0)],14,Ue)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Re.default,{key:5,config:{type:"circlePack",style:{color:"#CCCCCC"}}})),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",nt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Z)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Ce,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(Ae.default,{key:8,hideDetails:"",config:{open:b.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(Le.DataTable,{key:`table_${G.value}`,colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[1]||(o[1]=a=>b.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,st)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,qe))}},it=_e._export_sfc(ut,[["__scopeId","data-v-ec56e8f7"]]);exports.default=it;