vue-data-ui 2.6.45 → 2.6.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/{Arrow-Bfwl8OAb.cjs → Arrow-CRrMt_zT.cjs} +1 -1
  2. package/dist/{Arrow-km8WlE5f.js → Arrow-Dvz6Z2gU.js} +1 -1
  3. package/dist/{BaseIcon-DywZoZmD.js → BaseIcon-CEgQPz8O.js} +6 -3
  4. package/dist/{BaseIcon-BjlTm9wZ.cjs → BaseIcon-DoqpR480.cjs} +1 -1
  5. package/dist/{ColorPicker-COPqu9IV.cjs → ColorPicker-Bp_7FV2c.cjs} +1 -1
  6. package/dist/{ColorPicker-gkZLlxzP.js → ColorPicker-DwezDvSV.js} +3 -3
  7. package/dist/{DataTable-CrhPpuOy.js → DataTable-751-cN2c.js} +2 -2
  8. package/dist/{DataTable-ImmHVJ0i.cjs → DataTable-D_Guh5Hf.cjs} +1 -1
  9. package/dist/{Legend-BVtJaKHS.js → Legend-BG9fLat9.js} +2 -2
  10. package/dist/{Legend-CfimXfYH.cjs → Legend-CepYsC9r.cjs} +1 -1
  11. package/dist/{PackageVersion-DjHCw2D_.cjs → PackageVersion-D8T0gm3t.cjs} +1 -1
  12. package/dist/{PackageVersion-DJu8NH8u.js → PackageVersion-SrpgZayt.js} +1 -1
  13. package/dist/{PenAndPaper-AZpGBe7x.cjs → PenAndPaper-BJ6gGBM2.cjs} +1 -1
  14. package/dist/{PenAndPaper-DC3X33rh.js → PenAndPaper-jnD991LP.js} +3 -3
  15. package/dist/{Shape-Bs4vWaC-.js → Shape-BaijOBYT.js} +1 -1
  16. package/dist/{Shape-Dl6kIG9D.cjs → Shape-og7-ULyN.cjs} +1 -1
  17. package/dist/{Slicer-OBTv9I2-.cjs → Slicer-B4ZDkwnQ.cjs} +1 -1
  18. package/dist/{Slicer-CgnhZJgM.js → Slicer-COHzItjq.js} +3 -3
  19. package/dist/{Title-DBgUbEU1.cjs → Title-BUnn57ZR.cjs} +1 -1
  20. package/dist/{Title-6BRNasyb.js → Title-DMhhB9yN.js} +1 -1
  21. package/dist/{Tooltip-BUPxcljs.js → Tooltip-BaPecnnV.js} +1 -1
  22. package/dist/{Tooltip-TGHDsCSU.cjs → Tooltip-DJtOxx2P.cjs} +1 -1
  23. package/dist/index-DEbhC0cM.cjs +9 -0
  24. package/dist/{index-jVWdGfFl.js → index-KdQpiTkm.js} +3 -1
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +6 -1
  27. package/dist/types/vue-data-ui.d.ts +6 -1
  28. package/dist/{useNestedProp-BN5jbfiQ.js → useNestedProp-CO8Pe266.js} +1 -1
  29. package/dist/{useNestedProp-DhyCNtMY.cjs → useNestedProp-COYn8tA0.cjs} +1 -1
  30. package/dist/{usePrinter-BI95cSFJ.js → usePrinter-BuiF8wZK.js} +1 -1
  31. package/dist/{usePrinter-DRWBcwQ7.cjs → usePrinter-DRmOwFc2.cjs} +1 -1
  32. package/dist/useResponsive-Cw4oZ8sQ.js +192 -0
  33. package/dist/useResponsive-DQmBAoBf.cjs +1 -0
  34. package/dist/{vue-data-ui-DFmsvz9E.js → vue-data-ui-3jkYjNO_.js} +61 -61
  35. package/dist/{vue-data-ui-B0eO9goE.cjs → vue-data-ui-BbpJaKj_.cjs} +1 -1
  36. package/dist/vue-data-ui.cjs +1 -1
  37. package/dist/vue-data-ui.js +1 -1
  38. package/dist/{vue-ui-3d-bar-BcdL4c9H.js → vue-ui-3d-bar-Bda7eCM_.js} +9 -9
  39. package/dist/{vue-ui-3d-bar-CwXgNWXb.cjs → vue-ui-3d-bar-D7_7INdZ.cjs} +1 -1
  40. package/dist/{vue-ui-accordion-DOBMerZl.js → vue-ui-accordion-CDTJiQu0.js} +3 -3
  41. package/dist/{vue-ui-accordion-DdHwnq9o.cjs → vue-ui-accordion-ChxVn9CH.cjs} +1 -1
  42. package/dist/{vue-ui-age-pyramid-i52Ub253.cjs → vue-ui-age-pyramid-C-5yJnWs.cjs} +1 -1
  43. package/dist/{vue-ui-age-pyramid-Dtaikxqn.js → vue-ui-age-pyramid-C4FUVgL1.js} +11 -11
  44. package/dist/{vue-ui-annotator-BrjeA9CQ.js → vue-ui-annotator-pYtolxGn.js} +1 -1
  45. package/dist/{vue-ui-annotator-CKUZCHHC.cjs → vue-ui-annotator-yLvZcOQb.cjs} +1 -1
  46. package/dist/{vue-ui-bullet-DxUauLaF.cjs → vue-ui-bullet-BVmbUAYh.cjs} +1 -1
  47. package/dist/{vue-ui-bullet-C1xxCzws.js → vue-ui-bullet-oEZK6DxU.js} +8 -8
  48. package/dist/{vue-ui-candlestick-t1BaVylo.cjs → vue-ui-candlestick-CVM-Yvvm.cjs} +1 -1
  49. package/dist/{vue-ui-candlestick-CPF7rQqu.js → vue-ui-candlestick-Cm0ipv0t.js} +12 -12
  50. package/dist/{vue-ui-carousel-table-BqPfItK8.cjs → vue-ui-carousel-table-BGPWwg3x.cjs} +1 -1
  51. package/dist/{vue-ui-carousel-table-x8RLpKZv.js → vue-ui-carousel-table-PcE7YCyE.js} +4 -4
  52. package/dist/{vue-ui-chestnut-BiX9TQ2v.cjs → vue-ui-chestnut-CeYVXtyW.cjs} +1 -1
  53. package/dist/{vue-ui-chestnut-SdFREl6l.js → vue-ui-chestnut-Ob9Rt-3r.js} +8 -8
  54. package/dist/{vue-ui-circle-pack-DVkRm1KL.js → vue-ui-circle-pack-BF0PBuDU.js} +10 -10
  55. package/dist/{vue-ui-circle-pack-B28TVLHQ.cjs → vue-ui-circle-pack-pbnF0Jb7.cjs} +1 -1
  56. package/dist/{vue-ui-cursor-BkQNdavl.cjs → vue-ui-cursor-DE4hlTca.cjs} +1 -1
  57. package/dist/{vue-ui-cursor-CY5VZS8t.js → vue-ui-cursor-Drnazkqg.js} +2 -2
  58. package/dist/{vue-ui-dashboard-BCcNNuM_.cjs → vue-ui-dashboard-D3-z2poA.cjs} +1 -1
  59. package/dist/{vue-ui-dashboard-DQ8lax7M.js → vue-ui-dashboard-j5IuBHiv.js} +2 -2
  60. package/dist/{vue-ui-digits-BkXEbzlS.js → vue-ui-digits-BRMuUzSA.js} +2 -2
  61. package/dist/{vue-ui-digits-D-F0Chxn.cjs → vue-ui-digits-CD5-WopZ.cjs} +1 -1
  62. package/dist/{vue-ui-donut-qRDAQa4n.js → vue-ui-donut-CdVSree_.js} +229 -219
  63. package/dist/vue-ui-donut-Dq1F2vBg.cjs +1 -0
  64. package/dist/{vue-ui-donut-evolution-C8ZQum6h.cjs → vue-ui-donut-evolution-BQ7-rOnh.cjs} +1 -1
  65. package/dist/{vue-ui-donut-evolution-YKmsjVkR.js → vue-ui-donut-evolution-DzrJwccW.js} +11 -11
  66. package/dist/{vue-ui-dumbbell-bOMg4szX.cjs → vue-ui-dumbbell-DSdwbWLI.cjs} +1 -1
  67. package/dist/{vue-ui-dumbbell-C6OpTSyF.js → vue-ui-dumbbell-DuCdZc41.js} +11 -11
  68. package/dist/{vue-ui-flow-aIpHJK9l.js → vue-ui-flow-CYpiRQ_u.js} +9 -9
  69. package/dist/{vue-ui-flow-Bnj7K0Td.cjs → vue-ui-flow-D_UgsB9t.cjs} +1 -1
  70. package/dist/{vue-ui-funnel-Ckn6d97S.js → vue-ui-funnel-6q79enxr.js} +10 -10
  71. package/dist/{vue-ui-funnel-CapST2C3.cjs → vue-ui-funnel-Dr4ssgIM.cjs} +1 -1
  72. package/dist/{vue-ui-galaxy-FIQp4ePf.cjs → vue-ui-galaxy-BGxIGzn8.cjs} +1 -1
  73. package/dist/{vue-ui-galaxy-0p-jvo0s.js → vue-ui-galaxy-Bg-3xnWe.js} +11 -11
  74. package/dist/{vue-ui-gauge-CtzP0_kK.js → vue-ui-gauge-Cwhlraja.js} +8 -8
  75. package/dist/{vue-ui-gauge-C1QU2678.cjs → vue-ui-gauge-DGt25KK7.cjs} +1 -1
  76. package/dist/{vue-ui-gizmo-D6E03WtQ.cjs → vue-ui-gizmo-C0024J7B.cjs} +1 -1
  77. package/dist/{vue-ui-gizmo--TFv_z_f.js → vue-ui-gizmo-VRONxCxp.js} +3 -3
  78. package/dist/{vue-ui-heatmap-DQ_4z6a6.cjs → vue-ui-heatmap-CTwazjkR.cjs} +1 -1
  79. package/dist/{vue-ui-heatmap-Bx9RCECY.js → vue-ui-heatmap-ay3NAawN.js} +10 -10
  80. package/dist/{vue-ui-history-plot-OlxcB4fR.js → vue-ui-history-plot-BQ_2NZVm.js} +12 -12
  81. package/dist/{vue-ui-history-plot-BNybvrYe.cjs → vue-ui-history-plot-B_IHuJff.cjs} +1 -1
  82. package/dist/{vue-ui-kpi-D-EjjlYh.js → vue-ui-kpi-BGSgE7Ck.js} +3 -3
  83. package/dist/{vue-ui-kpi-DhsQdhIg.cjs → vue-ui-kpi-BtHmGmj6.cjs} +1 -1
  84. package/dist/{vue-ui-mini-loader-gsh0jMbc.cjs → vue-ui-mini-loader-Bwe3_hqy.cjs} +1 -1
  85. package/dist/{vue-ui-mini-loader-CYRJtuw3.js → vue-ui-mini-loader-DyRqUv0j.js} +2 -2
  86. package/dist/{vue-ui-molecule-K4PM7UqE.cjs → vue-ui-molecule-Cy_P0hK2.cjs} +1 -1
  87. package/dist/{vue-ui-molecule-Dke-JabR.js → vue-ui-molecule-gJVbPM60.js} +10 -10
  88. package/dist/{vue-ui-mood-radar-CnR7mp7Z.cjs → vue-ui-mood-radar-BxFd74g3.cjs} +1 -1
  89. package/dist/{vue-ui-mood-radar-sXLyAWIK.js → vue-ui-mood-radar-DAYJLwXw.js} +11 -11
  90. package/dist/vue-ui-nested-donuts-DP_cQ0OI.cjs +17 -0
  91. package/dist/{vue-ui-nested-donuts-CJ9r-x9P.js → vue-ui-nested-donuts-r67jsUHC.js} +221 -211
  92. package/dist/{vue-ui-onion-CVRrdFde.js → vue-ui-onion-C-d1e3w2.js} +12 -12
  93. package/dist/{vue-ui-onion-DM-jq72Y.cjs → vue-ui-onion-CR4UoiPQ.cjs} +1 -1
  94. package/dist/{vue-ui-parallel-coordinate-plot-DMouPTwE.cjs → vue-ui-parallel-coordinate-plot-DVltec37.cjs} +1 -1
  95. package/dist/{vue-ui-parallel-coordinate-plot-DLVjGpqC.js → vue-ui-parallel-coordinate-plot-FRhJ4mby.js} +13 -13
  96. package/dist/{vue-ui-quadrant-BGuywSpy.js → vue-ui-quadrant-BKWD8HER.js} +13 -13
  97. package/dist/{vue-ui-quadrant-CXFcrSRD.cjs → vue-ui-quadrant-D-vSAn7m.cjs} +1 -1
  98. package/dist/{vue-ui-quick-chart-9R835dAy.cjs → vue-ui-quick-chart-Bbcex3jc.cjs} +1 -1
  99. package/dist/{vue-ui-quick-chart-D_ZSUMnh.js → vue-ui-quick-chart-Cy3FCnd-.js} +10 -10
  100. package/dist/{vue-ui-radar-CGSB8Q_3.cjs → vue-ui-radar-BHCghGVU.cjs} +1 -1
  101. package/dist/{vue-ui-radar-CrF3XMq8.js → vue-ui-radar-BX_7Ngn_.js} +13 -13
  102. package/dist/{vue-ui-rating-DCH03Nd-.js → vue-ui-rating-CM6YiPW3.js} +2 -2
  103. package/dist/{vue-ui-rating-BiwEz-WI.cjs → vue-ui-rating-JhzvmHjC.cjs} +1 -1
  104. package/dist/{vue-ui-relation-circle-D7sKIx2H.cjs → vue-ui-relation-circle-BPhcc_fN.cjs} +1 -1
  105. package/dist/{vue-ui-relation-circle-CFB3nQrw.js → vue-ui-relation-circle-JTWFex69.js} +8 -8
  106. package/dist/{vue-ui-rings-CMzJJbL7.cjs → vue-ui-rings-CzXIKikH.cjs} +1 -1
  107. package/dist/{vue-ui-rings-CDFQgsVL.js → vue-ui-rings-NBAca-G8.js} +13 -13
  108. package/dist/{vue-ui-scatter-CYweE3aN.js → vue-ui-scatter-5SJ4F605.js} +13 -13
  109. package/dist/{vue-ui-scatter-Cpc9LK6H.cjs → vue-ui-scatter-DCunyG-E.cjs} +1 -1
  110. package/dist/{vue-ui-screenshot-BRY1fQOv.js → vue-ui-screenshot-DPm6Bpiq.js} +1 -1
  111. package/dist/{vue-ui-screenshot-BA27Irge.cjs → vue-ui-screenshot-q3DSJ00h.cjs} +1 -1
  112. package/dist/{vue-ui-skeleton-Dsd0bx0Y.js → vue-ui-skeleton-BhHXiz99.js} +3 -3
  113. package/dist/{vue-ui-skeleton-CLMRPxZm.cjs → vue-ui-skeleton-D7S6OsSN.cjs} +1 -1
  114. package/dist/{vue-ui-smiley-CNnxNaGC.cjs → vue-ui-smiley-CQE1dvvV.cjs} +1 -1
  115. package/dist/{vue-ui-smiley-CeC-WFLx.js → vue-ui-smiley-Cb8d713r.js} +2 -2
  116. package/dist/{vue-ui-spark-trend-liGslvUe.cjs → vue-ui-spark-trend-7Bo9O1fQ.cjs} +1 -1
  117. package/dist/{vue-ui-spark-trend-C8FlaTDz.js → vue-ui-spark-trend-BVNEGhp9.js} +5 -5
  118. package/dist/{vue-ui-sparkbar-BjCkuYB0.js → vue-ui-sparkbar-BbOu_w63.js} +4 -4
  119. package/dist/{vue-ui-sparkbar-DTUuvjOA.cjs → vue-ui-sparkbar-qAaHy4or.cjs} +1 -1
  120. package/dist/{vue-ui-sparkgauge-BBJvgM0r.js → vue-ui-sparkgauge-BwNM15jl.js} +4 -4
  121. package/dist/{vue-ui-sparkgauge-BEL_6k7M.cjs → vue-ui-sparkgauge-ddRVuzSQ.cjs} +1 -1
  122. package/dist/{vue-ui-sparkhistogram-B12f_DfZ.cjs → vue-ui-sparkhistogram-C8E73uuw.cjs} +1 -1
  123. package/dist/{vue-ui-sparkhistogram-DgRpgf4S.js → vue-ui-sparkhistogram-DhJ72P8O.js} +5 -5
  124. package/dist/{vue-ui-sparkline-CgNq3TDg.cjs → vue-ui-sparkline-C6wkmXa0.cjs} +1 -1
  125. package/dist/{vue-ui-sparkline-COtgfnKN.js → vue-ui-sparkline-m3nNPKwo.js} +5 -5
  126. package/dist/{vue-ui-sparkstackbar-3qtBnVN-.js → vue-ui-sparkstackbar-B71Vue4E.js} +5 -5
  127. package/dist/{vue-ui-sparkstackbar-JgTWCear.cjs → vue-ui-sparkstackbar-CJyCwn7x.cjs} +1 -1
  128. package/dist/{vue-ui-stackbar-BIQOmKWQ.cjs → vue-ui-stackbar-6W0SjyLd.cjs} +1 -1
  129. package/dist/{vue-ui-stackbar-BzWMNHEl.js → vue-ui-stackbar-CL7KXBrn.js} +14 -14
  130. package/dist/{vue-ui-strip-plot-Pr-p3HVe.cjs → vue-ui-strip-plot-D10qNzJu.cjs} +1 -1
  131. package/dist/{vue-ui-strip-plot-B5yz7F4O.js → vue-ui-strip-plot-T99zioSX.js} +12 -12
  132. package/dist/{vue-ui-table-DfzIKXYz.js → vue-ui-table-CCrE_Qnd.js} +1 -1
  133. package/dist/{vue-ui-table-Da8yPHbm.cjs → vue-ui-table-Cva4CGRJ.cjs} +1 -1
  134. package/dist/{vue-ui-table-heatmap-B42LEDQq.js → vue-ui-table-heatmap-CQbPKFW_.js} +4 -4
  135. package/dist/{vue-ui-table-heatmap-m9WunlMI.cjs → vue-ui-table-heatmap-GOsIhgPo.cjs} +1 -1
  136. package/dist/{vue-ui-table-sparkline-D87wVYbh.cjs → vue-ui-table-sparkline-AIunqOTn.cjs} +1 -1
  137. package/dist/{vue-ui-table-sparkline-D0NpqAlx.js → vue-ui-table-sparkline-CHtZhhn6.js} +5 -5
  138. package/dist/{vue-ui-thermometer-CLrrfpCH.js → vue-ui-thermometer-CCVPdXye.js} +7 -7
  139. package/dist/{vue-ui-thermometer-CpaWOGHr.cjs → vue-ui-thermometer-CGAA0bAU.cjs} +1 -1
  140. package/dist/{vue-ui-timer-DJ3N2OIu.cjs → vue-ui-timer-C3detaHT.cjs} +1 -1
  141. package/dist/{vue-ui-timer-ruhqlCDV.js → vue-ui-timer-Djxb8XuU.js} +6 -6
  142. package/dist/{vue-ui-tiremarks-By-ZwLdD.cjs → vue-ui-tiremarks-D-xQKhur.cjs} +1 -1
  143. package/dist/{vue-ui-tiremarks-B1PaJvW_.js → vue-ui-tiremarks-DExuaGwV.js} +7 -7
  144. package/dist/vue-ui-treemap-BXWbdL3o.cjs +1 -0
  145. package/dist/vue-ui-treemap-Dnn29Qdu.js +956 -0
  146. package/dist/{vue-ui-vertical-bar-D51OT6tD.cjs → vue-ui-vertical-bar-3V-J4-Qp.cjs} +1 -1
  147. package/dist/{vue-ui-vertical-bar-Bi_p2HMG.js → vue-ui-vertical-bar-B9-cwCz2.js} +13 -13
  148. package/dist/{vue-ui-waffle-D_OFNFu_.js → vue-ui-waffle-BH4NkBmK.js} +13 -13
  149. package/dist/{vue-ui-waffle-BRFWNTTy.cjs → vue-ui-waffle-by6o3KnD.cjs} +1 -1
  150. package/dist/{vue-ui-wheel-Dm-sn-fc.js → vue-ui-wheel-D2BqDvNB.js} +8 -8
  151. package/dist/{vue-ui-wheel-C_0xODX0.cjs → vue-ui-wheel-DWNHihoO.cjs} +1 -1
  152. package/dist/{vue-ui-word-cloud-WO_xGFwd.js → vue-ui-word-cloud-Bpyn_t-K.js} +11 -11
  153. package/dist/{vue-ui-word-cloud-CpbPC0k6.cjs → vue-ui-word-cloud-DvXgJCIv.cjs} +1 -1
  154. package/dist/{vue-ui-xy-DYGsBFzv.js → vue-ui-xy-CuLfvdAU.js} +14 -14
  155. package/dist/{vue-ui-xy-canvas-SpUUvBPW.js → vue-ui-xy-canvas-BK3C3PqR.js} +13 -13
  156. package/dist/{vue-ui-xy-canvas-DCFJnGtu.cjs → vue-ui-xy-canvas-bysKB96p.cjs} +1 -1
  157. package/dist/{vue-ui-xy-ArWU04zz.cjs → vue-ui-xy-luOYkYWO.cjs} +1 -1
  158. package/package.json +1 -1
  159. package/dist/index-BXhJaCcU.cjs +0 -9
  160. package/dist/useResponsive-N8jl0-aC.cjs +0 -1
  161. package/dist/useResponsive-vZgZwV-S.js +0 -191
  162. package/dist/vue-ui-donut-Dxie1WUb.cjs +0 -1
  163. package/dist/vue-ui-nested-donuts-DW1Zx5R0.cjs +0 -17
  164. package/dist/vue-ui-treemap-B3_lUi3B.js +0 -939
  165. package/dist/vue-ui-treemap-DX_oIHsl.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BXhJaCcU.cjs"),Fe=require("./Title-DBgUbEU1.cjs"),xe=require("./usePrinter-DRWBcwQ7.cjs"),De=require("./Tooltip-TGHDsCSU.cjs"),qe=require("./Legend-CfimXfYH.cjs"),Me=require("./vue-ui-skeleton-CLMRPxZm.cjs"),He=require("./DataTable-ImmHVJ0i.cjs"),Ue=require("./vue-ui-accordion-DdHwnq9o.cjs"),Te=require("./useResponsive-N8jl0-aC.cjs"),Se=require("./useNestedProp-DhyCNtMY.cjs"),We=require("./PackageVersion-DjHCw2D_.cjs"),Ge=require("./PenAndPaper-AZpGBe7x.cjs"),je=require("./useUserOptionState-BgepsfED.cjs"),Xe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ye=require("./BaseIcon-BjlTm9wZ.cjs"),Ze=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function $e(r,c){const i=r.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);{let d=1/0,u=-1/0,v=0;for(let p=0;p<i;p+=1){const f=r[p].normalizedValue;f<d&&(d=f),f>u&&(u=f),v+=f}return Math.max(c**2*u/v**2,v**2/(c**2*d))}}function Be(r){const{xOffset:c,yOffset:i,width:d,height:u}=r;return{x0:c,y0:i,x1:c+d,y1:i+u}}function Je(r,c,i){if(r.length===0)return!0;{const d=r.concat(c),u=$e(r,i),v=$e(d,i);return u>=v}}function Ke(r){const c=[],i=r.length;for(let d=0;d<i;d+=1){const u=r[d],v=u.length;for(let h=0;h<v;h+=1)c.push(u[h])}return c}function Qe(r,c){const i={...c,children:r};return Oe(i)}function et(r){return(r.x1-r.x0)*(r.y1-r.y0)}function Ne(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(c),h=r.length,p=r.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,x=p/i;let C=u,T=v;const b=[];if(i>=d){for(let y=0;y<h;y+=1){const g=r[y],k=T+g.normalizedValue/f,O={x0:C,y0:T,x1:C+f,y1:k},S=Object.assign({},g,O);T=k,b.push(S)}return b}else{for(let y=0;y<h;y+=1){const g=r[y],k=C+g.normalizedValue/x,O={x0:C,y0:T,x1:k,y1:T+x},S=Object.assign({},g,O);C=k,b.push(S)}return b}}function tt(r){const c=J(r),i=c.width,d=c.height;return Math.min(i,d)}function ot(r,c){const i=r.length,d=r.map(f=>f.value??0).reduce((f,x)=>f+x,0),u=c/d,v=[];let h,p;for(let f=0;f<i;f+=1)p=r[f],h=Object.assign({},p,{normalizedValue:p.value*(u||0)}),v.push(h);return v}function J(r){const{x0:c,y0:i,x1:d,y1:u}=r;return{xOffset:c,yOffset:i,width:d-c,height:u-i}}function lt(r,c,i,d){let u=r,v=c,h=i,p=d;for(;;){const f=u.length;if(f===0){const b=Ne(v,h);return p.concat(b)}const x=tt(h),C=u[0],T=u.slice(1,f);if(Je(v,C,x)){const b=v.concat(C);u=T,v=b,h=h,p=p}else{const b=v.length;let y=0;for(let S=0;S<b;S+=1)y+=v[S].normalizedValue;const g=at(h,y),k=Ne(v,h),O=p.concat(k);u=u,v=[],h=g,p=O}}}function Oe(r){if(typeof r.children>"u"||!r.children.length)return[r];{const c=ot(r.children,et(r)),i=lt(c,[],r,[]),d=i.length,u=[];for(let h=0;h<d;h+=1)u.push(Oe(i[h]));return Ke(u)}}function at(r,c){const{width:i,height:d,xOffset:u,yOffset:v}=J(r);if(i>=d){const h=c/d,p=i-h,f={xOffset:u+h,yOffset:v,width:p,height:d};return Be(f)}else{const h=c/i,p=d-h,f={xOffset:u,yOffset:v+h,width:i,height:p};return Be(f)}}const nt=["id"],rt={key:4,class:"vue-ui-treemap-breadcrumbs","data-html2canvas-ignore":""},st=["onClick","data-last-crumb"],ut={class:"vue-ui-treemap-crumb-unit"},it={class:"vue-ui-treemap-crumb-unit-label"},ct={key:0,style:{width:"24px",display:"flex","align-items":"center"}},dt={key:0,class:"vue-ui-treemap-crumb-unit-arrow"},vt=["xmlns","viewBox"],ht={key:0},pt=["id"],ft=["stop-color"],mt=["stop-color"],gt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],yt=["x","y","height","width"],bt={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},kt={key:6,class:"vue-data-ui-watermark"},Ct=["onClick"],wt={key:0},xt={key:1},Tt=["innerHTML"],St={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(r,{expose:c,emit:i}){const{vue_ui_treemap:d}=s.useConfig(),u=r,v=i,h=e.useSlots();e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!u.dataset&&u.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),x=e.ref(s.createUid()),C=e.ref(!1),T=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),S=e.ref(null),K=e.ref(null),Q=e.ref(null),ee=e.ref(0),te=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>re(),set:o=>o}),{userOptionsVisible:X,setUserOptionsVisibility:le,keepUserOptionState:ae}=je.useUserOptionState({config:t.value}),{svgRef:ne}=Xe.useChartAccessibility({config:t.value.style.chart.title});function re(){const o=Se.useNestedProp({userConfig:u.config,defaultConfig:d});return o.theme?{...Se.useNestedProp({userConfig:s.themes.vue_ui_treemap[o.theme]||u.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>u.config,o=>{t.value=re(),X.value=!t.value.userOptions.showOnChartHover,ee.value+=1,te.value+=1,oe.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:se,isImaging:ue,generatePdf:ie,generateImage:ce}=xe.usePrinter({elementId:`treemap_${x.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),_e=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),H=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),_=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),E=e.computed(()=>({bottom:_.value.height-t.value.style.chart.padding.bottom,height:_.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:_.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function de(o){o.forEach((a,l)=>{a.id=s.createUid(),a.color=s.convertColorToHex(a.color)||H.value[l]||s.palette[l]||s.palette[l%s.palette.length],a.children&&(a.children.forEach(n=>{n.parentId=a.id,n.color=a.color}),de(a.children))})}const P=e.ref(u.dataset),U=e.ref(null);e.onMounted(()=>{Pe()});function Pe(){if(s.objectIsEmpty(u.dataset)&&s.error({componentName:"VueUiTreemap",type:"dataset"}),de(P.value),t.value.responsive){const o=Te.throttle(()=>{const{width:a,height:l}=Te.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?S.value:null,source:K.value,noTitle:Q.value});requestAnimationFrame(()=>{_.value.width=a,_.value.height=l})});U.value=new ResizeObserver(o),U.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{U.value&&U.value.disconnect()});const I=e.ref(P.value),D=e.computed(()=>I.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length]})).filter(o=>!g.value.includes(o.id))),L=e.computed(()=>P.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ve=e.computed({get(){let o=[...D.value];return t.value.style.chart.layout.sorted&&(o=[...D.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function he(o,a){return o.value/a}function ze(o,a,l){const n=t.value.style.chart.layout.rects.colorRatio-he(a,l);return s.lightenHexColor(o,n<0?0:n)}function pe(o,a,l,n){return o.map((m,V)=>{const j=ze(s.convertColorToHex(a)||H.value[V]||s.palette[V]||s.palette[V%s.palette.length],m,n),Le=he(m,n);return{...m,color:j,proportion:Le,parentName:l,children:m.children?pe(m.children,j,m.name,n):void 0}})}const q=e.computed(()=>Qe(ve.value.map((o,a)=>{const l=o.children?o.children.reduce((n,m)=>n+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?pe(o.children.sort((n,m)=>m.value-n.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:E.value.left*2,y0:E.value.top,x1:E.value.width,y1:E.value.height}));function fe({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function me({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function R(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function Ve(o){b.value=o,y.value+=1}const F=e.computed(()=>({startX:0,startY:0,width:E.value.vbWidth,height:E.value.vbHeight}));function A(o,a=P.value){for(const l of a){if(l.id===o)return l;if(l.children){const n=A(o,l.children);if(n)return n}}return null}const w=e.ref([]),z=e.computed(()=>w.value.length>0);function ge(o){var l;if(!o){I.value=P.value.slice(),v("selectDatapoint",void 0),w.value=[];return}const a=A(o.id);if(a&&((l=a.children)!=null&&l.length))w.value.push(a.id),I.value=a.children.slice(),v("selectDatapoint",o);else if(o.parentId){w.value.push(o.parentId);const n=A(o.parentId);I.value=n.children.slice(),v("selectDatapoint",o)}else if(w.value.length>0){w.value.pop();const n=w.value[w.value.length-1];if(n){const m=A(n);I.value=m.children.slice()}else I.value=P.value.slice(),w.value=[],v("selectDatapoint",void 0)}}function Ee(o){var l;const a=A(o.id);return!!((l=a==null?void 0:a.children)!=null&&l.length||o.parentId)}const M=e.computed(()=>{const o=[{id:null,label:"All"}];if(w.value.length>0){let a=A(w.value[w.value.length-1]);const l=[];for(;a;)l.unshift(a),a=a.parentId?A(a.parentId):null;for(const n of l)o.push({id:n.id,label:n.name,node:n})}return o}),B=e.ref(null),ye=e.computed(()=>P.value.map((o,a)=>({...o,color:s.convertColorToHex(o.color)||H.value[a]||s.palette[a]||s.palette[a%s.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/P.value.map(l=>l.value).reduce((l,n)=>l+n,0),opacity:g.value.includes(o.id)?.5:1}))),Re=e.computed(()=>({cy:"treemap-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":""}));function be(o){z.value=!1,B.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<u.dataset.length-1&&g.value.push(o.id),v("selectLegend",ve.value)}const Y=e.ref(null);function Ae({datapoint:o,seriesIndex:a}){B.value=o,Y.value={datapoint:o,seriesIndex:a,config:t.value,series:D.value};const l=t.value.style.chart.tooltip.customFormat;if(s.isFunction(l)&&s.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:D.value,config:t.value})))T.value=l({seriesIndex:a,datapoint:o,series:D.value,config:t.value});else{let n="";n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${o.color}"/></svg>`,n+=`<b>${s.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,T.value=`<div>${n}</div>`}C.value=!0}const N=e.computed(()=>{const o=q.value.map(l=>({name:l.name,color:l.color})),a=q.value.map(l=>l.value);return{head:o,body:a}});function ke(){e.nextTick(()=>{const o=N.value.head.map((n,m)=>[[n.name],[N.value.body[m]],[isNaN(N.value.body[m]/L.value)?"-":N.value.body[m]/L.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const W=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((m,V)=>{const j=s.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[V],s.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[V],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},j,isNaN(N.value.body[V]/L.value)?"-":s.dataLabel({v:N.value.body[V]/L.value*100,s:"%",r: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],head:o,body:a,config:l}});function Ie(){return q.value}function Ce(){$.value.showTable=!$.value.showTable}function we(){$.value.showTooltip=!$.value.showTooltip}const G=e.ref(!1);function Z(){G.value=!G.value}return c({getData:Ie,generateCsv:ke,generateImage:ce,generatePdf:ie,toggleTable:Ce,toggleTooltip:we,toggleAnnotator:Z}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,class:e.normalizeClass(`vue-ui-treemap ${b.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;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${x.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(le)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(le)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ge.PenAndPaper,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:G.value,onClose:Z},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),_e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Q,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:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Fe._sfc_main,{key:`title_${ee.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(ae)||e.unref(X))?(e.openBlock(),e.createBlock(xe.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(se),isImaging:e.unref(ue),uid:x.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:$.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:G.value,onToggleFullscreen:Ve,onGeneratePdf:e.unref(ie),onGenerateCsv:ke,onGenerateImage:e.unref(ce),onToggleTable:Ce,onToggleTooltip:we,onToggleAnnotator:Z,style:e.normalizeStyle({visibility:e.unref(ae)?e.unref(X)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value.length>1?(e.openBlock(),e.createElementBlock("nav",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(l,n)=>(e.openBlock(),e.createElementBlock("span",{key:l.id||"root",onClick:m=>n===M.value.length-1?()=>{}:ge(l.node),class:"vue-ui-treemap-crumb","data-last-crumb":n===M.value.length-1,style:e.normalizeStyle({color:t.value.style.chart.color})},[e.createElementVNode("span",ut,[e.createElementVNode("span",it,[e.renderSlot(o.$slots,"breadcrumb-label",e.mergeProps({ref_for:!0},{crumb:l,isRoot:n===0}),()=>[n===0?(e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(Ye.default,{name:"home",stroke:t.value.style.chart.color},null,8,["stroke"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.label),1)],64))],!0)]),n<M.value.length-1?(e.openBlock(),e.createElementBlock("span",dt,[e.renderSlot(o.$slots,"breadcrumb-arrow",{},()=>[a[5]||(a[5]=e.createTextVNode(" › "))],!0)])):e.createCommentVNode("",!0)])],12,st))),128))])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:5,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!z.value,"vue-data-ui-zoom-minus":z.value}),viewBox:`${F.value.startX} ${F.value.startY} ${F.value.width<=0?10:F.value.width} ${F.value.height<=0?10:F.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(We._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",ht,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,ft),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,mt)],8,pt)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:fe(l),width:me(l),fill:f.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":B.value&&B.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:e.withModifiers(m=>ge(l),["stop"]),onMouseenter:()=>Ae({datapoint:l,seriesIndex:n}),onMouseleave:a[0]||(a[0]=m=>{B.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${B.value?B.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:e.normalizeClass(["vue-ui-treemap-rect",Ee(l)?"vue-data-ui-zoom-plus":z.value?"vue-data-ui-zoom-minus":""])},null,46,gt),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:fe(l),width:me(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",bt,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||z.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${R(l)/1.5}px);text-align:left;line-height:${R(l)<14?14:R(l)}px;padding:${R(l)/3}px; color:${e.unref(s.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${R(l)}px;`)},e.toDisplayString(l.name),5),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${R(l)}px;`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||z.value,fontSize:R(l),isZoom:z.value,textColor:e.unref(s.adaptColorToBackground)(l.color)}),void 0,!0)])],8,yt))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:E.value,isZoom:z.value,rect:B.value,config:t.value})),void 0,!0)],14,vt)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",kt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(se)||e.unref(ue)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:7,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:S},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(qe.Legend,{key:`legend_${oe.value}`,legendSet:ye.value,config:Re.value,id:`treemap_legend_${x.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>be(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:m=>be(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",xt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",wt," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,Ct)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:ye.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:K,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(De._sfc_main,{show:$.value.showTooltip&&C.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:k.value,content:T.value,isFullscreen:b.value,isCustom:e.unref(s.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(Ue.default,{key:9,hideDetails:"",config:{open:$.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(He.DataTable,{key:`table_${te.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Tt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,nt))}},$t=Ze._export_sfc(St,[["__scopeId","data-v-5e08c158"]]);exports.default=$t;