vue-data-ui 2.3.95 → 2.3.97

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 (144) hide show
  1. package/dist/{Arrow-ClB1PHpS.js → Arrow-BAg5kQhG.js} +1 -1
  2. package/dist/{Arrow-OPbsbOoM.cjs → Arrow-CD-z6ya0.cjs} +1 -1
  3. package/dist/{BaseIcon-ZChy8GeS.js → BaseIcon-CiQsJmEc.js} +6 -6
  4. package/dist/{BaseIcon-CGKu0qTV.cjs → BaseIcon-JWYc0t9a.cjs} +1 -1
  5. package/dist/{DataTable-B9SSwFM2.js → DataTable-BczvA492.js} +2 -2
  6. package/dist/{DataTable-CUi5w5e6.cjs → DataTable-DRJUrEXP.cjs} +1 -1
  7. package/dist/{Legend-DP-Tm5Kr.cjs → Legend-DDmBZxt8.cjs} +1 -1
  8. package/dist/{Legend-D4PxDNTf.js → Legend-DnOc-JGW.js} +1 -1
  9. package/dist/{PackageVersion-I1_4jcn_.js → PackageVersion-DN8qp-uI.js} +1 -1
  10. package/dist/{PackageVersion-DdGAD2ox.cjs → PackageVersion-rOhPenOY.cjs} +1 -1
  11. package/dist/{Shape-DRb45Knl.cjs → Shape-CDDjN4N-.cjs} +1 -1
  12. package/dist/{Shape-DVc7K58k.js → Shape-DhRVUsKe.js} +1 -1
  13. package/dist/{Slicer-Bk9LTQad.js → Slicer-B7JFT6tT.js} +2 -2
  14. package/dist/{Slicer-D7S48Lno.cjs → Slicer-IdC3VhM9.cjs} +1 -1
  15. package/dist/{Title-Cxlu3Etv.js → Title-0tYDaWv7.js} +1 -1
  16. package/dist/{Title-DcXqsD3c.cjs → Title-Cjusozo5.cjs} +1 -1
  17. package/dist/{Tooltip-onlvaIFL.cjs → Tooltip-CkqTs_wn.cjs} +1 -1
  18. package/dist/{Tooltip-Bt9pHzBM.js → Tooltip-DdWGiVyf.js} +1 -1
  19. package/dist/{index-DK7qqHGP.js → index-BJNSbAx7.js} +2 -2
  20. package/dist/{index-BwtKB_oG.cjs → index-NvxTr0fZ.cjs} +2 -2
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-0nRX_rTi.js → useNestedProp-CLh4tPxT.js} +1 -1
  23. package/dist/{useNestedProp-CE6ustAp.cjs → useNestedProp-DhLxBAwX.cjs} +1 -1
  24. package/dist/{usePrinter-BMJj8aqh.cjs → usePrinter-0s8wVGIy.cjs} +1 -1
  25. package/dist/{usePrinter-Cza87yNE.js → usePrinter-CkV5eORP.js} +1 -1
  26. package/dist/{vue-data-ui-C_TmwtMr.js → vue-data-ui-CyOAruHW.js} +57 -57
  27. package/dist/{vue-data-ui-Hk08-jMu.cjs → vue-data-ui-OR4tWNiS.cjs} +1 -1
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/{vue-ui-3d-bar-C7dVjCP4.js → vue-ui-3d-bar-CxDdjFAw.js} +8 -8
  31. package/dist/{vue-ui-3d-bar-DLpRGWHF.cjs → vue-ui-3d-bar-DrnEff_D.cjs} +1 -1
  32. package/dist/{vue-ui-accordion-CM2NnUan.cjs → vue-ui-accordion-CxPjShWo.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-5C4CP3gA.js → vue-ui-accordion-DDf5Y2GY.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-mLYneMWu.js → vue-ui-age-pyramid-BMjBTeyH.js} +9 -9
  35. package/dist/{vue-ui-age-pyramid-CTvGXHzp.cjs → vue-ui-age-pyramid-BiHpf1Rk.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-CPZoIz9j.cjs → vue-ui-annotator--NmsTiIf.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-BB0EN1X8.js → vue-ui-annotator-B-myvrhe.js} +1 -1
  38. package/dist/{vue-ui-candlestick-BqH7QdhN.cjs → vue-ui-candlestick-DSwIFt7i.cjs} +1 -1
  39. package/dist/{vue-ui-candlestick-91SHWtIZ.js → vue-ui-candlestick-J1JpFsJT.js} +10 -10
  40. package/dist/{vue-ui-carousel-table-Dvr8K0wL.js → vue-ui-carousel-table-B62mAFeV.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-Cj9K0i-8.cjs → vue-ui-carousel-table-Cg3I81MW.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-C8-hqYVj.js → vue-ui-chestnut-ChAwKgeO.js} +7 -7
  43. package/dist/{vue-ui-chestnut-BMbO3LQx.cjs → vue-ui-chestnut-lQvVg9Rn.cjs} +1 -1
  44. package/dist/{vue-ui-cursor-CiNq70Vh.cjs → vue-ui-cursor-D-qe8qez.cjs} +1 -1
  45. package/dist/{vue-ui-cursor-fOFRnGWg.js → vue-ui-cursor-XXjnAIH2.js} +2 -2
  46. package/dist/{vue-ui-dashboard-emcX9lzJ.cjs → vue-ui-dashboard-CB41KQ7y.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-XROIeMZs.js → vue-ui-dashboard-CC-DF6iU.js} +2 -2
  48. package/dist/{vue-ui-digits-Fx6hf8lh.cjs → vue-ui-digits-CIHkrLL6.cjs} +1 -1
  49. package/dist/{vue-ui-digits-Dao_RHVG.js → vue-ui-digits-Degwjx76.js} +2 -2
  50. package/dist/{vue-ui-donut-D5q_f9RX.js → vue-ui-donut-CYBpOCFo.js} +17 -13
  51. package/dist/{vue-ui-donut-evolution-Dnx-o2Ok.cjs → vue-ui-donut-evolution-Bbt27unL.cjs} +1 -1
  52. package/dist/{vue-ui-donut-evolution-ciU7PKzb.js → vue-ui-donut-evolution-Bxq-hr-P.js} +10 -10
  53. package/dist/vue-ui-donut-jwD3vNoD.cjs +1 -0
  54. package/dist/{vue-ui-dumbbell-DkX4VmBe.cjs → vue-ui-dumbbell-7f9d2mh-.cjs} +1 -1
  55. package/dist/{vue-ui-dumbbell-nLr7lvcv.js → vue-ui-dumbbell-KsVxecua.js} +9 -9
  56. package/dist/{vue-ui-flow-smeC886u.cjs → vue-ui-flow-BzcB3iiZ.cjs} +1 -1
  57. package/dist/{vue-ui-flow-B6HJtYfr.js → vue-ui-flow-FqXhCo7u.js} +8 -8
  58. package/dist/{vue-ui-galaxy-Ts-pIaqK.js → vue-ui-galaxy-B9rSYr7m.js} +10 -10
  59. package/dist/{vue-ui-galaxy-Buek4k31.cjs → vue-ui-galaxy-xVldWSiq.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-CB1FXw50.cjs → vue-ui-gauge-B4r-qdzi.cjs} +1 -1
  61. package/dist/{vue-ui-gauge-CokjkUw7.js → vue-ui-gauge-k6fqkXqN.js} +6 -6
  62. package/dist/{vue-ui-gizmo-CQzBf-wG.cjs → vue-ui-gizmo-By3-mz_t.cjs} +1 -1
  63. package/dist/{vue-ui-gizmo-DcGemMpp.js → vue-ui-gizmo-CYaThghf.js} +3 -3
  64. package/dist/{vue-ui-heatmap-B3eEfpF_.cjs → vue-ui-heatmap-B0w5CXLi.cjs} +1 -1
  65. package/dist/{vue-ui-heatmap-BBVeSW2b.js → vue-ui-heatmap-Bdffdnay.js} +9 -9
  66. package/dist/{vue-ui-kpi-0FoMbSuC.cjs → vue-ui-kpi-BqN5GILt.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-CPMnrH0b.js → vue-ui-kpi-DG8_lFYS.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Dpn4tXn2.js → vue-ui-mini-loader-BZS_gsWT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-DNrvLX3D.cjs → vue-ui-mini-loader-C-Na_wY7.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-C98VGiyq.js → vue-ui-molecule-BK6bSbRU.js} +10 -10
  71. package/dist/{vue-ui-molecule-CKFgcQYg.cjs → vue-ui-molecule-Cdg96qiI.cjs} +1 -1
  72. package/dist/{vue-ui-mood-radar-DN0allOW.cjs → vue-ui-mood-radar-D-BCyG9b.cjs} +1 -1
  73. package/dist/{vue-ui-mood-radar-CD3cjrDN.js → vue-ui-mood-radar-D5GRHLEE.js} +10 -10
  74. package/dist/{vue-ui-nested-donuts-Bdl_tUXJ.cjs → vue-ui-nested-donuts-D1fD0b-H.cjs} +1 -1
  75. package/dist/{vue-ui-nested-donuts-B__WecmQ.js → vue-ui-nested-donuts-mxJHstX4.js} +10 -10
  76. package/dist/{vue-ui-onion-U8VRuYjQ.js → vue-ui-onion-6mkIHe9R.js} +10 -10
  77. package/dist/{vue-ui-onion-4g5ewsye.cjs → vue-ui-onion-vKC5zZVM.cjs} +1 -1
  78. package/dist/{vue-ui-parallel-coordinate-plot-9WvsfJtY.js → vue-ui-parallel-coordinate-plot-B_gGjFqe.js} +11 -11
  79. package/dist/{vue-ui-parallel-coordinate-plot-CdegwDSr.cjs → vue-ui-parallel-coordinate-plot-DqbwxRdK.cjs} +1 -1
  80. package/dist/{vue-ui-quadrant-D2SDPxFH.cjs → vue-ui-quadrant-C54oPX3B.cjs} +1 -1
  81. package/dist/{vue-ui-quadrant-DMto8r-E.js → vue-ui-quadrant-SEj9AJdW.js} +11 -11
  82. package/dist/{vue-ui-quick-chart-YlkEojCz.js → vue-ui-quick-chart-CqmbqQdH.js} +190 -195
  83. package/dist/vue-ui-quick-chart-DoEE3OMA.cjs +15 -0
  84. package/dist/{vue-ui-radar-lg4R0yio.js → vue-ui-radar-CKjssi06.js} +11 -11
  85. package/dist/{vue-ui-radar-DdPAZvLB.cjs → vue-ui-radar-Dr91p7eK.cjs} +1 -1
  86. package/dist/{vue-ui-rating-B7erplTm.cjs → vue-ui-rating-DQvO4ejI.cjs} +1 -1
  87. package/dist/{vue-ui-rating-BxV1W8_t.js → vue-ui-rating-DUSE6rvR.js} +2 -2
  88. package/dist/{vue-ui-relation-circle-BviKM7qW.js → vue-ui-relation-circle-BmijKEEN.js} +6 -6
  89. package/dist/{vue-ui-relation-circle-RHy8p_Rq.cjs → vue-ui-relation-circle-D089YHBB.cjs} +1 -1
  90. package/dist/{vue-ui-rings-Bn-nQaV1.js → vue-ui-rings-BtzbZYTW.js} +10 -10
  91. package/dist/{vue-ui-rings-DMksrRmV.cjs → vue-ui-rings-D237PxGP.cjs} +1 -1
  92. package/dist/{vue-ui-scatter-BdTMgLFD.js → vue-ui-scatter-BeKQhHUw.js} +11 -11
  93. package/dist/{vue-ui-scatter-DJ0wpNbL.cjs → vue-ui-scatter-_bZ2lVMS.cjs} +1 -1
  94. package/dist/{vue-ui-screenshot-D0XIDX5K.cjs → vue-ui-screenshot-CnwCy_Kg.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-beg_Jx2O.js → vue-ui-screenshot-DNuimpRf.js} +1 -1
  96. package/dist/{vue-ui-skeleton-CQnYuosp.js → vue-ui-skeleton-CsU74BI7.js} +3 -3
  97. package/dist/{vue-ui-skeleton-snFRuZgs.cjs → vue-ui-skeleton-DYHqPo98.cjs} +1 -1
  98. package/dist/{vue-ui-smiley-BUlMGmlz.cjs → vue-ui-smiley-D150KQ7d.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-3x3w-9Zh.js → vue-ui-smiley-d0tQ2o9w.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-Ds7Vnwpb.cjs → vue-ui-spark-trend-BDibnFmx.cjs} +1 -1
  101. package/dist/{vue-ui-spark-trend-LsojHGxX.js → vue-ui-spark-trend-CtZdqmLI.js} +5 -5
  102. package/dist/{vue-ui-sparkbar-DJAZa23-.cjs → vue-ui-sparkbar-BpFs4ZhV.cjs} +1 -1
  103. package/dist/{vue-ui-sparkbar-45yFHmFN.js → vue-ui-sparkbar-C-HlLkKi.js} +4 -4
  104. package/dist/{vue-ui-sparkgauge-D-hauinY.js → vue-ui-sparkgauge-BDRCFVP5.js} +4 -4
  105. package/dist/{vue-ui-sparkgauge-CnMl3jNc.cjs → vue-ui-sparkgauge-BHBI7l12.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-DaeMxgM8.js → vue-ui-sparkhistogram-B5nNXynh.js} +5 -5
  107. package/dist/{vue-ui-sparkhistogram-vLsGWKZe.cjs → vue-ui-sparkhistogram-BjWnqdfo.cjs} +1 -1
  108. package/dist/{vue-ui-sparkline-DDwGkMVO.cjs → vue-ui-sparkline-DpnhvlTf.cjs} +1 -1
  109. package/dist/{vue-ui-sparkline-Ddi4Jz8I.js → vue-ui-sparkline-o3mpXRV-.js} +4 -4
  110. package/dist/{vue-ui-sparkstackbar-1_EPRHfC.js → vue-ui-sparkstackbar-Bko-XhdQ.js} +4 -4
  111. package/dist/{vue-ui-sparkstackbar-wbl8ZH9S.cjs → vue-ui-sparkstackbar-CST5NcMP.cjs} +1 -1
  112. package/dist/{vue-ui-stackbar-BKojs76u.cjs → vue-ui-stackbar-B3nyr_3-.cjs} +1 -1
  113. package/dist/{vue-ui-stackbar-0cKpezVg.js → vue-ui-stackbar-Br1WGSyo.js} +11 -11
  114. package/dist/{vue-ui-strip-plot-D_7VbcMM.js → vue-ui-strip-plot-C7Q-J22i.js} +10 -10
  115. package/dist/{vue-ui-strip-plot-BPICqL2j.cjs → vue-ui-strip-plot-DkAf9HPJ.cjs} +1 -1
  116. package/dist/{vue-ui-table-B1kfbP6Q.cjs → vue-ui-table-1vOGIOAk.cjs} +1 -1
  117. package/dist/{vue-ui-table-BTdufdp5.js → vue-ui-table-BTXo44Nv.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-CrXS3ruF.cjs → vue-ui-table-heatmap-BNcfBY7T.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-UKF0bVRc.js → vue-ui-table-heatmap-BosdMOLZ.js} +4 -4
  120. package/dist/{vue-ui-table-sparkline-DnViPd7H.cjs → vue-ui-table-sparkline-BGCEgn2A.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-CbhcBl__.js → vue-ui-table-sparkline-D0NjMfnV.js} +5 -5
  122. package/dist/{vue-ui-thermometer-BTb0KKkD.js → vue-ui-thermometer-Bnn77E-v.js} +6 -6
  123. package/dist/{vue-ui-thermometer-CGlN3EdJ.cjs → vue-ui-thermometer-CUBnp6lX.cjs} +1 -1
  124. package/dist/{vue-ui-timer-Ca8z8fpL.cjs → vue-ui-timer-D2WCDGWF.cjs} +1 -1
  125. package/dist/{vue-ui-timer-DsXON-oQ.js → vue-ui-timer-JupC7c3X.js} +5 -5
  126. package/dist/{vue-ui-tiremarks-C2FsHymJ.js → vue-ui-tiremarks-Db9JjYq5.js} +6 -6
  127. package/dist/{vue-ui-tiremarks-DfQgIZ-v.cjs → vue-ui-tiremarks-FxWaEnUD.cjs} +1 -1
  128. package/dist/{vue-ui-treemap-COGNksGL.js → vue-ui-treemap-DPD9rcYE.js} +10 -10
  129. package/dist/{vue-ui-treemap-Ijgu5Uxo.cjs → vue-ui-treemap-oplXghMz.cjs} +1 -1
  130. package/dist/{vue-ui-vertical-bar-C8q8aSVA.cjs → vue-ui-vertical-bar-BrOR3Xkc.cjs} +1 -1
  131. package/dist/{vue-ui-vertical-bar-CSk11lJL.js → vue-ui-vertical-bar-DeUOAiy4.js} +10 -10
  132. package/dist/{vue-ui-waffle-BAFi3Ix0.cjs → vue-ui-waffle-DGrZjGQR.cjs} +1 -1
  133. package/dist/{vue-ui-waffle-nhWigJK4.js → vue-ui-waffle-qvh8AKep.js} +10 -10
  134. package/dist/{vue-ui-wheel-CDcGk_zm.cjs → vue-ui-wheel-CuEobbmN.cjs} +1 -1
  135. package/dist/{vue-ui-wheel-DjPcnznT.js → vue-ui-wheel-DmG03DhW.js} +6 -6
  136. package/dist/{vue-ui-word-cloud-BwgErpI2.cjs → vue-ui-word-cloud-CbnPyd1_.cjs} +1 -1
  137. package/dist/{vue-ui-word-cloud-DFGYfQfb.js → vue-ui-word-cloud-Dg0WQKL1.js} +9 -9
  138. package/dist/{vue-ui-xy-BT3XcRoD.js → vue-ui-xy-BBlRgHyb.js} +13 -13
  139. package/dist/{vue-ui-xy-canvas-AgaDG8-s.js → vue-ui-xy-canvas-CqyEve92.js} +10 -10
  140. package/dist/{vue-ui-xy-canvas-BPRpgAOu.cjs → vue-ui-xy-canvas-CzCS04yK.cjs} +1 -1
  141. package/dist/{vue-ui-xy-CTxjevvM.cjs → vue-ui-xy-gHnKcmgZ.cjs} +1 -1
  142. package/package.json +1 -1
  143. package/dist/vue-ui-donut-Bf7irbZr.cjs +0 -1
  144. package/dist/vue-ui-quick-chart-BLom9Z1d.cjs +0 -15
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-BwtKB_oG.cjs"),xe=require("./useResponsive-B3TrDDIG.cjs"),ne=require("./BaseIcon-CGKu0qTV.cjs"),Pe=require("./Tooltip-onlvaIFL.cjs"),Se=require("./usePrinter-BMJj8aqh.cjs"),Te=require("./Slicer-D7S48Lno.cjs"),Re=require("./vue-ui-skeleton-snFRuZgs.cjs"),be=require("./useNestedProp-CE6ustAp.cjs"),Ie=require("./PackageVersion-DdGAD2ox.cjs"),Oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},De=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function Me({dataset:s,barLineSwitch:B=6}){let h=null,L=null,z=0;if((typeof s=="number"||typeof s=="string")&&console.warn(`The provided dataset (${s}) is not sufficient to build a chart`),Q(s)&&(P(s)&&(s.length<B?h=S.BAR:h=S.LINE,L=s,z=s.length),re(s))){if(!qe(s))return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."),!1;const U=Object.keys(s[0]),j=Object.values(s[0]);if(!U.some(E=>We(E)))return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."),!1;Be(j,E=>typeof E=="number")&&(h=S.DONUT,L=s),Be(j,E=>Array.isArray(E)&&P(E))&&(we(s)>B?h=S.LINE:h=S.BAR,z=we(s),L=s.map(E=>({...E,data:je(E,$=>P($))}))),s=s.map(E=>Ee(E)),L=L.map(E=>Ee(E))}return Q(s)&&[...new Set(s.flatMap(U=>Array.isArray(U)))][0],{dataset:s,type:h,usableDataset:L,maxSeriesLength:z}}function _e(s){return!s||Q(s)&&!s.length}function Q(s){return Array.isArray(s)}function P(s){if(!Q(s)||_e(s))return!1;const B=s.map(h=>Number(h));return![...new Set(B.flatMap(h=>typeof h=="number"&&!isNaN(h)))].includes(!1)}function re(s){return!Q(s)||_e(s)||!![...new Set(s.flatMap(h=>typeof h=="object"&&!Array.isArray(h)))].includes(!1)?!1:!s.map(h=>Object.keys(h).length>0).includes(!1)}function Ue(s,B){const h=Object.keys(s).sort(),L=Object.keys(B).sort();if(h.length!==L.length)return!1;for(let z=0;z<h.length;z+=1){const F=h[z],M=L[z];if(F!==M||typeof s[F]!=typeof B[M])return!1}return!0}function qe(s){if(s.length<=1)return!0;for(let B=0;B<s.length;B+=1)for(let h=B+1;h<s.length;h+=1)if(!Ue(s[B],s[h]))return!1;return!0}function We(s){return De.includes(s.toUpperCase())}function Be(s,B){let h=[];for(let L=0;L<s.length;L+=1)h.push(B(s[L]));return h.includes(!0)}function we(s){return Math.max(...[...s].flatMap(B=>Object.values(B).filter(h=>P(h)).map(h=>h.length)))}function je(s,B){return Object.values(s).filter(h=>B(h))[0]}function Ee(s){const B={};for(let h in s)s.hasOwnProperty(h)&&(B[h.toUpperCase()]=s[h]);return B}const Le=s=>(e.pushScopeId("data-v-85aefdcf"),s=s(),e.popScopeId(),s),Ge=["id"],He=["xmlns","viewBox"],Xe=["id"],Ye=["id"],Ze=Le(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Je=["id"],Qe=["flood-color"],Ke={key:0,class:"donut-label-connectors"},et=["d","stroke","stroke-width","filter"],tt=["cx","cy","r","fill"],lt=["cx","cy","r","fill","filter"],at={class:"donut"},ot=["d","fill","stroke","stroke-width","filter"],nt=["d","onMouseenter","onClick"],rt={key:1,class:"donut-labels quick-animation"},it=["cx","cy","fill","filter"],ut=["text-anchor","x","y","fill","font-size","filter"],st=["text-anchor","x","y","fill","font-size","filter"],ct={key:2,class:"donut-hollow quick-animation"},dt=["x","y","font-size","fill"],vt=["x","y","font-size","fill"],mt={key:0,class:"line-grid"},ht=["x1","x2","y1","y2","stroke","stroke-width"],ft=["x1","x2","y1","y2","stroke","stroke-width"],pt={key:1,class:"line-axis"},kt=["x1","x2","y1","y2","stroke","stroke-width"],gt=["x1","x2","y1","y2","stroke","stroke-width"],yt={key:2,class:"yLabels"},xt=["x1","x2","y1","y2","stroke","stroke-width"],St=["x","y","font-size","fill"],bt={key:3,class:"periodLabels"},Bt=["x1","x2","y1","y2","stroke","stroke-width"],wt=["font-size","text-anchor","fill","transform"],Et={class:"plots"},_t={class:"line-plot-series"},Lt=["d","stroke","stroke-width"],At=["d","stroke","stroke-width"],Ct=["d","stroke","stroke-width"],Nt=["d","stroke","stroke-width"],zt=["cx","cy","fill","stroke"],Vt={key:4,class:"dataLabels"},Ft=["font-size","fill","x","y"],$t={class:"tooltip-traps"},Pt=["x","y","height","width","fill","onMouseenter","onClick"],Tt={key:0,class:"line-grid"},Rt=["x1","x2","y1","y2","stroke","stroke-width"],It=["x1","x2","y1","y2","stroke","stroke-width"],Ot={key:1,class:"line-axis"},Dt=["x1","x2","y1","y2","stroke","stroke-width"],Mt=["x1","x2","y1","y2","stroke","stroke-width"],Ut={key:2,class:"yLabels"},qt=["x1","x2","y1","y2","stroke","stroke-width"],Wt=["x","y","font-size","fill"],jt={key:3,class:"periodLabels"},Gt=["x1","x2","y1","y2","stroke","stroke-width"],Ht=["font-size","text-anchor","transform","fill"],Xt={class:"plots"},Yt=["x","width","height","y","fill","stroke","stroke-width"],Zt=["to"],Jt=["from","to"],Qt={key:4,class:"dataLabels"},Kt=["x","y","font-size","fill"],el={class:"tooltip-traps"},tl=["x","y","height","width","fill","onMouseenter","onClick"],ll={key:3,class:"axis-labels"},al={key:0},ol=["font-size","fill","x","y"],nl={key:1},rl=["font-size","fill","x","y"],il={key:2},ul=["font-size","fill","transform"],sl={key:3},cl=["font-size","fill","transform"],dl={key:4,class:"vue-data-ui-watermark"},vl=["onClick"],ml=["onClick"],hl=["onClick"],fl={key:1,class:"vue-ui-quick-chart-not-processable"},pl=Le(()=>e.createElementVNode("span",null,"Dataset is not processable",-1)),kl={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(s,{expose:B,emit:h}){const L=s,{vue_ui_quick_chart:z}=u.useConfig(),F=e.ref(null),M=e.ref(null),U=e.ref(null),j=e.ref(null),E=e.ref(u.createUid()),$=e.ref(!1),G=e.ref(null),R=e.ref(""),V=e.ref(null),x=e.ref([]),se=e.ref(0),K=e.ref(0),t=e.computed({get:()=>ce(),set:n=>n});function ce(){const n=be.useNestedProp({userConfig:L.config,defaultConfig:z});return n.theme?{...be.useNestedProp({userConfig:u.themes.vue_ui_quick_chart[n.theme]||L.config,defaultConfig:n}),customPalette:u.themePalettes[n.theme]||u.palette}:n}e.watch(()=>L.config,n=>{t.value=ce(),p.value.width=t.value.width,p.value.height=t.value.height,me()},{deep:!0}),e.watch(()=>L.dataset,n=>{k.value=X.value,g.value.start=0,g.value.end=k.value.maxSeriesLength,K.value+=1},{deep:!0});const H=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),X=e.computed(()=>{const n=Me({dataset:u.sanitizeArray(L.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return n||console.error("VueUiQuickChart : Dataset is not processable"),n}),k=e.ref(X.value),Ae=e.computed(()=>!!k.value),b=e.computed(()=>k.value?k.value.type:null);e.watch(()=>b.value,n=>{n||u.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:ee,isImaging:te,generatePdf:de,generateImage:ve}=Se.usePrinter({elementId:`${b.value}_${E.value}`,fileName:t.value.title||b.value}),p=e.ref({width:t.value.width,height:t.value.height}),le=e.ref({showTooltip:t.value.showTooltip}),ae=e.ref(null);e.onMounted(()=>{me()});function me(){if(t.value.responsive){const n=xe.throttle(()=>{const{width:v,height:l}=xe.useResponsive({chart:F.value,title:t.value.title?M.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(b.value)&&t.value.zoomXy&&k.value.maxSeriesLength>1?j.value:null});p.value.width=v,p.value.height=l});ae.value=new ResizeObserver(n),ae.value.observe(F.value.parentNode)}}e.onBeforeUnmount(()=>{ae.value&&ae.value.disconnect()});const Ce=e.computed(()=>{switch(b.value){case S.LINE:return`0 0 ${p.value.width<=0?10:p.value.width} ${p.value.height<=0?10:p.value.height}`;case S.BAR:return`0 0 ${p.value.width<=0?10:p.value.width} ${p.value.height<=0?10:p.value.height}`;case S.DONUT:return`0 0 ${p.value.width<=0?10:p.value.width} ${p.value.height<=0?10:p.value.height}`;default:return`0 0 ${p.value.width<=0?10:p.value.width} ${p.value.height<=0?10:p.value.height}`}});function he(n){return[...n].map(v=>v.value).reduce((v,l)=>v+l,0)}function Y(n){return t.value.blurOnHover&&![null,void 0].includes(V.value)&&V.value!==n?`url(#blur_${E.value})`:""}function fe(n,v){x.value.includes(n)?x.value=x.value.filter(l=>l!==n):x.value.length<v&&x.value.push(n)}const pe=e.ref(null),ke=e.ref(null),oe=e.ref(!1);function Ne(n,v){oe.value=!0;let l=n.value;if(x.value.includes(n.id)){let i=function(){l>r?(oe.value=!1,cancelAnimationFrame(ke.value),k.value={...k.value,dataset:k.value.dataset.map((m,A)=>n.id===`donut_${A}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,k.value={...k.value,dataset:k.value.dataset.map((m,A)=>n.id===`donut_${A}`?{...m,value:l,VALUE:l}:m)},ke.value=requestAnimationFrame(i))};x.value=x.value.filter(m=>m!==n.id);const r=X.value.dataset.find((m,A)=>n.id===`donut_${A}`).VALUE;i()}else if(v.length>1){let r=function(){l<.1?(oe.value=!1,cancelAnimationFrame(pe.value),x.value.push(n.id),k.value={...k.value,dataset:k.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:0,VALUE:0}:i)}):(l/=1.1,k.value={...k.value,dataset:k.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:l,VALUE:l}:i)},pe.value=requestAnimationFrame(r))};r()}}const T=e.ref(null);function ze(n){T.value=n}const ge=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),w=e.computed(()=>{if(b.value!==S.DONUT)return null;const n=k.value.dataset.map((a,o)=>({...a,value:a.VALUE||a.DATA||a.SERIE||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`donut_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):H.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],immutableValue:a.value}));function v(a,o){return u.dataLabel({v:isNaN(a.value/he(o))?0:a.value/he(o)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(a){return a.proportion*100>t.value.donutHideLabelUnderPercentage}function r(a,o){const y=X.value.dataset.find((_,C)=>`donut_${C}`===a).VALUE;return Math.abs(String(Number(y.toFixed(0))).length-String(Number(o.toFixed(0))).length)}function i({datapoint:a,seriesIndex:o}){G.value={datapoint:a,seriesIndex:o,config:t.value,dataset:n},V.value=a.id;const y=t.value.tooltipCustomFormat;if(u.isFunction(y)&&u.functionReturnsString(()=>y({datapoint:a,seriesIndex:o,series:n,config:t.value})))R.value=y({datapoint:a,seriesIndex:o,series:n,config:t.value});else{let f="";f+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,f+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`,f+=`<b>${u.applyDataLabel(t.value.formatter,a.value,u.dataLabel({p:t.value.valuePrefix,v:a.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:a,seriesIndex:o})}</b>`,f+=`<span>(${u.dataLabel({v:a.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,R.value=`<div>${f}</div>`}$.value=!0}function m(){$.value=!1,V.value=null,T.value=null}const A={centerX:p.value.width/2,centerY:p.value.height/2},N=n.filter(a=>!x.value.includes(a.id)).map(a=>a.value||0).reduce((a,o)=>a+o,0),q=n.map((a,o)=>({...a,proportion:(a.value||0)/N,value:a.value||0,absoluteValue:X.value.dataset.find((y,f)=>`donut_${f}`===a.id).VALUE})),I=p.value.width/2,W=p.value.height/2,O=p.value.height*t.value.donutRadiusRatio;return{dataset:q.filter(a=>!x.value.includes(a.id)),legend:q,drawingArea:A,displayArcPercentage:v,isArcBigEnough:l,useTooltip:i,killTooltip:m,getSpaces:r,total:N,cx:I,cy:W,radius:O,chart:u.makeDonut({series:n.filter(a=>!x.value.includes(a.id))},I,W,O,O,1.99999,2,1,360,105.25,p.value.height*ge.value)}}),g=e.ref({start:0,end:k.value.maxSeriesLength});function Ve(){g.value={start:0,end:k.value.maxSeriesLength},K.value+=1}const Fe=e.computed(()=>{if(!t.value.zoomMinimap.show||b.value===S.DONUT)return[];let n=[];P(k.value.dataset)&&(n=k.value.dataset),re(k.value.dataset)&&(n=k.value.dataset.map((i,m)=>({values:i.VALUE||i.DATA||i.SERIE||i.SERIES||i.VALUES||i.NUM||0,id:b.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(i=>!x.value.includes(i.id)));const v=P(n)?n.length:Math.max(...n.map(i=>i.values.length));let l=[];if(P(n))l=n;else for(let i=0;i<v;i+=1)l.push(n.map(m=>m.values[i]||0).reduce((m,A)=>(m||0)+(A||0),0));const r=Math.min(...l);return l.map(i=>i+(r<0?Math.abs(r):0))}),d=e.computed(()=>{if(b.value!==S.LINE)return null;const n={height:p.value.height,width:p.value.width},v={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:n.width-t.value.xyPaddingRight,bottom:n.height-t.value.xyPaddingBottom,width:n.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:n.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];P(k.value.dataset)&&(l=[{values:k.value.dataset.slice(g.value.start,g.value.end),absoluteIndices:k.value.dataset.map((a,o)=>o).slice(g.value.start,g.value.end),name:t.value.title,color:H.value[t.value.paletteStartIndex]||u.palette[t.value.paletteStartIndex],id:"line_0"}]),re(k.value.dataset)&&(l=k.value.dataset.map((a,o)=>({...a,values:a.VALUE||a.DATA||a.SERIE||a.SERIES||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`line_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):H.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],values:a.values.slice(g.value.start,g.value.end),absoluteIndices:a.values.map((y,f)=>f).slice(g.value.start,g.value.end)})));const r={max:Math.max(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),min:Math.min(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),maxSeries:Math.max(...l.map(a=>a.values.length))},i=u.calculateNiceScale(r.min<0?r.min:0,r.max<0?0:r.max,t.value.xyScaleSegments),m=r.min<0?Math.abs(r.min):0,A=r.max<0?v.top:v.bottom-m/(i.max+m)*v.height,N=v.width/r.maxSeries,q=i.ticks.map(a=>({y:v.bottom-v.height*((a+m)/(i.max+m)),x:v.left-8,value:a})),I=l.map((a,o)=>({...a,coordinates:a.values.map((y,f)=>({x:v.left+N*(f+1)-N/2,y:v.bottom-(y+m)/(i.max+m)*v.height,value:y}))})).map(a=>{let o=[];return a.coordinates.forEach(y=>{o.push(`${y.x},${y.y} `)}),{...a,linePath:o.join(" ")}});function W(a){V.value=a,T.value=a;const o=l.map(f=>({...f,value:f.values[a],absoluteIndex:f.absoluteIndices[a]})).filter(f=>!x.value.includes(f.id));G.value={datapoint:o,seriesIndex:a,config:t.value,dataset:l};const y=t.value.tooltipCustomFormat;if(u.isFunction(y)&&u.functionReturnsString(()=>y({datapoint:o,seriesIndex:a,series:l,config:t.value})))R.value=y({datapoint:o,seriesIndex:a,series:l,config:t.value});else{let f="";t.value.xyPeriods[o[0].absoluteIndex]&&(f+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[o[0].absoluteIndex]}</div>`),o.forEach((_,C)=>{f+=`
2
- <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
3
- <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${_.color}"/></svg>
4
- <span>${_.name}:</span>
5
- <b>${u.applyDataLabel(t.value.formatter,_.value,u.dataLabel({p:t.value.valuePrefix,v:_.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:_,seriesIndex:C})}
6
- </b>
7
- </div>
8
- `}),R.value=f}$.value=!0}function O(){V.value=null,$.value=!1}return{absoluteZero:A,dataset:I.filter(a=>!x.value.includes(a.id)),legend:I,drawingArea:v,extremes:r,slotSize:N,yLabels:q,useTooltip:W,killTooltip:O}}),c=e.computed(()=>{if(b.value!==S.BAR)return null;const n={height:p.value.height,width:p.value.width},v={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:n.width-t.value.xyPaddingRight,bottom:n.height-t.value.xyPaddingBottom,width:n.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:n.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];P(k.value.dataset)&&(l=[{values:k.value.dataset.slice(g.value.start,g.value.end),absoluteIndices:k.value.dataset.map((o,y)=>y).slice(g.value.start,g.value.end),name:t.value.title,color:H.value[t.value.paletteStartIndex]||u.palette[t.value.paletteStartIndex],id:"bar_0"}]),re(k.value.dataset)&&(l=k.value.dataset.map((o,y)=>({...o,values:o.VALUE||o.DATA||o.SERIE||o.SERIES||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${y}`,id:`bar_${y}`})).map((o,y)=>({...o,color:o.COLOR?u.convertColorToHex(o.COLOR):H.value[y+t.value.paletteStartIndex]||u.palette[y+t.value.paletteStartIndex]||u.palette[(y+t.value.paletteStartIndex)%u.palette.length],values:o.values.slice(g.value.start,g.value.end),absoluteIndices:o.values.map((f,_)=>_).slice(g.value.start,g.value.end)})));const r={max:Math.max(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values))<0?0:Math.max(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),min:Math.min(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),maxSeries:Math.max(...l.filter(o=>!x.value.includes(o.id)).map(o=>o.values.length))},i=u.calculateNiceScale(r.min<0?r.min:0,r.max,t.value.xyScaleSegments),m=i.min<0?Math.abs(i.min):0,A=v.bottom-m/(i.max+m)*v.height,N=v.width/r.maxSeries,q=i.ticks.map(o=>({y:v.bottom-v.height*((o+m)/(i.max+m)),x:v.left-8,value:o})),I=l.map((o,y)=>({...o,coordinates:o.values.map((f,_)=>{const C=(f+m)/(r.max+m)*v.height,Z=Math.abs(f)/Math.abs(r.min)*(v.height-A),ue=m/(r.max+m)*v.height,J=N/l.filter(D=>!x.value.includes(D.id)).length-t.value.barGap/l.filter(D=>!x.value.includes(D.id)).length;return{x:v.left+N*_+J*y+t.value.barGap/2,y:f>0?v.bottom-C:A,height:f>0?C-ue:Z,value:f,width:J}})})),W=l.filter(o=>!x.value.includes(o.id)).map((o,y)=>({...o,coordinates:o.values.map((f,_)=>{const C=(f+m)/(r.max+m)*v.height,Z=Math.abs(f)/(r.max+m)*v.height,ue=m/(r.max+m)*v.height,J=N/l.filter(D=>!x.value.includes(D.id)).length-t.value.barGap/l.filter(D=>!x.value.includes(D.id)).length;return{x:v.left+N*_+J*y+t.value.barGap/2,y:f>0?v.bottom-C:A,height:f>0?C-ue:Z,value:f,width:J}})}));function O(o){V.value=o,T.value=o;const y=l.map(_=>({..._,value:_.values[o],absoluteIndex:_.absoluteIndices[o]})).filter(_=>!x.value.includes(_.id));G.value={datapoint:y,seriesIndex:o,config:t.value,dataset:l};const f=t.value.tooltipCustomFormat;if(u.isFunction(f)&&u.functionReturnsString(()=>f({datapoint:y,seriesIndex:o,series:l,config:t.value})))R.value=f({point:y,seriesIndex:o,series:l,config:t.value});else{let _="";t.value.xyPeriods[y[0].absoluteIndex]&&(_+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[y[0].absoluteIndex]}</div>`),y.forEach((C,Z)=>{_+=`
9
- <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
10
- <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${C.color}"/></svg>
11
- <span>${C.name}:</span>
12
- <b>${u.applyDataLabel(t.value.formatter,C.value,u.dataLabel({p:t.value.valuePrefix,v:C.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:C,seriesIndex:Z})}
13
- </b>
14
- </div>
15
- `}),R.value=_}$.value=!0}function a(){$.value=!1,V.value=null,T.value=null}return{absoluteZero:A,dataset:W.filter(o=>!x.value.includes(o.id)),legend:I,drawingArea:v,extremes:r,slotSize:N,yLabels:q,useTooltip:O,killTooltip:a}}),ie=e.ref(!1);function $e(n){ie.value=n,se.value+=1}function ye(){le.value.showTooltip=!le.value.showTooltip}return B({generatePdf:de,generateImage:ve,toggleTooltip:ye}),(n,v)=>Ae.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:`${b.value}_${E.value}`,ref_key:"quickChart",ref:F,class:e.normalizeClass({"vue-ui-quick-chart":!0,"vue-data-ui-wrapper-fullscreen":ie.value}),style:e.normalizeStyle(`background:${t.value.backgroundColor};color:${t.value.color};font-family:${t.value.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`)},[t.value.showUserOptions?(e.openBlock(),e.createBlock(Se.UserOptions,{ref:"details",key:`user_option_${se.value}`,backgroundColor:t.value.backgroundColor,color:t.value.color,isPrinting:e.unref(ee),isImaging:e.unref(te),uid:E.value,hasTooltip:t.value.userOptionsButtons.tooltip&&t.value.showTooltip,hasPdf:t.value.userOptionsButtons.pdf,hasImg:t.value.userOptionsButtons.img,hasFullscreen:t.value.userOptionsButtons.fullscreen,hasXls:!1,isTooltip:le.value.showTooltip,isFullscreen:ie.value,titles:{...t.value.userOptionsButtonTitles},chartElement:F.value,position:t.value.userOptionsPosition,onToggleFullscreen:$e,onGeneratePdf:e.unref(de),onGenerateImage:e.unref(ve),onToggleTooltip:ye},e.createSlots({_:2},[n.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.title?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"quickChartTitle",ref:M,class:"vue-ui-quick-chart-title",style:e.normalizeStyle(`background:transparent;color:${t.value.color};font-size:${t.value.titleFontSize}px;font-weight:${t.value.titleBold?"bold":"normal"};text-align:${t.value.titleTextAlign}`)},e.toDisplayString(t.value.title),5)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(u.XMLNS),viewBox:Ce.value,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.color}`)},[e.createVNode(Ie._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${E.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${E.value}`},null,8,Ye),Ze],8,Xe),e.createElementVNode("filter",{id:`shadow_${E.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.donutShadowColor},null,8,Qe)],8,Je)]),b.value===S.DONUT?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(u.calcNutArrowPath)(l,{x:p.value.width/2,y:p.value.height/2},16,16,!1,!1,p.value.height*ge.value),stroke:l.color,"stroke-width":t.value.donutLabelMarkerStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:Y(l.id)},null,8,et)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("circle",{class:"donut-hollow",cx:(t.value.width||p.value.width)/2,cy:(t.value.height||p.value.height)/2,r:(t.value.height||p.value.height)*t.value.donutRadiusRatio,fill:t.value.backgroundColor},null,8,tt),e.createElementVNode("circle",{cx:w.value.cx,cy:w.value.cy,r:w.value.radius,fill:t.value.backgroundColor,filter:t.value.donutUseShadow?`url(#shadow_${E.value})`:""},null,8,lt),e.createElementVNode("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:l.color,stroke:t.value.backgroundColor,"stroke-width":t.value.donutStrokeWidth,filter:Y(l.id)},null,8,ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:"transparent",onMouseenter:i=>w.value.useTooltip({datapoint:l,seriesIndex:r}),onMouseout:v[0]||(v[0]=i=>w.value.killTooltip()),onClick:i=>h("selectDatapoint",l)},null,40,nt))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(u.calcMarkerOffsetX)(l).x,cy:e.unref(u.calcMarkerOffsetY)(l)-3.7,fill:l.color,r:3,filter:Y(l.id)},null,8,it)):e.createCommentVNode("",!0),w.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(u.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0).x,y:e.unref(u.calcMarkerOffsetY)(l),fill:t.value.color,"font-size":t.value.dataLabelFontSize,filter:Y(l.id)},e.toDisplayString(w.value.displayArcPercentage(l,w.value.chart))+" ("+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,l.value,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r}))+") ",9,ut)):e.createCommentVNode("",!0),w.value.isArcBigEnough(l,!0,20)?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(u.calcMarkerOffsetX)(l).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0).x,y:e.unref(u.calcMarkerOffsetY)(l)+t.value.dataLabelFontSize,fill:t.value.color,"font-size":t.value.dataLabelFontSize,filter:Y(l.id)},e.toDisplayString(l.name),9,st)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.donutShowTotal?(e.openBlock(),e.createElementBlock("g",ct,[e.createElementVNode("text",{"text-anchor":"middle",x:w.value.drawingArea.centerX,y:w.value.drawingArea.centerY-t.value.donutTotalLabelFontSize/2,"font-size":t.value.donutTotalLabelFontSize,fill:t.value.color},e.toDisplayString(t.value.donutTotalLabelText),9,dt),e.createElementVNode("text",{"text-anchor":"middle",x:w.value.drawingArea.centerX,y:w.value.drawingArea.centerY+t.value.donutTotalLabelFontSize,"font-size":t.value.donutTotalLabelFontSize,fill:t.value.color},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.valuePrefix,v:w.value.total,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue})),9,vt)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),b.value===S.LINE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.xyShowGrid?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.yLabels,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=d.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:d.value.drawingArea.left,x2:d.value.drawingArea.right,y1:l.y,y2:l.y,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,ht)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.extremes.maxSeries+1,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.drawingArea.left+d.value.slotSize*r,x2:d.value.drawingArea.left+d.value.slotSize*r,y1:d.value.drawingArea.top,y2:d.value.drawingArea.bottom,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,ft))),256))])):e.createCommentVNode("",!0),t.value.xyShowAxis?(e.openBlock(),e.createElementBlock("g",pt,[e.createElementVNode("line",{x1:d.value.drawingArea.left,x2:d.value.drawingArea.left,y1:d.value.drawingArea.top,y2:d.value.drawingArea.bottom,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,kt),e.createElementVNode("line",{x1:d.value.drawingArea.left,x2:d.value.drawingArea.right,y1:isNaN(d.value.absoluteZero)?d.value.drawingArea.bottom:d.value.absoluteZero,y2:isNaN(d.value.absoluteZero)?d.value.drawingArea.bottom:d.value.absoluteZero,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,gt)])):e.createCommentVNode("",!0),t.value.xyShowScale?(e.openBlock(),e.createElementBlock("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.yLabels,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=d.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.x+4,x2:d.value.drawingArea.left,y1:l.y,y2:l.y,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,xt)):e.createCommentVNode("",!0),l.y<=d.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x,y:l.y+t.value.xyLabelsYFontSize/3,"text-anchor":"end","font-size":t.value.xyLabelsYFontSize,fill:t.value.color},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,l.value,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),9,St)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.xyShowScale&&t.value.xyPeriods.length?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(g.value.start,g.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.drawingArea.left+d.value.slotSize*(r+1)-d.value.slotSize/2,x2:d.value.drawingArea.left+d.value.slotSize*(r+1)-d.value.slotSize/2,y1:d.value.drawingArea.bottom,y2:d.value.drawingArea.bottom+4,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Bt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(g.value.start,g.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("text",{"font-size":t.value.xyLabelsXFontSize,"text-anchor":t.value.xyPeriodLabelsRotation>0?"start":t.value.xyPeriodLabelsRotation<0?"end":"middle",fill:t.value.color,transform:`translate(${d.value.drawingArea.left+d.value.slotSize*(r+1)-d.value.slotSize/2}, ${d.value.drawingArea.bottom+t.value.xyLabelsXFontSize+6}), rotate(${t.value.xyPeriodLabelsRotation})`},e.toDisplayString(l),9,wt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock("g",_t,[t.value.lineSmooth?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("path",{d:`M ${e.unref(u.createSmoothPath)(l.coordinates)}`,stroke:t.value.backgroundColor,"stroke-width":t.value.lineStrokeWidth+1,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,Lt),e.createElementVNode("path",{d:`M ${e.unref(u.createSmoothPath)(l.coordinates)}`,stroke:l.color,"stroke-width":t.value.lineStrokeWidth,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,At)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:`M ${l.linePath}`,stroke:t.value.backgroundColor,"stroke-width":t.value.lineStrokeWidth+1,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,Ct),e.createElementVNode("path",{d:`M ${l.linePath}`,stroke:l.color,"stroke-width":t.value.lineStrokeWidth,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,Nt)],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(i,m)=>(e.openBlock(),e.createElementBlock("circle",{cx:i.x,cy:e.unref(u.checkNaN)(i.y),r:3,fill:l.color,stroke:t.value.backgroundColor,"stroke-width":"0.5",class:"quick-animation",style:{transition:"all 0.3s ease-in-out"}},null,8,zt))),256))]))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",Vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(i,m)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle","font-size":t.value.dataLabelFontSize,fill:l.color,x:i.x,y:e.unref(u.checkNaN)(i.y)-t.value.dataLabelFontSize/2,class:"quick-animation",style:{transition:"all 0.3s ease-in-out"}},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,e.unref(u.checkNaN)(i.value),e.unref(u.dataLabel)({p:t.value.valuePrefix,v:e.unref(u.checkNaN)(i.value),s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:i,seriesIndex:m})),9,Ft))),256))],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",$t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.extremes.maxSeries,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{x:d.value.drawingArea.left+r*d.value.slotSize,y:d.value.drawingArea.top,height:d.value.drawingArea.height<=0?1e-5:d.value.drawingArea.height,width:d.value.slotSize<=0?1e-5:d.value.slotSize,fill:[V.value,T.value].includes(r)?t.value.xyHighlighterColor:"transparent",style:e.normalizeStyle(`opacity:${t.value.xyHighlighterOpacity}`),onMouseenter:i=>d.value.useTooltip(r),onMouseleave:v[1]||(v[1]=i=>d.value.killTooltip()),onClick:i=>h("selectDatapoint",d.value.dataset.map(m=>({...m,value:m.values[r]})))},null,44,Pt))),256))])],64)):e.createCommentVNode("",!0),b.value===S.BAR?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.xyShowGrid?(e.openBlock(),e.createElementBlock("g",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.yLabels,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=c.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:c.value.drawingArea.left,x2:c.value.drawingArea.right,y1:l.y,y2:l.y,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,Rt)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.extremes.maxSeries+1,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:c.value.drawingArea.left+c.value.slotSize*r,x2:c.value.drawingArea.left+c.value.slotSize*r,y1:c.value.drawingArea.top,y2:c.value.drawingArea.bottom,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,It))),256))])):e.createCommentVNode("",!0),t.value.xyShowAxis?(e.openBlock(),e.createElementBlock("g",Ot,[e.createElementVNode("line",{x1:c.value.drawingArea.left,x2:c.value.drawingArea.left,y1:c.value.drawingArea.top,y2:c.value.drawingArea.bottom,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Dt),e.createElementVNode("line",{x1:c.value.drawingArea.left,x2:c.value.drawingArea.right,y1:isNaN(c.value.absoluteZero)?c.value.drawingArea.bottom:c.value.absoluteZero,y2:isNaN(c.value.absoluteZero)?c.value.drawingArea.bottom:c.value.absoluteZero,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Mt)])):e.createCommentVNode("",!0),t.value.xyShowScale?(e.openBlock(),e.createElementBlock("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.yLabels,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=c.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.x+4,x2:c.value.drawingArea.left,y1:l.y,y2:l.y,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,qt)):e.createCommentVNode("",!0),l.y<=c.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x,y:l.y+t.value.xyLabelsYFontSize/3,"text-anchor":"end","font-size":t.value.xyLabelsYFontSize,fill:t.value.color},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,l.value,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),9,Wt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.xyShowScale&&t.value.xyPeriods.length?(e.openBlock(),e.createElementBlock("g",jt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(g.value.start,g.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:c.value.drawingArea.left+c.value.slotSize*(r+1)-c.value.slotSize/2,x2:c.value.drawingArea.left+c.value.slotSize*(r+1)-c.value.slotSize/2,y1:c.value.drawingArea.bottom,y2:c.value.drawingArea.bottom+4,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Gt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(g.value.start,g.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("text",{"font-size":t.value.xyLabelsXFontSize,"text-anchor":t.value.xyPeriodLabelsRotation>0?"start":t.value.xyPeriodLabelsRotation<0?"end":"middle",transform:`translate(${c.value.drawingArea.left+c.value.slotSize*(r+1)-c.value.slotSize/2}, ${c.value.drawingArea.bottom+t.value.xyLabelsXFontSize+6}) rotate(${t.value.xyPeriodLabelsRotation})`,fill:t.value.color},e.toDisplayString(l),9,Ht))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(i,m)=>(e.openBlock(),e.createElementBlock("rect",{x:i.x,width:i.width<=0?1e-5:i.width,height:e.unref(u.checkNaN)(i.height<=0?1e-5:i.height),y:e.unref(u.checkNaN)(i.y),fill:l.color,stroke:t.value.backgroundColor,"stroke-width":t.value.barStrokeWidth,"stroke-linecap":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.barAnimated&&i.value<0})},[t.value.barAnimated&&i.value>0&&!e.unref(ee)&&!e.unref(te)?(e.openBlock(),e.createElementBlock("animate",{key:0,attributeName:"height",from:0,to:i.height,dur:"0.5s"},null,8,Zt)):e.createCommentVNode("",!0),t.value.barAnimated&&i.value>0&&!e.unref(ee)&&!e.unref(te)?(e.openBlock(),e.createElementBlock("animate",{key:1,attributeName:"y",from:c.value.absoluteZero,to:c.value.absoluteZero-i.height,dur:"0.5s"},null,8,Jt)):e.createCommentVNode("",!0)],10,Yt))),256))],64))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(i,m)=>(e.openBlock(),e.createElementBlock("text",{x:i.x+i.width/2,y:e.unref(u.checkNaN)(i.y)-t.value.dataLabelFontSize/2,"text-anchor":"middle","font-size":t.value.dataLabelFontSize,fill:l.color,class:"quick-animation"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,e.unref(u.checkNaN)(i.value),e.unref(u.dataLabel)({p:t.value.valuePrefix,v:e.unref(u.checkNaN)(i.value),s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:i,seriesIndex:m})),9,Kt))),256))],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",el,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.extremes.maxSeries,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{x:c.value.drawingArea.left+r*c.value.slotSize,y:c.value.drawingArea.top,height:c.value.drawingArea.height<=0?1e-5:c.value.drawingArea.height,width:c.value.slotSize<=0?1e-5:c.value.slotSize,fill:[V.value,T.value].includes(r)?t.value.xyHighlighterColor:"transparent",style:e.normalizeStyle(`opacity:${t.value.xyHighlighterOpacity}`),onMouseenter:i=>c.value.useTooltip(r),onMouseleave:v[2]||(v[2]=i=>c.value.killTooltip()),onClick:i=>h("selectDatapoint",c.value.dataset.map(m=>({...m,value:m.values[r]})))},null,44,tl))),256))])],64)):e.createCommentVNode("",!0),[S.LINE,S.BAR].includes(b.value)?(e.openBlock(),e.createElementBlock("g",ll,[t.value.xAxisLabel&&b.value===S.LINE?(e.openBlock(),e.createElementBlock("g",al,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,"text-anchor":"middle",x:d.value.drawingArea.left+d.value.drawingArea.width/2,y:p.value.height-t.value.axisLabelsFontSize/3},e.toDisplayString(t.value.xAxisLabel),9,ol)])):e.createCommentVNode("",!0),t.value.xAxisLabel&&b.value===S.BAR?(e.openBlock(),e.createElementBlock("g",nl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,"text-anchor":"middle",x:c.value.drawingArea.left+c.value.drawingArea.width/2,y:p.value.height-t.value.axisLabelsFontSize/3},e.toDisplayString(t.value.xAxisLabel),9,rl)])):e.createCommentVNode("",!0),t.value.yAxisLabel&&b.value===S.LINE?(e.openBlock(),e.createElementBlock("g",il,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,transform:`translate(${t.value.axisLabelsFontSize}, ${d.value.drawingArea.top+d.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.yAxisLabel),9,ul)])):e.createCommentVNode("",!0),t.value.yAxisLabel&&b.value===S.BAR?(e.openBlock(),e.createElementBlock("g",sl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,transform:`translate(${t.value.axisLabelsFontSize}, ${c.value.drawingArea.top+c.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.yAxisLabel),9,cl)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],12,He)):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Re.default,{key:3,config:{type:"line",style:{backgroundColor:t.value.backgroundColor,line:{axis:{color:t.value.xyAxisStroke},path:{color:t.value.xyAxisStroke,strokeWidth:.5}}}}},null,8,["config"])),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ee)||e.unref(te)})),void 0,!0)])):e.createCommentVNode("",!0),[S.BAR,S.LINE].includes(b.value)&&t.value.zoomXy&&k.value.maxSeriesLength>1?(e.openBlock(),e.createElementBlock("div",{key:`slicer_${K.value}`,ref_key:"quickChartSlicer",ref:j},[(e.openBlock(),e.createBlock(Te.Slicer,{key:`slicer_${K.value}`,background:t.value.zoomColor,borderColor:t.value.backgroundColor,fontSize:t.value.zoomFontSize,useResetSlot:t.value.zoomUseResetSlot,labelLeft:t.value.xyPeriods[g.value.start]?t.value.xyPeriods[g.value.start]:"",labelRight:t.value.xyPeriods[g.value.end-1]?t.value.xyPeriods[g.value.end-1]:"",textColor:t.value.color,inputColor:t.value.zoomColor,selectColor:t.value.zoomHighlightColor,max:k.value.maxSeriesLength,min:0,valueStart:g.value.start,valueEnd:g.value.end,smoothMinimap:t.value.zoomMinimap.smooth,minimapSelectedColor:t.value.zoomMinimap.selectedColor,minimapSelectedColorOpacity:t.value.zoomMinimap.selectedColorOpacity,minimapSelectionRadius:t.value.zoomMinimap.selectionRadius,minimapLineColor:t.value.zoomMinimap.lineColor,minimap:Fe.value,minimapIndicatorColor:t.value.zoomMinimap.indicatorColor,minimapSelectedIndex:T.value,start:g.value.start,"onUpdate:start":v[3]||(v[3]=l=>g.value.start=l),end:g.value.end,"onUpdate:end":v[4]||(v[4]=l=>g.value.end=l),onReset:Ve,onTrapMouse:ze},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(n.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","smoothMinimap","minimapSelectedColor","minimapSelectedColorOpacity","minimapSelectionRadius","minimapLineColor","minimap","minimapIndicatorColor","minimapSelectedIndex","start","end"]))])):e.createCommentVNode("",!0),t.value.showLegend?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"quickChartLegend",ref:U,class:"vue-ui-quick-chart-legend",style:e.normalizeStyle(`background:transparent;color:${t.value.color}`)},[b.value===S.DONUT?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(w.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:i=>{Ne(l,w.value.dataset),h("selectLegend",l)},style:e.normalizeStyle(`cursor: ${w.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(n.$slots,"legend",e.normalizeProps(e.mergeProps({key:0},{legend:l})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ne.default,{name:t.value.legendIcon,stroke:l.color,size:t.value.legendIconSize},null,8,["name","stroke","size"]),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)},e.toDisplayString(l.name),5),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px;font-variant-numeric:tabular-nums`)},e.toDisplayString(x.value.includes(l.id)?"-":e.unref(u.applyDataLabel)(t.value.formatter,l.absoluteValue,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.absoluteValue,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),5),x.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)}," ( - % ) ",4)):oe.value?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)}," ( - % ) ",4)):(e.openBlock(),e.createElementBlock("span",{key:2,style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)}," ("+e.toDisplayString(e.unref(u.dataLabel)({v:l.value/w.value.total*100,s:"%",r:t.value.dataLabelRoundingPercentage}))+") ",5))],64))],12,vl))),256)):e.createCommentVNode("",!0),b.value===S.LINE?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(d.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:i=>{fe(l.id,d.value.legend.length-1),h("selectLegend",l)},style:e.normalizeStyle(`cursor: ${d.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(n.$slots,"legend",e.normalizeProps(e.mergeProps({key:0},{legend:l})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ne.default,{name:t.value.legendIcon,stroke:l.color,size:t.value.legendIconSize},null,8,["name","stroke","size"]),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)},e.toDisplayString(l.name),5)],64))],12,ml))),256)):e.createCommentVNode("",!0),b.value===S.BAR?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(c.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:i=>{fe(l.id,c.value.legend.length-1),h("selectLegend",l)},style:e.normalizeStyle(`cursor: ${c.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(n.$slots,"legend",e.normalizeProps(e.mergeProps({key:0},{legend:l})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ne.default,{name:t.value.legendIcon,stroke:l.color,size:t.value.legendIconSize},null,8,["name","stroke","size"]),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)},e.toDisplayString(l.name),5)],64))],12,hl))),256)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createVNode(Pe._sfc_main,{show:le.value.showTooltip&&$.value,backgroundColor:t.value.backgroundColor,color:t.value.color,borderRadius:t.value.tooltipBorderRadius,borderColor:t.value.tooltipBorderColor,borderWidth:t.value.tooltipBorderWidth,fontSize:t.value.tooltipFontSize,backgroundOpacity:t.value.tooltipBackgroundOpacity,position:t.value.tooltipPosition,offsetY:t.value.tooltipOffsetY,parent:F.value,content:R.value,isCustom:e.unref(u.isFunction)(t.value.tooltipCustomFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(n.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(n.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...G.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"])],14,Ge)):(e.openBlock(),e.createElementBlock("div",fl,[e.createVNode(ne.default,{name:"circleCancel",stroke:"red"}),pl]))}},gl=Oe._export_sfc(kl,[["__scopeId","data-v-85aefdcf"]]);exports.default=gl;