vue-data-ui 2.9.7-beta.0 → 2.9.7-beta.1

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 (167) hide show
  1. package/dist/{Arrow-BU7SuiI0.cjs → Arrow-BDYqVc7p.cjs} +1 -1
  2. package/dist/{Arrow-IRx8mAUZ.js → Arrow-Bz2zEcyE.js} +1 -1
  3. package/dist/{BaseIcon-CN6BxTf_.cjs → BaseIcon-Dvzth12-.cjs} +1 -1
  4. package/dist/{BaseIcon-NVebWEmm.js → BaseIcon-xGT7xJnn.js} +1 -1
  5. package/dist/{ColorPicker-DzF9vdB7.cjs → ColorPicker-BTyFezxo.cjs} +1 -1
  6. package/dist/{ColorPicker-D6INbuzz.js → ColorPicker-Be4dyfSY.js} +3 -3
  7. package/dist/{DataTable-Bc-sIk3H.cjs → DataTable-DkpRxpK1.cjs} +1 -1
  8. package/dist/{DataTable-LLs37Na_.js → DataTable-jQUrRh9B.js} +2 -2
  9. package/dist/{Legend-DbGQCXU-.cjs → Legend-6QUlR6nT.cjs} +1 -1
  10. package/dist/{Legend-Vkc-EKNB.js → Legend-DCwwpz6j.js} +2 -2
  11. package/dist/PackageVersion-Bmq_Rden.cjs +1 -0
  12. package/dist/{PackageVersion-smHUcsQE.js → PackageVersion-Dffpfs0E.js} +3 -3
  13. package/dist/{PenAndPaper-30BhAniw.cjs → PenAndPaper-ByeWWt4I.cjs} +1 -1
  14. package/dist/{PenAndPaper-k0VaawVj.js → PenAndPaper-DgeL3oKs.js} +3 -3
  15. package/dist/{Shape-Bfm8x-8P.js → Shape-Cd10Dxv4.js} +1 -1
  16. package/dist/{Shape-PzPPg5iH.cjs → Shape-CkE4y7L4.cjs} +1 -1
  17. package/dist/{Slicer-BU0fj2AI.cjs → Slicer-CsZdctS1.cjs} +1 -1
  18. package/dist/{Slicer-DhTMXF53.js → Slicer-M1ResLDK.js} +2 -2
  19. package/dist/{Title-58EtyYdb.cjs → Title-CvXzZeEb.cjs} +1 -1
  20. package/dist/{Title-IOaA-ppU.js → Title-DTFwdW6y.js} +1 -1
  21. package/dist/{Tooltip-D8cBDDkn.js → Tooltip-CNgQVGXX.js} +1 -1
  22. package/dist/{Tooltip-e9KUqiQA.cjs → Tooltip-DQgWYT7j.cjs} +1 -1
  23. package/dist/{dom-to-png-CorDkTqE.cjs → dom-to-png-Bl85cZIy.cjs} +1 -1
  24. package/dist/{dom-to-png-DWnOZNsr.js → dom-to-png-y63T8Y5f.js} +1 -1
  25. package/dist/{img-DTb9GqRw.js → img-BAvFNhyt.js} +1 -1
  26. package/dist/{img-D3Du_oTb.cjs → img-uWJ1eTug.cjs} +1 -1
  27. package/dist/index-BxxejAie.cjs +9 -0
  28. package/dist/{index-DwNTTJ28.js → index-dZn5kXWH.js} +316 -315
  29. package/dist/{pdf-BcORych6.cjs → pdf-B3FJiCmw.cjs} +1 -1
  30. package/dist/{pdf-EYBy6RJJ.js → pdf-hCbsffvj.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +1 -0
  33. package/dist/types/vue-data-ui.d.ts +1 -0
  34. package/dist/{useNestedProp-BVy9-3EJ.cjs → useNestedProp-fJ2Uyt99.cjs} +1 -1
  35. package/dist/{useNestedProp-DLKXTEny.js → useNestedProp-uXqTvVZ6.js} +1 -1
  36. package/dist/{usePrinter-CDE1F-XN.js → usePrinter-B5W9BghM.js} +3 -3
  37. package/dist/{usePrinter-vjB2nrFW.cjs → usePrinter-piikzkuQ.cjs} +1 -1
  38. package/dist/{vue-data-ui-Dxn5phSx.js → vue-data-ui-B4xWWnGz.js} +62 -62
  39. package/dist/{vue-data-ui-NKaL_RZ1.cjs → vue-data-ui-C2dYJIR6.cjs} +1 -1
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +1 -1
  42. package/dist/{vue-ui-3d-bar-C6p9aV9v.cjs → vue-ui-3d-bar-B5kPeh3R.cjs} +1 -1
  43. package/dist/{vue-ui-3d-bar-CHHe_J_D.js → vue-ui-3d-bar-Fzal48H7.js} +9 -9
  44. package/dist/{vue-ui-accordion-CELgYjnV.cjs → vue-ui-accordion-D324uXUs.cjs} +1 -1
  45. package/dist/{vue-ui-accordion-BqCwiS7D.js → vue-ui-accordion-hnKAB3UB.js} +3 -3
  46. package/dist/{vue-ui-age-pyramid-S8hYFKDI.cjs → vue-ui-age-pyramid-CqkyzIXi.cjs} +1 -1
  47. package/dist/{vue-ui-age-pyramid-CeahoaHi.js → vue-ui-age-pyramid-Dw8RU3fo.js} +10 -10
  48. package/dist/{vue-ui-annotator-Dt280Dbw.js → vue-ui-annotator-Cg44qBNA.js} +2 -2
  49. package/dist/{vue-ui-annotator-BoOPk1NW.cjs → vue-ui-annotator-pUd0z7hH.cjs} +1 -1
  50. package/dist/{vue-ui-bullet-C_ouoJoz.cjs → vue-ui-bullet-BKAEOpim.cjs} +1 -1
  51. package/dist/{vue-ui-bullet-DoyResGB.js → vue-ui-bullet-BZ3vfRq7.js} +8 -8
  52. package/dist/{vue-ui-candlestick-BSrwISIN.cjs → vue-ui-candlestick-BH3Fr64W.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-Ckb5JZAY.js → vue-ui-candlestick-CSJ9mWo0.js} +11 -11
  54. package/dist/{vue-ui-carousel-table-BnfnugZ8.cjs → vue-ui-carousel-table-BvFacP5B.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-pyTSfa3R.js → vue-ui-carousel-table-f4g2tPd6.js} +4 -4
  56. package/dist/{vue-ui-chestnut-DEmzGhAV.js → vue-ui-chestnut-B4tH1NsY.js} +8 -8
  57. package/dist/{vue-ui-chestnut-D2DRAw3Z.cjs → vue-ui-chestnut-CsHD47W2.cjs} +1 -1
  58. package/dist/{vue-ui-circle-pack-W44HsVVY.js → vue-ui-circle-pack-BCekfuTl.js} +9 -9
  59. package/dist/{vue-ui-circle-pack-D58AOk8y.cjs → vue-ui-circle-pack-Dv1JM47Y.cjs} +1 -1
  60. package/dist/{vue-ui-cursor-Dnkh_phA.js → vue-ui-cursor-BOaEBh8K.js} +2 -2
  61. package/dist/{vue-ui-cursor-D1ZEe_2B.cjs → vue-ui-cursor-DILIt5Ls.cjs} +1 -1
  62. package/dist/{vue-ui-dashboard-mDnIJx3M.js → vue-ui-dashboard-Dg09VIwT.js} +62 -62
  63. package/dist/{vue-ui-dashboard-BbcppsFn.cjs → vue-ui-dashboard-yky1BoX1.cjs} +1 -1
  64. package/dist/{vue-ui-digits-Dr3tklAr.js → vue-ui-digits-DHSipUKE.js} +2 -2
  65. package/dist/{vue-ui-digits-C_za0nmt.cjs → vue-ui-digits-rCyDXucx.cjs} +1 -1
  66. package/dist/{vue-ui-donut-CRBp5BFP.js → vue-ui-donut-C0-b6MaS.js} +12 -12
  67. package/dist/{vue-ui-donut-CxCNCSyO.cjs → vue-ui-donut-Dz4uz6yZ.cjs} +1 -1
  68. package/dist/{vue-ui-donut-evolution-D4s8zLwf.cjs → vue-ui-donut-evolution-BfFxQ53a.cjs} +1 -1
  69. package/dist/{vue-ui-donut-evolution-abrnOe55.js → vue-ui-donut-evolution-T2o954MU.js} +11 -11
  70. package/dist/{vue-ui-dumbbell-Bj_SUn-j.js → vue-ui-dumbbell-C-JHVfQK.js} +10 -10
  71. package/dist/{vue-ui-dumbbell-BDinWM7R.cjs → vue-ui-dumbbell-DirbX29v.cjs} +1 -1
  72. package/dist/{vue-ui-flow-CtAP5n05.js → vue-ui-flow-Cnqon6JE.js} +9 -9
  73. package/dist/{vue-ui-flow-DCQVOrgy.cjs → vue-ui-flow-pdIZMWGU.cjs} +1 -1
  74. package/dist/{vue-ui-funnel-0TWVP6z9.cjs → vue-ui-funnel-D0EYYR5q.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-DymsYFW0.js → vue-ui-funnel-DDGgRUL_.js} +9 -9
  76. package/dist/{vue-ui-galaxy-Dn-E22Sq.js → vue-ui-galaxy-5Lp5jcVx.js} +11 -11
  77. package/dist/{vue-ui-galaxy-DoJcvc2z.cjs → vue-ui-galaxy-C4QUHRn3.cjs} +1 -1
  78. package/dist/{vue-ui-gauge-DqbsP-05.js → vue-ui-gauge-BWdmnfk7.js} +7 -7
  79. package/dist/{vue-ui-gauge-BPOh-LHr.cjs → vue-ui-gauge-n0llGxB3.cjs} +1 -1
  80. package/dist/{vue-ui-gizmo-CW9LAAdu.cjs → vue-ui-gizmo-56KcpzEi.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-BohTVUAE.js → vue-ui-gizmo-CwXTG2rg.js} +3 -3
  82. package/dist/{vue-ui-heatmap-CYCOMJEp.cjs → vue-ui-heatmap-BPhN0t20.cjs} +1 -1
  83. package/dist/{vue-ui-heatmap-1FWBcMxC.js → vue-ui-heatmap-DsuOdL-_.js} +10 -10
  84. package/dist/{vue-ui-history-plot-CSIf1_96.js → vue-ui-history-plot-C4F8Dt5u.js} +11 -11
  85. package/dist/{vue-ui-history-plot-BUIqHRPg.cjs → vue-ui-history-plot-CYury7gY.cjs} +1 -1
  86. package/dist/{vue-ui-kpi-BrhY5fFX.js → vue-ui-kpi-BUZSIvhd.js} +3 -3
  87. package/dist/{vue-ui-kpi-Cf6eEcYm.cjs → vue-ui-kpi-DWJKi_Rg.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-CURulq-0.cjs → vue-ui-mini-loader-C6KZynyq.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-CgkVj3jx.js → vue-ui-mini-loader-CZHn7s8C.js} +2 -2
  90. package/dist/{vue-ui-molecule-DBlY5wdo.cjs → vue-ui-molecule-CESE6y3-.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-Bd-W2FcU.js → vue-ui-molecule-RkEuKZfw.js} +11 -11
  92. package/dist/{vue-ui-mood-radar-Bzl98p3C.js → vue-ui-mood-radar-D8cC7b4H.js} +11 -11
  93. package/dist/{vue-ui-mood-radar-D9yvKEMp.cjs → vue-ui-mood-radar-s5D-LXhx.cjs} +1 -1
  94. package/dist/{vue-ui-nested-donuts-BZ5JA8Q0.cjs → vue-ui-nested-donuts-BPV5CMmn.cjs} +1 -1
  95. package/dist/{vue-ui-nested-donuts-DyTI4ydr.js → vue-ui-nested-donuts-D-FYuXRA.js} +11 -11
  96. package/dist/{vue-ui-onion-ueQgXseI.js → vue-ui-onion-C2IuYY1_.js} +11 -11
  97. package/dist/{vue-ui-onion-DLm1PYJW.cjs → vue-ui-onion-D-hvBCBK.cjs} +1 -1
  98. package/dist/{vue-ui-parallel-coordinate-plot-CE7Apuxp.js → vue-ui-parallel-coordinate-plot-B1O55-rm.js} +12 -12
  99. package/dist/{vue-ui-parallel-coordinate-plot-C2IpU_Zn.cjs → vue-ui-parallel-coordinate-plot-nOYz2jJn.cjs} +1 -1
  100. package/dist/{vue-ui-quadrant-CjLaANbC.js → vue-ui-quadrant-B0_OxcFz.js} +12 -12
  101. package/dist/{vue-ui-quadrant-R1yAxzva.cjs → vue-ui-quadrant-DYhGwlfe.cjs} +1 -1
  102. package/dist/{vue-ui-quick-chart-CVDLl6ro.js → vue-ui-quick-chart-DRmt8uTr.js} +9 -9
  103. package/dist/{vue-ui-quick-chart-BdqHueUa.cjs → vue-ui-quick-chart-Dh5PExEE.cjs} +1 -1
  104. package/dist/{vue-ui-radar-CoJY69Qe.js → vue-ui-radar-BSKl6NaZ.js} +12 -12
  105. package/dist/{vue-ui-radar-B6u_29cN.cjs → vue-ui-radar-bTmYQTD8.cjs} +1 -1
  106. package/dist/{vue-ui-rating-inneqZuS.cjs → vue-ui-rating-DhZNtU-G.cjs} +1 -1
  107. package/dist/{vue-ui-rating-tqvCl4qR.js → vue-ui-rating-h8ElTbDc.js} +2 -2
  108. package/dist/{vue-ui-relation-circle-B_2RZE3S.js → vue-ui-relation-circle-BaWJr8To.js} +7 -7
  109. package/dist/{vue-ui-relation-circle-D_eh1BEp.cjs → vue-ui-relation-circle-QKX4wATN.cjs} +1 -1
  110. package/dist/{vue-ui-ridgeline-BZqkRymO.js → vue-ui-ridgeline-D1GUsvXX.js} +369 -331
  111. package/dist/vue-ui-ridgeline-DqHfwFSt.cjs +1 -0
  112. package/dist/{vue-ui-rings-CDBPSu7C.cjs → vue-ui-rings-BF-pJGFw.cjs} +1 -1
  113. package/dist/{vue-ui-rings-5cvD-A8P.js → vue-ui-rings-CTejFHE3.js} +12 -12
  114. package/dist/{vue-ui-scatter-DSd4R2Yi.cjs → vue-ui-scatter-CxzLQ9E9.cjs} +1 -1
  115. package/dist/{vue-ui-scatter-D6gIKljC.js → vue-ui-scatter-DwAuYDAJ.js} +12 -12
  116. package/dist/{vue-ui-skeleton-ovmMp5bh.cjs → vue-ui-skeleton-BncdTK_J.cjs} +1 -1
  117. package/dist/{vue-ui-skeleton-kS_CJIiv.js → vue-ui-skeleton-N92OEV1V.js} +3 -3
  118. package/dist/{vue-ui-smiley-DzoxVoms.js → vue-ui-smiley-C0XYZpqy.js} +2 -2
  119. package/dist/{vue-ui-smiley-DJnJpvqE.cjs → vue-ui-smiley-CbodcLLJ.cjs} +1 -1
  120. package/dist/{vue-ui-spark-trend-oIWCpuK4.js → vue-ui-spark-trend-Dj8qsN6G.js} +5 -5
  121. package/dist/{vue-ui-spark-trend-CFS3QbYY.cjs → vue-ui-spark-trend-y_GuosnD.cjs} +1 -1
  122. package/dist/{vue-ui-sparkbar-zp12sOeT.js → vue-ui-sparkbar-Benj8HGj.js} +4 -4
  123. package/dist/{vue-ui-sparkbar-CcF0AVSW.cjs → vue-ui-sparkbar-CxJmv5ML.cjs} +1 -1
  124. package/dist/{vue-ui-sparkgauge-Ch5sucF4.js → vue-ui-sparkgauge-E-1gEmG-.js} +4 -4
  125. package/dist/{vue-ui-sparkgauge-DTflH_xZ.cjs → vue-ui-sparkgauge-zIBTPmsR.cjs} +1 -1
  126. package/dist/{vue-ui-sparkhistogram-DZt0HNIE.cjs → vue-ui-sparkhistogram-XRkWTqkN.cjs} +1 -1
  127. package/dist/{vue-ui-sparkhistogram-BkTOZLzM.js → vue-ui-sparkhistogram-pICEX61o.js} +5 -5
  128. package/dist/{vue-ui-sparkline-C_xiHNZV.js → vue-ui-sparkline-D81DEBjv.js} +4 -4
  129. package/dist/{vue-ui-sparkline-CBSJXHQs.cjs → vue-ui-sparkline-DV5D_RQh.cjs} +1 -1
  130. package/dist/{vue-ui-sparkstackbar-C_OFfnx-.js → vue-ui-sparkstackbar-BpcCOvAI.js} +5 -5
  131. package/dist/{vue-ui-sparkstackbar-CflXoafD.cjs → vue-ui-sparkstackbar-DMNg9ak3.cjs} +1 -1
  132. package/dist/{vue-ui-stackbar-qXKMKlND.js → vue-ui-stackbar-G15qxsMd.js} +13 -13
  133. package/dist/{vue-ui-stackbar-Bxk0RKI0.cjs → vue-ui-stackbar-PnD1hK3i.cjs} +1 -1
  134. package/dist/{vue-ui-strip-plot-CXQN3ICY.cjs → vue-ui-strip-plot-ChHICkYn.cjs} +1 -1
  135. package/dist/{vue-ui-strip-plot-C0JI5Ypz.js → vue-ui-strip-plot-DJ1j7lKY.js} +11 -11
  136. package/dist/{vue-ui-table-Cl3Li8f9.cjs → vue-ui-table-B3GPUNC6.cjs} +1 -1
  137. package/dist/{vue-ui-table-DyFNHVoi.js → vue-ui-table-CPWbYP3g.js} +3 -3
  138. package/dist/{vue-ui-table-heatmap-BcCULm0Y.js → vue-ui-table-heatmap-BozZIGw6.js} +4 -4
  139. package/dist/{vue-ui-table-heatmap-DGLCYPo5.cjs → vue-ui-table-heatmap-eN_RvRGE.cjs} +1 -1
  140. package/dist/{vue-ui-table-sparkline-BgkRYmur.cjs → vue-ui-table-sparkline-8n1TE1wF.cjs} +1 -1
  141. package/dist/{vue-ui-table-sparkline-B-dNVmMr.js → vue-ui-table-sparkline-CdDRwxTd.js} +5 -5
  142. package/dist/{vue-ui-thermometer-BCH7KJhP.cjs → vue-ui-thermometer-BVRKMtH8.cjs} +1 -1
  143. package/dist/{vue-ui-thermometer-Cuw5r53c.js → vue-ui-thermometer-Bi8kEUpd.js} +7 -7
  144. package/dist/{vue-ui-timer-CyopDf_K.cjs → vue-ui-timer-BTKEuhNh.cjs} +1 -1
  145. package/dist/{vue-ui-timer-DdGJsPoJ.js → vue-ui-timer-DM3UD4U1.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-BPxnwI8b.js → vue-ui-tiremarks-B7VBbIEY.js} +7 -7
  147. package/dist/{vue-ui-tiremarks-C8AqJweQ.cjs → vue-ui-tiremarks-_i2hr2b5.cjs} +1 -1
  148. package/dist/{vue-ui-treemap-CeuVNdos.js → vue-ui-treemap-CB0VxAnH.js} +12 -12
  149. package/dist/{vue-ui-treemap-BFu-MBkV.cjs → vue-ui-treemap-CKy9D8Ea.cjs} +1 -1
  150. package/dist/{vue-ui-vertical-bar-CqE10O2F.cjs → vue-ui-vertical-bar-BBJzPtdF.cjs} +1 -1
  151. package/dist/{vue-ui-vertical-bar-Ba6oWXzE.js → vue-ui-vertical-bar-BEPc3lno.js} +12 -12
  152. package/dist/{vue-ui-waffle-lMRTNFla.js → vue-ui-waffle-BzFCNnbT.js} +12 -12
  153. package/dist/{vue-ui-waffle-Dj664Zvg.cjs → vue-ui-waffle-jsCU5pDG.cjs} +1 -1
  154. package/dist/{vue-ui-wheel-BWMzvmcA.cjs → vue-ui-wheel-BFQjYYox.cjs} +1 -1
  155. package/dist/{vue-ui-wheel-aaqRzfsy.js → vue-ui-wheel-Fngpvu0X.js} +7 -7
  156. package/dist/{vue-ui-word-cloud-D2UL2Oye.js → vue-ui-word-cloud-DVk6cKMt.js} +10 -10
  157. package/dist/{vue-ui-word-cloud-Z7WvU8XI.cjs → vue-ui-word-cloud-LaXnNCwH.cjs} +1 -1
  158. package/dist/{vue-ui-world-B61PIrw8.js → vue-ui-world-jSuq2wK6.js} +11 -11
  159. package/dist/{vue-ui-world-JoZxd7Uu.cjs → vue-ui-world-mEXGnJBH.cjs} +1 -1
  160. package/dist/{vue-ui-xy-F8eArZNJ.js → vue-ui-xy-DL8afDjw.js} +16 -16
  161. package/dist/{vue-ui-xy-Bil87p79.cjs → vue-ui-xy-b2wVPLx_.cjs} +2 -2
  162. package/dist/{vue-ui-xy-canvas-Qb5pkWBq.cjs → vue-ui-xy-canvas-BnH7Yka3.cjs} +1 -1
  163. package/dist/{vue-ui-xy-canvas-BlQyx-BL.js → vue-ui-xy-canvas-BolKnmNP.js} +12 -12
  164. package/package.json +1 -1
  165. package/dist/PackageVersion-nHr3qHGs.cjs +0 -1
  166. package/dist/index-BqL3-yPQ.cjs +0 -9
  167. package/dist/vue-ui-ridgeline-BN4YoLPn.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BxxejAie.cjs"),We=require("./useUserOptionState-BgepsfED.cjs"),Ue=require("./useChartAccessibility-Cm7nkzTG.cjs"),be=require("./usePrinter-piikzkuQ.cjs"),we=require("./useResponsive-DQmBAoBf.cjs"),Ce=require("./useNestedProp-fJ2Uyt99.cjs"),Ye=require("./vue-ui-accordion-D324uXUs.cjs"),Ge=require("./BaseIcon-Dvzth12-.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=require("./DataTable-DkpRxpK1.cjs"),Je=require("./Legend-6QUlR6nT.cjs"),Ke=require("./PenAndPaper-ByeWWt4I.cjs"),Qe=require("./Shape-CkE4y7L4.cjs"),Ze=require("./vue-ui-skeleton-BncdTK_J.cjs"),et=require("./Title-CvXzZeEb.cjs"),tt=require("./vue-ui-xy-b2wVPLx_.cjs"),lt=["xmlns"],ot={class:"modal-title"},at={class:"modal-body"},rt={__name:"BaseDraggableDialog",props:{backgroundColor:{type:String},color:{type:String},headerBg:{type:String},headerColor:{type:String}},emits:["close"],setup(S,{expose:Q,emit:Z}){e.useCssVars(i=>({19616867:S.color}));const ee=S,p=Z,b=e.ref(!1),M=e.ref(!1),a=e.reactive({left:window.innerWidth/2-200,top:window.innerHeight/2-120,width:400,height:400,dragging:!1,resizing:!1,dragOffsetX:0,dragOffsetY:0,pointerStartX:0,pointerStartY:0,resizeStartW:0,resizeStartH:0});function U(){b.value=!0,e.nextTick(()=>{M.value||(a.left=Math.max(0,window.innerWidth/2-a.width/2),a.top=Math.max(0,window.innerHeight/2-a.height/2),M.value=!0)})}function P(){b.value=!1,p("close")}Q({open:U,close:P});const _=e.computed(()=>({position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${a.height}px`,padding:0,border:"none",background:ee.backgroundColor,boxShadow:"0 4px 24px rgba(0,0,0,0.15)",zIndex:9999,overflow:"visible",borderRadius:"2px"}));function w(i){return i.touches&&i.touches.length?{x:i.touches[0].clientX,y:i.touches[0].clientY}:{x:i.clientX,y:i.clientY}}function O(i){var v;(v=i.preventDefault)==null||v.call(i),a.dragging=!0;const d=w(i);a.dragOffsetX=d.x-a.left,a.dragOffsetY=d.y-a.top,document.addEventListener("mousemove",$),document.addEventListener("mouseup",A),document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",A)}function $(i){var m;if(!a.dragging)return;(m=i.preventDefault)==null||m.call(i);const d=w(i);let v=d.x-a.dragOffsetX,t=d.y-a.dragOffsetY;v=Math.max(0,Math.min(v,window.innerWidth-a.width)),t=Math.max(0,Math.min(t,window.innerHeight-a.height)),a.left=v,a.top=t}function A(){a.dragging=!1,document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",A),document.removeEventListener("touchmove",$),document.removeEventListener("touchend",A)}function D(i){var v;(v=i.preventDefault)==null||v.call(i),a.resizing=!0;const d=w(i);a.pointerStartX=d.x,a.pointerStartY=d.y,a.resizeStartW=a.width,a.resizeStartH=a.height,document.addEventListener("mousemove",g),document.addEventListener("mouseup",B),document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",B)}function g(i){var m;if(!a.resizing)return;(m=i.preventDefault)==null||m.call(i);const d=w(i);let v=d.x-a.pointerStartX,t=d.y-a.pointerStartY;a.width=Math.max(240,a.resizeStartW+v),a.height=Math.max(400,a.resizeStartH+t)}function B(){a.resizing=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",B),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",B)}function Y(i){var v;(v=i.preventDefault)==null||v.call(i),a.resizing=!0;const d=w(i);a.pointerStartX=d.x,a.pointerStartY=d.y,a.resizeStartW=a.width,a.resizeStartH=a.height,a.resizeStartLeft=a.left,a.resizeStartTop=a.top,document.addEventListener("mousemove",N),document.addEventListener("mouseup",h),document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",h)}function N(i){var X;if(!a.resizing)return;(X=i.preventDefault)==null||X.call(i);const d=w(i);let v=d.x-a.pointerStartX,t=Math.min(Math.max(0,a.resizeStartLeft+v),a.resizeStartLeft+a.resizeStartW-240),m=a.resizeStartW-(t-a.resizeStartLeft),F=d.y-a.pointerStartY,G=Math.max(400,a.resizeStartH+F);a.left=t,a.width=m,a.height=G}function h(){a.resizing=!1,document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",h),document.removeEventListener("touchmove",N),document.removeEventListener("touchend",h)}return e.onUnmounted(()=>{A(),B(),h()}),(i,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[b.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal vue-ui-draggable-dialog",style:e.normalizeStyle(_.value),onClick:d[0]||(d[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",{class:"modal-header",style:e.normalizeStyle({backgroundColor:S.headerBg,color:S.headerColor})},[e.createElementVNode("span",{class:"drag-handle",onMousedown:e.withModifiers(O,["stop","prevent"]),onTouchstart:e.withModifiers(O,["stop","prevent"])},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(u.XMLNS),width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round"},d[1]||(d[1]=[e.createElementVNode("path",{d:"M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1),e.createElementVNode("path",{d:"M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"},null,-1)]),8,lt))],32),e.createElementVNode("span",ot,[e.renderSlot(i.$slots,"title",{},void 0,!0)]),e.createElementVNode("button",{class:"close",onClick:P},[e.createVNode(Ge.default,{name:"close",stroke:S.headerColor},null,8,["stroke"])])],4),e.createElementVNode("div",at,[e.renderSlot(i.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",{class:"resize-handle",onMousedown:e.withModifiers(D,["stop","prevent"]),onTouchstart:e.withModifiers(D,["stop","prevent"])},null,32),e.createElementVNode("div",{class:"resize-handle resize-handle-left",onMousedown:e.withModifiers(Y,["stop","prevent"]),onTouchstart:e.withModifiers(Y,["stop","prevent"])},null,32)],4)):e.createCommentVNode("",!0)]))}},nt=Be._export_sfc(rt,[["__scopeId","data-v-f854cee8"]]),st=["id"],it=["xmlns","viewBox"],ut=["id"],ct=["stop-color"],dt=["stop-color"],ht=["stop-color"],vt=["stop-color"],mt=["id"],ft=["stop-color"],pt=["stop-color"],gt=["stop-color"],yt=["stop-color"],kt={key:0},xt=["fill","d"],bt=["fill","stroke","stroke-width","d"],wt=["stroke","stroke-dasharray","stroke-width","d"],Ct=["x1","y1","x2","y2","stroke","stroke-width","stroke-dasharray"],Bt=["cx","cy","stroke","stroke-width","r","fill"],Et=["x","y","font-size","font-weight","fill","text-decoration","onMouseenter","onClick"],St={key:1},$t=["font-size","fill","font-weight","transform","text-anchor"],At=["x","y","width","height","onMouseenter","onClick"],Nt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],zt=["cx","cy","stroke","stroke-width","r","fill"],Lt=["x","y","text-anchor","font-size","fill"],Mt={key:5,class:"vue-data-ui-watermark"},_t=["onClick"],Vt=["innerHTML"],Tt={__name:"vue-ui-ridgeline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint","selectX"],setup(S,{expose:Q,emit:Z}){const{vue_ui_ridgeline:ee}=u.useConfig(),p=S,b=e.computed({get(){return!!p.dataset&&p.dataset.length},set(o){return o}}),M=Z,a=e.ref(null),U=e.ref(null),P=e.ref(null),_=e.ref(null),w=e.ref(null),O=e.ref(null),$=e.ref(0),A=e.ref(0),D=e.ref(0),g=e.ref(u.createUid()),B=e.ref(0),Y=e.ref(0),N=e.ref(512),h=e.ref(null),i=e.ref(null),d=e.ref(null);function v(){const o=Ce.useNestedProp({userConfig:p.config,defaultConfig:ee});return o.theme?{...Ce.useNestedProp({userConfig:u.themes.vue_ui_ridgeline[o.theme]||p.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}const t=e.computed({get:()=>v(),set:o=>o}),m=e.ref(Math.min(t.value.style.chart.areas.height,t.value.style.chart.areas.rowHeight)),{userOptionsVisible:F,setUserOptionsVisibility:G,keepUserOptionState:X}=We.useUserOptionState({config:t.value}),{svgRef:te}=Ue.useChartAccessibility({config:t.value.style.chart.title});e.onMounted(le),e.onBeforeUnmount(()=>{_.value&&_.value.disconnect()});function le(){if(u.objectIsEmpty(p.dataset)?u.error({componentName:"VueUiRidgeline",type:"dataset"}):p.dataset.forEach((o,s)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","datapoints"]}).forEach(l=>{b.value=!1,u.error({componentName:"VueUiRidgeline",type:"datasetSerieAttribute",property:l,index:s})}),o.datapoints.length&&o.datapoints.forEach((l,n)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(r=>{b.value=!1,u.error({componentName:"VueUiRidgeline",type:"datasetSerieAttribute",property:`datapoint.${r}`,index:`${s}-${n}`})})})}),Y.value=p.dataset.length,m.value=Math.min(t.value.style.chart.areas.height,t.value.style.chart.areas.rowHeight),t.value.responsive){const o=we.throttle(()=>{const{width:s,height:l}=we.useResponsive({chart:a.value,title:t.value.style.chart.title.text?U.value:null,legend:t.value.style.chart.legend.show?P.value:null,source:w.value,noTitle:O.value});requestAnimationFrame(()=>{N.value=s,m.value=l/p.dataset.length})});_.value=new ResizeObserver(o),_.value.observe(a.value.parentNode)}}const{isPrinting:ne,isImaging:se,generatePdf:ie,generateImage:ue}=be.usePrinter({elementId:`vue-ui-ridgeline_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-ridgeline",options:t.value.userOptions.print}),Ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Se=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),I=e.ref({showTable:t.value.table.show});e.watch(()=>p.config,o=>{t.value=v(),F.value=!t.value.userOptions.showOnChartHover,le(),$.value+=1,D.value+=1,m.value=Math.min(t.value.style.chart.areas.height,t.value.style.chart.areas.rowHeight),I.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>p.dataset,le,{deep:!0});const oe=e.computed(()=>t.value.style.chart.areas.height/t.value.style.chart.areas.rowHeight);function ce(o){E.value.includes(o)?E.value=E.value.filter(s=>s!==o):E.value.push(o),M("selectLegend",T.value)}const C=e.computed(()=>b.value?p.dataset.map((o,s)=>({...o,labelLen:Ne(o.name,t.value.style.chart.yAxis.labels.fontSize),uid:u.createUid(),datapoints:o.datapoints.map((l,n)=>{const r=l.color?u.convertColorToHex(l.color):Se.value[n]||u.palette[n]||u.palette[n%u.palette.length];console.log(r);const c=u.slugify(l.name);return{...l,color:r,id:c}})})):[]),de=e.computed(()=>t.value.style.chart.padding.top+m.value*p.dataset.length+m.value*oe.value),k=e.computed(()=>({fullHeight:f.value.padding.top+f.value.padding.bottom+f.value.height,top:f.value.padding.top,left:f.value.padding.left,right:f.value.width-f.value.padding.right,bottom:f.value.padding.top+f.value.height,width:f.value.width-(f.value.padding.left+f.value.padding.right)})),f=e.computed(()=>{const o=t.value.style.chart.padding;return{width:N.value,height:de.value,padding:o}}),V=e.computed(()=>{const o=Math.max(...C.value.map(c=>c.labelLen)),s=Math.max(...C.value.flatMap(c=>c.datapoints.map(x=>x.values.length))),l=f.value.padding.left+o+16+t.value.style.chart.yAxis.labels.offsetX,n=(k.value.width-l)/s,r=[];for(let c=0;c<s;c+=1)r.push({selectorX:l+n*c,x:l+n*c-n/2,y:k.value.top,label:t.value.style.chart.xAxis.labels.values[c]||"",index:c,width:n,height:de.value});return r});function $e(o){M("selectX",C.value.map(s=>s.datapoints.map(l=>({dp:l,selected:l.values[o.index]}))))}function Ae(o,s){return o.length*s/2+s}function he(o,s,l){const n=Ae(s,l);return o+n>k.value.right}function Ne(o,s,l="sans-serif"){const r=document.createElement("canvas").getContext("2d"),c=typeof s=="number"?`${s}px`:s;return r.font=`${c} ${l}`,r.measureText(o).width}const T=e.computed(()=>{m.value;const o=Math.max(...C.value.map(y=>y.labelLen)),s=Math.max(...C.value.flatMap(y=>y.datapoints.map(z=>z.values.length))),l=Math.max(...C.value.flatMap(y=>y.datapoints.flatMap(z=>z.values))),n=Math.min(...C.value.flatMap(y=>y.datapoints.flatMap(z=>z.values))),r=f.value.padding.left+o+16+t.value.style.chart.yAxis.labels.offsetX,c=(k.value.width-r)/s,x=Math.abs(Math.min(n,0)),ye=l+x;function ke(y){return isNaN(y/ye)?0:y/ye}return C.value.map((y,z)=>{const xe=k.value.top+m.value*z,L=k.value.top+xe+m.value*oe.value*(1-ke(x));return{...y,label:{x:r-t.value.style.chart.yAxis.labels.fontSize,y:L},datapoints:y.datapoints.map(R=>{const q=R.values.map((W,Xe)=>{const Ie=isNaN(W)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(W)?0:W||0,He=r+c*Xe,Re=k.value.top+xe+m.value*oe.value*(1-ke(Ie+x)),qe=W===Math.max(...R.values);return{x:He,y:Re,value:W,isMaxPoint:qe,zero:L}}),Oe=`${u.createSmoothAreaSegments(q,L,!1,!1)}`,De=`M ${r},${L} ${u.createStraightPath(q)} ${q.at(-1).x},${L}`,Fe=`M ${r},${L} ${q.at(-1).x},${L}`;return{...R,uid:u.createUid(),plots:q,smoothPath:Oe,straightPath:De,zeroPath:Fe}}).filter(R=>!E.value.includes(R.id))}})}),E=e.ref([]);function ze(o){const s=new Map;return o.forEach(l=>{l.datapoints.forEach((n,r)=>{const c=u.slugify(n.name);s.has(c)||s.set(c,{id:c,name:n.name,color:n.color,shape:"circle",segregate:()=>ce(c),isSegregated:E.value.includes(c),opacity:E.value.includes(c)?.5:1})})}),Array.from(s.values())}const j=e.computed(()=>ze(C.value)),Le=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),H=e.ref(!1);function Me(o){H.value=o,B.value+=1}const ve=e.ref({}),me=e.ref([]);function _e(o){M("selectDatapoint",o),t.value.style.chart.dialog.show&&(me.value=o.datapoints.map(s=>({name:s.name,color:s.color,type:"line",useArea:!0,smooth:t.value.style.chart.areas.smooth,series:s.values})),i.value=o,ve.value={...t.value.style.chart.dialog.xyChart,responsive:!0,chart:{...t.value.style.chart.dialog.xyChart.chart,grid:{...t.value.style.chart.dialog.xyChart.chart.grid,labels:{...t.value.style.chart.dialog.xyChart.chart.grid.labels,xAxisLabels:{...t.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,values:t.value.style.chart.xAxis.labels.values}}},tooltip:{...t.value.style.chart.dialog.xyChart.chart.tooltip,showTimeLabel:t.value.style.chart.xAxis.labels.values.length>0}}},d.value&&d.value.open())}const ae=e.ref(null);function Ve(o){ae.value=o}function Te(){ae.value=null}const J=e.ref(!1);function re(){J.value=!J.value}function fe(){I.value.showTable=!I.value.showTable}const pe=e.computed(()=>({body:T.value.flatMap(l=>l.datapoints.flatMap(n=>({...n,rowName:`${l.name}: ${n.name}`}))).map(l=>[{name:l.rowName,color:l.color},...l.values])})),K=e.computed(()=>{const o=[t.value.table.columnNames.series,...t.value.style.chart.xAxis.labels.values],s={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.style.chart.xAxis.labels.values],head:o,body:pe.value.body,config:s}});function ge(){e.nextTick(()=>{const o=[[t.value.table.columnNames.series,...t.value.style.chart.xAxis.labels.values.map(n=>[n])],...pe.value.body.map((n,r)=>[n[0].name,...n.slice(1)])],s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text]].concat(o),l=u.createCsvContent(s);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-ridgeline"})})}function Pe(){return T.value}return Q({getData:Pe,generateImage:ue,generatePdf:ie,generateCsv:ge,toggleAnnotator:re,toggleTable:fe}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ridgelineChart",ref:a,class:e.normalizeClass(`vue-ui-ridgeline ${H.value?"vue-data-ui-wrapper-fullscreen":""}`),id:`vue-ui-ridgeline_${g.value}`,style:e.normalizeStyle({fontFamily:t.value.style.fontFamily,width:"100%",textAlign:"center",background:t.value.style.chart.backgroundColor,height:t.value.responsive?"100%":void 0}),onMouseenter:s[4]||(s[4]=()=>e.unref(G)(!0)),onMouseleave:s[5]||(s[5]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(te)?(e.openBlock(),e.createBlock(Ke._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:J.value,svgRef:e.unref(te),onClose:re},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:O,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:U,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(et._sfc_main,{key:`title_${$.value}`,config:{title:{cy:"ridgeline-div-title",...t.value.style.chart.title},subtitle:{cy:"ridgeline-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(X)||e.unref(F))?(e.openBlock(),e.createBlock(be.UserOptions,{ref:"details",key:`user_option_${B.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ne),isImaging:e.unref(se),uid:g.value,hasTooltip:!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,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:H.value,chartElement:a.value,position:t.value.userOptions.position,isTooltip:!1,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:J.value,style:e.normalizeStyle({visibility:e.unref(X)?e.unref(F)?"visible":"hidden":"visible"}),onToggleFullscreen:Me,onGeneratePdf:e.unref(ie),onGenerateCsv:ge,onGenerateImage:e.unref(ue),onToggleTable:fe,onToggleAnnotator:re},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","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","titles","hasAnnotator","isAnnotation","style","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:te,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":H.value,"vue-data-ui-fulscreen--off":!H.value}),viewBox:`0 0 ${f.value.width<=0?10:f.value.width} ${k.value.fullHeight<=0?10:k.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color};${t.value.responsive?"height: 100%; width: 100%;":""}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(l,n)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`gradient-${l.id}-${g.value}`,x1:"50%",y1:"0%",x2:"50%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color,"stop-opacity":"1"},null,8,ct),e.createElementVNode("stop",{offset:"30%","stop-color":l.color,"stop-opacity":"0.7"},null,8,dt),e.createElementVNode("stop",{offset:"70%","stop-color":l.color,"stop-opacity":"0.3"},null,8,ht),e.createElementVNode("stop",{offset:"100%","stop-color":l.color,"stop-opacity":"0.1"},null,8,vt)],8,ut))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.datapoints,(r,c)=>(e.openBlock(),e.createElementBlock("linearGradient",{key:`grad${r.id}`,id:`gradient-single-${g.value}-${r.uid}`,x1:"50%",y1:"0%",x2:"50%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":r.color,"stop-opacity":"1"},null,8,ft),e.createElementVNode("stop",{offset:"30%","stop-color":r.color,"stop-opacity":"0.7"},null,8,pt),e.createElementVNode("stop",{offset:"70%","stop-color":r.color,"stop-opacity":"0.3"},null,8,gt),e.createElementVNode("stop",{offset:"100%","stop-color":r.color,"stop-opacity":"0.1"},null,8,yt)],8,mt))),128))],64))),256))]),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(l,n)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{variable:l,patternId:`pattern_${g.value}_${n}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",{key:`ds-${n}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.datapoints,(r,c)=>(e.openBlock(),e.createElementBlock("g",{key:r.id},[e.createElementVNode("path",{fill:t.value.style.chart.backgroundColor,stroke:"none","stroke-linecap":"round",d:t.value.style.chart.areas.smooth?r.smoothPath:r.straightPath,style:e.normalizeStyle({opacity:t.value.style.chart.areas.opacity})},null,12,xt),e.createElementVNode("path",{fill:t.value.style.chart.areas.useCommonColor?`url(#gradient-${r.id}-${g.value})`:`url(#gradient-single-${g.value}-${r.uid})`,stroke:t.value.style.chart.areas.stroke.useSerieColor?r.color:t.value.style.chart.areas.stroke.color,"stroke-width":t.value.style.chart.areas.strokeWidth,d:t.value.style.chart.areas.smooth?r.smoothPath:r.straightPath,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,bt),e.createElementVNode("path",{stroke:t.value.style.chart.zeroLine.useSerieColor?r.color:t.value.style.chart.zeroLine.stroke,"stroke-dasharray":t.value.style.chart.zeroLine.strokeDasharray,"stroke-width":t.value.style.chart.zeroLine.strokeWidth,d:r.zeroPath,"stroke-linecap":"round"},null,8,wt),t.value.style.chart.areas.maxPoint.show&&r.plots.length>1?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.plots,x=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[x.isMaxPoint?(e.openBlock(),e.createElementBlock("line",{key:0,x1:x.x,y1:x.y,x2:x.x,y2:x.zero,stroke:t.value.style.chart.areas.maxPoint.adaptStrokeToBackground?e.unref(u.adaptColorToBackground)(r.color):t.value.style.chart.areas.maxPoint.stroke,"stroke-width":t.value.style.chart.areas.maxPoint.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.chart.areas.maxPoint.strokeDasharray},null,8,Ct)):e.createCommentVNode("",!0)],64))),256)):e.createCommentVNode("",!0),r.plots.length===1?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:r.plots[0].x,cy:r.plots[0].y,stroke:t.value.style.chart.selector.dot.stroke,"stroke-width":t.value.style.chart.selector.dot.strokeWidth,r:t.value.style.chart.selector.dot.radius,fill:t.value.style.chart.selector.dot.useDatapointColor?r.color:t.value.style.chart.selector.dot.fill,style:{pointerEvents:"none"}},null,8,Bt)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("text",{x:l.label.x,y:l.label.y,"text-anchor":"end","font-size":t.value.style.chart.yAxis.labels.fontSize,"font-weight":t.value.style.chart.yAxis.labels.bold?"bold":"normal",fill:t.value.style.chart.yAxis.labels.color,style:e.normalizeStyle({cursor:t.value.style.chart.dialog.show?"pointer":"default"}),"text-decoration":t.value.style.chart.dialog.show&&(ae.value===n||i.value&&l.uid===i.value.uid)?"underline":"",onMouseenter:r=>Ve(n),onMouseleave:Te,onClick:r=>_e(l)},e.toDisplayString(l.name),45,Et)]))),128)),t.value.style.chart.xAxis.labels.values.length?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,n)=>e.renderSlot(o.$slots,"time-label",e.mergeProps({ref_for:!0},{show:l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&!t.value.style.chart.xAxis.labels.showOnlyAtModulo||l&&t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&(n===0||n===V.value.length-1)||l&&h.value&&h.value.index===n||l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&t.value.style.chart.xAxis.labels.showOnlyAtModulo&&n%Math.floor(V.value.length/t.value.style.chart.xAxis.labels.modulo)===0,fontSize:t.value.style.chart.xAxis.labels.fontSize,content:l.label,textAnchor:t.value.style.chart.xAxis.labels.rotation>0?"start":t.value.style.chart.xAxis.labels.rotation<0?"end":"middle",fill:t.value.style.chart.xAxis.labels.color,transform:`translate(${l.selectorX}, ${k.value.top+l.height+t.value.style.chart.xAxis.labels.offsetY}), rotate(${t.value.style.chart.xAxis.labels.rotation})`,x:l.selectorX,y:k.value.top+l.height+t.value.style.chart.xAxis.labels.offsetY}),()=>[l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&!t.value.style.chart.xAxis.labels.showOnlyAtModulo||l&&t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&(n===0||n===V.value.length-1)||l&&h.value&&h.value.index===n||l&&!t.value.style.chart.xAxis.labels.showOnlyFirstAndLast&&t.value.style.chart.xAxis.labels.showOnlyAtModulo&&n%Math.floor(V.value.length/t.value.style.chart.xAxis.labels.modulo)===0?(e.openBlock(),e.createElementBlock("text",{key:0,"font-size":t.value.style.chart.xAxis.labels.fontSize,fill:t.value.style.chart.xAxis.labels.color,"font-weight":t.value.style.chart.xAxis.labels.bold?"bold":"normal",transform:`translate(${l.selectorX}, ${k.value.top+l.height+t.value.style.chart.xAxis.labels.offsetY}), rotate(${t.value.style.chart.xAxis.labels.rotation})`,"text-anchor":t.value.style.chart.xAxis.labels.rotation>0?"start":t.value.style.chart.xAxis.labels.rotation<0?"end":"middle",style:e.normalizeStyle({opacity:h.value?h.value.index===n?1:.2:1})},e.toDisplayString(l.label),13,$t)):e.createCommentVNode("",!0)],!0)),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,width:l.width<0?.1:l.width,height:l.height<0?.1:l.height,fill:"transparent",onMouseenter:r=>h.value=l,onMouseleave:s[0]||(s[0]=r=>h.value=null),onClick:()=>$e(l)},null,40,At))),256)),t.value.style.chart.selector.show&&h.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:h.value.selectorX,x2:h.value.selectorX,y1:h.value.y,y2:h.value.y+h.value.height-m.value/2,stroke:t.value.style.chart.selector.stroke,"stroke-width":t.value.style.chart.selector.strokeWidth,"stroke-dasharray":t.value.style.chart.selector.strokeDasharray,"stroke-linecap":"round",style:{pointerEvents:"none"}},null,8,Nt)):e.createCommentVNode("",!0),h.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(T.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.datapoints,n=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.plots,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[h.value&&h.value.index===c?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:r.x,cy:r.y,stroke:t.value.style.chart.selector.dot.stroke,"stroke-width":t.value.style.chart.selector.dot.strokeWidth,r:t.value.style.chart.selector.dot.radius,fill:t.value.style.chart.selector.dot.useDatapointColor?n.color:t.value.style.chart.selector.dot.fill,style:{pointerEvents:"none"}},null,8,zt)):e.createCommentVNode("",!0),h.value&&h.value.index===c?(e.openBlock(),e.createElementBlock("text",{key:1,x:he(r.x,e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,r.value,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:r.value,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.style.chart.selector.labels.rounding})),t.value.style.chart.selector.labels.fontSize)?r.x-t.value.style.chart.selector.labels.fontSize/2:r.x+t.value.style.chart.selector.labels.fontSize/2,y:r.y+t.value.style.chart.selector.labels.fontSize/3,"text-anchor":he(r.x,e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,r.value,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:r.value,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.style.chart.selector.labels.rounding})),t.value.style.chart.selector.labels.fontSize)?"end":"start","font-size":t.value.style.chart.selector.labels.fontSize,fill:t.value.style.chart.selector.labels.color,style:{pointerEvents:"none"}},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,r.value,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:r.value,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.style.chart.selector.labels.rounding}))),9,Lt)):e.createCommentVNode("",!0)],64))),256))],64))),256))],64))),256)):e.createCommentVNode("",!0)]),e.renderSlot(o.$slots,"svg",{svg:f.value},void 0,!0)],14,it)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Mt,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ne)||e.unref(se)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ze.default,{key:6,config:{type:"ridgeline",style:{backgroundColor:t.value.style.chart.backgroundColor,ridgeline:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Je.Legend,{key:`legend_${D.value}`,legendSet:j.value,config:Le.value,onClickMarker:s[1]||(s[1]=({legend:l})=>ce(l.id))},e.createSlots({item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${E.value.includes(l.id)?.5:1}`),onClick:n=>l.segregate()},e.toDisplayString(l.name),13,_t)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:n})=>[e.createVNode(Qe._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${n})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:j.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:w,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(Ye.default,{key:8,hideDetails:"",config:{open:I.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(je.DataTable,{key:`table_${A.value}`,colNames:K.value.colNames,head:K.value.head,body:K.value.body,config:K.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` :${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[2]||(s[2]=l=>I.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l},null,8,Vt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:e.unref(u.applyDataLabel)(t.value.style.chart.selector.labels.formatter,l,e.unref(u.dataLabel)({p:t.value.style.chart.xAxis.labels.prefix,v:l,s:t.value.style.chart.xAxis.labels.suffix,r:t.value.table.td.roundingValue}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0),t.value.style.chart.dialog.show?(e.openBlock(),e.createBlock(nt,{key:9,ref_key:"dialog",ref:d,onClose:s[3]||(s[3]=l=>i.value=null),backgroundColor:t.value.style.chart.dialog.backgroundColor,color:t.value.style.chart.dialog.color,headerBg:t.value.style.chart.dialog.header.backgroundColor,headerColor:t.value.style.chart.dialog.header.color},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value.name),1)]),default:e.withCtx(()=>[i.value?(e.openBlock(),e.createBlock(tt.default,{key:0,config:ve.value,dataset:me.value},null,8,["config","dataset"])):e.createCommentVNode("",!0)]),_:1},8,["backgroundColor","color","headerBg","headerColor"])):e.createCommentVNode("",!0)],46,st))}},Pt=Be._export_sfc(Tt,[["__scopeId","data-v-44eef3c6"]]);exports.default=Pt;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BqL3-yPQ.cjs"),oe=require("./useResponsive-DQmBAoBf.cjs"),Ce=require("./Title-58EtyYdb.cjs"),ae=require("./usePrinter-vjB2nrFW.cjs"),we=require("./Tooltip-e9KUqiQA.cjs"),$e=require("./DataTable-Bc-sIk3H.cjs"),Ne=require("./Legend-DbGQCXU-.cjs"),Te=require("./vue-ui-skeleton-ovmMp5bh.cjs"),xe=require("./vue-ui-accordion-CELgYjnV.cjs"),re=require("./useNestedProp-BVy9-3EJ.cjs"),Se=require("./PackageVersion-nHr3qHGs.cjs"),Be=require("./PenAndPaper-30BhAniw.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Pe=require("./Shape-PzPPg5iH.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Oe=["id"],Ee=["xmlns","viewBox"],Ie=["width","height"],Ae=["id"],ze=["stop-color"],Fe=["stop-color"],Re={key:1},qe=["stroke","cx","cy","r","fill"],Me=["stroke","stroke-width","cx","cy","r","fill"],Ue=["stroke","stroke-width","cx","cy","r","fill"],De=["cx","cy","r","onMouseenter"],We={key:5,class:"vue-data-ui-watermark"},He=["onClick"],Ge={key:0},je={key:1},Xe=["innerHTML"],Ye={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ne,{expose:se,emit:ue}){const{vue_ui_rings:ie}=n.useConfig(),ce=e.useSlots(),p=ne,b=e.ref(!1),$=e.computed(()=>!!p.dataset&&p.dataset.length),g=e.ref(n.createUid()),de=e.ref(null),N=e.ref(!1),_=e.ref(""),m=e.ref(null),E=e.ref(0),C=e.ref(null),I=e.ref(null),A=e.ref(null),z=e.ref(null),F=e.ref(null),R=e.ref(0),q=e.ref(0),M=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:U,keepUserOptionState:D}=_e.useUserOptionState({config:t.value}),{svgRef:W}=Ve.useChartAccessibility({config:t.value.style.chart.title});function H(){const l=re.useNestedProp({userConfig:p.config,defaultConfig:ie});return l.theme?{...re.useNestedProp({userConfig:n.themes.vue_ui_rings[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=H(),P.value=!t.value.userOptions.showOnChartHover,G(),R.value+=1,q.value+=1,M.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const T=e.ref(null);e.onMounted(()=>{G()});function G(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiRings",type:"dataset"}):p.dataset.forEach((l,a)=>{l.values.length||n.error({componentName:"VueUiRings",type:"dataset"}),n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{n.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=oe.throttle(()=>{const{width:a,height:o}=oe.useResponsive({chart:C.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:z.value,noTitle:F.value});requestAnimationFrame(()=>{s.value.width=a,s.value.height=o})});T.value=new ResizeObserver(l),T.value.observe(C.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{T.value&&T.value.disconnect()});const{isPrinting:j,isImaging:X,generatePdf:Y,generateImage:J}=ae.usePrinter({elementId:`rings_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings",options:t.value.userOptions.print}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),K=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),pe=e.computed(()=>Math.min(s.value.height,s.value.width)),he=ue,d=e.ref([]);function V(l){d.value.includes(l)?d.value=d.value.filter(a=>a!==l):d.value.push(l),he("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const fe=e.computed(()=>Math.max(...x.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l)));function Q(l){return l/fe.value}const x=e.computed(()=>p.dataset.map(({values:l,name:a,color:o=null},r)=>{const u=n.sanitizeArray(l).reduce((v,w)=>v+w,0);return{name:a,color:o||n.convertColorToHex(o)||K.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:u,proportion:u/p.dataset.map(v=>(v.values||[]).reduce((w,ke)=>w+ke,0)).reduce((v,w)=>v+w,0),uid:n.createUid(),absoluteIndex:r}})),Z=e.computed(()=>x.value.map(l=>({...l,shape:"circle",opacity:d.value.includes(l.uid)?.5:1,segregate:()=>V(l.uid),isSegregated:d.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),ge=e.computed(()=>({cy:"rings-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":""})),f=e.computed(()=>x.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>x.value.filter(l=>!d.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:r,absoluteIndex:u},v)=>({absoluteIndex:u,uid:r,name:l,color:o||n.convertColorToHex(o)||K.value[v]||n.palette[v]||n.palette[v%n.palette.length],value:a,proportion:Q(a),percentage:a/f.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*Q(a)})).toSorted((l,a)=>a.value-l.value));function me(){return c.value.map(({name:l,color:a,value:o,absoluteValues:r,percentage:u})=>({name:l,color:a,value:o,absoluteValues:r,percentage:u}))}const i=e.computed(()=>pe.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ye(l,a){if(d.value.length===p.dataset.length)return;L.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))_.value=r({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<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>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}" />${ce.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})" />`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BxxejAie.cjs"),oe=require("./useResponsive-DQmBAoBf.cjs"),Ce=require("./Title-CvXzZeEb.cjs"),ae=require("./usePrinter-piikzkuQ.cjs"),we=require("./Tooltip-DQgWYT7j.cjs"),$e=require("./DataTable-DkpRxpK1.cjs"),Ne=require("./Legend-6QUlR6nT.cjs"),Te=require("./vue-ui-skeleton-BncdTK_J.cjs"),xe=require("./vue-ui-accordion-D324uXUs.cjs"),re=require("./useNestedProp-fJ2Uyt99.cjs"),Se=require("./PackageVersion-Bmq_Rden.cjs"),Be=require("./PenAndPaper-ByeWWt4I.cjs"),_e=require("./useUserOptionState-BgepsfED.cjs"),Pe=require("./Shape-CkE4y7L4.cjs"),Ve=require("./useChartAccessibility-Cm7nkzTG.cjs"),Le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Oe=["id"],Ee=["xmlns","viewBox"],Ie=["width","height"],Ae=["id"],ze=["stop-color"],Fe=["stop-color"],Re={key:1},qe=["stroke","cx","cy","r","fill"],Me=["stroke","stroke-width","cx","cy","r","fill"],Ue=["stroke","stroke-width","cx","cy","r","fill"],De=["cx","cy","r","onMouseenter"],We={key:5,class:"vue-data-ui-watermark"},He=["onClick"],Ge={key:0},je={key:1},Xe=["innerHTML"],Ye={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(ne,{expose:se,emit:ue}){const{vue_ui_rings:ie}=n.useConfig(),ce=e.useSlots(),p=ne,b=e.ref(!1),$=e.computed(()=>!!p.dataset&&p.dataset.length),g=e.ref(n.createUid()),de=e.ref(null),N=e.ref(!1),_=e.ref(""),m=e.ref(null),E=e.ref(0),C=e.ref(null),I=e.ref(null),A=e.ref(null),z=e.ref(null),F=e.ref(null),R=e.ref(0),q=e.ref(0),M=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:P,setUserOptionsVisibility:U,keepUserOptionState:D}=_e.useUserOptionState({config:t.value}),{svgRef:W}=Ve.useChartAccessibility({config:t.value.style.chart.title});function H(){const l=re.useNestedProp({userConfig:p.config,defaultConfig:ie});return l.theme?{...re.useNestedProp({userConfig:n.themes.vue_ui_rings[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=H(),P.value=!t.value.userOptions.showOnChartHover,G(),R.value+=1,q.value+=1,M.value+=1,h.value.showTable=t.value.table.show,h.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const T=e.ref(null);e.onMounted(()=>{G()});function G(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiRings",type:"dataset"}):p.dataset.forEach((l,a)=>{l.values.length||n.error({componentName:"VueUiRings",type:"dataset"}),n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{n.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=oe.throttle(()=>{const{width:a,height:o}=oe.useResponsive({chart:C.value,title:t.value.style.chart.title.text?I.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:z.value,noTitle:F.value});requestAnimationFrame(()=>{s.value.width=a,s.value.height=o})});T.value=new ResizeObserver(l),T.value.observe(C.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{T.value&&T.value.disconnect()});const{isPrinting:j,isImaging:X,generatePdf:Y,generateImage:J}=ae.usePrinter({elementId:`rings_${g.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings",options:t.value.userOptions.print}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),K=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),h=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),pe=e.computed(()=>Math.min(s.value.height,s.value.width)),he=ue,d=e.ref([]);function V(l){d.value.includes(l)?d.value=d.value.filter(a=>a!==l):d.value.push(l),he("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const fe=e.computed(()=>Math.max(...x.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l)));function Q(l){return l/fe.value}const x=e.computed(()=>p.dataset.map(({values:l,name:a,color:o=null},r)=>{const u=n.sanitizeArray(l).reduce((v,w)=>v+w,0);return{name:a,color:o||n.convertColorToHex(o)||K.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:u,proportion:u/p.dataset.map(v=>(v.values||[]).reduce((w,ke)=>w+ke,0)).reduce((v,w)=>v+w,0),uid:n.createUid(),absoluteIndex:r}})),Z=e.computed(()=>x.value.map(l=>({...l,shape:"circle",opacity:d.value.includes(l.uid)?.5:1,segregate:()=>V(l.uid),isSegregated:d.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),ge=e.computed(()=>({cy:"rings-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":""})),f=e.computed(()=>x.value.filter(l=>!d.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>x.value.filter(l=>!d.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:r,absoluteIndex:u},v)=>({absoluteIndex:u,uid:r,name:l,color:o||n.convertColorToHex(o)||K.value[v]||n.palette[v]||n.palette[v%n.palette.length],value:a,proportion:Q(a),percentage:a/f.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*Q(a)})).toSorted((l,a)=>a.value-l.value));function me(){return c.value.map(({name:l,color:a,value:o,absoluteValues:r,percentage:u})=>({name:l,color:a,value:o,absoluteValues:r,percentage:u}))}const i=e.computed(()=>pe.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ye(l,a){if(d.value.length===p.dataset.length)return;L.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))_.value=r({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<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>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}" />${ce.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${g.value}_${a.absoluteIndex})" />`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
2
2
  </b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${n.dataLabel({v:o.value/f.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}N.value=!0}const y=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=y.value.head.map((u,v)=>[{color:u.color,name:u.name},n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value.body[v],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(y.value.body[v]/f.value)?"-":(y.value.body[v]/f.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={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},r=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:r}});function ee(){e.nextTick(()=>{const l=y.value.head.map((r,u)=>[[r.name],[y.value.body[u]],[isNaN(y.value.body[u]/f.value)?"-":y.value.body[u]/f.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=n.createCsvContent(a);n.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const k=e.ref(!1);function be(l){k.value=l,E.value+=1}function te(){h.value.showTable=!h.value.showTable}function le(){h.value.showTooltip=!h.value.showTooltip}const B=e.ref(!1);function O(){B.value=!B.value}return se({getData:me,generatePdf:Y,generateCsv:ee,generateImage:J,toggleTable:te,toggleTooltip:le,toggleAnnotator:O}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:C,class:e.normalizeClass(`vue-ui-rings ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${g.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,N.value=!1,e.unref(U)(!1)}),onMouseenter:a[4]||(a[4]=()=>e.unref(U)(!0))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be._sfc_main,{key:0,svgRef:e.unref(W),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:O},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,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:I,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Ce._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(D)||e.unref(P))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref_key:"details",ref:de,key:`user_options_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(X),uid:g.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,isTooltip:h.value.showTooltip,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:be,onGeneratePdf:e.unref(Y),onGenerateCsv:ee,onGenerateImage:e.unref(J),onToggleTable:te,onToggleTooltip:le,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(D)?e.unref(P)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:W,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Se._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ie)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${g.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(o.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,ze),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,Fe)],8,Ae))),256))]),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,o=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(l.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:o.absoluteIndex,patternId:`pattern_${g.value}_${o.absoluteIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,qe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${g.value}_${r})`:o.color},null,14,Me),l.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==r}),style:e.normalizeStyle(`animation-delay:${r*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:`url(#pattern_${g.value}_${o.absoluteIndex})`},null,14,Ue)):e.createCommentVNode("",!0),e.createElementVNode("circle",{stroke:"none",cx:s.value.width/2,cy:r===0?s.value.height/2:s.value.height/2+i.value*c.value[0].proportion/2-i.value*o.proportion/2-2*(r+1),r:e.unref(n.checkNaN)(i.value*o.proportion/2*.9<=0?1e-4:i.value*o.proportion/2*.9),fill:"transparent",onMouseenter:u=>ye(r,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,N.value=!1})},null,40,De)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Te.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ne.Legend,{key:`legend_${M.value}`,legendSet:Z.value,config:ge.value,onClickMarker:a[1]||(a[1]=({legend:o})=>V(o.uid))},e.createSlots({item:e.withCtx(({legend:o,index:r})=>[e.createElementVNode("div",{onClick:u=>V(o.uid),style:e.normalizeStyle(`opacity:${d.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:r}))+" ",1),d.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",je," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ge," ("+e.toDisplayString(isNaN(o.value/f.value)?"-":e.unref(n.dataLabel)({v:o.value/f.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,He)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:o,index:r})=>[e.createVNode(Pe._sfc_main,{shape:o.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${g.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Z.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:z,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(we._sfc_main,{show:h.value.showTooltip&&N.value&&d.value.length<p.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:_.value,isFullscreen:k.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),$.value?(e.openBlock(),e.createBlock(xe.default,{key:8,hideDetails:"",config:{open:h.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($e.DataTable,{key:`table_${q.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.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]=o=>h.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Xe)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Oe))}},Je=Le._export_sfc(Ye,[["__scopeId","data-v-be9fc972"]]);exports.default=Je;
@@ -1,18 +1,18 @@
1
1
  import { useSlots as He, ref as i, computed as g, watch as Ge, onMounted as je, onBeforeUnmount as Xe, createElementBlock as v, openBlock as n, unref as r, normalizeStyle as I, normalizeClass as M, createBlock as O, createCommentVNode as m, createElementVNode as _, createVNode as J, createSlots as we, withCtx as h, renderSlot as d, normalizeProps as P, guardReactiveProps as F, Fragment as K, renderList as Q, mergeProps as qe, createTextVNode as _e, toDisplayString as E, nextTick as Ye } from "vue";
2
- import { u as Je, c as Te, t as Ke, p as N, a as Qe, o as Ze, e as Z, g as et, b as tt, H as lt, d as xe, f as S, X as ot, s as at, w as st, v as H, i as Ie, q as nt, r as ut, x as rt, y as it } from "./index-DwNTTJ28.js";
2
+ import { u as Je, c as Te, t as Ke, p as N, a as Qe, o as Ze, e as Z, g as et, b as tt, H as lt, d as xe, f as S, X as ot, s as at, w as st, v as H, i as Ie, q as nt, r as ut, x as rt, y as it } from "./index-dZn5kXWH.js";
3
3
  import { t as vt, u as ct } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as dt } from "./Title-IOaA-ppU.js";
5
- import { u as pt, U as ht } from "./usePrinter-CDE1F-XN.js";
6
- import { _ as gt } from "./Tooltip-D8cBDDkn.js";
7
- import { D as ft } from "./DataTable-LLs37Na_.js";
8
- import { L as yt } from "./Legend-Vkc-EKNB.js";
9
- import mt from "./vue-ui-skeleton-kS_CJIiv.js";
10
- import bt from "./vue-ui-accordion-BqCwiS7D.js";
11
- import { u as Oe } from "./useNestedProp-DLKXTEny.js";
12
- import { _ as kt } from "./PackageVersion-smHUcsQE.js";
13
- import { _ as Ct } from "./PenAndPaper-k0VaawVj.js";
4
+ import { _ as dt } from "./Title-DTFwdW6y.js";
5
+ import { u as pt, U as ht } from "./usePrinter-B5W9BghM.js";
6
+ import { _ as gt } from "./Tooltip-CNgQVGXX.js";
7
+ import { D as ft } from "./DataTable-jQUrRh9B.js";
8
+ import { L as yt } from "./Legend-DCwwpz6j.js";
9
+ import mt from "./vue-ui-skeleton-N92OEV1V.js";
10
+ import bt from "./vue-ui-accordion-hnKAB3UB.js";
11
+ import { u as Oe } from "./useNestedProp-uXqTvVZ6.js";
12
+ import { _ as kt } from "./PackageVersion-Dffpfs0E.js";
13
+ import { _ as Ct } from "./PenAndPaper-DgeL3oKs.js";
14
14
  import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
15
- import { _ as wt } from "./Shape-Bfm8x-8P.js";
15
+ import { _ as wt } from "./Shape-Cd10Dxv4.js";
16
16
  import { u as _t } from "./useChartAccessibility-BWojgys7.js";
17
17
  import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const xt = ["id"], It = ["xmlns", "viewBox"], Ot = ["width", "height"], Nt = ["id"], St = ["stop-color"], At = ["stop-color"], Pt = { key: 1 }, Ft = ["stroke", "cx", "cy", "r", "fill"], Lt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Rt = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Mt = ["cx", "cy", "r", "onMouseenter"], Vt = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BqL3-yPQ.cjs"),Be=require("./useResponsive-DQmBAoBf.cjs"),Pe=require("./Title-58EtyYdb.cjs"),_e=require("./usePrinter-vjB2nrFW.cjs"),Oe=require("./Tooltip-e9KUqiQA.cjs"),De=require("./Legend-DbGQCXU-.cjs"),Ce=require("./Shape-PzPPg5iH.cjs"),Fe=require("./DataTable-Bc-sIk3H.cjs"),We=require("./vue-ui-skeleton-ovmMp5bh.cjs"),qe=require("./vue-ui-accordion-CELgYjnV.cjs"),Ne=require("./useNestedProp-BVy9-3EJ.cjs"),Ie=require("./PackageVersion-nHr3qHGs.cjs"),Xe=require("./PenAndPaper-30BhAniw.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],Ge=["xmlns","viewBox"],He=["width","height"],Je={key:1},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:2},et=["points","fill","stroke-width","stroke-dasharray","stroke"],tt={key:0},lt=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],at={key:1},ot={key:3},st=["id"],rt=["stop-color"],nt=["stop-color"],ut=["id"],it=["stop-color"],ct=["stop-color"],vt=["x","y","width","height","fill","stroke","stroke-width","rx"],yt=["x","y","height","width","fill","stroke","stroke-width","rx"],dt={key:0},pt=["d","stroke","stroke-width"],ht=["d","stroke","stroke-width"],ft=["d","stroke","stroke-width"],mt=["d","stroke","stroke-width"],gt={key:4,style:{"pointer-events":"none !important"}},kt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],xt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],bt=["x","y","font-size","fill","font-weight","text-anchor"],wt=["x","y","font-size","fill","font-weight"],Bt=["cx","cy","r","fill","stroke","stroke-width"],_t=["cx","cy","r","fill","stroke","stroke-width"],Ct=["x","y","font-size","fill","font-weight","text-anchor"],Nt={key:5},St=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],$t=["id","transform","font-size","font-weight","fill"],Et={key:6},zt=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],Vt=["font-size","font-weight","fill","x","y"],At=["id"],Tt=["x","y","width","height"],Pt={key:7},Ot=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Dt=["x","y","fill","font-size","font-weight"],Ft={key:5,class:"vue-data-ui-watermark"},Wt=["onClick"],qt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},It={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Xt={key:0},Rt=["innerHTML"],Yt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Se,{expose:Me}){const{vue_ui_scatter:$e}=s.useConfig(),N=Se,P=e.computed(()=>!!N.dataset&&N.dataset.length),k=e.ref(s.createUid()),Ee=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),T=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:R,setUserOptionsVisibility:se,keepUserOptionState:re}=Re.useUserOptionState({config:t.value}),{svgRef:ne}=Ye.useChartAccessibility({config:t.value.style.title});function ue(){const l=Ne.useNestedProp({userConfig:N.config,defaultConfig:$e});return l.theme?{...Ne.useNestedProp({userConfig:s.themes.vue_ui_scatter[l.theme]||N.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>N.config,l=>{t.value=ue(),R.value=!t.value.userOptions.showOnChartHover,ie(),le.value+=1,ae.value+=1,oe.value+=1,B.value.showTable=t.value.table.show,B.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const O=e.ref(null);e.onMounted(()=>{ie()});function ie(){if(s.objectIsEmpty(N.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const l=Be.throttle(()=>{const{width:n,height:a}=Be.useResponsive({chart:T.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{h.value.width=n,h.value.height=a})});O.value=new ResizeObserver(l),O.value.observe(T.value.parentNode)}}e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});const{isPrinting:ce,isImaging:ve,generatePdf:ye,generateImage:de}=_e.usePrinter({elementId:`vue-ui-scatter_${k.value}`,fileName:t.value.style.title.text||"vue-ui-scatter",options:t.value.userOptions.print}),ze=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),pe=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),h=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),D=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+D.value,right:h.value.width-t.value.style.layout.padding.right-D.value,bottom:h.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:h.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-D.value,width:h.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-D.value})),v=e.computed(()=>{N.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(A=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${A}`,index:`${i} - ${E}`})})})});const l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:l>=0?0:l,xMax:n,yMin:a>=0?0:a,yMax:r}}),y=e.computed(()=>({x:u.value.left+Math.abs(v.value.xMin)/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(v.value.yMin)/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height})),$=e.computed(()=>N.dataset.map((l,n)=>{const a=`cluster_${k.value}_${n}`;return{...l,values:s.largestTriangleThreeBuckets({data:l.values,threshold:t.value.downsample.threshold}),id:a,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(a)?.5:1,shape:l.shape??"circle",segregate:()=>ke(a),isSegregated:p.value.includes(a)}})),Le=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),Y=e.computed(()=>$.value.map((l,n)=>({...l,plots:l.values.map(a=>({x:u.value.left+(a.x+Math.abs(v.value.xMin))/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-(a.y+Math.abs(v.value.yMin))/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height,v:{...a,name:a.name||""},clusterName:l.name,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],id:`plot_${k.value}_${Math.random()}`,weight:a.weight??t.value.style.layout.plots.radius}))})).filter(l=>!p.value.includes(l.id))),x=e.computed(()=>Y.value.map(l=>{const n=l.plots.reduce((d,z)=>d+z.x,0)/l.plots.length,a=l.plots.reduce((d,z)=>d+z.y,0)/l.plots.length;let r=0,o=0,i=0;for(const d of l.plots)r+=(d.x-n)*(d.y-a),o+=(d.x-n)**2,i+=(d.y-a)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),A=a-E*n,C={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+A,y2:E*u.value.right+A,coefficient:f},g=(C.y2-C.y1)/(C.x2-C.x1),w=C.y1-g*C.x1,S=Math.min(h.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-w)/g)),q={x:S,y:g*S+w<=t.value.style.layout.padding.top?u.value.top:g*S+w};return{...l,correlation:C,label:q,plots:l.plots.map(d=>{const z=(d.x+g*d.y-g*w)/(1+Math.pow(g,2)),G=(g*d.x+Math.pow(g,2)*d.y+w)/(1+Math.pow(g,2)),m=Math.sqrt(Math.pow(d.x-z,2)+Math.pow(d.y-G,2));return{...d,deviation:m,shape:l.shape,color:l.color}})}})),he=e.computed(()=>Math.max(...x.value.flatMap(l=>l.plots.map(n=>Math.abs(n.deviation)))));function Ve(){return x.value}function fe(l,n){const a=Array.isArray(l)?l.flatMap(m=>m.plots.map(L=>({x:L.x,y:L.y}))):l.plots.map(m=>({x:m.x,y:m.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;a.forEach(({x:m,y:L})=>{r=Math.min(r,m),o=Math.max(o,m),i=Math.min(i,L),f=Math.max(f,L)});const E=o-r,A=f-i,C=E/n,g=A/n,w=Array(n).fill(0),S=Array(n).fill(0);a.forEach(({x:m,y:L})=>{const H=Math.floor((m-r)/C),J=Math.floor((L-i)/g);w[H]||(w[H]=0),S[J]||(S[J]=0),w[H]+=1,S[J]+=1});const q=[],d=[];for(let m=0;m<n;m+=1)q.push(r+(m+.5)*C),d.push(i+(m+.5)*g);const z=Math.max(...w),G=Math.max(...S);return{x:w,y:S,avgX:q,avgY:d,maxX:z,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>fe(Y.value,M.value)),Ae=e.computed(()=>{const l=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return Y.value.map(a=>{const r=fe(a,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:l-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:n+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:a.color,id:a.id}})}),_=e.ref(void 0),c=e.ref(null),j=e.ref(null);function me(l,n){_.value=l.id,c.value=l;let a="";j.value={datapoint:l,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}):(l.clusterName&&(a+=`<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`),l.v.name&&(a+=`<div>${l.v.name}</div>`),a+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,l.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,l.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:l.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,a+="</div>",X.value=`<div>${a}</div>`),I.value=!0}function ge(){I.value=!1,_.value=void 0,c.value=null}const p=e.ref([]);function ke(l){p.value.includes(l)?p.value=p.value.filter(n=>n!==l):p.value.length<N.dataset.length-1&&p.value.push(l)}function xe(){e.nextTick(()=>{const l=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=e.computed(()=>{const l=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),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{head:l,body:n,config:a,colNames:l}}),V=e.ref(!1);function Te(l){V.value=l,K.value+=1}function be(){B.value.showTable=!B.value.showTable}function we(){B.value.showTooltip=!B.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Me({getData:Ve,generatePdf:ye,generateCsv:xe,generateImage:de,toggleTable:be,toggleTooltip:we,toggleAnnotator:U}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:T,id:`vue-ui-scatter_${k.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Xe._sfc_main,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ze.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${le.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(re)||e.unref(R))?(e.openBlock(),e.createBlock(_e.UserOptions,{ref_key:"details",ref:Ee,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ve),isPrinting:e.unref(ce),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,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,isTooltip:B.value.showTooltip,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ye),onGenerateCsv:xe,onGenerateImage:e.unref(de),onToggleTable:be,onToggleTooltip:we,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${h.value.width<=0?10:h.value.width} ${h.value.height<=0?10:h.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:h.value.width<=0?10:h.value.width,height:h.value.height<=0?10:h.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,He)):e.createCommentVNode("",!0),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:y.value.x,x2:y.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:y.value.y,y2:y.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:a.plots}),fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:a.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[!a.shape||a.shape==="circle"?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:_.value&&_.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createBlock(Ce._sfc_main,{plot:{x:o.x,y:o.y},radius:_.value&&_.value===o.id?o.weight*2:o.weight,shape:a.shape,color:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${k.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,rt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,nt)],8,st),e.createElementVNode("linearGradient",{id:`marginal_y_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,it),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ct)],8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-a/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.value,height:a/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.value,width:a/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,yt)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ae.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,pt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${a.dX}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ht)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ft)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${a.dY}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,mt))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",gt,[e.createElementVNode("line",{x1:y.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,kt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:y.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,xt),e.createElementVNode("text",{x:y.value.x+(c.value.x>y.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>y.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,bt),e.createElementVNode("text",{x:c.value.x,y:y.value.y+(c.value.y>y.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,wt),e.createElementVNode("circle",{cx:y.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,Bt),e.createElementVNode("circle",{cx:c.value.x,cy:y.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,_t),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<y.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>y.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Ct)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Nt,[e.createElementVNode("text",{x:u.value.left-5,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,St),e.createElementVNode("text",{x:u.value.right+3,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Mt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${k.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,$t)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Et,[e.createElementVNode("text",{x:y.value.x,y:u.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,zt),e.createElementVNode("text",{x:y.value.x,y:u.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Lt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Vt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${k.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,Tt)],8,At),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",Pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.correlation.x1,x2:a.correlation.x2,y1:a.correlation.y1,y2:a.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:a.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${k.value})`},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:a.label.x,y:a.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?a.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:h.value},void 0,!0)],14,Ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(ve)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(We.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:a})=>ke(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Wt)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Oe._sfc_main,{show:B.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:T.value,content:X.value,isFullscreen:V.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",qt,[(e.openBlock(),e.createElementBlock("svg",It,[e.createVNode(Ce._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>B.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[a.shape?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("span",null,e.toDisplayString(a.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:a},null,8,Rt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},jt=je._export_sfc(Yt,[["__scopeId","data-v-e97afbcb"]]);exports.default=jt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BxxejAie.cjs"),Be=require("./useResponsive-DQmBAoBf.cjs"),Pe=require("./Title-CvXzZeEb.cjs"),_e=require("./usePrinter-piikzkuQ.cjs"),Oe=require("./Tooltip-DQgWYT7j.cjs"),De=require("./Legend-6QUlR6nT.cjs"),Ce=require("./Shape-CkE4y7L4.cjs"),Fe=require("./DataTable-DkpRxpK1.cjs"),We=require("./vue-ui-skeleton-BncdTK_J.cjs"),qe=require("./vue-ui-accordion-D324uXUs.cjs"),Ne=require("./useNestedProp-fJ2Uyt99.cjs"),Ie=require("./PackageVersion-Bmq_Rden.cjs"),Xe=require("./PenAndPaper-ByeWWt4I.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],Ge=["xmlns","viewBox"],He=["width","height"],Je={key:1},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:2},et=["points","fill","stroke-width","stroke-dasharray","stroke"],tt={key:0},lt=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],at={key:1},ot={key:3},st=["id"],rt=["stop-color"],nt=["stop-color"],ut=["id"],it=["stop-color"],ct=["stop-color"],vt=["x","y","width","height","fill","stroke","stroke-width","rx"],yt=["x","y","height","width","fill","stroke","stroke-width","rx"],dt={key:0},pt=["d","stroke","stroke-width"],ht=["d","stroke","stroke-width"],ft=["d","stroke","stroke-width"],mt=["d","stroke","stroke-width"],gt={key:4,style:{"pointer-events":"none !important"}},kt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],xt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],bt=["x","y","font-size","fill","font-weight","text-anchor"],wt=["x","y","font-size","fill","font-weight"],Bt=["cx","cy","r","fill","stroke","stroke-width"],_t=["cx","cy","r","fill","stroke","stroke-width"],Ct=["x","y","font-size","fill","font-weight","text-anchor"],Nt={key:5},St=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],$t=["id","transform","font-size","font-weight","fill"],Et={key:6},zt=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],Vt=["font-size","font-weight","fill","x","y"],At=["id"],Tt=["x","y","width","height"],Pt={key:7},Ot=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Dt=["x","y","fill","font-size","font-weight"],Ft={key:5,class:"vue-data-ui-watermark"},Wt=["onClick"],qt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},It={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Xt={key:0},Rt=["innerHTML"],Yt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Se,{expose:Me}){const{vue_ui_scatter:$e}=s.useConfig(),N=Se,P=e.computed(()=>!!N.dataset&&N.dataset.length),k=e.ref(s.createUid()),Ee=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),T=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:R,setUserOptionsVisibility:se,keepUserOptionState:re}=Re.useUserOptionState({config:t.value}),{svgRef:ne}=Ye.useChartAccessibility({config:t.value.style.title});function ue(){const l=Ne.useNestedProp({userConfig:N.config,defaultConfig:$e});return l.theme?{...Ne.useNestedProp({userConfig:s.themes.vue_ui_scatter[l.theme]||N.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>N.config,l=>{t.value=ue(),R.value=!t.value.userOptions.showOnChartHover,ie(),le.value+=1,ae.value+=1,oe.value+=1,B.value.showTable=t.value.table.show,B.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const O=e.ref(null);e.onMounted(()=>{ie()});function ie(){if(s.objectIsEmpty(N.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const l=Be.throttle(()=>{const{width:n,height:a}=Be.useResponsive({chart:T.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{h.value.width=n,h.value.height=a})});O.value=new ResizeObserver(l),O.value.observe(T.value.parentNode)}}e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});const{isPrinting:ce,isImaging:ve,generatePdf:ye,generateImage:de}=_e.usePrinter({elementId:`vue-ui-scatter_${k.value}`,fileName:t.value.style.title.text||"vue-ui-scatter",options:t.value.userOptions.print}),ze=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),pe=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),h=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),D=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+D.value,right:h.value.width-t.value.style.layout.padding.right-D.value,bottom:h.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:h.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-D.value,width:h.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-D.value})),v=e.computed(()=>{N.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(A=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${A}`,index:`${i} - ${E}`})})})});const l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:l>=0?0:l,xMax:n,yMin:a>=0?0:a,yMax:r}}),y=e.computed(()=>({x:u.value.left+Math.abs(v.value.xMin)/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(v.value.yMin)/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height})),$=e.computed(()=>N.dataset.map((l,n)=>{const a=`cluster_${k.value}_${n}`;return{...l,values:s.largestTriangleThreeBuckets({data:l.values,threshold:t.value.downsample.threshold}),id:a,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(a)?.5:1,shape:l.shape??"circle",segregate:()=>ke(a),isSegregated:p.value.includes(a)}})),Le=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),Y=e.computed(()=>$.value.map((l,n)=>({...l,plots:l.values.map(a=>({x:u.value.left+(a.x+Math.abs(v.value.xMin))/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-(a.y+Math.abs(v.value.yMin))/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height,v:{...a,name:a.name||""},clusterName:l.name,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],id:`plot_${k.value}_${Math.random()}`,weight:a.weight??t.value.style.layout.plots.radius}))})).filter(l=>!p.value.includes(l.id))),x=e.computed(()=>Y.value.map(l=>{const n=l.plots.reduce((d,z)=>d+z.x,0)/l.plots.length,a=l.plots.reduce((d,z)=>d+z.y,0)/l.plots.length;let r=0,o=0,i=0;for(const d of l.plots)r+=(d.x-n)*(d.y-a),o+=(d.x-n)**2,i+=(d.y-a)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),A=a-E*n,C={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+A,y2:E*u.value.right+A,coefficient:f},g=(C.y2-C.y1)/(C.x2-C.x1),w=C.y1-g*C.x1,S=Math.min(h.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-w)/g)),q={x:S,y:g*S+w<=t.value.style.layout.padding.top?u.value.top:g*S+w};return{...l,correlation:C,label:q,plots:l.plots.map(d=>{const z=(d.x+g*d.y-g*w)/(1+Math.pow(g,2)),G=(g*d.x+Math.pow(g,2)*d.y+w)/(1+Math.pow(g,2)),m=Math.sqrt(Math.pow(d.x-z,2)+Math.pow(d.y-G,2));return{...d,deviation:m,shape:l.shape,color:l.color}})}})),he=e.computed(()=>Math.max(...x.value.flatMap(l=>l.plots.map(n=>Math.abs(n.deviation)))));function Ve(){return x.value}function fe(l,n){const a=Array.isArray(l)?l.flatMap(m=>m.plots.map(L=>({x:L.x,y:L.y}))):l.plots.map(m=>({x:m.x,y:m.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;a.forEach(({x:m,y:L})=>{r=Math.min(r,m),o=Math.max(o,m),i=Math.min(i,L),f=Math.max(f,L)});const E=o-r,A=f-i,C=E/n,g=A/n,w=Array(n).fill(0),S=Array(n).fill(0);a.forEach(({x:m,y:L})=>{const H=Math.floor((m-r)/C),J=Math.floor((L-i)/g);w[H]||(w[H]=0),S[J]||(S[J]=0),w[H]+=1,S[J]+=1});const q=[],d=[];for(let m=0;m<n;m+=1)q.push(r+(m+.5)*C),d.push(i+(m+.5)*g);const z=Math.max(...w),G=Math.max(...S);return{x:w,y:S,avgX:q,avgY:d,maxX:z,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>fe(Y.value,M.value)),Ae=e.computed(()=>{const l=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return Y.value.map(a=>{const r=fe(a,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:l-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:n+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:a.color,id:a.id}})}),_=e.ref(void 0),c=e.ref(null),j=e.ref(null);function me(l,n){_.value=l.id,c.value=l;let a="";j.value={datapoint:l,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}):(l.clusterName&&(a+=`<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`),l.v.name&&(a+=`<div>${l.v.name}</div>`),a+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,l.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,l.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:l.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,a+="</div>",X.value=`<div>${a}</div>`),I.value=!0}function ge(){I.value=!1,_.value=void 0,c.value=null}const p=e.ref([]);function ke(l){p.value.includes(l)?p.value=p.value.filter(n=>n!==l):p.value.length<N.dataset.length-1&&p.value.push(l)}function xe(){e.nextTick(()=>{const l=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=e.computed(()=>{const l=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),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{head:l,body:n,config:a,colNames:l}}),V=e.ref(!1);function Te(l){V.value=l,K.value+=1}function be(){B.value.showTable=!B.value.showTable}function we(){B.value.showTooltip=!B.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Me({getData:Ve,generatePdf:ye,generateCsv:xe,generateImage:de,toggleTable:be,toggleTooltip:we,toggleAnnotator:U}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:T,id:`vue-ui-scatter_${k.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Xe._sfc_main,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ze.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${le.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(re)||e.unref(R))?(e.openBlock(),e.createBlock(_e.UserOptions,{ref_key:"details",ref:Ee,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ve),isPrinting:e.unref(ce),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,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,isTooltip:B.value.showTooltip,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ye),onGenerateCsv:xe,onGenerateImage:e.unref(de),onToggleTable:be,onToggleTooltip:we,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${h.value.width<=0?10:h.value.width} ${h.value.height<=0?10:h.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:h.value.width<=0?10:h.value.width,height:h.value.height<=0?10:h.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,He)):e.createCommentVNode("",!0),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:y.value.x,x2:y.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:y.value.y,y2:y.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:a.plots}),fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:a.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[!a.shape||a.shape==="circle"?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:_.value&&_.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createBlock(Ce._sfc_main,{plot:{x:o.x,y:o.y},radius:_.value&&_.value===o.id?o.weight*2:o.weight,shape:a.shape,color:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${k.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,rt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,nt)],8,st),e.createElementVNode("linearGradient",{id:`marginal_y_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,it),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ct)],8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-a/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.value,height:a/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.value,width:a/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,yt)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ae.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,pt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${a.dX}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ht)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ft)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${a.dY}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,mt))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",gt,[e.createElementVNode("line",{x1:y.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,kt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:y.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,xt),e.createElementVNode("text",{x:y.value.x+(c.value.x>y.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>y.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,bt),e.createElementVNode("text",{x:c.value.x,y:y.value.y+(c.value.y>y.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,wt),e.createElementVNode("circle",{cx:y.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,Bt),e.createElementVNode("circle",{cx:c.value.x,cy:y.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,_t),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<y.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>y.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Ct)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Nt,[e.createElementVNode("text",{x:u.value.left-5,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,St),e.createElementVNode("text",{x:u.value.right+3,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Mt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${k.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,$t)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Et,[e.createElementVNode("text",{x:y.value.x,y:u.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,zt),e.createElementVNode("text",{x:y.value.x,y:u.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Lt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Vt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${k.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,Tt)],8,At),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",Pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.correlation.x1,x2:a.correlation.x2,y1:a.correlation.y1,y2:a.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:a.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${k.value})`},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:a.label.x,y:a.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?a.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:h.value},void 0,!0)],14,Ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(ve)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(We.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:a})=>ke(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Wt)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Oe._sfc_main,{show:B.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:T.value,content:X.value,isFullscreen:V.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",qt,[(e.openBlock(),e.createElementBlock("svg",It,[e.createVNode(Ce._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>B.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[a.shape?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("span",null,e.toDisplayString(a.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:a},null,8,Rt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},jt=je._export_sfc(Yt,[["__scopeId","data-v-e97afbcb"]]);exports.default=jt;
@@ -1,17 +1,17 @@
1
1
  import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, Fragment as P, renderList as X, toDisplayString as C, createTextVNode as rt, nextTick as it } from "vue";
2
- import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, U as pt, _ as ft, S as gt, X as mt, s as ge, V as xt, i as j, v as A, f as W, q as bt, r as kt, x as wt, y as _t } from "./index-DwNTTJ28.js";
2
+ import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, U as pt, _ as ft, S as gt, X as mt, s as ge, V as xt, i as j, v as A, f as W, q as bt, r as kt, x as wt, y as _t } from "./index-dZn5kXWH.js";
3
3
  import { t as $t, u as Mt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Ct } from "./Title-IOaA-ppU.js";
5
- import { u as At, U as zt } from "./usePrinter-CDE1F-XN.js";
6
- import { _ as St } from "./Tooltip-D8cBDDkn.js";
7
- import { L as Tt } from "./Legend-Vkc-EKNB.js";
8
- import { _ as Ue } from "./Shape-Bfm8x-8P.js";
9
- import { D as Lt } from "./DataTable-LLs37Na_.js";
10
- import Bt from "./vue-ui-skeleton-kS_CJIiv.js";
11
- import Ot from "./vue-ui-accordion-BqCwiS7D.js";
12
- import { u as Ge } from "./useNestedProp-DLKXTEny.js";
13
- import { _ as Nt } from "./PackageVersion-smHUcsQE.js";
14
- import { _ as Pt } from "./PenAndPaper-k0VaawVj.js";
4
+ import { _ as Ct } from "./Title-DTFwdW6y.js";
5
+ import { u as At, U as zt } from "./usePrinter-B5W9BghM.js";
6
+ import { _ as St } from "./Tooltip-CNgQVGXX.js";
7
+ import { L as Tt } from "./Legend-DCwwpz6j.js";
8
+ import { _ as Ue } from "./Shape-Cd10Dxv4.js";
9
+ import { D as Lt } from "./DataTable-jQUrRh9B.js";
10
+ import Bt from "./vue-ui-skeleton-N92OEV1V.js";
11
+ import Ot from "./vue-ui-accordion-hnKAB3UB.js";
12
+ import { u as Ge } from "./useNestedProp-uXqTvVZ6.js";
13
+ import { _ as Nt } from "./PackageVersion-Dffpfs0E.js";
14
+ import { _ as Pt } from "./PenAndPaper-DgeL3oKs.js";
15
15
  import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { u as Ft } from "./useChartAccessibility-BWojgys7.js";
17
17
  import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";