vue-data-ui 2.3.75 → 2.3.77

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 (162) hide show
  1. package/dist/{Arrow-BTG7M25z.js → Arrow-Dj2zuGLq.js} +1 -1
  2. package/dist/{Arrow-CZK77NmC.cjs → Arrow-VCEIU9wi.cjs} +1 -1
  3. package/dist/{BaseIcon--PMhZ3f-.cjs → BaseIcon-CP535rdy.cjs} +1 -1
  4. package/dist/{BaseIcon-BAOfPaXs.js → BaseIcon-Cbr8np30.js} +1 -1
  5. package/dist/{DataTable-DjQzrklZ.cjs → DataTable-CeHw-cqZ.cjs} +1 -1
  6. package/dist/{DataTable-CQANRZju.js → DataTable-OAUXdIYA.js} +2 -2
  7. package/dist/{Legend-DX1kv21U.js → Legend-BVByqGqZ.js} +1 -1
  8. package/dist/{Legend-CtbPB0Bo.cjs → Legend-DfU44fjz.cjs} +1 -1
  9. package/dist/{Shape-CadGs1Am.cjs → Shape-B6cEKeIN.cjs} +1 -1
  10. package/dist/{Shape-kqcyauhC.js → Shape-Clmb3iTX.js} +1 -1
  11. package/dist/{Slicer-yaJs-izT.js → Slicer-BlRQsQu0.js} +12 -12
  12. package/dist/{Slicer-i_oECHxH.cjs → Slicer-Dt9iqvAA.cjs} +1 -1
  13. package/dist/{Title-XBiDFYKD.cjs → Title-D9lSjLTg.cjs} +1 -1
  14. package/dist/{Title-C26I_HC3.js → Title-gvR5aS6q.js} +1 -1
  15. package/dist/{Tooltip-CH8GmDCG.js → Tooltip-BGmkuAK4.js} +23 -23
  16. package/dist/Tooltip-C0PSN8vf.cjs +1 -0
  17. package/dist/{index-Cm4Iry5c.js → index-0KN57HdM.js} +1147 -1145
  18. package/dist/index-TabZg_HV.cjs +4 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-w7AMWWmz.cjs → useNestedProp-CoLyVvV9.cjs} +1 -1
  21. package/dist/{useNestedProp-CurQIHTa.js → useNestedProp-NeGalTYk.js} +1 -1
  22. package/dist/{usePrinter-ZlHxdaEz.cjs → usePrinter--7sLxlpn.cjs} +1 -1
  23. package/dist/{usePrinter-B8RnF8_q.js → usePrinter-BvKYEc1z.js} +1 -1
  24. package/dist/{vue-data-ui-B7amrpT-.cjs → vue-data-ui-CNZP_Hk4.cjs} +1 -1
  25. package/dist/{vue-data-ui-Bj6kEIpq.js → vue-data-ui-Du0OReJH.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/vue-ui-3d-bar-AUSKibZS.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-Bg9IgVVc.js → vue-ui-3d-bar-Dasj0J9j.js} +342 -342
  30. package/dist/{vue-ui-accordion-1WxrfiCH.cjs → vue-ui-accordion-0uSZBHsp.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-Cb6XBCbu.js → vue-ui-accordion-CczyfFaC.js} +3 -3
  32. package/dist/vue-ui-age-pyramid-CjBr4CXC.cjs +1 -0
  33. package/dist/{vue-ui-age-pyramid-BhwmnQru.js → vue-ui-age-pyramid-DZ7vnojR.js} +22 -22
  34. package/dist/{vue-ui-annotator-BiHQvMdW.js → vue-ui-annotator-BWwxpp_v.js} +39 -39
  35. package/dist/{vue-ui-annotator-B22cdlhA.cjs → vue-ui-annotator-CyYSiELS.cjs} +2 -2
  36. package/dist/{vue-ui-candlestick-D7DjdYyw.cjs → vue-ui-candlestick-B9oSgBPN.cjs} +2 -2
  37. package/dist/{vue-ui-candlestick-Cl9dyh4l.js → vue-ui-candlestick-Dr9aS-Ku.js} +34 -34
  38. package/dist/vue-ui-carousel-table-CjDze14W.cjs +1 -0
  39. package/dist/{vue-ui-carousel-table-QsONwqNz.js → vue-ui-carousel-table-D2LK5a9p.js} +83 -81
  40. package/dist/{vue-ui-chestnut-Drb01WMC.js → vue-ui-chestnut-DIqR-vZo.js} +291 -288
  41. package/dist/vue-ui-chestnut-RhZaDeRG.cjs +6 -0
  42. package/dist/vue-ui-cursor-7QhVReKN.cjs +1 -0
  43. package/dist/{vue-ui-cursor-BP04_XbB.js → vue-ui-cursor-BxHK0bB7.js} +20 -20
  44. package/dist/{vue-ui-dashboard-Z63RE1XS.cjs → vue-ui-dashboard-DO-zVgDu.cjs} +1 -1
  45. package/dist/{vue-ui-dashboard-BWdx5gjZ.js → vue-ui-dashboard-fYKECIc7.js} +2 -2
  46. package/dist/{vue-ui-digits-DUhkLcmd.js → vue-ui-digits-B8hAl2RW.js} +2 -2
  47. package/dist/{vue-ui-digits-CBQaHW6a.cjs → vue-ui-digits-CSsB4Zlr.cjs} +1 -1
  48. package/dist/{vue-ui-donut-DRPSwmGr.js → vue-ui-donut-D5DTvWXB.js} +60 -60
  49. package/dist/vue-ui-donut-D8evqk7g.cjs +1 -0
  50. package/dist/vue-ui-donut-evolution-BUdWXb-N.cjs +1 -0
  51. package/dist/{vue-ui-donut-evolution-gRXAyxq8.js → vue-ui-donut-evolution-CPTiiUY6.js} +106 -106
  52. package/dist/{vue-ui-dumbbell-CQo5jqSK.js → vue-ui-dumbbell-CfeTfNTU.js} +17 -17
  53. package/dist/{vue-ui-dumbbell-DLfZcrXq.cjs → vue-ui-dumbbell-Fm-Bqc5W.cjs} +1 -1
  54. package/dist/{vue-ui-flow-BlX2-eEC.cjs → vue-ui-flow-24WIcZVL.cjs} +1 -1
  55. package/dist/{vue-ui-flow-BQ3UbMUb.js → vue-ui-flow-B2WWQo6P.js} +28 -28
  56. package/dist/{vue-ui-galaxy-Cax5o6Yl.cjs → vue-ui-galaxy-DkRizJxm.cjs} +1 -1
  57. package/dist/{vue-ui-galaxy-BHWugUKG.js → vue-ui-galaxy-yfpv7Hky.js} +22 -22
  58. package/dist/vue-ui-gauge-BkB7BlNM.cjs +1 -0
  59. package/dist/{vue-ui-gauge-DG6_kvKh.js → vue-ui-gauge-CRVB3wlV.js} +99 -108
  60. package/dist/{vue-ui-gizmo-bV148qAf.js → vue-ui-gizmo-DJYOx_YH.js} +2 -2
  61. package/dist/{vue-ui-gizmo-D9Vh9Rmr.cjs → vue-ui-gizmo-Zyo15xm3.cjs} +1 -1
  62. package/dist/{vue-ui-heatmap-BZZUvnMa.js → vue-ui-heatmap-C6fDCc7O.js} +17 -17
  63. package/dist/{vue-ui-heatmap-B_ELXKKV.cjs → vue-ui-heatmap-uynT8kN9.cjs} +1 -1
  64. package/dist/{vue-ui-kpi-C5v7qQvZ.js → vue-ui-kpi-CGC4h9uF.js} +3 -3
  65. package/dist/{vue-ui-kpi-CwVAvTB2.cjs → vue-ui-kpi-CqEEFb04.cjs} +1 -1
  66. package/dist/{vue-ui-mini-loader-BdKizX_J.js → vue-ui-mini-loader-2A0YUUIB.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-DZNY-3rr.cjs → vue-ui-mini-loader-ku9X16tx.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-bva6OvPc.cjs → vue-ui-molecule-Bv1IBx1L.cjs} +1 -1
  69. package/dist/{vue-ui-molecule-MKyrhqqm.js → vue-ui-molecule-CwcUmg-k.js} +33 -33
  70. package/dist/vue-ui-mood-radar-Bf5g118s.cjs +1 -0
  71. package/dist/{vue-ui-mood-radar-BNIFFvq0.js → vue-ui-mood-radar-V04waMIM.js} +129 -132
  72. package/dist/{vue-ui-nested-donuts-CxdZC6JF.cjs → vue-ui-nested-donuts-DgVrAToy.cjs} +2 -2
  73. package/dist/{vue-ui-nested-donuts-BDAlZrMF.js → vue-ui-nested-donuts-DoFALZtp.js} +98 -98
  74. package/dist/{vue-ui-onion-Df7YcsVR.cjs → vue-ui-onion-BdZC2qt8.cjs} +1 -1
  75. package/dist/{vue-ui-onion-CFa4VD-w.js → vue-ui-onion-_GaJ78t_.js} +9 -9
  76. package/dist/{vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs → vue-ui-parallel-coordinate-plot-BHYr1iqZ.cjs} +1 -1
  77. package/dist/{vue-ui-parallel-coordinate-plot-DmqYXT-U.js → vue-ui-parallel-coordinate-plot-Eh0gXDVG.js} +24 -24
  78. package/dist/vue-ui-quadrant-BEhnCog2.cjs +1 -0
  79. package/dist/{vue-ui-quadrant-D5jHkq9g.js → vue-ui-quadrant-C4LHosyR.js} +35 -35
  80. package/dist/{vue-ui-quick-chart-BjXXSx7V.js → vue-ui-quick-chart-IqY67olA.js} +69 -69
  81. package/dist/{vue-ui-quick-chart-Dt9AsEU6.cjs → vue-ui-quick-chart-YFEmJP_6.cjs} +1 -1
  82. package/dist/{vue-ui-radar-CW8EKW4o.js → vue-ui-radar-BSsDvnVt.js} +39 -39
  83. package/dist/{vue-ui-radar-2EuZr7i2.cjs → vue-ui-radar-Cel3ZnfN.cjs} +1 -1
  84. package/dist/{vue-ui-rating-eSWsmJUU.js → vue-ui-rating-Bb1xXC_r.js} +6 -6
  85. package/dist/{vue-ui-rating-DrtLvVA0.cjs → vue-ui-rating-D-qBEM1w.cjs} +1 -1
  86. package/dist/{vue-ui-relation-circle-DiUCpEqa.js → vue-ui-relation-circle-CSqi6DqF.js} +29 -29
  87. package/dist/vue-ui-relation-circle-fb8g1ms8.cjs +1 -0
  88. package/dist/{vue-ui-rings-CHq-a5ZS.cjs → vue-ui-rings-Bgb538Wa.cjs} +2 -2
  89. package/dist/{vue-ui-rings-BxhLbyG0.js → vue-ui-rings-ezoy9PIq.js} +31 -31
  90. package/dist/vue-ui-scatter-B7z6AOLU.cjs +1 -0
  91. package/dist/{vue-ui-scatter-DQchX_mM.js → vue-ui-scatter-Ci5l--xS.js} +95 -95
  92. package/dist/{vue-ui-screenshot-CLa9vMzM.js → vue-ui-screenshot-C2X1am1d.js} +4 -4
  93. package/dist/{vue-ui-screenshot-SLSIpqx2.cjs → vue-ui-screenshot-DLXQWgeo.cjs} +1 -1
  94. package/dist/vue-ui-skeleton-CYeXVNFu.cjs +41 -0
  95. package/dist/{vue-ui-skeleton-C1oUnz7R.js → vue-ui-skeleton-dgMXr8k9.js} +96 -96
  96. package/dist/{vue-ui-smiley-Daw8fPDy.cjs → vue-ui-smiley-CDhXPYa7.cjs} +1 -1
  97. package/dist/{vue-ui-smiley-CmWHSt1S.js → vue-ui-smiley-DXb5VqXk.js} +2 -2
  98. package/dist/vue-ui-spark-trend-1hcgCu8H.cjs +1 -0
  99. package/dist/{vue-ui-spark-trend-CO69Dg31.js → vue-ui-spark-trend-Bv1-LLRs.js} +21 -21
  100. package/dist/vue-ui-sparkbar-CWdFQTkx.cjs +1 -0
  101. package/dist/{vue-ui-sparkbar-BRlqpe4e.js → vue-ui-sparkbar-CbmzVXcW.js} +10 -10
  102. package/dist/{vue-ui-sparkgauge-CbuFESsM.js → vue-ui-sparkgauge-CHODK9jn.js} +8 -8
  103. package/dist/{vue-ui-sparkgauge-CCxKzDjT.cjs → vue-ui-sparkgauge-r7VEpPtv.cjs} +1 -1
  104. package/dist/{vue-ui-sparkhistogram-B4-hrDHz.js → vue-ui-sparkhistogram-CKiO1LGI.js} +111 -101
  105. package/dist/vue-ui-sparkhistogram-Do5qTT2U.cjs +1 -0
  106. package/dist/vue-ui-sparkline-Bw3dw-vW.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-DlXNmG6M.js → vue-ui-sparkline-DLU7hK0K.js} +34 -34
  108. package/dist/{vue-ui-sparkstackbar-J1YowQmP.js → vue-ui-sparkstackbar-B3TQVHlU.js} +5 -5
  109. package/dist/{vue-ui-sparkstackbar-CDmZeXnq.cjs → vue-ui-sparkstackbar-CD-HZ4Rq.cjs} +1 -1
  110. package/dist/{vue-ui-stackbar-CXGWukoJ.cjs → vue-ui-stackbar-2WJh-QtY.cjs} +2 -2
  111. package/dist/{vue-ui-stackbar-CKIDqkkY.js → vue-ui-stackbar-BnIeIS12.js} +202 -200
  112. package/dist/{vue-ui-strip-plot-JVLwIy0j.js → vue-ui-strip-plot-CddHmHSX.js} +26 -26
  113. package/dist/{vue-ui-strip-plot-CvmoRcYN.cjs → vue-ui-strip-plot-DyL8FH29.cjs} +1 -1
  114. package/dist/{vue-ui-table-BSi_cHh7.js → vue-ui-table-BZ6yonvx.js} +1 -1
  115. package/dist/{vue-ui-table-Dqi64VE7.cjs → vue-ui-table-_Sxgp6iC.cjs} +1 -1
  116. package/dist/{vue-ui-table-heatmap-CfvW3rcm.js → vue-ui-table-heatmap-CYOgunS2.js} +24 -24
  117. package/dist/{vue-ui-table-heatmap-BwghEh5t.cjs → vue-ui-table-heatmap-DGWhBhp0.cjs} +1 -1
  118. package/dist/{vue-ui-table-sparkline-Y6Lrrzxy.js → vue-ui-table-sparkline-D33NLyyx.js} +26 -26
  119. package/dist/{vue-ui-table-sparkline-bIy3kkHB.cjs → vue-ui-table-sparkline-IVMQG6tp.cjs} +1 -1
  120. package/dist/{vue-ui-thermometer-DDtxYr7w.cjs → vue-ui-thermometer-8XDaKLt5.cjs} +1 -1
  121. package/dist/{vue-ui-thermometer-BPTs7Nxc.js → vue-ui-thermometer-DMwZ2O16.js} +40 -40
  122. package/dist/{vue-ui-timer-DRSSYxOX.cjs → vue-ui-timer-B3_-DhDj.cjs} +1 -1
  123. package/dist/{vue-ui-timer-CkB7eZaE.js → vue-ui-timer-D59VSia6.js} +8 -8
  124. package/dist/{vue-ui-tiremarks-BbOaoY8S.js → vue-ui-tiremarks-Bczw28td.js} +18 -18
  125. package/dist/{vue-ui-tiremarks-Bttwg3-p.cjs → vue-ui-tiremarks-Br_jF9bH.cjs} +1 -1
  126. package/dist/{vue-ui-treemap-CoaK3wBl.js → vue-ui-treemap-DGJNw2WX.js} +29 -29
  127. package/dist/{vue-ui-treemap-Chq0WQPe.cjs → vue-ui-treemap-DLHdaXss.cjs} +1 -1
  128. package/dist/vue-ui-vertical-bar-BGYrmyAK.cjs +4 -0
  129. package/dist/{vue-ui-vertical-bar-BA43_uHV.js → vue-ui-vertical-bar-De0N4Ggo.js} +14 -14
  130. package/dist/{vue-ui-waffle-NBjY0mko.cjs → vue-ui-waffle-CJPVEDgC.cjs} +1 -1
  131. package/dist/{vue-ui-waffle-BoEf8CcG.js → vue-ui-waffle-CnXLf5xd.js} +84 -84
  132. package/dist/{vue-ui-wheel-Bgo2jpj0.js → vue-ui-wheel-Bciq0JM9.js} +24 -24
  133. package/dist/{vue-ui-wheel-t5bI4a-P.cjs → vue-ui-wheel-CAKYmn0b.cjs} +1 -1
  134. package/dist/{vue-ui-word-cloud-DPW_-Hzz.cjs → vue-ui-word-cloud-4ooTRM2O.cjs} +1 -1
  135. package/dist/{vue-ui-word-cloud-Jd9_JUyi.js → vue-ui-word-cloud-CWm6r9Zf.js} +19 -19
  136. package/dist/{vue-ui-xy-BMBYAC4z.js → vue-ui-xy-B5nBhYgd.js} +351 -350
  137. package/dist/vue-ui-xy-Ch5hDEec.cjs +3 -0
  138. package/dist/{vue-ui-xy-canvas-LOsQ_DM-.js → vue-ui-xy-canvas-CzLTSmDS.js} +18 -18
  139. package/dist/vue-ui-xy-canvas-d-EE9_dN.cjs +9 -0
  140. package/package.json +1 -1
  141. package/dist/Tooltip-DxtWkIt5.cjs +0 -1
  142. package/dist/index-DYUBiaGS.cjs +0 -4
  143. package/dist/vue-ui-3d-bar-BAz41kL7.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +0 -1
  145. package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +0 -1
  146. package/dist/vue-ui-chestnut-CyE8MafY.cjs +0 -6
  147. package/dist/vue-ui-cursor-DZeTQBKz.cjs +0 -1
  148. package/dist/vue-ui-donut-D2YJYgOB.cjs +0 -1
  149. package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +0 -1
  150. package/dist/vue-ui-gauge-DpGcv_00.cjs +0 -1
  151. package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +0 -1
  152. package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +0 -1
  153. package/dist/vue-ui-relation-circle-C60OTe88.cjs +0 -1
  154. package/dist/vue-ui-scatter-DZUZUbnk.cjs +0 -1
  155. package/dist/vue-ui-skeleton-ClpTCY1x.cjs +0 -41
  156. package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +0 -1
  157. package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +0 -1
  158. package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +0 -1
  159. package/dist/vue-ui-sparkline-BZTEi9YC.cjs +0 -1
  160. package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +0 -4
  161. package/dist/vue-ui-xy-CBHEBcZK.cjs +0 -3
  162. package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +0 -9
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DYUBiaGS.cjs"),he=require("./useResponsive-B3TrDDIG.cjs"),Me=require("./Title-XBiDFYKD.cjs"),fe=require("./usePrinter-ZlHxdaEz.cjs"),Se=require("./Tooltip-DxtWkIt5.cjs"),$e=require("./Legend-CtbPB0Bo.cjs"),me=require("./Shape-CadGs1Am.cjs"),Ee=require("./DataTable-DjQzrklZ.cjs"),Le=require("./vue-ui-skeleton-ClpTCY1x.cjs"),ze=require("./vue-ui-accordion-1WxrfiCH.cjs"),ge=require("./useNestedProp-w7AMWWmz.cjs"),Ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ae=["id"],Te=["xmlns","viewBox"],De={key:0},Pe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x1","x2","y1","y2","stroke","stroke-width"],We={key:1},Oe=["points","fill","stroke-width","stroke-dasharray","stroke"],qe={key:0},Ie=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Xe={key:1},Ye={key:2},je=["id"],Re=["stop-color"],Ge=["stop-color"],Ue=["id"],He=["stop-color"],Je=["stop-color"],Ke=["x","y","width","height","fill","stroke","stroke-width","rx"],Qe=["x","y","height","width","fill","stroke","stroke-width","rx"],Ze={key:0},et=["d","stroke","stroke-width"],tt=["d","stroke","stroke-width"],lt=["d","stroke","stroke-width"],at=["d","stroke","stroke-width"],ot={key:3,style:{"pointer-events":"none !important"}},st=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],nt=["x","y","font-size","fill","font-weight","text-anchor"],ut=["x","y","font-size","fill","font-weight"],it=["cx","cy","r","fill","stroke","stroke-width"],ct=["cx","cy","r","fill","stroke","stroke-width"],yt=["x","y","font-size","fill","font-weight","text-anchor"],vt={key:4},dt=["x","y","font-size","fill"],pt=["x","y","font-size","fill"],ht=["id","transform","font-size","font-weight","fill"],ft={key:5},mt=["x","y","font-size","fill"],gt=["x","y","font-size","fill"],kt=["font-size","font-weight","fill","x","y"],xt=["id"],bt=["x","y","width","height"],wt={key:6},Bt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],_t=["x","y","fill","font-size","font-weight"],Ct={key:3,class:"vue-data-ui-watermark"},Nt=["onClick"],Mt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},St={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},$t={key:0},Et=["innerHTML"],Lt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ke,{expose:xe}){const C=ke,{vue_ui_scatter:be}=s.useConfig(),D=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),we=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>ee(),set:a=>a});function ee(){const a=ge.useNestedProp({userConfig:C.config,defaultConfig:be});return a.theme?{...ge.useNestedProp({userConfig:s.themes.vue_ui_scatter[a.theme]||C.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>C.config,a=>{t.value=ee(),te(),K.value+=1,Q.value+=1,Z.value+=1},{deep:!0});const P=e.ref(null);e.onMounted(()=>{te()});function te(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=he.throttle(()=>{const{width:u,height:l}=he.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});P.value=new ResizeObserver(a),P.value.observe(A.value.parentNode)}}e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:se}=fe.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),re=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),M=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{s.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=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:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),$=e.computed(()=>C.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>ye(l),isSegregated:p.value.includes(l)}})),Be=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":""})),X=e.computed(()=>$.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let r=0,o=0,i=0;for(const d of a.plots)r+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=r/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,_={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(_.y2-_.y1)/(_.x2-_.x1),w=_.y1-m*_.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-w)/m)),O={x:N,y:m*N+w<=t.value.style.layout.padding.top?n.value.top:m*N+w};return{...a,correlation:_,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*w)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+w)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),ne=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function _e(){return x.value}function ue(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let r=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{r=Math.min(r,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-r,V=h-i,_=E/u,m=V/u,w=Array(u).fill(0),N=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-r)/_),G=Math.floor((z-i)/m);w[R]||(w[R]=0),N[G]||(N[G]=0),w[R]+=1,N[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(r+(f+.5)*_),d.push(i+(f+.5)*m);const L=Math.max(...w),j=Math.max(...N);return{x:w,y:N,avgX:O,avgY:d,maxX:L,maxY:j}}const S=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ue(X.value,S.value)),Ce=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const r=ue(l,S.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:a-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPath(r.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:l.color,id:l.id}})}),B=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function ie(a,u){B.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function ce(){q.value=!1,B.value=void 0,c.value=null}const p=e.ref([]);function ye(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function ve(){e.nextTick(()=>{const a=["",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}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[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}`],u=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()]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function Ne(a){T.value=a,U.value+=1}function de(){M.value.showTable=!M.value.showTable}function pe(){M.value.showTooltip=!M.value.showTooltip}return xe({getData:_e,generatePdf:oe,generateCsv:ve,generateImage:se,toggleTable:de,toggleTooltip:pe}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor}`)},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&D.value?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:we,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ae),isPrinting:e.unref(le),uid:g.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:M.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:Ne,onGeneratePdf:e.unref(oe),onGenerateCsv:ve,onGenerateImage:e.unref(se),onToggleTable:de,onToggleTooltip:pe},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),D.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.backgroundColor};color:${t.value.style.color}`)},[t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Pe),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Fe)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:l.plots}),fill:`${l.color}${e.unref(s.opacity)[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:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Oe)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:B.value&&B.value===o.id?o.weight*2:o.weight,fill:`${l.color}${e.unref(s.opacity)[t.value.style.layout.plots.opacity*100]}`,stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${B.value&&B.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.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,Ie))),256))])):(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(me._sfc_main,{plot:{x:o.x,y:o.y},radius:B.value&&B.value===o.id?o.weight*2:o.weight,shape:l.shape,color:`${l.color}${e.unref(s.opacity)[t.value.style.layout.plots.opacity*100]}`,stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${B.value&&B.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.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",Ye,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Re),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ge)],8,je),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,He),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Je)],8,Ue)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-n.value.width/S.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/S.value<=0?1e-4:n.value.width/S.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.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,Ke)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-n.value.height/S.value/2,height:n.value.height/S.value<=0?1e-4:n.value.height/S.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.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,Qe)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ce.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.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,et)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,tt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.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,lt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,at))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("line",{x1:v.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,st),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.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,rt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.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>v.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,nt),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.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,ut),e.createElementVNode("circle",{cx:v.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,it),e.createElementVNode("circle",{cx:c.value.x,cy:v.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,ct),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<v.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<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,yt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",vt,[e.createElementVNode("text",{x:n.value.left-5,y:v.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)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,dt),e.createElementVNode("text",{x:n.value.right+3,y:v.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)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,pt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.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,ht)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",ft,[e.createElementVNode("text",{x:v.value.x,y:n.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)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,mt),e.createElementVNode("text",{x:v.value.x,y:n.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)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,gt),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:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,kt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,bt)],8,xt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,Bt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.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)(l.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,_t)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Te)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ct,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Le.default,{key:4,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:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock($e.Legend,{key:`legend_${Z.value}`,legendSet:$.value,config:Be.value,onClickMarker:u[0]||(u[0]=({legend:l})=>ye(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:r=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,Nt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:M.value.showTooltip&&q.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:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",Mt,[(e.openBlock(),e.createElementBlock("svg",St,[e.createVNode(me._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","isCustom"]),D.value?(e.openBlock(),e.createBlock(ze.default,{key:5,hideDetails:"",config:{open:M.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(Ee.DataTable,{key:`table_${Q.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>M.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Et))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ae))}},zt=Ve._export_sfc(Lt,[["__scopeId","data-v-88ab605a"]]);exports.default=zt;
@@ -1,41 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DYUBiaGS.cjs"),M=require("./useNestedProp-w7AMWWmz.cjs"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c=d=>(e.pushScopeId("data-v-73139463"),d=d(),e.popScopeId(),d),C=["id"],L=["xmlns"],$=["stroke","fill"],S=["xmlns"],z=["stroke","fill"],A=["xmlns"],W=["stroke"],P=["fill"],X=["stroke","fill"],j=["stroke","fill"],F=["fill"],q=["stroke","fill"],H=["stroke","fill"],I=["fill"],Z=["stroke","fill"],O=["stroke","fill"],T=["fill"],G=["stroke","fill"],R=["stroke","fill"],Y=["fill"],D=["stroke","fill"],U=["stroke","fill"],J=["xmlns"],K=["stroke"],Q=["stroke"],ee=["stroke","fill"],te=["stroke","fill"],le=["stroke","fill"],oe=["stroke","fill"],re=["stroke","fill"],ne=["stroke","fill"],se=["stroke","fill"],ae=["stroke","fill"],ce=["stroke","fill"],ie=["stroke","fill"],de=["stroke","fill"],ue=["stroke","fill"],ke=["stroke","fill"],ye=["stroke","fill"],he=["stroke","fill"],me=["stroke","fill"],ve=["stroke","fill"],pe=["stroke","fill"],_e=["stroke","fill"],xe=["stroke","fill"],ge=["stroke","fill"],fe=["stroke","fill"],we=["stroke","fill"],Ee=["xmlns"],Ne=["stroke"],Be=["xmlns"],Ve=["stroke"],Me=["xmlns"],be=["stroke"],Ce=["xmlns"],Le=["fill"],$e=["fill"],Se=["fill"],ze=["fill"],Ae=["fill"],We=["fill"],Pe=["fill"],Xe=["fill"],je=["fill"],Fe=["fill"],qe=["fill"],He=["fill"],Ie=["xmlns"],Ze=["stroke"],Oe=["stroke"],Te=["stroke"],Ge=["stroke"],Re=["stroke"],Ye=["stroke"],De=["xmlns"],Ue=["stroke"],Je=["stroke"],Ke=["stroke"],Qe=["stroke"],et=["stroke"],tt=["stroke"],lt=["stroke"],ot=["stroke"],rt=["stroke"],nt=["xmlns"],st=["stroke"],at=["xmlns"],ct=["stroke"],it=["stroke"],dt=["stroke"],ut=["stroke"],kt=["stroke"],yt=["stroke"],ht=["stroke"],mt=["stroke"],vt=["stroke"],pt=["xmlns"],_t=["x1","x2","stroke"],xt=["xmlns"],gt=["x","y","width","height","fill"],ft=["y","width","height","fill"],wt=["xmlns"],Et=["fill"],Nt=["fill"],Bt=["fill"],Vt=["xmlns"],Mt=["x1","x2","y1","y2","stroke"],bt=["stroke"],Ct=["fill"],Lt=["xmlns"],$t=["fill"],St=["fill"],zt=["x1","y1","x2","y2","stroke-width","stroke"],At=["xmlns"],Wt={key:0},Pt=["stroke","stroke-width"],Xt=["stroke","stroke-width"],jt=["x1","x2","y1","y2","stroke","stroke-width"],Ft=["x1","x2","y1","y2","stroke","stroke-width"],qt=["x1","x2","y1","y2","stroke","stroke-width"],Ht=["x","y","height","width","fill"],It=["xmlns","viewBox"],Zt=["x","y","stroke","fill"],Ot=["xmlns"],Tt=["d","stroke"],Gt=["cx","cy","r","fill","stroke"],Rt=["cx","cy","r","fill","stroke"],Yt=["x","y","width","fill"],Dt=["cx","cy","fill"],Ut=["cx","cy","fill"],Jt=["stroke"],Kt=["xmlns"],Qt=["stroke","stroke-width"],el=["stroke","stroke-width"],tl=["stroke","stroke-width"],ll=["fill"],ol=["fill"],rl=["fill"],nl=["fill"],sl=["fill"],al=["fill"],cl=["xmlns"],il={key:0},dl=["stroke","stroke-width"],ul=["stroke","stroke-width"],kl=["stroke","stroke-width"],yl={key:1},hl=["r","fill"],ml=["r","fill"],vl=["xmlns"],pl={key:0},_l=["stroke","stroke-width"],xl=["stroke","stroke-width"],gl=["fill","rx","x","y","width","height"],fl=["xmlns"],wl=["stroke-width","stroke"],El=["stroke-width","stroke"],Nl=["stroke-width","stroke"],Bl=["xmlns"],Vl=["stroke"],Ml=["stroke"],bl=["stroke"],Cl=["stroke"],Ll=["fill"],$l=["stroke"],Sl=["xmlns"],zl=["stroke","stroke-width"],Al=["stroke","stroke-width"],Wl=["fill","r"],Pl=["fill","r"],Xl=["fill","r"],jl=["fill","r"],Fl=["fill","r"],ql=["fill","r"],Hl=["fill","r"],Il=["fill","r"],Zl=["fill","r"],Ol=["xmlns"],Tl=["d","stroke","stroke-width"],Gl=["d","stroke","stroke-width"],Rl=["d","stroke","stroke-width"],Yl=["d","stroke","stroke-width"],Dl=["stroke","stroke-width"],Ul=["stroke","stroke-width"],Jl=["stroke","stroke-width"],Kl=["fill"],Ql=["fill"],eo=["xmlns"],to=["x","y","fill"],lo=["x","y","fill"],oo=["x","y","fill"],ro=["xmlns"],no=["fill"],so=["fill"],ao=["y1","y2","stroke","stroke-width"],co=["x1","x2","stroke","stroke-width"],io=["xmlns","stroke"],uo=c(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ko=["fill"],yo=["xmlns","stroke"],ho=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-73139463></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-73139463></path><path d="M9 10l.01 0" data-v-73139463></path><path d="M15 10l.01 0" data-v-73139463></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-73139463></path>',5),mo=[ho],vo=["xmlns","stroke"],po=c(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),_o=["fill"],xo=["xmlns","stroke"],go=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-73139463></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-73139463></path><path d="M9 10l.01 0" data-v-73139463></path><path d="M15 10l.01 0" data-v-73139463></path><path d="M9 15l6 0" data-v-73139463></path>',5),fo=[go],wo=["xmlns","stroke"],Eo=c(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),No=["fill"],Bo=["xmlns","stroke"],Vo=c(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Mo=c(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),bo=c(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Co=c(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),Lo=[Vo,Mo,bo,Co],$o=["xmlns","stroke"],So=c(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),zo=["fill"],Ao=["xmlns","stroke"],Wo=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-73139463></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-73139463></path><path d="M9 10l.01 0" data-v-73139463></path><path d="M15 10l.01 0" data-v-73139463></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-73139463></path>',5),Po=[Wo],Xo=["xmlns","stroke"],jo=c(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Fo=["fill"],qo=["xmlns","stroke"],Ho=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-73139463></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-73139463></path><path d="M9 9l.01 0" data-v-73139463></path><path d="M15 9l.01 0" data-v-73139463></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-73139463></path>',5),Io=[Ho],Zo=["xmlns"],Oo=["points","fill","stroke","stroke-width"],To=["xmlns"],Go={key:0},Ro=["stroke","stroke-width"],Yo=["y","width","fill","rx"],Do={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(d){const p=d,{vue_ui_skeleton:_}=l.useConfig(),x=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>M.useNestedProp({userConfig:p.config,defaultConfig:_})),g=e.computed(()=>t.value.style.animated),n=e.computed(()=>t.value.type),f=e.ref([60,50,55,36,40,25,26,12]),w=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),N=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),B=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),k=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),s=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),u=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),y=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function h(i,m=1){return{x:200+160*Math.cos(29.85+i*Math.PI/180)*m,y:200+160*Math.sin(29.85+i*Math.PI/180)*m}}const V=e.computed(()=>{const i=[];for(let o=0;o<100;o+=1)i.push({x1:h(360/100*o).x,y1:h(360/100*o).y,x2:h(360/100*o,.9).x,y2:h(360/100*o,.9).y,color:t.value.style.wheel.color});return i});return(i,m)=>(e.openBlock(),e.createElementBlock("div",{id:x.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":g.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[n.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,$)],12,L)):e.createCommentVNode("",!0),n.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,z)],12,S)):e.createCommentVNode("",!0),n.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,W),e.createElementVNode("path",{d:`
2
- M 30,11
3
- C 39,10 39,10
4
- 45,11
5
- L 45,9
6
- C 39,10 39,10
7
- 30,9 Z
8
- `,fill:t.value.style.dumbbell.color},null,8,P),e.createElementVNode("circle",{cx:"30",cy:"10",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,X),e.createElementVNode("circle",{cx:"46",cy:"10",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,j),e.createElementVNode("path",{d:`
9
- M 10,21
10
- C 23,20 23,20
11
- 36,21
12
- L 36,19
13
- C 23,20 23,20
14
- 10,19 Z
15
- `,fill:t.value.style.dumbbell.color},null,8,F),e.createElementVNode("circle",{cx:"10",cy:"20",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,q),e.createElementVNode("circle",{cx:"36",cy:"20",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,H),e.createElementVNode("path",{d:`
16
- M 30,31
17
- C 45,30 45,30
18
- 60,31
19
- L 60,29
20
- C 45,30 45,30
21
- 30,29 Z
22
- `,fill:t.value.style.dumbbell.color},null,8,I),e.createElementVNode("circle",{cx:"30",cy:"30",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,Z),e.createElementVNode("circle",{cx:"60",cy:"30",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,O),e.createElementVNode("path",{d:`
23
- M 50,41
24
- C 65,40 65,40
25
- 80,41
26
- L 80,39
27
- C 65,40 65,40
28
- 50,39 Z
29
- `,fill:t.value.style.dumbbell.color},null,8,T),e.createElementVNode("circle",{cx:"50",cy:"40",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,G),e.createElementVNode("circle",{cx:"80",cy:"40",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,R),e.createElementVNode("path",{d:`
30
- M 40,51
31
- C 65,50 65,50
32
- 90,51
33
- L 90,49
34
- C 65,50 65,50
35
- 40,49 Z
36
- `,fill:t.value.style.dumbbell.color},null,8,Y),e.createElementVNode("circle",{cx:"40",cy:"50",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,D),e.createElementVNode("circle",{cx:"90",cy:"50",r:"2",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.dumbbell.color},null,8,U)],12,A)):e.createCommentVNode("",!0),n.value==="stripPlot"?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"97",stroke:t.value.style.stripPlot.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,K),e.createElementVNode("line",{x1:"3",x2:"97",y1:"97",y2:"97",stroke:t.value.style.stripPlot.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Q),e.createElementVNode("circle",{cx:"12",cy:"8",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ee),e.createElementVNode("circle",{cx:"12",cy:"40",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,te),e.createElementVNode("circle",{cx:"12",cy:"60",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,le),e.createElementVNode("circle",{cx:"12",cy:"70",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,oe),e.createElementVNode("circle",{cx:"32",cy:"25",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,re),e.createElementVNode("circle",{cx:"32",cy:"38",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ne),e.createElementVNode("circle",{cx:"32",cy:"44",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,se),e.createElementVNode("circle",{cx:"32",cy:"55",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ae),e.createElementVNode("circle",{cx:"52",cy:"30",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ce),e.createElementVNode("circle",{cx:"52",cy:"33",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ie),e.createElementVNode("circle",{cx:"52",cy:"43",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,de),e.createElementVNode("circle",{cx:"52",cy:"63",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ue),e.createElementVNode("circle",{cx:"52",cy:"78",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ke),e.createElementVNode("circle",{cx:"72",cy:"58",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ye),e.createElementVNode("circle",{cx:"72",cy:"70",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,he),e.createElementVNode("circle",{cx:"72",cy:"78",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,me),e.createElementVNode("circle",{cx:"72",cy:"88",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ve),e.createElementVNode("circle",{cx:"92",cy:"66",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,pe),e.createElementVNode("circle",{cx:"92",cy:"77",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,_e),e.createElementVNode("circle",{cx:"92",cy:"85",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,xe),e.createElementVNode("circle",{cx:"92",cy:"88",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,ge),e.createElementVNode("circle",{cx:"92",cy:"90",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,fe),e.createElementVNode("circle",{cx:"92",cy:"92",r:"4",stroke:t.value.style.backgroundColor,"stroke-width":.3,fill:t.value.style.stripPlot.color,style:{opacity:"0.5"}},null,8,we)],12,J)):e.createCommentVNode("",!0),n.value==="treemap"?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 30 21",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{fill:"none",stroke:t.value.style.treemap.color,"stroke-width":"0.3","stroke-linecap":"round","stroke-linejoin":"round",d:"M 1 1 L 29 1 L 29 20 L 1 20 Z M 10 1 L 10 20 M 1 13 L 10 13 M 22 11 L 22 20 M 10 11 L 22 11 M 22 11 L 29 11 M 7 13 L 7 20 M 17 11 L 17 20 M 22 15 L 29 15 M 26 15 L 26 20 M 20 1 L 20 11"},null,8,Ne)],12,Ee)):e.createCommentVNode("",!0),n.value==="galaxy"?(e.openBlock(),e.createElementBlock("svg",{key:5,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0.5 0 20 20",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{fill:"none",stroke:t.value.style.galaxy.color,"stroke-width":"2","stroke-linecap":"round",d:"M 7 11 A 1 1 0 0 0 11 11 M 14 11 A 1 1 0 0 0 7 11 M 3 11 A 1 1 0 0 0 14 11 M 18 11 A 1 1 0 0 0 3 11 M 16.4 16 C 17 15 18 13 18 11"},null,8,Ve)],12,Be)):e.createCommentVNode("",!0),n.value==="bar3d"?(e.openBlock(),e.createElementBlock("svg",{key:6,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"2 0 16 20",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{fill:"none",stroke:t.value.style.bar3d.color,"stroke-width":"0.2",d:"M10 1 6 3 6 17 10 19 14 17 14 3 10 1M6 3 10 5 14 3M10 5 10 19","stroke-linecap":"round","stroke-linejoin":"round"},null,8,be)],12,Me)):e.createCommentVNode("",!0),n.value==="sparkHistogram"?(e.openBlock(),e.createElementBlock("svg",{key:7,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 20",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("rect",{x:"3",y:"8",height:"4",width:"6",rx:"1.5",fill:t.value.style.sparkHistogram.color},null,8,Le),e.createElementVNode("rect",{x:"11",y:"6",height:"8",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,$e),e.createElementVNode("rect",{x:"19",y:"7",height:"6",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,Se),e.createElementVNode("rect",{x:"27",y:"6",height:"8",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,ze),e.createElementVNode("rect",{x:"35",y:"8",height:"4",width:"6",rx:"1.5",fill:t.value.style.sparkHistogram.color},null,8,Ae),e.createElementVNode("rect",{x:"43",y:"7",height:"6",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,We),e.createElementVNode("rect",{x:"51",y:"8.5",height:"3",width:"6",rx:"1.5",fill:t.value.style.sparkHistogram.color},null,8,Pe),e.createElementVNode("rect",{x:"59",y:"7",height:"6",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,Xe),e.createElementVNode("rect",{x:"67",y:"6",height:"8",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,je),e.createElementVNode("rect",{x:"75",y:"7",height:"6",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,Fe),e.createElementVNode("rect",{x:"83",y:"7",height:"6",width:"6",rx:"2",fill:t.value.style.sparkHistogram.color},null,8,qe),e.createElementVNode("rect",{x:"91",y:"8",height:"4",width:"6",rx:"1.5",fill:t.value.style.sparkHistogram.color},null,8,He)],12,Ce)):e.createCommentVNode("",!0),n.value==="sparkbar"?(e.openBlock(),e.createElementBlock("svg",{key:8,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 500 200",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("line",{x1:"12",x2:"488",y1:"50",y2:"50","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkbar.color,opacity:"0.5"},null,8,Ze),e.createElementVNode("line",{x1:"12",x2:"400",y1:"50",y2:"50","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkbar.color,opacity:"1"},null,8,Oe),e.createElementVNode("line",{x1:"12",x2:"488",y1:"100",y2:"100","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkbar.color,opacity:"0.5"},null,8,Te),e.createElementVNode("line",{x1:"12",x2:"350",y1:"100",y2:"100","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkbar.color,opacity:"1"},null,8,Ge),e.createElementVNode("line",{x1:"12",x2:"488",y1:"150",y2:"150","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkbar.color,opacity:"0.5"},null,8,Re),e.createElementVNode("line",{x1:"12",x2:"235",y1:"150",y2:"150","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkbar.color,opacity:"1"},null,8,Ye)],12,Ie)):e.createCommentVNode("",!0),n.value==="sparkStackbar"?(e.openBlock(),e.createElementBlock("svg",{key:9,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 500 64",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("line",{x1:"12",x2:"488",y1:"32",y2:"32","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkStackbar.color,opacity:"0.5"},null,8,Ue),e.createElementVNode("line",{x1:"12",x2:"380",y1:"32",y2:"32","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkStackbar.color,opacity:"0.6"},null,8,Je),e.createElementVNode("line",{x1:"12",x2:"200",y1:"32",y2:"32","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkStackbar.color,opacity:"0.8"},null,8,Ke),e.createElementVNode("line",{x1:"12",x2:"120",y1:"32",y2:"32","stroke-width":"16","stroke-linecap":"round",stroke:t.value.style.sparkStackbar.color,opacity:"1"},null,8,Qe)],12,De)):e.createCommentVNode("",!0),n.value==="thermometer"?(e.openBlock(),e.createElementBlock("svg",{key:10,width:"100%",viewBox:"0 0 20 20",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{fill:"none",stroke:t.value.style.thermometer.color,"stroke-width":"0.2","stroke-linecap":"round",d:"M 13 4 A 1 1 0 0 0 7 4 L 7 16 A 1 1 0 0 0 13 16 L 13 4 M 7 15 L 8 15 M 7 12 L 8 12 M 7 9 L 8 9 M 7 6 L 8 6 M 12 15 L 13 15 M 12 12 L 13 12 M 12 9 L 13 9 M 12 6 L 13 6 "},null,8,et),e.createElementVNode("path",{stroke:t.value.style.thermometer.color,"stroke-width":"1",style:{opacity:"0.6"},d:"M 10 17 L 10 12 ","stroke-linecap":"round"},null,8,tt),e.createElementVNode("path",{"stroke-linecap":"round",stroke:t.value.style.thermometer.color,"stroke-width":"1",opacity:"M 10 17 L 10 9"},null,8,lt),e.createElementVNode("path",{"stroke-linecap":"round",stroke:t.value.style.thermometer.color,"stroke-width":"1",opacity:"0.3",d:"M 10 17 L 10 6"},null,8,ot),e.createElementVNode("path",{"stroke-linecap":"round",stroke:t.value.style.thermometer.color,"stroke-width":"1",style:{opacity:"0.1"},d:"M 10 17 L 10 3"},null,8,rt)],4)):e.createCommentVNode("",!0),n.value==="relationCircle"?(e.openBlock(),e.createElementBlock("svg",{key:11,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 20 20",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{fill:"none",stroke:t.value.style.relationCircle.color,"stroke-width":"0.2","stroke-linecap":"round",d:"M1 10A1 1 0 0019 10 1 1 0 001 10M1 10C7 11 9 13 10 19M10 19C10 11 8 7 6 2M10 19C10 11 12 7 14 2M10 19C11 13 12 11 19 10"},null,8,st)],12,nt)):e.createCommentVNode("",!0),n.value==="molecule"?(e.openBlock(),e.createElementBlock("svg",{key:12,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:"50",cy:"50",r:"6","stroke-width":"2",fill:"none",stroke:t.value.style.molecule.color},null,8,ct),e.createElementVNode("circle",{cx:"20",cy:"50",r:"3","stroke-width":"1.6",fill:"none",stroke:t.value.style.molecule.color},null,8,it),e.createElementVNode("circle",{cx:"80",cy:"50",r:"3","stroke-width":"1.6",fill:"none",stroke:t.value.style.molecule.color},null,8,dt),e.createElementVNode("circle",{cx:"50",cy:"20",r:"3","stroke-width":"1.6",fill:"none",stroke:t.value.style.molecule.color},null,8,ut),e.createElementVNode("circle",{cx:"50",cy:"80",r:"3","stroke-width":"1.6",fill:"none",stroke:t.value.style.molecule.color},null,8,kt),e.createElementVNode("line",{x1:"50",x2:"50",y1:"23",y2:"45","stroke-width":"1",stroke:t.value.style.molecule.color},null,8,yt),e.createElementVNode("line",{x1:"50",x2:"50",y1:"77",y2:"55","stroke-width":"1",stroke:t.value.style.molecule.color},null,8,ht),e.createElementVNode("line",{x1:"23",x2:"45",y1:"50",y2:"50","stroke-width":"1",stroke:t.value.style.molecule.color},null,8,mt),e.createElementVNode("line",{x1:"77",x2:"55",y1:"50",y2:"50","stroke-width":"1",stroke:t.value.style.molecule.color},null,8,vt)],12,at)):e.createCommentVNode("",!0),n.value==="tiremarks"?(e.openBlock(),e.createElementBlock("svg",{key:13,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 312 56",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(100,o=>e.createElementVNode("g",null,[e.createElementVNode("line",{x1:10+o*2.9,y1:6,x2:10+o*2.9,y2:50,stroke:t.value.style.tiremarks.color,style:e.normalizeStyle(o>80?"opacity: 0.5":""),"stroke-linecap":"round"},null,12,_t)])),64))],12,pt)):e.createCommentVNode("",!0),n.value==="pyramid"?(e.openBlock(),e.createElementBlock("svg",{key:14,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 105 80",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:50-o[0],y:r*(80/u.value.length),width:o[0],height:80/u.value.length*.95,fill:t.value.style.pyramid.color},null,8,gt),e.createElementVNode("rect",{x:55,y:r*(80/u.value.length),width:o[1],height:80/u.value.length*.95,fill:t.value.style.pyramid.color},null,8,ft)]))),256))],12,xt)):e.createCommentVNode("",!0),n.value==="rings"?(e.openBlock(),e.createElementBlock("svg",{key:15,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 400 400",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:200,cy:200,r:180,fill:`${t.value.style.rings.color}${e.unref(l.opacity)[40]}`},null,8,Et),e.createElementVNode("circle",{cx:200,cy:250,r:130,fill:`${t.value.style.rings.color}${e.unref(l.opacity)[60]}`},null,8,Nt),e.createElementVNode("circle",{cx:200,cy:290,r:90,fill:`${t.value.style.rings.color}${e.unref(l.opacity)[100]}`},null,8,Bt)],12,wt)):e.createCommentVNode("",!0),n.value==="wheel"?(e.openBlock(),e.createElementBlock("svg",{key:16,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 400 400",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(o,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2,stroke:r<66?o.color:`${o.color}${e.unref(l.opacity)[50]}`,"stroke-width":5,"stroke-linecap":"round"},null,8,Mt))),256)),e.createElementVNode("circle",{cx:200,cy:200,r:130,"stroke-width":3,stroke:`${t.value.style.wheel.color}${e.unref(l.opacity)[50]}`,fill:"none"},null,8,bt),e.createElementVNode("rect",{fill:`${t.value.style.wheel.color}${e.unref(l.opacity)[50]}`,rx:12,x:160,y:170,height:60,width:80,stroke:"none"},null,8,Ct)],12,Vt)):e.createCommentVNode("",!0),n.value==="sparkline"?(e.openBlock(),e.createElementBlock("svg",{key:17,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 150 32",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("g",null,[e.createElementVNode("rect",{x:"2",y:"2",height:"6",width:"24",fill:t.value.style.sparkline.color,rx:"3"},null,8,$t),e.createElementVNode("rect",{x:"2",y:"12",height:"16",width:"16",fill:t.value.style.sparkline.color,rx:"3"},null,8,St)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[r<y.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,y1:o.y,x2:y.value[r+1].x,y2:y.value[r+1].y,"stroke-width":t.value.style.sparkline.strokeWidth,stroke:t.value.style.sparkline.color,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,zt)):e.createCommentVNode("",!0)]))),256))],12,Lt)):e.createCommentVNode("",!0),n.value==="candlesticks"?(e.openBlock(),e.createElementBlock("svg",{key:18,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 512 316",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[t.value.style.candlesticks.axis.show?(e.openBlock(),e.createElementBlock("g",Wt,[e.createElementVNode("line",{x1:2,x2:2,y1:2,y2:314,stroke:t.value.style.candlesticks.axis.color,"stroke-width":t.value.style.candlesticks.axis.strokeWidth,"stroke-linecap":"round"},null,8,Pt),e.createElementVNode("line",{x1:2,x2:510,y1:314,y2:314,stroke:t.value.style.candlesticks.axis.color,"stroke-width":t.value.style.candlesticks.axis.strokeWidth,"stroke-linecap":"round"},null,8,Xt)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("line",{x1:24+464*r/(s.value.length-1)-464/(s.value.length-1)/8,x2:24+464*r/(s.value.length-1)+464/(s.value.length-1)/8,y1:o.y,y2:o.y,stroke:t.value.style.candlesticks.candle.color,"stroke-width":t.value.style.candlesticks.candle.strokeWidth,"stroke-linecap":"round"},null,8,jt),e.createElementVNode("line",{x1:24+464*r/(s.value.length-1)-464/(s.value.length-1)/8,x2:24+464*r/(s.value.length-1)+464/(s.value.length-1)/8,y1:o.y+o.height,y2:o.y+o.height,stroke:t.value.style.candlesticks.candle.color,"stroke-width":t.value.style.candlesticks.candle.strokeWidth,"stroke-linecap":"round"},null,8,Ft),e.createElementVNode("line",{x1:24+464*r/(s.value.length-1),x2:24+464*r/(s.value.length-1),y1:o.y,y2:o.y+o.height,stroke:t.value.style.candlesticks.candle.color,"stroke-width":t.value.style.candlesticks.candle.strokeWidth,"stroke-linecap":"round"},null,8,qt),e.createElementVNode("rect",{x:24+464*r/(s.value.length-1)-464/(s.value.length-1)/8,y:o.y+(o.height-o.bar*1.5),height:o.bar,width:464/(s.value.length-1)/4,fill:t.value.style.candlesticks.candle.color,rx:"1"},null,8,Ht)]))),256))],12,At)):e.createCommentVNode("",!0),n.value==="heatmap"?(e.openBlock(),e.createElementBlock("svg",{key:19,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:`0 0 ${10*t.value.style.heatmap.cellsX} ${10*t.value.style.heatmap.cellsY}`,style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.style.heatmap.cellsY,(o,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.style.heatmap.cellsX,(v,a)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a*10,y:r*10,height:10,width:10,stroke:t.value.style.backgroundColor,"stroke-width":1,fill:`${t.value.style.heatmap.color}${e.unref(l.opacity)[Math.round(Math.random()*100)]}`},null,8,Zt)]))),256))]))),256))],12,It)):e.createCommentVNode("",!0),n.value==="chestnut"?(e.openBlock(),e.createElementBlock("svg",{key:20,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 512 316",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,o=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.bars,r=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(22,(v,a)=>e.createElementVNode("path",{d:`M
37
- ${r.x},${r.y+a}
38
- C${r.x-20},${r.y+a}
39
- ${r.x-80},${r.y+a}
40
- ${o.root.x+o.root.r/2}, ${o.root.y}
41
- `,stroke:`${t.value.style.chestnut.color}${e.unref(l.opacity)[r.opacity*.2]}`,fill:"none","stroke-width":"2","shape-rendering":"cirspEdges"},null,8,Tt)),64))]))),256))]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,o=>(e.openBlock(),e.createElementBlock("circle",{cx:o.root.x,cy:o.root.y,r:o.root.r,fill:`${t.value.style.backgroundColor}`,stroke:t.value.backgroundColor,"stroke-width":3},null,8,Gt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,o=>(e.openBlock(),e.createElementBlock("circle",{cx:o.root.x,cy:o.root.y,r:o.root.r,fill:`${t.value.style.chestnut.color}${e.unref(l.opacity)[o.root.opacity]}`,stroke:t.value.style.backgroundColor,"stroke-width":3},null,8,Rt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,o=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.bars,r=>(e.openBlock(),e.createElementBlock("rect",{rx:"2",x:r.x,y:r.y,width:r.width,height:22,fill:`${t.value.style.chestnut.color}${e.unref(l.opacity)[r.opacity]}`},null,8,Yt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.bars,r=>(e.openBlock(),e.createElementBlock("circle",{cx:r.x+r.width+32,cy:r.y+11,r:11,fill:`${t.value.style.chestnut.color}${e.unref(l.opacity)[r.opacity]}`},null,8,Dt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.bars,r=>(e.openBlock(),e.createElementBlock("circle",{cx:r.x+r.width+32,cy:r.y+11,r:5,fill:`${t.value.style.backgroundColor}`},null,8,Ut))),256))]))),256)),e.createElementVNode("line",{x1:200,x2:200,y1:10,y2:300,stroke:t.value.style.backgroundColor,"stroke-width":3},null,8,Jt)],12,Ot)):e.createCommentVNode("",!0),n.value==="donutEvolution"?(e.openBlock(),e.createElementBlock("svg",{key:21,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 108 70",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[t.value.style.line.axis.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:"M3 3 3 67 105 67",stroke:t.value.style.donutEvolution.axis.color,"stroke-width":t.value.style.donutEvolution.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Qt)):e.createCommentVNode("",!0),e.createElementVNode("path",{fill:"none",d:"M10 55A1 1 0 0020 55 1 1 0 0010 55M12 55A1 1 0 0018 55 1 1 0 0012 55M10 55 12 55M15 52 15 50M27 45A1 1 0 0037 45 1 1 0 0027 45M29 45A1 1 0 0035 45 1 1 0 0029 45M32 48 32 50M35 45 37 45M44 50A1 1 0 0054 50 1 1 0 0044 50M46 50A1 1 0 0052 50 1 1 0 0046 50M49 45 49 47M49 53 49 55M61 35A1 1 0 0071 35 1 1 0 0061 35M63 35A1 1 0 0069 35 1 1 0 0063 35M66 30 66 32M61 35 63 35M78 41A1 1 0 0088 41 1 1 0 0078 41M80 41A1 1 0 0086 41 1 1 0 0080 41M78 41 80 41M86 41 88 41M95 14A1 1 0 00105 14 1 1 0 0095 14M97 14A1 1 0 00103 14 1 1 0 0097 14M95 14 97 14M100 17 100 19",stroke:t.value.style.donutEvolution.donuts.color,"stroke-width":t.value.style.donutEvolution.donuts.strokeWidth},null,8,el),e.createElementVNode("path",{fill:"none",d:"M19 52 27 45M37 45 44 49M52 46 62 38M71 36 78 40M86 37 97 18",stroke:t.value.style.donutEvolution.axis.color,"stroke-width":t.value.style.donutEvolution.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,tl),e.createElementVNode("path",{d:"M10 55 12 55C12 53 14 52 15 52L15 50C13 50 10 52 10 55",fill:t.value.style.donutEvolution.donuts.color,stroke:"none",style:{opacity:"0.3"}},null,8,ll),e.createElementVNode("path",{d:"M32 48 32 50C35 50 37 47 37 45L35 45C35 47 33 48 32 48",fill:t.value.style.donutEvolution.donuts.color,stroke:"none",style:{opacity:"0.3"}},null,8,ol),e.createElementVNode("path",{d:"M49 53 49 55A1 1 0 0049 45L49 47C53 47 53 53 49 53",fill:t.value.style.donutEvolution.donuts.color,stroke:"none",style:{opacity:"0.3"}},null,8,rl),e.createElementVNode("path",{d:"M63 35C63 33 65 32 66 32L66 30C63 30 61 33 61 35L63 35",fill:t.value.style.donutEvolution.donuts.color,stroke:"none",style:{opacity:"0.3"}},null,8,nl),e.createElementVNode("path",{d:"M78 41A1 1 0 0088 41L86 41C86 45 80 45 80 41L78 41",fill:t.value.style.donutEvolution.donuts.color,stroke:"none",style:{opacity:"0.3"}},null,8,sl),e.createElementVNode("path",{d:"M95 14C95 17 98 19 100 19L100 17C99 17 97 16 97 14L95 14",fill:t.value.style.donutEvolution.donuts.color,stroke:"none",style:{opacity:"0.3"}},null,8,al)],12,Kt)):e.createCommentVNode("",!0),n.value==="line"?(e.openBlock(),e.createElementBlock("svg",{key:22,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 70",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[t.value.style.line.axis.show?(e.openBlock(),e.createElementBlock("g",il,[e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.line.axis.color,"stroke-width":t.value.style.line.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,dl),e.createElementVNode("line",{x1:"3",x2:"97",y1:"67",y2:"67",stroke:t.value.style.line.axis.color,"stroke-width":t.value.style.line.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,ul)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:"M 9,60 22,50 35,55 48,36 61,40 74,25 87,26 90,12",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",stroke:t.value.style.line.path.color,"stroke-width":t.value.style.line.path.strokeWidth},null,8,kl),t.value.style.line.path.showPlots?(e.openBlock(),e.createElementBlock("g",yl,[e.createElementVNode("circle",{cx:"9",cy:"60",r:t.value.style.line.path.strokeWidth,fill:t.value.style.line.path.color},null,8,hl),e.createElementVNode("circle",{cx:"90",cy:"12",r:t.value.style.line.path.strokeWidth,fill:t.value.style.line.path.color},null,8,ml)])):e.createCommentVNode("",!0)],12,cl)):e.createCommentVNode("",!0),n.value==="bar"?(e.openBlock(),e.createElementBlock("svg",{key:23,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 70",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[t.value.style.bar.axis.show?(e.openBlock(),e.createElementBlock("g",pl,[e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.bar.axis.color,"stroke-width":t.value.style.bar.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,_l),e.createElementVNode("line",{x1:"3",x2:"97",y1:"67",y2:"67",stroke:t.value.style.bar.axis.color,"stroke-width":t.value.style.bar.axis.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,xl)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(o,r)=>(e.openBlock(),e.createElementBlock("rect",{fill:t.value.style.bar.color,rx:t.value.style.bar.borderRadius,x:6+11.2*r,y:o,width:t.value.style.bar.barWidth,height:67-o},null,8,gl))),256))],12,vl)):e.createCommentVNode("",!0),n.value==="donut"?(e.openBlock(),e.createElementBlock("svg",{key:24,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 400 400",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{d:" M 300 200 A 100 100 0 0 1 113 250",fill:"none","stroke-width":t.value.style.donut.strokeWidth,stroke:t.value.style.donut.color},null,8,wl),e.createElementVNode("path",{d:" M 113 250 A 100 100 0 0 1 250 113",fill:"none","stroke-width":t.value.style.donut.strokeWidth,stroke:`${t.value.style.donut.color}${e.unref(l.opacity)[60]}`},null,8,El),e.createElementVNode("path",{d:" M 250 113 A 100 100 0 0 1 300 200",fill:"none","stroke-width":t.value.style.donut.strokeWidth,stroke:`${t.value.style.donut.color}${e.unref(l.opacity)[30]}`},null,8,Nl)],12,fl)):e.createCommentVNode("",!0),n.value==="onion"?(e.openBlock(),e.createElementBlock("svg",{key:25,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 400 400",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{d:" M 200 60 A 140 140 0 1 1 60 200",stroke:t.value.style.onion.color,"stroke-linecap":"round","stroke-width":"20",fill:"none"},null,8,Vl),e.createElementVNode("path",{d:" M 200 100 A 100 100 0 1 1 100 200",stroke:`${t.value.style.onion.color}${e.unref(l.opacity)[60]}`,"stroke-linecap":"round","stroke-width":"20",fill:"none"},null,8,Ml),e.createElementVNode("path",{d:" M 200 140 A 60 60 0 1 1 140 200",fill:"none",stroke:`${t.value.style.onion.color}${e.unref(l.opacity)[40]}`,"stroke-linecap":"round","stroke-width":"20"},null,8,bl)],12,Bl)):e.createCommentVNode("",!0),n.value==="gauge"?(e.openBlock(),e.createElementBlock("svg",{key:26,width:"100%",viewBox:"0 0 400 400",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{d:" M 82 255 A 120 120 0 1 1 318 255",fill:"none",stroke:t.value.style.gauge.color,"stroke-linecap":"round","stroke-width":"20"},null,8,Cl),e.createElementVNode("circle",{cx:"200",cy:"256",r:"12",fill:t.value.style.gauge.color},null,8,Ll),e.createElementVNode("line",{x1:"200",y1:"256",x2:"250",y2:"160","stroke-width":"8",stroke:t.value.style.gauge.color,"stroke-linecap":"round"},null,8,$l)],4)):e.createCommentVNode("",!0),n.value==="quadrant"?(e.openBlock(),e.createElementBlock("svg",{key:27,xmlns:e.unref(l.XMLNS),viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("line",{x1:"50",x2:"50",y1:"3",y2:"97",stroke:t.value.style.quadrant.grid.color,"stroke-width":t.value.style.quadrant.grid.strokeWidth},null,8,zl),e.createElementVNode("line",{x1:"3",x2:"97",y1:"50",y2:"50",stroke:t.value.style.quadrant.grid.color,"stroke-width":t.value.style.quadrant.grid.strokeWidth},null,8,Al),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"20",cy:"20"},null,8,Wl),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"80",cy:"60"},null,8,Pl),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"65",cy:"55"},null,8,Xl),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"36",cy:"67"},null,8,jl),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"15",cy:"75"},null,8,Fl),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"40",cy:"55"},null,8,ql),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"76",cy:"32"},null,8,Hl),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"85",cy:"26"},null,8,Il),e.createElementVNode("circle",{fill:t.value.style.quadrant.plots.color,r:t.value.style.quadrant.plots.radius,cx:"55",cy:"46"},null,8,Zl)],12,Sl)):e.createCommentVNode("",!0),n.value==="radar"?(e.openBlock(),e.createElementBlock("svg",{key:28,xmlns:e.unref(l.XMLNS),viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("path",{d:w.value,fill:"none",stroke:t.value.style.radar.grid.color,"stroke-width":t.value.style.radar.grid.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Tl),e.createElementVNode("path",{d:E.value,fill:"none",stroke:`${t.value.style.radar.grid.color}${e.unref(l.opacity)[70]}`,"stroke-width":t.value.style.radar.grid.strokeWidth/2,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Gl),e.createElementVNode("path",{d:N.value,fill:"none",stroke:`${t.value.style.radar.grid.color}${e.unref(l.opacity)[70]}`,"stroke-width":t.value.style.radar.grid.strokeWidth/2,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Rl),e.createElementVNode("path",{d:B.value,fill:"none",stroke:`${t.value.style.radar.grid.color}${e.unref(l.opacity)[70]}`,"stroke-width":t.value.style.radar.grid.strokeWidth/2.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Yl),e.createElementVNode("path",{d:"M 9,50 91,50",stroke:`${t.value.style.radar.grid.color}${e.unref(l.opacity)[50]}`,"stroke-width":t.value.style.radar.grid.strokeWidth/2},null,8,Dl),e.createElementVNode("path",{d:"M 29.5,14.5 70.5 85.5",stroke:`${t.value.style.radar.grid.color}${e.unref(l.opacity)[50]}`,"stroke-width":t.value.style.radar.grid.strokeWidth/2},null,8,Ul),e.createElementVNode("path",{d:"M 29.5,85.5 70.5 14.5",stroke:`${t.value.style.radar.grid.color}${e.unref(l.opacity)[50]}`,"stroke-width":t.value.style.radar.grid.strokeWidth/2},null,8,Jl),e.createElementVNode("path",{d:"M 34,23 68.5,18, 70,50 61.5,70 35,75.5 10,50 Z",stroke:"none","stroke-linejoin":"round",fill:`${t.value.style.radar.shapes.color}${e.unref(l.opacity)[30]}`},null,8,Kl),e.createElementVNode("path",{d:"M 43.5,40 64.5,25, 84,50 55.5,60 29.5,85.5 25,50 Z",stroke:"none","stroke-linejoin":"round",fill:`${t.value.style.radar.shapes.color}${e.unref(l.opacity)[50]}`},null,8,Ql)],12,Ol)):e.createCommentVNode("",!0),n.value==="waffle"?(e.openBlock(),e.createElementBlock("svg",{key:29,xmlns:e.unref(l.XMLNS),viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(o,r)=>e.createElementVNode("g",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(v,a)=>e.createElementVNode("g",null,[e.createElementVNode("rect",{x:3+a*9.5,y:3+r*9.5,height:9,width:9,fill:`${t.value.style.waffle.color}${e.unref(l.opacity)[20]}`,rx:"1"},null,8,to)])),64))])),64)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(o,r)=>e.createElementVNode("g",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(v,a)=>e.createElementVNode("g",null,[r>2?(e.openBlock(),e.createElementBlock("rect",{key:0,x:3+a*9.5,y:3+r*9.5,height:9,width:9,fill:`${t.value.style.waffle.color}${e.unref(l.opacity)[30]}`,rx:"1"},null,8,lo)):e.createCommentVNode("",!0)])),64))])),64)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(o,r)=>e.createElementVNode("g",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(v,a)=>e.createElementVNode("g",null,[r>6?(e.openBlock(),e.createElementBlock("rect",{key:0,x:3+a*9.5,y:3+r*9.5,height:9,width:9,fill:`${t.value.style.waffle.color}${e.unref(l.opacity)[50]}`,rx:"1"},null,8,oo)):e.createCommentVNode("",!0)])),64))])),64))],12,eo)):e.createCommentVNode("",!0),n.value==="table"?(e.openBlock(),e.createElementBlock("svg",{key:30,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 70",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createElementVNode("rect",{fill:`${t.value.style.table.th.color}${e.unref(l.opacity)[50]}`,x:3.5,y:5,height:"10",width:"93"},null,8,no),e.createElementVNode("rect",{fill:`${t.value.style.table.th.color}${e.unref(l.opacity)[50]}`,x:3.5,y:15,height:"50",width:"23.25"},null,8,so),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,(o,r)=>e.createElementVNode("line",{x1:"3.7",x2:"96.3",y1:5+r*10,y2:5+r*10,stroke:t.value.style.table.td.color,"stroke-width":t.value.style.table.td.strokeWidth,"stroke-linecap":"round"},null,8,ao)),64)),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,(o,r)=>e.createElementVNode("line",{x1:3.5+r*23.25,x2:3.5+r*23.25,y1:"5",y2:"65",stroke:t.value.style.table.td.color,"stroke-width":t.value.style.table.td.strokeWidth,"stroke-linecap":"round"},null,8,co)),64))],12,ro)):e.createCommentVNode("",!0),n.value==="rating"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:31},[t.value.style.rating.useSmiley?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex;flex-direction:row;align-items:center;justify-content:center;width:${t.value.style.rating.maxWidth}px`)},[t.value.style.rating.filled?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},[uo,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.rating.color},null,8,ko)],12,io)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},mo,12,yo)),t.value.style.rating.filled?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},[po,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.rating.color},null,8,_o)],12,vo)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},fo,12,xo)),t.value.style.rating.filled?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},[Eo,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.rating.color},null,8,No)],12,wo)):(e.openBlock(),e.createElementBlock("svg",{key:5,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},Lo,12,Bo)),t.value.style.rating.filled?(e.openBlock(),e.createElementBlock("svg",{key:6,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},[So,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.rating.color},null,8,zo)],12,$o)):(e.openBlock(),e.createElementBlock("svg",{key:7,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},Po,12,Ao)),t.value.style.rating.filled?(e.openBlock(),e.createElementBlock("svg",{key:8,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},[jo,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.rating.color},null,8,Fo)],12,Xo)):(e.openBlock(),e.createElementBlock("svg",{key:9,xmlns:e.unref(l.XMLNS),style:e.normalizeStyle(`width:${t.value.style.rating.maxWidth/5}px;aspect-ratio: 1 / 1`),viewBox:"0 0 24 24","stroke-width":"1.5",stroke:t.value.style.rating.color,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},Io,12,qo))],4)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 30",style:e.normalizeStyle(`background:${t.value.style.backgroundColor};max-width:${t.value.style.rating.maxWidth}px`)},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,(o,r)=>e.createElementVNode("polygon",{points:e.unref(l.createStar)({plot:{x:10+r*20,y:15},radius:6}),fill:t.value.style.rating.filled?t.value.style.rating.color:"none",stroke:t.value.style.rating.color,"stroke-width":t.value.style.rating.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Oo)),64))],12,Zo))],64)):e.createCommentVNode("",!0),n.value==="verticalBar"?(e.openBlock(),e.createElementBlock("svg",{key:32,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 100",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[t.value.style.verticalBar.axis.show?(e.openBlock(),e.createElementBlock("g",Go,[e.createElementVNode("line",{x1:3,x2:3,y1:3,y2:97,stroke:t.value.style.verticalBar.axis.color,"stroke-width":t.value.style.verticalBar.axis.strokeWidth},null,8,Ro)])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(6,(o,r)=>e.createElementVNode("rect",{x:3,y:5+r*15.6,height:"12",width:94-94*r/6,fill:t.value.style.verticalBar.color,rx:t.value.style.verticalBar.borderRadius},null,8,Yo)),64))],12,To)):e.createCommentVNode("",!0)],14,C))}},Uo=b._export_sfc(Do,[["__scopeId","data-v-73139463"]]);exports.default=Uo;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DYUBiaGS.cjs"),$=require("./useNestedProp-w7AMWWmz.cjs"),N=require("./BaseIcon--PMhZ3f-.cjs"),F=require("./vue-ui-skeleton-ClpTCY1x.cjs"),j=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=["id"],A=["xmlns","viewBox"],D=["id"],P=["stop-color"],G=["stop-color"],O={key:0},U=["d","fill"],W=["d","fill"],Z=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],H=["d","stroke","stroke-width","stroke-linecap","stroke-linejoin"],R=["height","width","x"],X={style:{width:"100%"}},J=["x","y","fill","font-size","font-weight"],K=["stroke","cx","cy","fill"],Q=["x","y","font-size","fill","font-weight"],Y={__name:"vue-ui-spark-trend",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(V){const u=V,{vue_ui_spark_trend:E}=o.useConfig(),S=e.computed(()=>!!u.dataset&&u.dataset.length),y=e.ref(o.createUid()),t=e.computed({get:()=>x(),set:l=>l});function x(){const l=$.useNestedProp({userConfig:u.config,defaultConfig:E});return l.theme?{...$.useNestedProp({userConfig:o.themes.vue_ui_spark_trend[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=x(),C()},{deep:!0}),e.watch(()=>u.dataset,l=>{v.value=u.dataset.map(n=>[void 0,1/0,-1/0,null,NaN].includes(n)?null:n)},{deep:!0});function k(l){return l.map(n=>o.checkNaN(n))}const v=e.ref(u.dataset.map(l=>t.value.style.animation.show||[void 0,1/0,-1/0,null,NaN].includes(l)?null:l)),h=e.ref(!1),g=e.ref(null);e.onMounted(()=>{C();let n=1e3/t.value.style.animation.animationFrames,i=performance.now();if(t.value.style.animation.show&&t.value.style.animation.animationFrames&&u.dataset.length>1){let b=function(){h.value=!0;let B=performance.now(),L=B-i;L>n?(i=B-L%n,d<u.dataset.length?(v.value.push(u.dataset[d]),d+=1,g.value=requestAnimationFrame(b)):(cancelAnimationFrame(g.value),v.value=k(u.dataset),h.value=!1)):g.value=requestAnimationFrame(b)};v.value=[];let d=0;b()}});function C(){o.objectIsEmpty(u.dataset)&&o.error({componentName:"VueUiSparkTrend",type:"dataset"})}const r=e.ref({height:80,width:300}),c=e.computed(()=>({top:t.value.style.padding.top,left:t.value.style.padding.left,right:r.value.width-t.value.style.padding.right,bottom:r.value.height-t.value.style.padding.bottom,height:r.value.height-(t.value.style.padding.top+t.value.style.padding.bottom)-(t.value.style.dataLabel.show?t.value.style.dataLabel.fontSize:0),width:r.value.width-(t.value.style.padding.left+t.value.style.padding.right)})),_=e.computed(()=>{const l=k(u.dataset);return{max:Math.max(...l.map(n=>o.checkNaN(n))),min:Math.min(...l.map(n=>o.checkNaN(n)))}}),p=e.computed(()=>{const l=_.value.min>=0?0:_.value.min;return Math.abs(l)}),T=e.computed(()=>_.value.max+p.value);function w(l){return l/T.value}const z=e.computed(()=>u.dataset.length),a=e.computed(()=>v.value.map((l,n)=>{const i=isNaN(l)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l)?0:l||0;return{value:o.checkNaN(l),absoluteValue:o.checkNaN(i),plotValue:o.checkNaN(i+p.value),toMax:w(i+p.value),x:c.value.left+o.checkNaN(n*(c.value.width/(z.value-1)))-t.value.style.padding.right,y:c.value.bottom-o.checkNaN(c.value.height*w(i+p.value))}})),f=e.computed(()=>{const l=k(u.dataset);return t.value.style.trendLabel.trendType==="global"?o.calcTrend(l):t.value.style.trendLabel.trendType==="n-1"&&l.length>1?(l.at(-1)/l.at(-2)-1)*100:t.value.style.trendLabel.trendType==="lastToFirst"?(l.at(-1)/l[0]-1)*100:0}),m=e.computed(()=>h.value||f.value===0?"neutral":f.value>0?"positive":"negative"),s=e.computed(()=>t.value.style.arrow.colors[m.value]),M=e.computed(()=>{const l={x:a.value[0].x,y:r.value.height-6},n={x:a.value[a.value.length-1].x,y:r.value.height-6},i=[];return a.value.forEach(d=>{i.push(`${d.x},${d.y} `)}),[l.x,l.y,...i,n.x,n.y].toString()}),I=e.computed(()=>{let l=[];return a.value.forEach(n=>{l.push(`${n.x},${n.y} `)}),`M ${l.toString()}`});return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-spark-trend",id:y.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily};backgroundColor:${t.value.style.backgroundColor}`)},[S.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${r.value.width} ${r.value.height}`,style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};overflow:visible`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"0%",y2:"100%",id:`pill_gradient_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":(t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke)+e.unref(o.opacity)[t.value.style.area.opacity]},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,G)],8,D)]),t.value.style.area.show&&a.value[0]?(e.openBlock(),e.createElementBlock("g",O,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.value[0].x},${c.value.bottom} ${e.unref(o.createSmoothPath)(a.value)} L ${a.value.at(-1).x},${c.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:`${t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke}${e.unref(o.opacity)[t.value.style.area.opacity]}`,stroke:"none"},null,8,U)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${M.value}Z`,fill:t.value.style.area.useGradient?`url(#pill_gradient_${y.value})`:`${t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke}${e.unref(o.opacity)[t.value.style.area.opacity]}`,stroke:"none"},null,8,W))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&a.value.length?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${e.unref(o.createSmoothPath)(a.value)}`,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,Z)):e.createCommentVNode("",!0),!t.value.style.line.smooth&&a.value.length?(e.openBlock(),e.createElementBlock("path",{key:2,d:I.value,stroke:t.value.style.line.useColorTrend?s.value:t.value.style.line.stroke,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":t.value.style.line.strokeLinecap,"stroke-linejoin":t.value.style.line.strokeLinejoin},null,8,H)):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("foreignObject",{key:3,height:r.value.height/2,width:r.value.height/2,x:r.value.height/5,y:8},[e.createElementVNode("div",X,[m.value==="positive"?(e.openBlock(),e.createBlock(N.default,{key:0,stroke:s.value,name:"arrowTop",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),m.value==="negative"?(e.openBlock(),e.createBlock(N.default,{key:1,stroke:s.value,name:"arrowBottom",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0),m.value==="neutral"?(e.openBlock(),e.createBlock(N.default,{key:2,stroke:s.value,name:"arrowRight",size:r.value.height/2},null,8,["stroke","size"])):e.createCommentVNode("",!0)])],8,R)),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:4,x:r.value.height/2-r.value.height/20,y:c.value.bottom,"text-anchor":"middle",fill:t.value.style.trendLabel.useColorTrend?s.value:t.value.style.trendLabel.color,"font-size":t.value.style.trendLabel.fontSize,"font-weight":t.value.style.trendLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(o.dataLabel)({p:f.value>0?"+":"",v:f.value,s:"%",r:t.value.style.trendLabel.rounding})),9,J)),a.value.length&&a.value.at(-1).x!==void 0?(e.openBlock(),e.createElementBlock("circle",{key:5,stroke:t.value.style.backgroundColor,"stroke-width":2,cx:a.value.at(-1).x,cy:a.value.at(-1).y,r:4,fill:s.value},null,8,K)):e.createCommentVNode("",!0),a.value.length&&a.value.at(-1).x!==void 0&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:6,"text-anchor":"middle",x:a.value.at(-1).x,y:a.value.at(-1).y-t.value.style.dataLabel.fontSize/1.5,"font-size":t.value.style.dataLabel.fontSize,fill:t.value.style.dataLabel.useColorTrend?s.value:t.value.style.dataLabel.color,"font-weight":t.value.style.dataLabel.bold?"bold":"normal"},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.dataLabel.formatter,a.value.at(-1).value,e.unref(o.dataLabel)({p:t.value.style.dataLabel.prefix,v:a.value.at(-1).value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.rounding}),{datapoint:a.value.at(-1)})),9,Q)):e.createCommentVNode("",!0)],12,A)):(e.openBlock(),e.createBlock(F.default,{key:0,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,q))}},ee=j._export_sfc(Y,[["__scopeId","data-v-8e661d1a"]]);exports.default=ee;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DYUBiaGS.cjs"),C=require("./useNestedProp-w7AMWWmz.cjs"),V=require("./vue-ui-skeleton-ClpTCY1x.cjs"),$=["onClick"],D={key:1},z=["xmlns","viewBox"],L=["id"],P=["stop-color"],A=["stop-color"],F=["height","width","fill","rx"],I=["height","width","fill","rx"],T=["height","width","fill","rx"],O={__name:"vue-ui-sparkbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},backgroundOpacity:{type:Number,default:100}},emits:["selectDatapoint"],setup(p,{emit:b}){const n=p,{vue_ui_sparkbar:w}=o.useConfig(),v=e.computed(()=>!!n.dataset&&n.dataset.length),y=e.ref(o.createUid()),t=e.computed({get:()=>f(),set:l=>l});function f(){const l=C.useNestedProp({userConfig:n.config,defaultConfig:w});return l.theme?{...C.useNestedProp({userConfig:o.themes.vue_ui_sparkbar[l.theme]||n.config,defaultConfig:l}),customPalette:o.themePalettes[l.theme]||o.palette}:l}e.watch(()=>n.config,l=>{t.value=f()},{deep:!0});const S=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref(n.dataset.map(l=>({...l,value:t.value.style.animation.show?0:l.value||0,formatter:l.formatter||null}))),g=e.ref(null);e.onMounted(async()=>{o.objectIsEmpty(n.dataset)&&o.error({componentName:"VueUiSparkbar",type:"dataset"}),h()});function h(){if(t.value.style.animation.show){let x=function(){s+=a/l,s<a?(c.value=c.value.map((u,m)=>({...u,value:u.value+=r[m]})),g.value=requestAnimationFrame(x)):c.value=n.dataset.map(u=>({...u,value:u.value||0,formatter:u.formatter||null}))};const l=t.value.style.animation.animationFrames,r=n.dataset.map((u,m)=>u.value/l),a=n.dataset.map(u=>u.value||0).reduce((u,m)=>u+m,0);let s=0;x()}}e.watch(()=>n.dataset,async l=>{cancelAnimationFrame(g.value),c.value=n.dataset.map(r=>({...r,value:t.value.style.animation.show?0:r.value||0,formatter:r.formatter||null})),e.nextTick(h)},{deep:!0});const i=e.ref({width:500,height:16}),N=e.computed(()=>Math.max(...n.dataset.map(l=>l.value))),_=e.computed(()=>(n.dataset.forEach((l,r)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(a=>{o.error({componentName:"VueUiSparkbar",type:"datasetSerieAttribute",property:a,index:r})})}),c.value.map((l,r)=>({...l,value:l.value||0,color:o.convertColorToHex(l.color)||S.value[r]||o.palette[r]||o.palette[r%o.palette.length]}))));function B(l){return l/N.value}function k(l){return t.value.style.layout.independant?l.target?l.value/l.target:t.value.style.layout.percentage?l.value>100?1:l.value/100:t.value.style.layout.target===0?1:l.value/t.value.style.layout.target:B(l.value)}function d(l){return t.value.style.layout.independant&&l.target||t.value.style.layout.target}function E(l,r){b("selectDatapoint",{datapoint:l,index:r})}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:"100%",fontFamily:t.value.style.fontFamily,background:t.value.style.backgroundColor+e.unref(o.opacity)[n.backgroundOpacity]})},[l.$slots.title?e.renderSlot(l.$slots,"title",e.normalizeProps(e.mergeProps({key:0},{title:{...l.title,title:t.value.style.title.text,subtitle:t.value.style.title.subtitle.text}}))):e.createCommentVNode("",!0),!l.$slots.title&&t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,class:"vue-ui-sparkbar-title-container",style:e.normalizeStyle({background:t.value.style.title.backgroundColor,margin:t.value.style.title.margin,textAlign:t.value.style.title.textAlign})},[e.createElementVNode("div",{class:"vue-ui-sparkbar-title",style:e.normalizeStyle({fontSize:t.value.style.title.fontSize+"px",color:t.value.style.title.color,fontWeight:t.value.style.title.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-sparkbar-subtitle",style:e.normalizeStyle({fontSize:t.value.style.title.subtitle.fontSize+"px",color:t.value.style.title.subtitle.color,fontWeight:t.value.style.title.subtitle.bold?"bold":"normal"})},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(a,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`display:flex !important;${["left","right"].includes(t.value.style.labels.name.position)?`flex-direction: ${t.value.style.labels.name.position==="right"?"row-reverse":"row"} !important`:"flex-direction:column !important"};gap:${t.value.style.gap}px !important;align-items:center;${p.dataset.length>0&&s!==p.dataset.length-1?"margin-bottom:6px":""}`),onClick:()=>E(a,s)},[e.renderSlot(l.$slots,"data-label",e.normalizeProps(e.guardReactiveProps({bar:{...a,target:d(a),valueLabel:e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s}),targetLabel:e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s})}}))),l.$slots["data-label"]?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:t.value.style.labels.name.width,color:t.value.style.labels.name.color,fontSize:t.value.style.labels.fontSize+"px",fontWeight:t.value.style.labels.name.bold?"bold":"normal",textAlign:["left","right"].includes(t.value.style.labels.name.position)||["top","top-left"].includes(t.value.style.labels.name.position)?"left":t.value.style.labels.name.position==="top-center"?"center":"right"})},[e.createElementVNode("span",null,e.toDisplayString(a.name),1),t.value.style.labels.value.show?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-weight:${t.value.style.labels.value.bold?"bold":"normal"}`)},": "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,a.value,e.unref(o.dataLabel)({p:a.prefix||"",v:a.value,s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s})),5)):e.createCommentVNode("",!0),t.value.style.layout.showTargetValue?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(" "+t.value.style.layout.targetValueText)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(a.formatter,d(a),e.unref(o.dataLabel)({p:a.prefix||"",v:d(a),s:a.suffix||"",r:a.rounding||0}),{datapoint:a,seriesIndex:s})),1)):e.createCommentVNode("",!0)],4)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(o.XMLNS),viewBox:`0 0 ${i.value.width} ${i.value.height}`,width:"100%"},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkbar_gradient_${s}_${y.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(o.shiftHue)(a.color,.03)}${e.unref(o.opacity)[100-t.value.style.bar.gradient.intensity]}`},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,A)],8,L)]),e.createElementVNode("rect",{height:i.value.height,width:i.value.width,x:0,y:0,fill:`${t.value.style.gutter.backgroundColor}${e.unref(o.opacity)[t.value.style.gutter.opacity]}`,rx:i.value.height/2},null,8,F),e.createElementVNode("rect",{height:i.value.height,width:i.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.underlayerColor,rx:i.value.height/2},null,8,I),e.createElementVNode("rect",{height:i.value.height,width:i.value.width*k(a),x:0,y:0,fill:t.value.style.bar.gradient.show?`url(#sparkbar_gradient_${s}_${y.value})`:a.color,rx:i.value.height/2},null,8,T)],8,z))],12,$)):e.createCommentVNode("",!0)],64))),256)),v.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(V.default,{key:2,config:{type:"sparkbar",style:{backgroundColor:t.value.style.backgroundColor,sparkbar:{color:"#CCCCCC"}}}},null,8,["config"]))],4))}};exports.default=O;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DYUBiaGS.cjs"),_=require("./useNestedProp-w7AMWWmz.cjs"),F=require("./Shape-CadGs1Am.cjs"),M=require("./vue-ui-skeleton-ClpTCY1x.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={key:0},q={key:1},I=["xmlns","viewBox"],U=["id"],W=["stop-color"],O=["stop-color"],j=["id"],P=["stop-color"],G=["stop-color"],T=["id"],X=["stop-color"],Y=["stop-color"],R={key:0},J=["x","y","height","width","fill","stroke","stroke-width","rx"],K={key:1},Q=["x","y","font-size","font-weight","fill"],Z=["x","y","font-size","fill"],ee=["x","y","font-size","fill"],te=["height","width","x","onMouseover","stroke","stroke-width","rx","stroke-dasharray","onClick"],le={__name:"vue-ui-sparkhistogram",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(x,{emit:B}){const u=x;e.useCssVars(o=>({"627459c9":S.value}));const{vue_ui_sparkhistogram:$}=a.useConfig(),h=e.computed(()=>!!u.dataset&&u.dataset.length);e.onMounted(()=>{k()});function k(){a.objectIsEmpty(u.dataset)?a.error({componentName:"VueUiSparkHistogram",type:"dataset"}):u.dataset.forEach((o,s)=>{a.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["value"]}).forEach(l=>{a.error({componentName:"VueUiSparkHistogram",type:"datasetSerieAttribute",property:l,index:s})})})}const v=e.ref(a.createUid()),t=e.computed({get:()=>b(),set:o=>o});function b(){const o=_.useNestedProp({userConfig:u.config,defaultConfig:$});return o.theme?{..._.useNestedProp({userConfig:a.themes.vue_ui_sparkhistogram[o.theme]||u.config,defaultConfig:o})}:o}e.watch(()=>u.config,o=>{t.value=b(),k()},{deep:!0});const c=e.computed(()=>{const o=t.value.style.layout.height,s=t.value.style.layout.width,l=t.value.style.layout.padding.top,n=o-t.value.style.layout.padding.bottom,d=t.value.style.layout.padding.left,y=s-t.value.style.layout.padding.right,p=l+(o-l-t.value.style.layout.padding.bottom)/2,g=o-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,m=s-t.value.style.layout.padding.left-t.value.style.layout.padding.right;return{bottom:n,centerY:p,drawingHeight:g,drawingWidth:m,height:o,left:d,right:y,top:l,width:s}}),E=e.computed(()=>Math.max(...u.dataset.map(o=>Math.abs(o.value||0))));function w(o){return Math.abs(o)/E.value}const i=e.computed(()=>u.dataset.map((o,s)=>{const l=w(o.value||0),n=c.value.drawingHeight*l,d=c.value.drawingWidth/u.dataset.length,y=d*(t.value.style.bars.gap/100),p=d-y,g=c.value.centerY-n/2,m=c.value.left+(y/2+s*d),N=c.value.left+s*d,f=typeof o.intensity>"u"?100:Math.round(o.intensity*100),L=o.color?o.color:o.value>=0?`${t.value.style.bars.colors.positive}${a.opacity[f]}`:`${t.value.style.bars.colors.negative}${a.opacity[f]}`,V=o.color?o.color:o.value>=0?t.value.style.bars.colors.positive:t.value.style.bars.colors.negative,z=o.color?`url(#gradient_datapoint_${s}_${v.value})`:o.value>=0?`url(#gradient_positive_${s}_${v.value})`:`url(#gradient_negative_${s}_${v.value})`,D=m+p/2;return{...o,color:L,gradient:z,height:n,intensity:f,proportion:l,stroke:V,textAnchor:D,trapX:N,unitWidth:d,width:p,x:m,y:g}})),r=e.ref(null);function C(o,s){B("selectDatapoint",{datapoint:o,index:s})}const S=e.computed(()=>`${t.value.style.animation.speedMs}ms`);return(o,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily}`),onMouseleave:s[1]||(s[1]=l=>r.value=null)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:calc(100% - 12px);background:${t.value.style.backgroundColor};margin:0 auto;margin:${t.value.style.title.margin};padding: 0 6px;text-align:${t.value.style.title.textAlign}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`font-size:${t.value.style.title.fontSize}px;color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"}`)},[e.createTextVNode(e.toDisplayString(t.value.style.title.text)+" ",1),r.value!==null?(e.openBlock(),e.createElementBlock("span",H,"- "+e.toDisplayString(i.value[r.value].timeLabel||"")+" "+e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.labels.value.formatter,i.value[r.value].value,e.unref(a.dataLabel)({p:t.value.style.labels.value.prefix,v:i.value[r.value].value,s:t.value.style.labels.value.suffix,r:t.value.style.labels.value.rounding}),{datapoint:i.value[r.value],seriesIndex:r.value})),1)):e.createCommentVNode("",!0),![void 0,null].includes(r.value)&&![null,void 0].includes(i.value[r.value].valueLabel)?(e.openBlock(),e.createElementBlock("span",q,"("+e.toDisplayString(i.value[r.value].valueLabel||0)+")",1)):e.createCommentVNode("",!0)],4),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`font-size:${t.value.style.title.subtitle.fontSize}px;color:${t.value.style.title.subtitle.color};font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${c.value.width} ${c.value.height}`,style:{overflow:"visible"}},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_positive_${n}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.bars.colors.positive,.05)}${e.unref(a.opacity)[l.intensity]}`},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.value.style.bars.colors.positive}${e.unref(a.opacity)[l.intensity]}`},null,8,O)],8,U))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_negative_${n}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.bars.colors.negative,.05)}${e.unref(a.opacity)[l.intensity]}`},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":`${t.value.style.bars.colors.negative}${e.unref(a.opacity)[l.intensity]}`},null,8,G)],8,j))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_datapoint_${n}_${v.value}`,cy:"50%",cx:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(l.color,.05)}${e.unref(a.opacity)[l.intensity]}`},null,8,X),e.createElementVNode("stop",{offset:"100%","stop-color":`${l.color}${e.unref(a.opacity)[l.intensity]}`},null,8,Y)],8,T))),256))]),!t.value.style.bars.shape||t.value.style.bars.shape==="square"?(e.openBlock(),e.createElementBlock("g",R,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x,y:l.y,height:l.height,width:l.width,fill:t.value.style.bars.colors.gradient.show?l.gradient:l.color,stroke:l.stroke,"stroke-width":t.value.style.bars.strokeWidth,rx:`${t.value.style.bars.borderRadius*l.proportion/12}%`,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,10,J))),256))])):(e.openBlock(),e.createElementBlock("g",K,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createBlock(F._sfc_main,{plot:{x:l.x+l.width/2,y:l.y+l.height/2},color:t.value.style.bars.colors.gradient.show?l.gradient:l.color,shape:t.value.style.bars.shape,radius:l.height*.4,class:e.normalizeClass({"vue-ui-sparkhistogram-shape":t.value.style.animation.show})},null,8,["plot","color","shape","radius","class"]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle",x:l.textAnchor,y:l.y-t.value.style.labels.value.fontSize/3+t.value.style.labels.value.offsetY,"font-size":t.value.style.labels.value.fontSize,"font-weight":t.value.style.labels.value.bold?"bold":"normal",fill:t.value.style.labels.value.color},e.toDisplayString(t.value.style.labels.value.prefix)+e.toDisplayString(isNaN(l.value)?"":Number(l.value.toFixed(t.value.style.labels.value.rounding)).toLocaleString())+e.toDisplayString(t.value.style.labels.value.suffix),9,Q))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[l.valueLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:l.y+l.height+t.value.style.labels.valueLabel.fontSize,"font-size":t.value.style.labels.valueLabel.fontSize,"text-anchor":"middle",fill:t.value.style.labels.valueLabel.color},e.toDisplayString(l.valueLabel),9,Z)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[l.timeLabel?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.textAnchor,y:c.value.height-t.value.style.labels.timeLabel.fontSize/2,"font-size":t.value.style.labels.timeLabel.fontSize,fill:t.value.style.labels.timeLabel.color,"text-anchor":"middle"},e.toDisplayString(l.timeLabel),9,ee)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{height:c.value.height,width:l.unitWidth,fill:"transparent",x:l.trapX,y:0,onMouseover:d=>r.value=n,onMouseleave:s[0]||(s[0]=d=>r.value=null),stroke:r.value!==null&&r.value===n?t.value.style.selector.stroke:"","stroke-width":r.value!==null&&r.value===n?t.value.style.selector.strokeWidth:0,rx:t.value.style.selector.borderRadius,"stroke-dasharray":t.value.style.selector.strokeDasharray,onClick:()=>C(l,n)},null,40,te)]))),256))],8,I)):e.createCommentVNode("",!0),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:2,config:{type:"sparkHistogram",style:{backgroundColor:t.value.style.backgroundColor,sparkHistogram:{color:"#CCCCCC"}}}},null,8,["config"]))],36))}},oe=A._export_sfc(le,[["__scopeId","data-v-7a469df4"]]);exports.default=oe;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DYUBiaGS.cjs"),I=require("./useNestedProp-w7AMWWmz.cjs"),G=require("./vue-ui-skeleton-ClpTCY1x.cjs"),S=require("./useResponsive-B3TrDDIG.cjs"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),j=["id"],R=["xmlns","viewBox"],H=["id"],U=["stop-color"],X=["stop-color"],Z=["id"],Y=["stop-color"],J=["stop-color"],K=["id"],Q=["stop-color"],ee=["stop-color"],te={key:0},le=["d","fill"],ae=["d","fill"],oe=["d","stroke","stroke-width"],ne=["x1","x2","y1","y2","stroke","stroke-width"],ue=["x","y","width","height","fill","rx"],re=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],se=["x1","x2","y1","y2","stroke","stroke-dasharray","stroke-width"],ie=["cx","cy","r","fill","stroke","stroke-width"],de=["x","y","font-size","font-weight","fill"],ce=["x","y","height","width","onMouseenter","onClick"],ve={__name:"vue-ui-sparkline",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},showInfo:{type:Boolean,default:!0},selectedIndex:{type:Number,default:void 0}},emits:["hoverIndex","selectDatapoint"],setup(f,{emit:_}){const i=f,{vue_ui_sparkline:M}=u.useConfig(),g=e.computed(()=>!!i.dataset&&i.dataset.length),v=e.ref(u.createUid()),x=e.ref(null),B=e.ref(null),t=e.computed({get:()=>L(),set:l=>l});function L(){const l=I.useNestedProp({userConfig:i.config,defaultConfig:M});return l.theme?{...I.useNestedProp({userConfig:u.themes.vue_ui_sparkline[l.theme]||i.config,defaultConfig:l})}:l}e.watch(()=>i.config,l=>{t.value=L(),C(),o.value.chartWidth=t.value.style.chartWidth},{deep:!0}),e.watch(()=>i.dataset,l=>{p.value=i.dataset.map(n=>({...n,value:[void 0].includes(n.value)?null:n.value}))},{deep:!0});const p=e.ref(z());function z(){return i.dataset.map(l=>t.value.style.animation.show?{...l,value:null}:{...l,value:[void 0].includes(l.value)?null:l.value})}const $=e.ref(null);e.onMounted(()=>{if(C(),t.value.style.animation.show&&i.dataset.length>1){let a=function(){n<i.dataset.length?(p.value.push(i.dataset[n]),setTimeout(()=>{requestAnimationFrame(a)},l)):p.value=i.dataset,n+=1};p.value=[];const l=t.value.style.animation.animationFrames/i.dataset.length;let n=0;a()}});function C(){if(u.objectIsEmpty(i.dataset)?u.error({componentName:"VueUiSparkline",type:"dataset"}):i.dataset.forEach((l,n)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["period","value"]}).forEach(a=>{u.error({componentName:"VueUiSparkline",type:"datasetSerieAttribute",property:a,index:n})})}),t.value.responsive){const l=S.throttle(()=>{const{width:n,height:a}=S.useResponsive({chart:x.value,title:t.value.style.title.show&&i.showInfo?B.value:null});o.value.width=n,o.value.height=a,o.value.chartWidth=t.value.style.chartWidth/500*n,o.value.padding=.06*n});$.value=new ResizeObserver(l),$.value.observe(x.value.parentNode)}}const o=e.ref({height:80,width:500,chartWidth:t.value.style.chartWidth,padding:30}),P=e.ref(6),r=e.computed(()=>({top:12,left:0,right:o.value.width,bottom:o.value.height-3,start:i.showInfo&&t.value.style.dataLabel.show&&t.value.style.dataLabel.position==="left"?o.value.width-o.value.chartWidth:o.value.padding,width:i.showInfo&&t.value.style.dataLabel.show?o.value.chartWidth:o.value.width-o.value.padding,height:o.value.height-12})),w=e.computed(()=>Math.min(...p.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0))),D=e.computed(()=>Math.max(...p.value.map(l=>isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0))),m=e.computed(()=>{const l=w.value>=0?0:w.value;return Math.abs(l)}),W=e.computed(()=>D.value+m.value+P.value),b=e.computed(()=>r.value.bottom-r.value.height*N(m.value));function N(l){return l/W.value}const h=e.computed(()=>i.dataset.length-1),s=e.computed(()=>p.value.map((l,n)=>{const a=isNaN(l.value)||[void 0,null,"NaN",NaN,1/0,-1/0].includes(l.value)?0:l.value||0;return{absoluteValue:a,period:l.period,plotValue:a+m.value,toMax:N(a+m.value),x:r.value.start+n*(r.value.width/(h.value+1)>o.padding?o.padding:r.value.width/(h.value+1)),y:r.value.bottom-r.value.height*N(a+m.value),id:`plot_${v.value}_${n}`,color:k.value?t.value.style.bar.color:t.value.style.area.useGradient?u.shiftHue(t.value.style.line.color,.05*(1-n/h.value)):t.value.style.line.color,width:r.value.width/(h.value+1)>o.padding?o.padding:r.value.width/(h.value+1)}})),A=e.computed(()=>{const l={x:s.value[0].x,y:o.value.height-6},n={x:s.value[s.value.length-1].x,y:o.value.height-6},a=[];return s.value.forEach(d=>{a.push(`${d.x},${d.y} `)}),[l.x,l.y,...a,n.x,n.y].toString()}),c=e.ref(void 0);function F(l,n){c.value=l,_("hoverIndex",{index:n})}function T(){c.value=void 0,_("hoverIndex",{index:void 0})}const y=e.computed(()=>{if(g.value){const l=s.value.map(a=>a.absoluteValue),n=l.reduce((a,d)=>a+d,0);return{latest:s.value[s.value.length-1].absoluteValue,sum:n,average:n/s.value.length,median:u.calcMedian(l),trend:u.calcLinearProgression(s.value.map(({x:a,y:d,absoluteValue:E})=>({x:a,y:d,value:E}))).trend}}else return{latest:null,sum:null,average:null,median:null,trend:null}}),V=e.computed(()=>g.value?t.value.style.dataLabel.valueType==="latest"?y.value.latest:t.value.style.dataLabel.valueType==="sum"?y.value.sum:t.value.style.dataLabel.valueType==="average"?y.value.average:0:0),k=e.computed(()=>t.value.type&&t.value.type==="bar");function q(l,n){_("selectDatapoint",{datapoint:l,index:n})}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"sparklineChart",ref:x,class:"vue-ui-sparkline",id:v.value,style:e.normalizeStyle(`width:100%;font-family:${t.value.style.fontFamily}`)},[e.renderSlot(l.$slots,"before",e.normalizeProps(e.guardReactiveProps({selected:c.value,latest:y.value.latest,sum:y.value.sum,average:y.value.average,median:y.value.median,trend:y.value.trend})),void 0,!0),t.value.style.title.show&&f.showInfo?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:B,class:"vue-ui-sparkline-title",style:e.normalizeStyle(`display:flex;align-items:center;width:100%;color:${t.value.style.title.color};background:${t.value.style.backgroundColor};justify-content:${t.value.style.title.textAlign==="left"?"flex-start":t.value.style.title.textAlign==="right"?"flex-end":"center"};height:${t.value.style.title.fontSize*2}px;font-size:${t.value.style.title.fontSize}px;font-weight:${t.value.style.title.bold?"bold":"normal"};`)},[e.createElementVNode("span",{style:e.normalizeStyle(`padding:${t.value.style.title.textAlign==="left"?"0 0 0 12px":t.value.style.title.textAlign==="right"?"0 12px 0 0":"0"}`)},e.toDisplayString(c.value?c.value.period:t.value.style.title.text),5)],4)):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${o.value.width} ${o.value.height}`,style:e.normalizeStyle(`background:${t.value.style.backgroundColor};overflow:visible`)},[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`sparkline_gradient_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(u.shiftHue)(t.value.style.area.color,.05)}${e.unref(u.opacity)[t.value.style.area.opacity]}`},null,8,U),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.area.color+e.unref(u.opacity)[t.value.style.area.opacity]},null,8,X)],8,H),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_pos_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.bar.color},null,8,Y),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(u.shiftHue)(t.value.style.bar.color,.05)}`},null,8,J)],8,Z),e.createElementVNode("linearGradient",{x2:"0%",y2:"100%",id:`sparkline_bar_gradient_neg_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(u.shiftHue)(t.value.style.bar.color,.05)}`},null,8,Q),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.bar.color},null,8,ee)],8,K)]),t.value.style.area.show&&!k.value&&s.value[0]?(e.openBlock(),e.createElementBlock("g",te,[t.value.style.line.smooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${s.value[0].x},${r.value.bottom} ${e.unref(u.createSmoothPath)(s.value)} L ${s.value.at(-1).x},${r.value.bottom} Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:`${t.value.style.area.color}${e.unref(u.opacity)[t.value.style.area.opacity]}`},null,8,le)):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M${A.value}Z`,fill:t.value.style.area.useGradient?`url(#sparkline_gradient_${v.value})`:`${t.value.style.area.color}${e.unref(u.opacity)[t.value.style.area.opacity]}`},null,8,ae))])):e.createCommentVNode("",!0),t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${e.unref(u.createSmoothPath)(s.value)}`,stroke:t.value.style.line.color,fill:"none","stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round"},null,8,oe)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("g",null,[d<s.value.length-1&&!t.value.style.line.smooth&&!k.value?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:s.value[d+1].x,y1:a.y,y2:s.value[d+1].y,stroke:a.color,"stroke-width":t.value.style.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"geometricPrecision"},null,8,ne)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock("rect",{key:1,x:a.x-a.width/2,y:a.absoluteValue>0?a.y:b.value,width:a.width,height:Math.abs(a.y-b.value),fill:a.absoluteValue>0?`url(#sparkline_bar_gradient_pos_${v.value})`:`url(#sparkline_bar_gradient_neg_${v.value})`,rx:t.value.style.bar.borderRadius},null,8,ue)):e.createCommentVNode("",!0),t.value.style.verticalIndicator.show&&(c.value&&a.id===c.value.id||f.selectedIndex===d)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:a.x,x2:a.x,y1:r.value.top-6,y2:r.value.bottom,stroke:t.value.style.verticalIndicator.color||a.color,"stroke-width":t.value.style.verticalIndicator.strokeWidth,"stroke-linecap":"round","stroke-dasharray":t.value.style.verticalIndicator.strokeDasharray||0},null,8,re)):e.createCommentVNode("",!0)]))),256)),w.value<0?(e.openBlock(),e.createElementBlock("line",{key:2,x1:r.value.start,x2:r.value.start+r.value.width-16,y1:b.value,y2:b.value,stroke:t.value.style.zeroLine.color,"stroke-dasharray":t.value.style.zeroLine.strokeWidth*2,"stroke-width":t.value.style.zeroLine.strokeWidth,"stroke-linecap":"round"},null,8,se)):e.createCommentVNode("",!0),t.value.style.plot.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("g",null,[c.value&&a.id===c.value.id||f.selectedIndex===d?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:a.x,cy:a.y,r:t.value.style.plot.radius,fill:a.color,stroke:t.value.style.plot.stroke,"stroke-width":t.value.style.plot.strokeWidth},null,8,ie)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),f.showInfo&&t.value.style.dataLabel.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:t.value.style.dataLabel.position==="left"?12+t.value.style.dataLabel.offsetX:r.value.width+12+t.value.style.dataLabel.offsetX,y:o.value.height/2+t.value.style.dataLabel.fontSize/2.5+t.value.style.dataLabel.offsetY,"font-size":t.value.style.dataLabel.fontSize,"font-weight":t.value.style.dataLabel.bold?"bold":"normal",fill:t.value.style.dataLabel.color},e.toDisplayString(c.value?e.unref(u.applyDataLabel)(t.value.style.dataLabel.formatter,c.value.absoluteValue,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:c.value.absoluteValue,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}),{datapoint:c.value}):e.unref(u.applyDataLabel)(t.value.style.dataLabel.formatter,V.value,e.unref(u.dataLabel)({p:t.value.style.dataLabel.prefix,v:V.value,s:t.value.style.dataLabel.suffix,r:t.value.style.dataLabel.roundingValue}))),9,de)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,d)=>(e.openBlock(),e.createElementBlock("rect",{x:a.x-(r.value.width/(h.value+1)>o.value.padding?o.value.padding:r.value.width/(h.value+1))/2,y:r.value.top-6,height:r.value.height+6,width:r.value.width/(h.value+1)>o.value.padding?o.value.padding:r.value.width/(h.value+1),fill:"transparent",onMouseenter:E=>F(a,d),onMouseleave:T,onClick:()=>q(a,d)},null,40,ce))),256)),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],12,R)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G.default,{key:2,config:{type:"sparkline",style:{backgroundColor:t.value.style.backgroundColor,sparkline:{color:"#CCCCCC"}}}},null,8,["config"]))],12,j))}},he=O._export_sfc(ve,[["__scopeId","data-v-f99c381b"]]);exports.default=he;
@@ -1,4 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-DYUBiaGS.cjs"),ue=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-XBiDFYKD.cjs"),ie=require("./usePrinter-ZlHxdaEz.cjs"),$e=require("./Tooltip-DxtWkIt5.cjs"),se=require("./Legend-CtbPB0Bo.cjs"),Se=require("./vue-ui-skeleton-ClpTCY1x.cjs"),Ve=require("./BaseIcon--PMhZ3f-.cjs"),Te=require("./vue-ui-accordion-1WxrfiCH.cjs"),ce=require("./useNestedProp-w7AMWWmz.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ee=["id"],Le=["onClick"],ze=["xmlns","viewBox"],Pe=["id"],De=["stop-color"],Fe=["stop-color"],Me=["x","y","width","height","fill","rx"],Ie=["x","y","width","height","fill","rx","stroke","stroke-width"],Oe=["x2","y1","y2","stroke","stroke-width"],Re=["x1","x2","y1","y2","stroke","stroke-width"],qe=["x","y","text-anchor","font-size","fill","font-weight"],He=["x","y","font-size","fill","font-weight"],Xe=["x","y","font-size","fill","font-weight"],Ae=["x","y","font-size","fill","font-weight"],Ue=["y","width","height","fill","onMouseenter"],je={key:4,class:"vue-data-ui-watermark"},Ge=["onClick"],We={style:"width:100%;padding-top: 36px;position:relative"},Ye={class:"vue-ui-data-table"},Ke={key:0},Je={style:{width:"100%"}},Qe=["data-cell"],Ze={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},et=["data-cell"],tt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},lt=["data-cell"],at={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ot=["data-cell"],nt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},rt=["data-cell"],ut={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},it=["data-cell"],st={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ct=["data-cell"],dt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vt={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(de,{expose:ve,emit:he}){const y=de;e.useCssVars(a=>({f13b9132:a.tdo}));const{vue_ui_vertical_bar:pe}=n.useConfig(),B=e.computed(()=>!!y.dataset&&y.dataset.length),C=e.ref(n.createUid()),ye=e.ref(null),P=e.ref(!1),D=e.ref(""),E=e.ref(0),ge=e.ref(null),R=e.ref(0),$=e.ref(null),q=e.ref(null),F=e.ref(null),H=e.ref(0),M=e.ref(0),t=e.computed({get:()=>X(),set:a=>a});function X(){const a=ce.useNestedProp({userConfig:y.config,defaultConfig:pe});return a.theme?{...ce.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[a.theme]||y.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}e.watch(()=>y.config,a=>{t.value=X(),J(),H.value+=1,M.value+=1,i.value=t.value.style.chart.layout.bars.height,c.value=t.value.style.chart.layout.bars.gap},{deep:!0}),e.watch(()=>y.dataset,z,{deep:!0});const{isPrinting:A,isImaging:U,generatePdf:j,generateImage:G}=ie.usePrinter({elementId:`vue-ui-vertical-bar_${C.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),W=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),Y=e.ref(null),K=e.ref(!1),fe=e.computed(()=>t.value.table.responsiveBreakpoint),L=e.ref(null);e.onMounted(()=>{J()});function J(){if(n.objectIsEmpty(y.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),E.value=y.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),be(),t.value.responsive){const a=ue.throttle(()=>{const{width:o,height:l}=ue.useResponsive({chart:$.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?F.value:null});ee.value=o,i.value=l/E.value-c.value*2});L.value=new ResizeObserver(a),L.value.observe($.value.parentNode)}}e.onBeforeUnmount(()=>{L.value&&L.value.disconnect()});function be(){new ResizeObserver(o=>{o.forEach(l=>{K.value=l.contentRect.width<fe.value})}).observe(Y.value)}const p=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),Q=e.computed(()=>p.value.sortDesc),_=e.computed(()=>(y.dataset.forEach((a,o)=>{!a.value&&!a.children&&n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`value (index ${o})`}),a.children&&(n.objectIsEmpty(a.children)?n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,r)=>{[null,void 0].includes(l.name)&&n.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:r})}))}),y.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${C.value}`,r=a.children&&a.children.length>0,v=n.checkNaN(a.value?a.value:r?a.children.map(h=>h.value||0).reduce((h,m)=>h+m,0):0),s=v>=0?1:-1;return{...a,id:l,shape:"square",opacity:f.value.includes(l)?.5:1,value:Math.abs(v),sign:s,hasChildren:r,isChild:!1,segregate:()=>S(l),isSegregated:f.value.includes(l),color:n.convertColorToHex(a.color)||W.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted((h,m)=>Q.value?m.value-h.value:h.value-m.value).map((h,m)=>({...h,value:n.checkNaN(Math.abs(h.value)),sign:h.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:v,parentSign:s,id:`vertical_child_${o}_${m}_${C.value}`,childIndex:m,color:n.convertColorToHex(h.color)||n.convertColorToHex(a.color)||W.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((h,m)=>({...h,isFirstChild:m===0,isLastChild:m===a.children.length-1}))}}).toSorted((a,o)=>Q.value?o.value-a.value:a.value-o.value))),Z=e.computed(()=>({cy:"vertical-bar-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":""})),i=e.ref(t.value.style.chart.layout.bars.height),c=e.ref(t.value.style.chart.layout.bars.gap),me=e.computed(()=>(i.value+c.value)*E.value),ee=e.ref(512),d=e.computed(()=>({width:ee.value,height:me.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:d.value.padding.top+d.value.padding.bottom+d.value.height,top:d.value.padding.top,left:d.value.padding.left,right:d.value.width-d.value.padding.right,bottom:d.value.padding.top+d.value.height,width:d.value.width-(d.value.padding.left+d.value.padding.right)}));function z(){E.value=x.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const f=e.ref([]);function S(a){f.value.includes(a)?f.value=f.value.filter(o=>o!==a):f.value.push(a),z(),he("selectLegend",x.value)}const x=e.computed(()=>_.value.filter(a=>!f.value.includes(a.id))),b=e.computed(()=>x.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function te(a,o=!1,l=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(a)/b.value*100),s:"%",r:l}):Math.abs(a)/b.value}const N=e.computed(()=>x.value.flatMap(a=>a.hasChildren?a.children:a)),w=e.computed(()=>N.value.map(a=>a.sign).includes(-1)),ke=e.computed(()=>Math.max(...x.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function k(a){const o=a/ke.value;return u.value.width/(w.value?2:1)*o}function Ce(a){return k(a)+u.value.left}function V(a,o){const l=x.value.find(s=>s.id===a.parentId),r=u.value.top+(c.value+i.value)*o,v=l.children.length*(c.value+i.value);return{y:r+v/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:l.name,value:[void 0,NaN,null].includes(l.value)?"":l.sign===1?l.value:-l.value,percentageToTotal:isNaN(l.value/b.value)?"":te(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function _e(){return x.value}const I=e.ref(null),O=e.ref(null);function xe(a,o){O.value={datapoint:a,seriesIndex:o,series:_.value,config:t.value},P.value=!0,I.value=a.id;let l="";const r=a.isChild?a.parentName:a.name,v=a.isChild?a.name:"",s=t.value.style.chart.tooltip.customFormat;n.isFunction(s)&&n.functionReturnsString(()=>s({datapoint:a,series:_.value,config:t.value,seriesIndex:o}))?D.value=s({datapoint:a,series:_.value,config:t.value,seriesIndex:o}):(l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
2
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${r}</div>
3
- ${v?`<div>${v}</div>`:""}
4
- </div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,n.dataLabel({p:t.value.style.chart.tooltip.prefix,v:a.sign===1?a.value:-a.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(l+=`<div>${t.value.translations.percentageToTotal} : <b>${n.dataLabel({v:Math.abs(a.value)/b.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${n.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),D.value=`<div style="text-align:left">${l}</div>`)}function le(a,o,l,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const v=n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n.checkNaN(r===-1&&a>=0?-a:a),n.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n.checkNaN(r===-1&&a>=0?-a:a),s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:l}),s=`(${te(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${v}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${s}`:""}`}const g=e.computed(()=>{const a=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=N.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/b.value,childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/b.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/b.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/b.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function ae(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=g.value.head,l=g.value.body.map(s=>[s.parentName,s.parentValue,s.percentageToTotal,s.childName,s.childValue,s.childPercentageToParent,s.childPercentageToTotal]),r=a.concat([o]).concat(l),v=n.createCsvContent(r);n.downloadCsv({csvContent:v,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const T=e.ref(!1);function Ne(a){T.value=a,R.value+=1}function oe(){p.value.showTable=!p.value.showTable}function ne(){p.value.sortDesc=!p.value.sortDesc,z()}function re(){p.value.showTooltip=!p.value.showTooltip}return ve({getData:_e,recalculateHeight:z,generatePdf:j,generateCsv:ae,generateImage:G,toggleTable:oe,toggleSort:ne,toggleTooltip:re}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:$,id:`vue-ui-vertical-bar_${C.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:q,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:12px`)},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&B.value?(e.openBlock(),e.createBlock(ie.UserOptions,{ref_key:"details",ref:ye,key:`user_options_${R.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(U),isPrinting:e.unref(A),uid:C.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.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,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:T.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,onToggleFullscreen:Ne,onGeneratePdf:e.unref(j),onGenerateCsv:ae,onGenerateImage:e.unref(G),onToggleTable:oe,onToggleSort:ne,onToggleTooltip:re},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartLegend",ref:F},[(e.openBlock(),e.createBlock(se.Legend,{key:`legend_top_${M.value}`,legendSet:_.value,config:Z.value,onClickMarker:o[0]||(o[0]=({legend:l})=>S(l.id))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:v=>S(l.id),style:e.normalizeStyle(`opacity:${f.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,Le)]),_:1},8,["legendSet","config"]))],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${C.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":`${e.unref(n.shiftHue)(l.color,.03)}${e.unref(n.opacity)[100-t.value.style.chart.layout.bars.gradientIntensity]}`},null,8,Fe)],8,Pe))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:k(l.value)<=0?1e-4:k(l.value)):u.value.left),y:u.value.top+(c.value+i.value)*r,width:e.unref(n.checkNaN)(k(l.value)<=0?1e-4:k(l.value)),height:i.value<=0?1e-4:i.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Me)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:k(l.value)<=0?1e-4:k(l.value)):u.value.left),y:u.value.top+(c.value+i.value)*r,width:e.unref(n.checkNaN)(k(l.value)<=0?1e-4:k(l.value)),height:i.value<=0?1e-4:i.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${C.value}_${r})`:`${l.color}${e.unref(n.opacity)[t.value.style.chart.layout.bars.fillOpacity]}`,rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ie),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==N.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:u.value.left,y1:i.value+c.value/2+u.value.top+(c.value+i.value)*r,y2:i.value+c.value/2+u.value.top+(c.value+i.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Oe)):e.createCommentVNode("",!0),w.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Re)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:w.value?u.value.left+u.value.width/2+(l.sign===1?-12:12)+(l.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):Ce(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(c.value+i.value)*r+i.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!w.value||l.sign===-1?"start":"end","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(le(l.value,l,r,l.sign)),9,qe),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(c.value+i.value)*r+i.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(l.name),9,He)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:V(l,r).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(V(l,r).name),9,Xe)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:V(l,r).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(le(V(l,r).value),V(l,r),r,l.parentSign||l.sign),9,Ae)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(c.value+i.value)*r-c.value/2,width:d.value.width<=0?1e-4:d.value.width,height:i.value+c.value<=0?1e-4:i.value+c.value,fill:I.value===l.id?`${t.value.style.chart.layout.highlighter.color}${e.unref(n.opacity)[t.value.style.chart.layout.highlighter.opacity]}`:"transparent",onMouseenter:v=>xe(l,r),onMouseleave:o[1]||(o[1]=v=>{ge.value=null,P.value=!1,I.value=null})},null,40,Ue)]))),256)),e.renderSlot(a.$slots,"svg",{svg:d.value},void 0,!0)],14,ze)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:5,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"chartLegend",ref:F},[(e.openBlock(),e.createBlock(se.Legend,{key:`legend_bottom_${M.value}`,legendSet:_.value,config:Z.value,onClickMarker:o[2]||(o[2]=({legend:l})=>S(l.id))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:v=>S(l.id),style:e.normalizeStyle(`opacity:${f.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,Ge)]),_:1},8,["legendSet","config"]))],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:_.value},void 0,!0),e.createVNode($e._sfc_main,{show:p.value.showTooltip&&P.value&&f.value.length<y.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:$.value,content:D.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),B.value?(e.openBlock(),e.createBlock(Te.default,{key:7,hideDetails:"",config:{open:p.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.createElementVNode("div",{ref_key:"tableContainer",ref:Y,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",We,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=l=>p.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>p.value.showTable=!1,["enter"]))},[e.createVNode(Ve.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":K.value})},[e.createElementVNode("table",Ye,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Ke,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",Je,e.toDisplayString(l),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(b.value)?"":b.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.body,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":g.value.head[0]??""},[e.createElementVNode("div",Ze,[l.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${l.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(l.parentName),1)])],12,Qe),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[1]??""},[e.createElementVNode("div",tt,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.parentValue)?"":l.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,et),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[2]??""},[e.createElementVNode("div",at,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,lt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[3]??""},[e.createElementVNode("div",nt,e.toDisplayString(l.childName),1)],12,ot),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[4]??""},[e.createElementVNode("div",ut,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.childValue)?"":l.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,rt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[5]??""},[e.createElementVNode("div",st,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,it),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[6]??""},[e.createElementVNode("div",dt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,ct)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ee))}},ht=Be._export_sfc(vt,[["__scopeId","data-v-d4a13ad8"]]);exports.default=ht;