vue-data-ui 3.28.8 → 3.28.10

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 (211) hide show
  1. package/dist/{PackageVersion-Bczw6rsP.js → PackageVersion-DKSNC-YP.js} +1 -1
  2. package/dist/StackChartTable-CZteRybF.js +1 -0
  3. package/dist/UserOptions-B9EyfU9n.js +1 -0
  4. package/dist/{XyAnalysisOptions-U4UJx51x.js → XyAnalysisOptions-CV22ga_a.js} +1 -1
  5. package/dist/components/vue-ui-3d-bar.js +1 -1
  6. package/dist/components/vue-ui-accordion.js +1 -1
  7. package/dist/components/vue-ui-age-pyramid.js +1 -1
  8. package/dist/components/vue-ui-annotator.js +1 -1
  9. package/dist/components/vue-ui-bullet.js +1 -1
  10. package/dist/components/vue-ui-bump.js +1 -1
  11. package/dist/components/vue-ui-candlestick.js +1 -1
  12. package/dist/components/vue-ui-carousel-table.js +1 -1
  13. package/dist/components/vue-ui-chestnut.js +1 -1
  14. package/dist/components/vue-ui-chord.js +1 -1
  15. package/dist/components/vue-ui-circle-pack.js +1 -1
  16. package/dist/components/vue-ui-cursor.js +1 -1
  17. package/dist/components/vue-ui-dag.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-geo.js +1 -1
  28. package/dist/components/vue-ui-gizmo.js +1 -1
  29. package/dist/components/vue-ui-graph.js +1 -1
  30. package/dist/components/vue-ui-heatmap.js +1 -1
  31. package/dist/components/vue-ui-hill.js +1 -1
  32. package/dist/components/vue-ui-history-plot.js +1 -1
  33. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  34. package/dist/components/vue-ui-kpi.js +1 -1
  35. package/dist/components/vue-ui-label.js +1 -1
  36. package/dist/components/vue-ui-mini-loader.js +1 -1
  37. package/dist/components/vue-ui-molecule.js +1 -1
  38. package/dist/components/vue-ui-mood-radar.js +1 -1
  39. package/dist/components/vue-ui-nested-donuts.js +1 -1
  40. package/dist/components/vue-ui-onion.js +1 -1
  41. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  42. package/dist/components/vue-ui-quadrant.js +1 -1
  43. package/dist/components/vue-ui-quick-chart.js +1 -1
  44. package/dist/components/vue-ui-radar.js +1 -1
  45. package/dist/components/vue-ui-rating.js +1 -1
  46. package/dist/components/vue-ui-relation-circle.js +1 -1
  47. package/dist/components/vue-ui-ridgeline.js +1 -1
  48. package/dist/components/vue-ui-rings.js +1 -1
  49. package/dist/components/vue-ui-scatter.js +1 -1
  50. package/dist/components/vue-ui-skeleton.js +1 -1
  51. package/dist/components/vue-ui-smiley.js +1 -1
  52. package/dist/components/vue-ui-spark-trend.js +1 -1
  53. package/dist/components/vue-ui-sparkbar.js +1 -1
  54. package/dist/components/vue-ui-sparkgauge.js +1 -1
  55. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  56. package/dist/components/vue-ui-sparkline.js +1 -1
  57. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  58. package/dist/components/vue-ui-stackbar.js +1 -1
  59. package/dist/components/vue-ui-stackline.js +1 -1
  60. package/dist/components/vue-ui-strip-plot.js +1 -1
  61. package/dist/components/vue-ui-table-heatmap.js +1 -1
  62. package/dist/components/vue-ui-table-sparkline.js +1 -1
  63. package/dist/components/vue-ui-table.js +1 -1
  64. package/dist/components/vue-ui-thermometer.js +1 -1
  65. package/dist/components/vue-ui-timer.js +1 -1
  66. package/dist/components/vue-ui-tiremarks.js +1 -1
  67. package/dist/components/vue-ui-treemap.js +1 -1
  68. package/dist/components/vue-ui-vertical-bar.js +1 -1
  69. package/dist/components/vue-ui-waffle.js +1 -1
  70. package/dist/components/vue-ui-wheel.js +1 -1
  71. package/dist/components/vue-ui-word-cloud.js +1 -1
  72. package/dist/components/vue-ui-world.js +1 -1
  73. package/dist/components/vue-ui-xy-canvas.js +1 -1
  74. package/dist/components/vue-ui-xy.js +1 -1
  75. package/dist/package-CXaebsLV.js +1 -0
  76. package/dist/{render-common-DY4sNXDz.js → render-common-Cy1X2PzP.js} +1 -1
  77. package/dist/ssr/vue-ui-donut.js +1 -1
  78. package/dist/ssr/vue-ui-xy.js +1 -1
  79. package/dist/ssr.js +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/{useConfig-By3Vb5kz.js → useConfig-C3FbHv4N.js} +1 -1
  82. package/dist/{useObjectBindings-0vvvimYP.js → useObjectBindings-C_70Czuj.js} +1 -1
  83. package/dist/{userOptionsSlots-DYuo-E5m.js → userOptionsSlots-CWtXN5Q6.js} +1 -1
  84. package/dist/utils.js +1 -1
  85. package/dist/vue-data-ui-O-w339Ac.js +1 -0
  86. package/dist/vue-data-ui.js +1 -1
  87. package/dist/vue-ui-3d-bar-CcFFARyq.js +19 -0
  88. package/dist/{vue-ui-accordion-DFxSW8ET.js → vue-ui-accordion-E8TJfFeK.js} +1 -1
  89. package/dist/vue-ui-age-pyramid-Di6fKV6f.js +1 -0
  90. package/dist/vue-ui-annotator-sBGtsgcb.js +331 -0
  91. package/dist/vue-ui-bullet-BZLa1xj7.js +34 -0
  92. package/dist/vue-ui-bump-BSdpAH0l.js +8 -0
  93. package/dist/vue-ui-candlestick-BKZASgq9.js +22 -0
  94. package/dist/vue-ui-carousel-table-B20E2K8A.js +1 -0
  95. package/dist/vue-ui-chestnut-DavvzmiQ.js +1 -0
  96. package/dist/vue-ui-chord-D2Hn54i7.js +21 -0
  97. package/dist/vue-ui-circle-pack-BKaS-zWo.js +13 -0
  98. package/dist/{vue-ui-cursor-DRQc_V2R.js → vue-ui-cursor-BUOHKNmb.js} +1 -1
  99. package/dist/vue-ui-dag-SLYPxbGo.js +9 -0
  100. package/dist/vue-ui-dashboard-Bgt7VLv0.js +1 -0
  101. package/dist/{vue-ui-digits-CfdB0vaP.js → vue-ui-digits-DbxT72mM.js} +1 -1
  102. package/dist/{vue-ui-donut-Dy4j7B9b.js → vue-ui-donut-8ZWyXEVs.js} +1 -1
  103. package/dist/vue-ui-donut-DBcB8Ym1.js +47 -0
  104. package/dist/vue-ui-donut-evolution-D3lo74Ce.js +2 -0
  105. package/dist/vue-ui-dumbbell-CdarkL8Z.js +9 -0
  106. package/dist/vue-ui-flow-B0dYxGWT.js +3 -0
  107. package/dist/vue-ui-funnel-C0Cl9jMd.js +1 -0
  108. package/dist/vue-ui-galaxy-C_UWOQn4.js +1 -0
  109. package/dist/vue-ui-gauge-B94ToHlW.js +1 -0
  110. package/dist/vue-ui-geo-V-JmJgKS.js +1 -0
  111. package/dist/{vue-ui-gizmo-D0QjzIGt.js → vue-ui-gizmo-BvVDEnNu.js} +1 -1
  112. package/dist/{vue-ui-graph-DScVnTzu.js → vue-ui-graph-9YSKwYhC.js} +1 -1
  113. package/dist/vue-ui-heatmap-DWtbocz5.js +1 -0
  114. package/dist/vue-ui-hill-BH_lYm5G.js +1 -0
  115. package/dist/vue-ui-history-plot-DkWvta0h.js +2 -0
  116. package/dist/vue-ui-horizontal-bar-DbJ1DFjG.js +4 -0
  117. package/dist/{vue-ui-kpi-CF7pAl08.js → vue-ui-kpi-BxW6DctE.js} +1 -1
  118. package/dist/{vue-ui-label-W0oz08pp.js → vue-ui-label-rxuzmeyD.js} +1 -1
  119. package/dist/{vue-ui-mini-loader-OLYDdN3T.js → vue-ui-mini-loader-DpAYrTYb.js} +1 -1
  120. package/dist/vue-ui-molecule-BrG8K2Tm.js +1 -0
  121. package/dist/vue-ui-mood-radar-DEpFpfiW.js +1 -0
  122. package/dist/vue-ui-nested-donuts-CZetOzaq.js +19 -0
  123. package/dist/vue-ui-onion-DvyAxUSj.js +5 -0
  124. package/dist/vue-ui-parallel-coordinate-plot-Bdakcv3w.js +9 -0
  125. package/dist/vue-ui-quadrant-CWZeQjHE.js +2 -0
  126. package/dist/vue-ui-quick-chart-BULxPrPs.js +16 -0
  127. package/dist/vue-ui-radar-CJ_5G0QP.js +1 -0
  128. package/dist/{vue-ui-rating-B9HeTCLa.js → vue-ui-rating-QcJoab0i.js} +1 -1
  129. package/dist/vue-ui-relation-circle-Vetly6f0.js +1 -0
  130. package/dist/vue-ui-ridgeline-5a87TiQf.js +2 -0
  131. package/dist/vue-ui-rings-CKuFf5vA.js +1 -0
  132. package/dist/vue-ui-scatter-C2hNg3ED.js +9 -0
  133. package/dist/{vue-ui-skeleton-an0peDis.js → vue-ui-skeleton-SlYTmirP.js} +1 -1
  134. package/dist/{vue-ui-smiley-Cht1imV-.js → vue-ui-smiley-DZVFOGfv.js} +1 -1
  135. package/dist/{vue-ui-spark-trend-DCP7blHB.js → vue-ui-spark-trend-D155vscB.js} +1 -1
  136. package/dist/{vue-ui-sparkbar-DT3sDgda.js → vue-ui-sparkbar-DFShNanl.js} +1 -1
  137. package/dist/{vue-ui-sparkgauge-AQt2L5dI.js → vue-ui-sparkgauge-CFj0wLj5.js} +1 -1
  138. package/dist/{vue-ui-sparkhistogram-a_jc2Dv2.js → vue-ui-sparkhistogram-DwDcqqEj.js} +1 -1
  139. package/dist/{vue-ui-sparkline-D2-KcHAU.js → vue-ui-sparkline-kxl5wQGY.js} +1 -1
  140. package/dist/{vue-ui-sparkstackbar-CBI4S5cu.js → vue-ui-sparkstackbar-CHjaAWVJ.js} +1 -1
  141. package/dist/vue-ui-stackbar-BrtUg-Mb.js +29 -0
  142. package/dist/vue-ui-stackline-CU2UkEJU.js +39 -0
  143. package/dist/vue-ui-strip-plot-BmEpoIoU.js +2 -0
  144. package/dist/vue-ui-table-Ddg209i0.js +14 -0
  145. package/dist/vue-ui-table-heatmap-B8AdX6Nq.js +1 -0
  146. package/dist/{vue-ui-table-sparkline-By319cB8.js → vue-ui-table-sparkline-B62l_ODH.js} +1 -1
  147. package/dist/vue-ui-thermometer-CvxyfTWE.js +1 -0
  148. package/dist/{vue-ui-timer-C6Pevf4N.js → vue-ui-timer-BkNtid9A.js} +2 -2
  149. package/dist/vue-ui-tiremarks-BE0nbuHp.js +1 -0
  150. package/dist/vue-ui-treemap-B9wAoh5g.js +1 -0
  151. package/dist/vue-ui-waffle-DqeBiuY3.js +1 -0
  152. package/dist/vue-ui-wheel---NZaS40.js +1 -0
  153. package/dist/vue-ui-word-cloud-DRFGFVmf.js +4 -0
  154. package/dist/vue-ui-world-D5gKzypf.js +19 -0
  155. package/dist/{vue-ui-xy-Df5gIADT.js → vue-ui-xy-Caj8jz6D.js} +1 -1
  156. package/dist/vue-ui-xy-CcVIXfL_.js +27 -0
  157. package/dist/vue-ui-xy-canvas-BceSG3AO.js +9 -0
  158. package/package.json +1 -1
  159. package/dist/UserOptions-DW84OKKr.js +0 -1
  160. package/dist/package-CNWVs68D.js +0 -1
  161. package/dist/vue-data-ui-BWqplouA.js +0 -1
  162. package/dist/vue-ui-3d-bar-DmRrbXjK.js +0 -19
  163. package/dist/vue-ui-age-pyramid-CJJIp5gY.js +0 -1
  164. package/dist/vue-ui-annotator-BnR2XnsL.js +0 -331
  165. package/dist/vue-ui-bullet-Br7H7FSM.js +0 -34
  166. package/dist/vue-ui-bump-DCDHNvWE.js +0 -8
  167. package/dist/vue-ui-candlestick-C_swW8gM.js +0 -22
  168. package/dist/vue-ui-carousel-table-BP_yVdDm.js +0 -1
  169. package/dist/vue-ui-chestnut-CIGNqBsT.js +0 -1
  170. package/dist/vue-ui-chord-DZRFBkRJ.js +0 -21
  171. package/dist/vue-ui-circle-pack-CtdPeMsY.js +0 -13
  172. package/dist/vue-ui-dag-Cj0CcntI.js +0 -9
  173. package/dist/vue-ui-dashboard-HyzHqAtX.js +0 -1
  174. package/dist/vue-ui-donut-Cv-bYyBN.js +0 -47
  175. package/dist/vue-ui-donut-evolution-DL112anx.js +0 -2
  176. package/dist/vue-ui-dumbbell-owG24VsQ.js +0 -9
  177. package/dist/vue-ui-flow-BMNIydqI.js +0 -3
  178. package/dist/vue-ui-funnel-BsVS3vuI.js +0 -1
  179. package/dist/vue-ui-galaxy-B8HgdBjc.js +0 -1
  180. package/dist/vue-ui-gauge-B1A_NFY6.js +0 -1
  181. package/dist/vue-ui-geo-_TG4jaV9.js +0 -1
  182. package/dist/vue-ui-heatmap-BbQseEbM.js +0 -1
  183. package/dist/vue-ui-hill-D3V84h_t.js +0 -1
  184. package/dist/vue-ui-history-plot-Bx4WYG6U.js +0 -2
  185. package/dist/vue-ui-horizontal-bar-Do0HJy4f.js +0 -4
  186. package/dist/vue-ui-molecule-bAMGCA2Y.js +0 -1
  187. package/dist/vue-ui-mood-radar-CFpgxjuR.js +0 -1
  188. package/dist/vue-ui-nested-donuts-CWY26iKX.js +0 -19
  189. package/dist/vue-ui-onion-DsBUqL_c.js +0 -5
  190. package/dist/vue-ui-parallel-coordinate-plot-BF3gO85b.js +0 -9
  191. package/dist/vue-ui-quadrant-BkNG2LGm.js +0 -2
  192. package/dist/vue-ui-quick-chart-CYxvgVpD.js +0 -17
  193. package/dist/vue-ui-radar-0H8CiLmc.js +0 -1
  194. package/dist/vue-ui-relation-circle-B0BM4xf8.js +0 -1
  195. package/dist/vue-ui-ridgeline-D-fDuE3y.js +0 -2
  196. package/dist/vue-ui-rings-UtlBiaZZ.js +0 -1
  197. package/dist/vue-ui-scatter-CduaARRt.js +0 -9
  198. package/dist/vue-ui-stackbar-DS_31-a3.js +0 -29
  199. package/dist/vue-ui-stackline-CuxohB0U.js +0 -39
  200. package/dist/vue-ui-strip-plot-bYGhsPA5.js +0 -2
  201. package/dist/vue-ui-table-heatmap-D6gpmHg8.js +0 -1
  202. package/dist/vue-ui-table-lzolsJ_n.js +0 -14
  203. package/dist/vue-ui-thermometer-B3Uv3aWc.js +0 -1
  204. package/dist/vue-ui-tiremarks-DeNdCFVD.js +0 -1
  205. package/dist/vue-ui-treemap-Ck9_llHA.js +0 -1
  206. package/dist/vue-ui-waffle-BW2SacnV.js +0 -1
  207. package/dist/vue-ui-wheel-BXDhx5bf.js +0 -1
  208. package/dist/vue-ui-word-cloud-DKPtoruY.js +0 -4
  209. package/dist/vue-ui-world-D9vpDbN7.js +0 -19
  210. package/dist/vue-ui-xy-CMckdUft.js +0 -27
  211. package/dist/vue-ui-xy-canvas-CBrKi3nN.js +0 -9
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as n}from"./img-D4RQwASc.js";import{t as r}from"./BaseIcon-CoY0vuL3.js";import{t as i}from"./vClickOutside-BxNzkY17.js";import{Fragment as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as f,nextTick as p,normalizeClass as m,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as _,onMounted as v,openBlock as y,ref as b,renderList as ee,renderSlot as x,toDisplayString as te,unref as S,watch as ne,withDirectives as re,withKeys as ie,withModifiers as C}from"vue";var w=/* @__PURE__ */ new WeakMap;function ae(e){if(!e?.classList||e.classList.contains(`vue-ui-graph`))return{enter(){},stop(){}};if(w.has(e))return w.get(e);let t=e.clientWidth||e.getBoundingClientRect().width||800,n=/* @__PURE__ */ new Set,r=null,i,a,o=!1,s=1,c=1,l=[`--vdui-fullscreen-width`,`--vdui-fullscreen-scale`,`--vdui-fullscreen-chrome-width`,`--vdui-fullscreen-chrome-scale`,`--vdui-fullscreen-pan-height`,`--vdui-fullscreen-chart-width`].map(t=>[t,e.style.getPropertyValue(t),e.style.getPropertyPriority(t)]);function u(t,n){e.style.getPropertyValue(t)!==n&&e.style.setProperty(t,n)}function d(){if(r=null,!o||!e.isConnected)return;u(`--vdui-fullscreen-width`,`${t}px`),u(`--vdui-fullscreen-scale`,String(s));for(let t of e.children){let e=getComputedStyle(t);e.position!==`absolute`&&e.position!==`fixed`&&(n.has(t)||(n.add(t),t.setAttribute(`data-vdui-fullscreen-content`,``),i?.observe(t)))}let a=Math.max(1,e.clientWidth-32),l=Math.max(1,e.clientHeight-32);u(`--vdui-fullscreen-chrome-width`,`${a/c}px`),u(`--vdui-fullscreen-chrome-scale`,String(c));let d=0,p=0,m=0,h=t;for(let t of n){if(!e.contains(t)){i?.unobserve(t),n.delete(t);continue}let r=getComputedStyle(t);if(r.position===`absolute`||r.position===`fixed`){t.removeAttribute(`data-vdui-fullscreen-content`),t.removeAttribute(`data-vdui-fullscreen-visual`),t.removeAttribute(`data-vdui-fullscreen-pan-zoom`),i?.unobserve(t),n.delete(t);continue}if(r.display===`none`)continue;let a=!t.hasAttribute(`data-vdui-fullscreen-control`)&&(t.matches(`svg, canvas, table`)||!!t.querySelector(`canvas, table`)||[...t.querySelectorAll(`svg`)].some(e=>!e.closest(`[data-vdui-fullscreen-control]`)&&(e.matches(`.vue-data-ui-svg, .vue-data-ui-fullscreen--on`)||e.clientWidth>128)));a!==t.hasAttribute(`data-vdui-fullscreen-visual`)&&(t.toggleAttribute(`data-vdui-fullscreen-visual`,a),f());let o=t.matches(`svg[data-vdui-pan-zoom]`)||!!t.querySelector(`svg[data-vdui-pan-zoom]`);o!==t.hasAttribute(`data-vdui-fullscreen-pan-zoom`)&&(t.toggleAttribute(`data-vdui-fullscreen-pan-zoom`,o),f()),o&&(d+=1);let l=t.getBoundingClientRect(),u=a?s:c,g=l.height/u+(parseFloat(r.marginTop)||0)+(parseFloat(r.marginBottom)||0);a?o||(h=Math.max(h,l.width/s),p+=g):m+=g}let g=Math.min(96,l/3),_=Math.min(1,(l-g)/Math.max(1,m));Math.abs(_-c)*Math.max(1,m)>.25&&(c=_,u(`--vdui-fullscreen-chrome-scale`,String(c)),u(`--vdui-fullscreen-chrome-width`,`${a/c}px`),f()),d&&u(`--vdui-fullscreen-pan-height`,`${Math.max(1,l-m*c-p*s)/d}px`);let v=Math.min(a/h,Math.max(1,l-m*c)/Math.max(1,p));Number.isFinite(v)&&v>0&&Math.abs(v-s)*Math.max(1,h,p)>.25&&(s=v,u(`--vdui-fullscreen-scale`,String(s))),u(`--vdui-fullscreen-chart-width`,`${Math.min(a,t*s)/c}px`)}function f(){o&&r===null&&(r=requestAnimationFrame(d))}function p(){document.fullscreenElement!==e&&h()}function m(){o||(o=!0,e.setAttribute(`data-vdui-fullscreen-layout`,``),u(`--vdui-fullscreen-width`,`${t}px`),u(`--vdui-fullscreen-scale`,`1`),u(`--vdui-fullscreen-chrome-scale`,`1`),u(`--vdui-fullscreen-chrome-width`,`${Math.max(1,e.clientWidth-32)}px`),i=new ResizeObserver(f),i.observe(e),a=new MutationObserver(e=>{e.some(e=>!(e.target instanceof SVGElement))&&f()}),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`class`]}),window.addEventListener(`resize`,f),document.addEventListener(`fullscreenchange`,p),d())}function h(){if(!o)w.get(e)===g&&w.delete(e);else{o=!1,r!==null&&cancelAnimationFrame(r),r=null,i?.disconnect(),a?.disconnect(),window.removeEventListener(`resize`,f),document.removeEventListener(`fullscreenchange`,p),w.delete(e),e.removeAttribute(`data-vdui-fullscreen-layout`);for(let e of n)e.removeAttribute(`data-vdui-fullscreen-content`),e.removeAttribute(`data-vdui-fullscreen-visual`),e.removeAttribute(`data-vdui-fullscreen-pan-zoom`);n.clear();for(let[t,n,r]of l)n?e.style.setProperty(t,n,r):e.style.removeProperty(t);s=1,c=1}}let g={enter:m,stop:h};return w.set(e,g),g}var oe={beforeMount(e,t){let n=()=>typeof t.value==`function`?{handler:t.value,targets:[e],disabled:!1,scrollGuardMs:250,moveThreshold:10}:{handler:t.value?.handler,targets:t.value?.targets??[e],disabled:!!t.value?.disabled,scrollGuardMs:t.value?.scrollGuardMs??250,moveThreshold:t.value?.moveThreshold??10},r={lastScrollTs:0,pointerId:null,startX:0,startY:0,moved:!1},i=()=>{r.lastScrollTs=performance.now()},a=e=>{r.pointerId=e.pointerId??null,r.startX=e.clientX??0,r.startY=e.clientY??0,r.moved=!1},o=e=>{if(r.pointerId===null||(e.pointerId??null)!==r.pointerId)return;let t=(e.clientX??0)-r.startX,i=(e.clientY??0)-r.startY,{moveThreshold:a}=n();t*t+i*i>=a*a&&(r.moved=!0)},s=e=>{r.pointerId!==null&&(e.pointerId??null)===r.pointerId&&(r.pointerId=null)},c=(e,t)=>{let n=e.composedPath?e.composedPath():[];for(let r of t){let t=r&&typeof r==`object`&&`value`in r?r.value:r;if(t&&(t===e.target||t.contains&&t.contains(e.target)||n.length&&n.includes(t)))return!0}return!1},l=e=>{let{handler:t,targets:i,disabled:a,scrollGuardMs:o}=n();a||typeof t==`function`&&(performance.now()-r.lastScrollTs<o||r.moved||c(e,i)||t(e))};e.__vPopoverClickOutside__={onScrollCapture:i,onPointerDownCapture:a,onPointerMoveCapture:o,onPointerUpCapture:s,onClickCapture:l},window.addEventListener(`scroll`,i,!0),document.addEventListener(`pointerdown`,a,!0),document.addEventListener(`pointermove`,o,!0),document.addEventListener(`pointerup`,s,!0),document.addEventListener(`click`,l,!0)},unmounted(e){let t=e.__vPopoverClickOutside__;t&&(window.removeEventListener(`scroll`,t.onScrollCapture,!0),document.removeEventListener(`pointerdown`,t.onPointerDownCapture,!0),document.removeEventListener(`pointermove`,t.onPointerMoveCapture,!0),document.removeEventListener(`pointerup`,t.onPointerUpCapture,!0),document.removeEventListener(`click`,t.onClickCapture,!0),delete e.__vPopoverClickOutside__)}},T=/* @__PURE__ */ e({default:()=>E}),se=[`title`,`onKeydown`],ce=[`popover`,`data-open`],le=[`onClick`,`onMouseenter`,`onMouseout`],ue=[`title`],de=[`data-open`],fe=[`onClick`,`onMouseenter`,`onMouseout`],E=/*#__PURE__*/ t({__name:`UserOptions`,props:{hasAnalyze:{type:Boolean,default:!1},hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasSvg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:`right`},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1},callbacks:{type:Object,default(){return{}}},printScale:{type:Number,default:2},tableDialog:{type:Boolean,default:!1},hasZoom:{type:Boolean,default:!1},isZoom:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},hasAltCopy:{type:Boolean,default:!1}},emits:[`analyze`,`generatePdf`,`generateCsv`,`generateImage`,`toggleTable`,`toggleLabels`,`toggleSort`,`toggleFullscreen`,`toggleStack`,`toggleTooltip`,`toggleAnimation`,`toggleAnnotator`,`generateSvg`,`toggleZoom`,`copyAlt`],setup(e,{expose:t,emit:w}){let T=e,E=w,D=b(null),O=b(null),k=b(null),A=b(!1),j=o(()=>typeof window<`u`&&typeof HTMLElement<`u`&&`popover`in HTMLElement.prototype);async function pe(){if(T.callbacks.pdf){let{imageUri:e,base64:t}=await n({domElement:T.chartElement,base64:!0,img:!0,scale:T.printScale});T.callbacks.pdf({domElement:T.chartElement,base64:t,imageUri:e})}else E(`generatePdf`)}function me(){E(`generateCsv`,T.callbacks.csv)}async function he(){if(T.callbacks.img){E(`generateImage`,{stage:`start`});try{let{imageUri:e,base64:t}=await n({domElement:T.chartElement,base64:!0,img:!0,scale:T.printScale});await Promise.resolve(T.callbacks.img({domElement:T.chartElement,imageUri:e,base64:t}))}finally{E(`generateImage`,{stage:`end`})}}else E(`generateImage`)}function ge(){E(`generateSvg`,{isCb:!!T.callbacks.svg})}let M=b(!1);function _e(){T.callbacks.table?T.callbacks.table():(M.value=!M.value,E(`toggleTable`))}function ve(e){M.value=e}t({setTableIconState:ve,setTooltipIconState:Se});let N=b(T.isLabelActive);function ye(){T.callbacks.labels?T.callbacks.labels():(N.value=!N.value,E(`toggleLabels`))}let P=b(T.isAnimation);function F(){T.callbacks.animation?T.callbacks.animation():(P.value=!P.value,E(`toggleAnimation`))}let I=b(T.isZoom);function L(){T.callbacks.zoom?T.callbacks.zoom():(I.value=!I.value,E(`toggleZoom`))}let R=o({get:()=>T.isAnnotation,set:e=>e});function z(){T.callbacks.annotator?T.callbacks.annotator():(R.value=!R.value,E(`toggleAnnotator`))}function be(){T.callbacks.sort?T.callbacks.sort():E(`toggleSort`)}function B(){E(`copyAlt`)}let V=b(T.isStacked);function xe(){T.callbacks.stack?T.callbacks.stack():(V.value=!V.value,E(`toggleStack`))}let H=b(T.isTooltip);function Se(e){H.value=e}function Ce(){T.callbacks.tooltip?T.callbacks.tooltip():(H.value=!H.value,E(`toggleTooltip`))}let U=null,W=null;function we(){W!==T.chartElement&&(U?.stop(),W=T.chartElement,U=ae(T.chartElement))}async function Te(){if(T.chartElement){we(),E(`toggleFullscreen`,!T.isFullscreen);try{document.fullscreenElement===T.chartElement?await document.exitFullscreen():await T.chartElement.requestFullscreen()}catch{U?.stop(),E(`toggleFullscreen`,!1)}}}function G(){let e=!!T.chartElement&&document.fullscreenElement===T.chartElement;e?(we(),U?.enter()):U?.stop(),e!==T.isFullscreen&&E(`toggleFullscreen`,e)}v(()=>{document.addEventListener(`fullscreenchange`,G),T.chartElement&&document.fullscreenElement===T.chartElement&&G()}),_(()=>{document.removeEventListener(`fullscreenchange`,G);let e=U,t=W;p(()=>{t?.isConnected&&document.fullscreenElement===t||e?.stop()})});let K=b(window.innerWidth>600),q=b({analyze:!1,tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1,svg:!1,zoom:!1,altCopy:!1}),Ee=b(!0);function De(){K.value=window.innerWidth>600,A.value=!A.value,A.value&&(Ee.value=!1)}function Oe(){T.isPrinting||T.isImaging||(A.value=!1)}function ke(){A.value&&Oe()}let J=b(0);function Ae(){J.value=performance.now()+50}function Y(){T.isPrinting||T.isImaging||(j.value&&Q(),A.value=!1)}function je(){performance.now()<J.value||Y()}function Me(){if(K.value=window.innerWidth>600,!j.value){A.value||Ae(),A.value=!A.value;return}let e=k.value;e&&e.matches&&e.matches(`:popover-open`)||A.value?(A.value=!1,Q()):(Ae(),A.value=!0)}function Ne(){Me()}function X(e,t,n,r){let i=window.devicePixelRatio||1,a=e=>Math.round(e*i)/i;e.style.position=`fixed`,e.style.top=`${a(t)}px`,e.style.left=`${a(n)}px`,e.style.right=`auto`,e.style.width=`${a(r)}px`}function Pe(e){if(e.style.width=``,e.style.left=``,e.style.right=``,e.style.top=``,e.style.position=`absolute`,e.style.top=`36px`,T.position===`right`){let t=T.offsetX?T.offsetX:T.noOffset?0:4;e.style.right=`${t}px`,e.style.left=`auto`}else{let t=T.noOffset?0:4;e.style.left=`${t}px`,e.style.right=`auto`}e.style.display=`flex`,e.style.visibility=`hidden`,e.style.pointerEvents=`none`}function Fe(){if(!j.value||!A.value||!D.value||!k.value)return;let e=D.value.getBoundingClientRect(),t=k.value.getBoundingClientRect(),n=e.top+38;if(T.position===`right`){let r=T.offsetX?T.offsetX:T.noOffset?0:4,i=e.right-r-t.width;X(k.value,n,i,t.width)}else{let r=T.noOffset?0:4,i=e.left+r;X(k.value,n,i,t.width)}}let Ie=0;function Le(){cancelAnimationFrame(Ie),Ie=requestAnimationFrame(()=>{Fe()})}function Z(){j.value&&A.value&&Le()}function Re(e,t){let n=window.devicePixelRatio||1,r=e=>Math.round(e*n)/n;e.style.position=`fixed`,e.style.top=`${r(t.top)}px`,e.style.left=`${r(t.left)}px`,e.style.right=`auto`,e.style.width=`${r(t.width)}px`}async function ze(e=!1){if(!j.value)return;let t=k.value;if(!t)return;let n=t.getAttribute(`style`)||``,r=t.getAttribute(`data-open`);t.setAttribute(`popover`,`manual`);try{t.setAttribute(`data-open`,`true`),Pe(t),await p();let i=t.getBoundingClientRect();t.setAttribute(`style`,n),r===null?t.removeAttribute(`data-open`):t.setAttribute(`data-open`,r),Re(t,i),e||(typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`)}catch{if(!e)try{typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`}catch{}}}function Q(){if(!j.value)return;let e=k.value;if(e){e.setAttribute(`popover`,`manual`);try{typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`}catch{e.style.display=`none`}e.style.position=``,e.style.top=``,e.style.left=``,e.style.right=``,e.style.width=``,e.style.inset=``}}function Be(){if(!j.value)return;let e=k.value;e&&(A.value&&=typeof e.matches==`function`&&(()=>{try{return e.matches(`:popover-open`)}catch{return!1}})())}function Ve(e){if(!j.value||!A.value||performance.now()<J.value)return;let t=e.composedPath?e.composedPath():[],n=O.value?t.includes(O.value):!1,r=k.value?t.includes(k.value):!1;!n&&!r&&Y()}ne(()=>T.isFullscreen,async()=>{j.value&&(await p(),A.value&&ze())}),ne(()=>A.value,async e=>{j.value&&(await p(),e?(await ze(!1),Fe()):Q())});function He(e){e.key===`Escape`&&D.value&&D.value.contains(document.activeElement)&&(e.preventDefault(),e.stopPropagation(),Y(),O.value?.focus())}v(()=>{window.addEventListener(`pointerdown`,Ve,!0),window.addEventListener(`resize`,Z,{passive:!0}),window.addEventListener(`scroll`,Z,{passive:!0,capture:!0}),k.value&&k.value.addEventListener(`toggle`,Be)}),_(()=>{window.removeEventListener(`pointerdown`,Ve,!0),window.removeEventListener(`resize`,Z),window.removeEventListener(`scroll`,Z,!0),k.value&&k.value.removeEventListener(`toggle`,Be)});let Ue=o(()=>[{key:`pdf`,visible:T.hasPdf,slot:`optionPdf`,testId:`user-options-pdf`,run:pe,icon:`filePdf`,alternate:T.isPrinting,alternateIcon:`hourglass`,spin:!0},{key:`csv`,visible:T.hasXls,slot:`optionCsv`,testId:`user-options-xls`,run:me,icon:`fileCsv`},{key:`img`,visible:T.hasImg,slot:`optionImg`,testId:`user-options-img`,run:he,icon:`filePng`,alternate:T.isImaging,alternateIcon:`hourglass`,spin:!0},{key:`svg`,visible:T.hasSvg,slot:`optionSvg`,testId:`user-options-svg`,run:ge,icon:`fileSvg`},{key:`tooltip`,visible:T.hasTooltip,slot:`optionTooltip`,testId:`user-options-tooltip`,run:Ce,icon:`tooltipDisabled`,alternate:H.value,alternateIcon:`tooltip`},{key:`table`,visible:T.hasTable,slot:`optionTable`,testId:`user-options-table`,run:_e,icon:M.value?`tableClose`:`tableOpen`,alternate:T.tableDialog,alternateIcon:M.value?`tableDialogClose`:`tableDialogOpen`},{key:`labels`,visible:T.hasLabel,slot:`optionLabels`,testId:`user-options-label`,run:ye,icon:N.value?`labelClose`:`labelOpen`},{key:`sort`,visible:T.hasSort,slot:`optionSort`,testId:`user-options-sort`,run:be,icon:`sort`},{key:`stack`,visible:T.hasStack,slot:`optionStack`,testId:`user-options-stack`,run:xe,icon:`stack`,alternate:V.value,alternateIcon:`unstack`,slotProps:{first:{name:`isStack`,value:V.value}}},{key:`fullscreen`,visible:T.hasFullscreen,slot:`optionFullscreen`,testId:`user-options-fullscreen`,run:()=>Te(T.isFullscreen?`out`:`in`),icon:`fullscreen`,alternate:T.isFullscreen,alternateIcon:`exitFullscreen`,slotProps:{first:{name:`toggleFullscreen`,value:Te},second:{name:`isFullscreen`,value:T.isFullscreen}}},{key:`zoom`,visible:T.hasZoom,slot:`optionZoom`,testId:`user-options-fullscreen`,run:()=>L(),icon:`zoomLock`,alternate:T.isZoom,alternateIcon:`zoomUnlock`,slotProps:{first:{name:`toggleZoom`,value:L},second:{name:`isZoomLocked`,value:!T.isZoom}}},{key:`animation`,visible:T.hasAnimation,slot:`optionAnimation`,testId:`user-options-anim`,run:F,icon:`pause`,alternate:P.value,alternateIcon:`play`,slotProps:{first:{name:`toggleAnimation`,value:F},second:{name:`isAnimated`,value:P.value}}},{key:`annotator`,visible:T.hasAnnotator,slot:`optionAnnotator`,testId:`user-options-annotator`,run:z,icon:`annotator`,alternate:R.value,alternateIcon:`annotatorDisabled`,slotProps:{first:{name:`toggleAnnotator`,value:z},second:{name:`isAnnotator`,value:R.value}}},{key:`analyze`,visible:T.hasAnalyze,slot:`optionAnalyze`,testId:`user-options-analyze`,run:()=>E(`analyze`),icon:`analyze`},{key:`altCopy`,visible:T.hasAltCopy,slot:`optionAltCopy`,testId:`user-options-alt-copy`,run:B,icon:`accessibility`,slotProps:{first:{name:`copyAlt`,value:B}}}]);function $(e){let t={"button-info-left":T.position===`left`,"button-info-right":T.position===`right`},n=T.position===`left`&&q.value[e],r=T.position===`right`&&q.value[e];return e===`tooltip`?{...t,"button-info-left-visible":n,"button-info-right-visible":r}:{...t,"button-info-right-visible":r,"button-info-left-visible":n}}return(t,n)=>j.value?re((y(),l(`div`,{key:0,ref_key:`rootRef`,ref:D,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:g(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:He},[u(`div`,{ref_key:`triggerRef`,ref:O,tabindex:`0`,role:`button`,title:A.value?e.titles.close||``:e.titles.open||``,style:g(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:${e.isCursorPointer?`pointer`:`default`}; background:transparent`),onPointerdown:C(Me,[`stop`,`prevent`]),onKeydown:ie(C(Ne,[`stop`,`prevent`]),[`enter`])},[x(t.$slots,`menuIcon`,h(f({isOpen:A.value,color:e.color})),()=>[d(r,{name:A.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,se),u(`div`,{ref_key:`drawerRef`,ref:k,popover:j.value?`manual`:null,"data-open":j.value?null:A.value,class:m({"vue-ui-user-options-drawer":!0}),style:g(j.value?{background:e.backgroundColor}:`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[x(t.$slots,`custom-menu-before`,{},void 0,!0),(y(!0),l(a,null,ee(Ue.value,n=>(y(),l(a,{key:n.key},[n.visible?(y(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n.run,onMouseenter:e=>q.value[n.key]=!0,onMouseout:e=>q.value[n.key]=!1,style:g({cursor:e.isCursorPointer?`pointer`:`default`})},[t.$slots[n.slot]?(y(),l(a,{key:0},[n.slotProps?n.slotProps.second?x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):x(t.$slots,n.slot,{},void 0,!0,0)],64)):(y(),l(a,{key:1},[n.alternate?(y(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(y(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),K.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(y(),l(`div`,{key:2,dir:`auto`,class:m($(n.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[n.key]),7)):c(``,!0)],44,le)):c(``,!0)],64))),128)),x(t.$slots,`custom-menu-after`,{},void 0,!0)],12,ce)],36)),[[S(oe),j.value?null:{targets:[D.value,k.value,O.value],handler:je}]]):re((y(),l(`div`,{key:1,ref_key:`rootRef`,ref:D,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:g(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:He},[u(`div`,{ref_key:`triggerRef`,ref:O,tabindex:`0`,title:A.value?e.titles.close||``:e.titles.open||``,style:g(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:C(De,[`stop`]),onKeypress:ie(De,[`enter`])},[x(t.$slots,`menuIcon`,h(f({isOpen:A.value,color:e.color})),()=>[d(r,{name:A.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,ue),u(`div`,{ref_key:`drawerRef`,ref:k,"data-open":A.value,class:m({"vue-ui-user-options-drawer":!0}),style:g(`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[x(t.$slots,`custom-menu-before`,{},void 0,!0),(y(!0),l(a,null,ee(Ue.value,n=>(y(),l(a,{key:n.key},[n.visible?(y(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:e=>n.run(e),onMouseenter:e=>q.value[n.key]=!0,onMouseout:e=>q.value[n.key]=!1},[t.$slots[n.slot]?(y(),l(a,{key:0},[n.slotProps?n.slotProps.second?x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):x(t.$slots,n.slot,{},void 0,!0,0)],64)):(y(),l(a,{key:1},[n.alternate?(y(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(y(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),K.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(y(),l(`div`,{key:2,dir:`auto`,class:m($(n.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[n.key]),7)):c(``,!0)],40,fe)):c(``,!0)],64))),128)),x(t.$slots,`custom-menu-actions`,{},void 0,!0)],12,de)],36)),[[S(i),ke]])}},[[`__scopeId`,`data-v-cab0147c`]]);export{T as n,E as t};
@@ -1 +0,0 @@
1
- var e=`3.28.8`;export{e as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-CoY0vuL3.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createSlots as s,createTextVNode as c,defineAsyncComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDynamicComponent as y,toDisplayString as b,useAttrs as x,watch as S,withCtx as C}from"vue";var w=/* @__PURE__ */ e({default:()=>E}),T={style:{width:`36px`}},E=/*@__PURE__*/ Object.assign({inheritAttrs:!1},{__name:`vue-data-ui`,props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},setup(e,{expose:w}){let E=e,D=x(),O={VueUiGraph:l(()=>import(`./vue-ui-graph-DScVnTzu.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-DmRrbXjK.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-CJJIp5gY.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-BnR2XnsL.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-C_swW8gM.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-CIGNqBsT.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-HyzHqAtX.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-CfdB0vaP.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-Cv-bYyBN.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-DL112anx.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-B8HgdBjc.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-B1A_NFY6.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-BbQseEbM.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-CF7pAl08.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-OLYDdN3T.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-bAMGCA2Y.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-CFpgxjuR.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-CWY26iKX.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-DsBUqL_c.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-BkNG2LGm.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-0H8CiLmc.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-B9HeTCLa.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-B0BM4xf8.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-UtlBiaZZ.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-CduaARRt.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-an0peDis.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-Cht1imV-.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-DT3sDgda.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-AQt2L5dI.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-a_jc2Dv2.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-D2-KcHAU.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-CBI4S5cu.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-lzolsJ_n.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-By319cB8.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-B3Uv3aWc.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-DeNdCFVD.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-Ck9_llHA.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-Do0HJy4f.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-Do0HJy4f.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-BW2SacnV.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-BXDhx5bf.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-CMckdUft.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-D6gpmHg8.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-CYxvgVpD.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-DRQc_V2R.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-DCP7blHB.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-bYGhsPA5.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-owG24VsQ.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-DKPtoruY.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-CBrKi3nN.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-BMNIydqI.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-BF3gO85b.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-C6Pevf4N.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-BP_yVdDm.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-D0QjzIGt.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-DS_31-a3.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-CuxohB0U.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-Br7H7FSM.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-BsVS3vuI.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-Bx4WYG6U.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-CtdPeMsY.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-D9vpDbN7.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-D-fDuE3y.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-DZRFBkRJ.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-Cj0CcntI.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-_TG4jaV9.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-DCDHNvWE.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-D3V84h_t.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-W0oz08pp.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.toggleFullscreen.toggleTooltip.toggleZoom.zoomIn.zoomOut`.split(`.`),j=g(null),M=n(()=>!O[E.component]),N=n(()=>O[E.component]||null);function P(){let e={...D,config:E.config};return k.has(E.component)||(e.dataset=E.dataset),e}let F=[];function I(e,t){return new Promise((n,r)=>{F.push({method:e,args:t,resolve:n,reject:r})})}function L(e){return/* @__PURE__ */ Error(`Method "${e}" not found on ${E.component}`)}function R(e,t){let n=j.value;if(!n)return null;let r=n[e];return typeof r==`function`?r.apply(n,t):null}function z(e,t){let n=j.value;if(!n)return I(e,t);let r=n[e];return typeof r==`function`?r.apply(n,t):Promise.reject(L(e))}S(j,e=>{if(e)for(;F.length;){let{method:t,args:n,resolve:r,reject:i}=F.shift(),a=e[t];typeof a==`function`?Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i):i(L(t))}}),w({getData(...e){return z(`getData`,e)},getImage(e={}){let{scale:t=2}=e;return z(`getImage`,[{scale:t}])},...Object.fromEntries(A.map(e=>[e,(...t)=>R(e,t)]))}),m(()=>{M.value&&console.error(`\n\nVue Data UI exception:\nThe provided component "${E.component}" does not exist. Check the spelling.\n\nAvailable components:\n\n${Object.keys(O).map(e=>`. ${e}\n`).join(``)}`)});let B=n(()=>{let e=`The provided component ${E.component} does not exist.`;return[`VueUiIcon`,`VueUiPattern`,`Arrow`].includes(E.component)?(e=`${E.component} is not supported by the VueDataUi universal component. You must import it individually.`,console.warn(e),{status:`notSupported`,message:e}):(console.warn(e),{status:`unknown`,message:e})});return(e,n)=>M.value?(h(),a(`div`,{key:0,style:p({width:`100%`,display:`flex`,gap:`6px`,alignItems:`center`,color:B.value.status===`notSupported`?`#FF9000`:`#FF0000`})},[o(`div`,T,[B.value.status===`unknown`?(h(),r(t,{key:0,name:`moodFlat`,stroke:`#FF0000`})):i(``,!0),B.value.status===`notSupported`?(h(),r(t,{key:1,name:`circleExclamation`,stroke:`#FF9000`})):i(``,!0)]),c(` `+b(B.value.message),1)],4)):(h(),r(y(N.value),d({key:1,ref_key:`currentComponentRef`,ref:j},P()),s({_:2},[_(e.$slots,(t,n)=>({name:n,fn:C(t=>[v(e.$slots,n,f(u(t)))])}))]),1040))}});export{w as n,E as t};
@@ -1,19 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-By3Vb5kz.js";import{$ as a,D as o,Ft as s,Ht as c,It as l,Jt as u,Q as d,S as f,X as p,at as m,b as h,f as g,h as ee,i as te,in as ne,nt as re,p as ie,t as ae,w as oe,yt as se,zt as ce}from"./lib-rPeBMZrn.js";import{n as le,t as ue}from"./BaseScanner-8NdoBs7B.js";import{n as de}from"./useHints-C-TwxM0Y.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as pe}from"./resolveChartConfig-CIhClE5R.js";import{t as me}from"./img-D4RQwASc.js";import{n as he}from"./Title-BliHuXfT.js";import{t as ge}from"./useChartExport-BZts4KFb.js";import{n as _e,t as ve}from"./tableIntegration-CNoJ1CIY.js";import{n as ye,t as be}from"./userOptionsSlots-DYuo-E5m.js";import{t as xe}from"./usePrinter-DVf3YcG5.js";import{c as Se}from"./canvas-lib-22VpOI4_.js";import{t as Ce}from"./useResponsive-CENUxfEL.js";import{t as _}from"./DefGrad-DKMq1REY.js";import{t as we}from"./A11yDataTable-DWNlWXzs.js";import{t as Te}from"./useUserOptionState-CXlFnwPv.js";import{t as Ee}from"./useChartAccessibility-DOMuYJfm.js";import{t as De}from"./vue_ui_3d_bar-DmAve5Ri.js";import{Fragment as v,computed as y,createBlock as b,createCommentVNode as x,createElementBlock as S,createElementVNode as C,createSlots as Oe,createTextVNode as ke,createVNode as w,defineAsyncComponent as T,guardReactiveProps as Ae,mergeProps as je,nextTick as Me,normalizeClass as Ne,normalizeProps as Pe,normalizeStyle as E,onMounted as Fe,openBlock as D,ref as O,renderList as k,renderSlot as A,resolveDynamicComponent as Ie,toDisplayString as j,toRefs as Le,unref as M,watch as Re,withCtx as N,withKeys as ze,withModifiers as Be}from"vue";var Ve=/* @__PURE__ */ e({default:()=>cn}),He=[`id`],Ue=[`id`],We={"aria-live":`polite`,class:`sr-only`},Ge={style:{position:`relative`}},Ke=[`xmlns`,`viewBox`,`aria-describedby`],qe=[`width`,`height`],Je={key:1},Ye=[`x`,`y`,`font-size`,`font-weight`,`fill`],Xe=[`x`,`y`],Ze=[`cx`,`cy`,`stroke`,`opacity`],Qe=[`d`,`stroke`],$e=[`d`,`stroke`],et={key:4},tt={key:0},nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],rt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],it=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],at=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],ot={key:1},st=[`d`,`stroke`,`stroke-width`,`fill`],ct=[`d`,`stroke`,`stroke-width`,`fill`],lt=[`d`,`stroke`,`stroke-width`,`fill`],ut={key:2},dt=[`aria-label`],ft=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],pt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],mt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],ht=[`d`,`onMouseenter`,`onClick`,`onMouseout`],gt=[`d`],_t=[`d`,`stroke`],vt=[`onClick`],yt=[`stroke`,`d`],bt=[`cx`,`cy`,`fill`,`stroke`],xt=[`x`,`y`,`width`,`height`],St=[`x`,`y`,`width`,`height`],Ct={key:3},wt=[`d`,`stroke`],Tt=[`d`,`fill`,`stroke`],Et={key:0},Dt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],Ot=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],kt={key:4},At=[`d`,`fill`,`stroke`],jt={key:5},Mt={key:0},Nt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Pt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Ft=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],It=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Lt=[`d`,`stroke`,`stroke-width`,`fill`],Rt=[`d`,`stroke`,`stroke-width`,`fill`],zt=[`d`],Bt={key:1},Vt=[`aria-label`],Ht=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Ut=[`onMouseenter`,`onClick`,`onMouseout`,`d`],Wt=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Gt=[`onClick`],Kt=[`stroke`,`d`],qt=[`cx`,`cy`,`fill`,`stroke`],Jt=[`x`,`y`,`width`,`height`],Yt=[`x`,`y`,`width`,`height`],Xt={key:3},Zt=[`d`,`stroke`],Qt=[`d`,`fill`,`stroke`],$t={key:0},en=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],tn=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],nn={key:4},rn=[`d`,`fill`,`stroke`],an={key:4,class:`vue-data-ui-watermark`},on={key:0},sn={key:1},cn=/*#__PURE__*/ fe({__name:`vue-ui-3d-bar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`selectDatapoint`,`copyAlt`],setup(e,{expose:fe,emit:Ve}){let cn=T(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),ln=T(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),un=T(()=>import(`./DataTable-Dof6yhO7.js`)),dn=T(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),fn=T(()=>import(`./UserOptions-DW84OKKr.js`).then(e=>e.n)),pn=T(()=>import(`./PackageVersion-Bczw6rsP.js`).then(e=>e.t)),mn=T(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_3d_bar:hn}=i(),P=e,gn=Ve,_n=y(()=>!!P.dataset&&Object.keys(P.dataset).length),F=O(p()),I=O(null),L=O(!1),vn=O(0),yn=O(0),bn=O(null),xn=O(null),Sn=O(null),Cn=O(null),R=O(!1),wn=O(null),Tn=O(null),z=O(null),B=O(``),V=O(Pn()),En=y(()=>V.value.style),H=y(()=>V.value.style.chart),U=y(()=>V.value.userOptions);de({config:()=>V.value,dataset:()=>P.dataset,component:`VueUi3dBar`,rules:[{test:e=>e?.series&&e.series.length>8,message:[`👀 The number of series is > 8. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]},{test:e=>e?.series&&e.series.some(e=>e?.breakdown&&e.breakdown.length>6),message:[`👀 Some donut breakdowns have > 6 data points. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" data point.`]}]});let Dn=y(()=>V.value.userOptions.useCursorPointer),On=y(()=>ne({defaultConfig:{customPalette:[`#808080`,`#ADADAD`,`#DBDBDB`],userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,color:`#6A6A6A`,bar:{color:`#ADADAD`,stroke:`#6A6A6A`},box:{stroke:`#6A6A6A`}}}},userConfig:V.value.skeletonConfig??{}})),{loading:kn,FINAL_DATASET:W}=le({...Le(P),FINAL_CONFIG:V,prepareConfig:Pn,callback:()=>{Promise.resolve().then(async()=>{await Me(),Un()})},skeletonDataset:P.config?.skeletonDataset??{series:[{name:`_`,value:21,breakdown:[{name:`_`,value:13},{name:`_`,value:8}]},{name:`_`,value:13,breakdown:[{name:`_`,value:8},{name:`_`,value:5}]},{name:`_`,value:8,breakdown:[{name:`_`,value:5},{name:`_`,value:3}]}]},skeletonConfig:ne({defaultConfig:V.value,userConfig:On.value})}),{userOptionsVisible:An,setUserOptionsVisibility:jn,keepUserOptionState:Mn}=Te({config:V.value}),{svgRef:Nn}=Ee({config:V.value.style.chart.title});function Pn(){return pe(P.config,hn,De)}Re(()=>P.config,e=>{kn.value||(V.value=Pn()),An.value=!V.value.userOptions.showOnChartHover,Kn(),vn.value+=1,yn.value+=1,G.value.showTable=V.value.table.show},{deep:!0});let{isPrinting:Fn,isImaging:In,generatePdf:Ln,generateImage:Rn}=xe({elementId:`3d_bar_${F.value}`,fileName:H.value.title.text||`vue-ui-3d-bar`,options:V.value.userOptions.print}),zn=y(()=>oe(V.value.customPalette)),G=O({showTable:V.value.table.show});Re(V,()=>{G.value={showTable:V.value.table.show}},{immediate:!0});let K=y(()=>W.value.series&&W.value.series.length),Bn=O(H.value.box.dimensions.width*(K.value?2:1)),Vn=O(H.value.box.dimensions.height),q=y(()=>({height:Vn.value,width:Bn.value,absoluteWidth:Bn.value,top:H.value.box.dimensions.top,bottom:H.value.box.dimensions.bottom,left:H.value.box.dimensions.left,right:H.value.box.dimensions.right,perspective:H.value.box.dimensions.perspective})),J=y(()=>{if(K.value){let e=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),t=W.value.series.map((t,n)=>({...t,seriesIndex:n,id:p(),proportion:(t.value||0)/e,color:f(t.color)||zn.value[n]||c[n]||c[n%c.length],breakdown:t.breakdown?t.breakdown.sort((e,t)=>t.value-e.value):null})).sort((e,t)=>t.value-e.value),n=[],r=0;for(let e=0;e<t.length;e+=1)n.push({...t[e],fill:Jn(r,t[e].proportion,t[e].breakdown,t[e].color)}),r+=t[e].proportion;return n}return null}),Y=y(()=>{let e=q.value.width/2,t=q.value;return{right:`M${e},${t.top} ${t.width-t.right}, ${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,left:`M${e},${t.top} ${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,side:`M${e},${t.height-t.bottom} ${e},${t.top+t.perspective*2}`,topSides:`M${t.left},${t.top+t.perspective} ${e},${t.top+t.perspective*2} ${t.width-t.right},${t.top+t.perspective}`,tubeTop:`M${t.left},${t.top+t.perspective} C ${t.left},${t.top-t.perspective/3} ${t.width-t.right},${t.top-t.perspective/3} ${t.width-t.right},${t.top+t.perspective} C ${t.width-t.right},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective}`,tubeLeft:`M${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective}`,tubeRight:`M${t.width-t.right},${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective}`,tubeBottom:`M${t.width-t.right},${t.height-t.bottom-t.perspective} C ${t.width-t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height-t.bottom-t.perspective}`}}),Hn=O(H.value.animation.use?0:W.value.percentage);function Un(){let e=0,t=H.value.animation.speed,n=.005*H.value.animation.acceleration;function r(){Hn.value+=t+e,e+=n,Hn.value<W.value.percentage?requestAnimationFrame(r):Hn.value=W.value.percentage}H.value.animation.use&&(Hn.value=0,r())}Fe(()=>{Kn(),Un()});let Wn=y(()=>V.value.debug);function Gn(){Wn.value&&(ce(P.dataset)?m({componentName:`VueUi3dBar`,type:`dataset`,debug:Wn.value}):P.dataset.series?P.dataset.series.forEach((e,t)=>{se({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:t,debug:Wn.value})}),e.breakdown&&e.breakdown.forEach((e,n)=>{se({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:`${t} - ${n}`,debug:Wn.value})})})}):se({datasetObject:P.dataset,requiredAttributes:[`percentage`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetAttribute`,property:e,debug:Wn.value})}))}function Kn(){if(Gn(),V.value.responsive){let e=Se(()=>{let{width:e,height:t}=Ce({chart:I.value,title:H.value.title.text?bn.value:null,source:Cn.value});requestAnimationFrame(()=>{Vn.value=t-12,Bn.value=e})});xn.value&&(Sn.value&&xn.value.unobserve(Sn.value),xn.value.disconnect()),xn.value=new ResizeObserver(e),Sn.value=I.value.parentNode,xn.value.observe(Sn.value)}}let qn=y(()=>q.value.width/4);function Jn(e,t,n,r){let i=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:a,height:o,bottom:c,right:u,left:d,perspective:f}=q.value,p=K.value?a/4:a/2,m=p*2+d,h=c+i*e,g=o-h-f-i*t/2,ee=g>q.value.height/2?`top`:`bottom`,te=o*.25,ne=!!n,re=null,ie=null;return ne&&(n=n.map((e,t)=>({...e,value:e.value||0,color:s(r,t/n.length)})),re=l({series:n},a/2+a/5,ee===`top`?g-te:g+te,a/10,a/10,1.99999,2,1,360,105.25,a/20),ie=l({series:n},a-m+a/14,o-h-f-i*t/2,a/40,a/40,1.99999,2,1,360,105.25,a/40)),{donut:re,miniDonut:ie,donutR:a/20,CENTER_X:p,sidePointer:{x:a-m,x2:a-m+a/14,xText:a-m+a/9,y:o-h-f-i*t/2,topY:o-h-f-i*t,height:i*t},apexBottom:{y:o-h,x:p},apexTop:{y:o-h-i*t,x:p},right:`M${p},${o-h} ${p},${o-h-i*t} ${a-m},${o-h-f-i*t} ${a-m},${o-h-f}Z`,left:`M${p},${o-h} ${p},${o-h-i*t} ${d}, ${o-h-f-i*t} ${d},${o-h-f}Z`,liningTop:`M${d},${o-h-f-i*t} ${p},${o-h-i*t} ${a-m},${o-h-f-i*t}`,liningTopShade:`M${d},${o-h-f-i*t-.5} ${p},${o-h-i*t-.5} ${a-m},${o-h-f-i*t-.5}`,top:`M${p},${o-h-i*t} ${d},${o-h-f-i*t} ${p},${o-h-f*2-i*t} ${a-m},${o-h-f-i*t} Z`,tubeTop:`M${d},${o-h-i*t-f} C ${d},${o-h-i*t-f*2.5} ${a-m},${o-h-i*t-f*2.5} ${a-m},${o-h-i*t-f} C ${a-m},${o-h-i*t+f/2} ${d},${o-h-i*t+f/2} ${d},${o-h-i*t-f}`,bottomTubeTop:`M ${a-m-.5},${o-h-f} C ${a-m-.5},${o-h+f/2} ${d},${o-h+f/2} ${d+.5},${o-h-f}`,tubeBody:`M
2
- ${d},${o-h-i*t-f}
3
- C ${d},${o-h-i*t+f/2}
4
- ${a-m},${o-h-i*t+f/2}
5
- ${a-m},${o-h-i*t-f}
6
- L${a-m},${o-h-f}
7
- C
8
- ${a-m},${o-h+f/2}
9
- ${d},${o-h+f/2}
10
- ${d},${o-h-f}Z`}}let Yn=y(()=>{let e=h(Hn.value/100),t=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:n,height:r,bottom:i,right:a,left:o,perspective:s}=q.value,c=K.value?n/4:n/2,l=K.value?c*2+o:a,u=i+t*0;return{right:`M${c},${r-u} ${c},${r-u-t*e} ${n-l},${r-u-s-t*e} ${n-l},${r-u-s}Z`,left:`M${c},${r-u} ${c},${r-u-t*e} ${o}, ${r-u-s-t*e} ${o},${r-u-s}Z`,top:`M${c},${r-u-t*e} ${o},${r-u-s-t*e} ${c},${r-u-s*2-t*e} ${n-l},${r-u-s-t*e} Z`,tubeTop:`M${o},${r-u-t*e-s} C ${o},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s} C ${n-l},${r-u-t*e+s/2} ${o},${r-u-t*e+s/2} ${o},${r-u-t*e-s}`,tubeBody:`M
11
- ${o},${r-u-t*e-s}
12
- C ${o},${r-u-t*e+s/2}
13
- ${n-l},${r-u-t*e+s/2}
14
- ${n-l},${r-u-t*e-s}
15
- L${n-l},${r-s*1.5}
16
- C
17
- ${n-l},${r}
18
- ${o},${r}
19
- ${o},${r-u-s}Z`}}),X=O(null);function Z(e,t=!1){V.value.events.datapointEnter&&!t&&V.value.events.datapointEnter({datapoint:e,seriesIndex:e.seriesIndex}),V.value.events.datapointClick&&t&&V.value.events.datapointClick({datapoint:e,seriesIndex:e.seriesIndex}),gn(`selectDatapoint`,e);let n=J.value?.findIndex(t=>t.id===e.id)??null;n!==null&&n!==-1&&(z.value=n,B.value=_r(e)),t||(X.value=e.id),t&&L.value&&(L.value=!1),t&&!L.value&&(L.value=!0)}function Q(e){V.value.events.datapointLeave&&V.value.events.datapointLeave({datapoint:e,seriesIndex:e.seriesIndex}),!L.value&&(X.value=null,z.value=null,B.value=``)}function Xn(e,t,n=!1){let r=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),i=isNaN(e.value/r)?0:e.value/r*100,a=isNaN(e.value/Zn(t))?0:e.value/Zn(t)*100;return n?a:i.toFixed(0)+`%`}function Zn(e){return[...e].map(e=>e.value).reduce((e,t)=>e+t,0)}let Qn=O(!1);function $n(e){Qn.value=e}function er(){return K.value?J.value:W.value.percentage}let tr=y(()=>K.value?{head:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[{name:e.name,color:e.color},...e.breakdown.map((t,n)=>({name:t.name,color:s(e.color,n/e.breakdown.length)}))]:{name:e.name,color:e.color}),body:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[e.value,...e.breakdown.map(e=>e.value)]:e.value)}:null);function nr(e=null){K.value?Me(()=>{let t=J.value.map(e=>e.value).reduce((e,t)=>e+t,0),n=tr.value.head.map((e,n)=>[[e.name],[tr.value.body[n]],[isNaN(tr.value.body[n]/t)?`-`:tr.value.body[n]/t*100]]),r=[[H.value.title.text],[H.value.title.subtitle.text],[[``],[`val`],[`%`]]].concat(n),i=o(r);e?e(i):re({csvContent:i,title:H.value.title.text||`vue-ui-3d-bar`})}):console.warn(`VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)`)}let $=y(()=>{if(!K.value||!Array.isArray(J.value)||!J.value.length)return{colNames:[],head:[],body:[],a11yBody:[],config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}};let e=J.value.reduce((e,t)=>e+t.value,0),t=[`__SUM__`,a({p:H.value.legend.prefix,v:e,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),`100%`],n=tr.value.head.map((t,n)=>{let r=tr.value.body[n];return[{color:t.color,name:t.name},a({p:H.value.legend.prefix,v:r,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),isNaN(r/e)?`-`:a({v:r/e*100,s:`%`,r:V.value.table.td.roundingPercentage})]}),r=n.map(e=>e.map((e,t)=>t===0?e.name:e));return{colNames:[V.value.table.columnNames.series,V.value.table.columnNames.value,V.value.table.columnNames.percentage],head:t,body:n,a11yBody:r,config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}}});function rr(){G.value.showTable=!G.value.showTable}let ir=O(!1);function ar(){ir.value=!ir.value}async function or({scale:e=2}={}){if(!I.value)return;let{width:t,height:n}=I.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await me({domElement:I.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:H.value.title.text,width:t,height:n,aspectRatio:r}}let sr=y(()=>ve({config:V,style:H,mutableConfig:G,dialog:mn,accordion:ln,isFullscreen:Qn,parent:I,maxWidth:800}));Re(()=>G.value.showTable,e=>_e(e,V,wn));function cr(){G.value.showTable=!1,Tn.value&&Tn.value.setTableIconState(!1)}let lr=y(()=>V.value.style.chart.backgroundColor),ur=y(()=>V.value.style.chart.title),{isCallbackImaging:dr,isCallbackSvg:fr,generateSvg:pr,onGenerateImage:mr}=ge({svg:Nn,title:ur,legend:null,legendItems:null,backgroundColor:lr,getSvgCallback:()=>V.value.userOptions.callbacks.svg,generateImage:Rn});async function hr(){gn(`copyAlt`,{config:V.value,dataset:W.value}),V.value.userOptions.callbacks.altCopy?await Promise.resolve(V.value.userOptions.callbacks.altCopy({config:V.value,dataset:W.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function gr(){z.value=null,B.value=``,L.value=!1,X.value=null}function _r(e){if(!e)return``;let t=a({p:H.value.legend.prefix,v:e.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue}),n=a({v:e.proportion*100,s:`%`,r:H.value.legend.roundingPercentage});return`${e.name}: ${t}, ${n}`}function vr(e){if(!K.value||!J.value?.length)return;let t=J.value[e];t&&(z.value=e,X.value=t.id,B.value=_r(t))}function yr(){R.value=!0,K.value&&J.value?.length&&z.value===null&&vr(0)}function br(){R.value=!1,L.value||(z.value=null,X.value=null,B.value=``)}function xr(e){if(!K.value||!J.value?.length||!Nn.value||document.activeElement!==Nn.value)return;let t=[`ArrowLeft`,`ArrowDown`].includes(e.key),n=[`ArrowRight`,`ArrowUp`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){gr();return}if(r){if(z.value===null)return;let e=J.value[z.value];if(!e)return;Z(e,!0),B.value=`${_r(e)} selected`;return}let a=z.value;a===null||a<0||a>=J.value.length?a=n?0:J.value.length-1:n?(a+=1,a>=J.value.length&&(a=0)):t&&(--a,a<0&&(a=J.value.length-1)),vr(a)}let Sr=y(()=>({headers:$.value?.colNames??[],rows:$.value?.a11yBody??[]}));return fe({getImage:or,generateCsv:nr,generatePdf:Ln,generateImage:Rn,generateSvg:pr,getData:er,toggleTable:rr,toggleAnnotator:ar,toggleFullscreen:$n,copyAlt:hr}),(e,i)=>(D(),S(`div`,{ref_key:`bar3dChart`,ref:I,class:Ne(`vue-data-ui-component vue-ui-3d-bar`),style:E(`font-family:${En.value.fontFamily};width:100%; text-align:center;background:${H.value.backgroundColor}`),id:`3d_bar_${F.value}`,onMouseenter:i[8]||=()=>M(jn)(!0),onMouseleave:i[9]||=()=>M(jn)(!1)},[C(`div`,{id:`chart-instructions-${F.value}`,class:`sr-only`},[C(`p`,null,j(V.value.a11y.translations.keyboardNavigation),1)],8,Ue),C(`div`,We,j(B.value),1),Sr.value?.rows?.length?(D(),b(we,{key:0,uid:F.value,head:Sr.value.headers,body:Sr.value.rows,notice:V.value.a11y.translations.tableAvailable,caption:V.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):x(``,!0),U.value.buttons.annotator?(D(),b(M(dn),je({key:1},M(n)(U.value.annotator),{svgRef:M(Nn),backgroundColor:H.value.backgroundColor,color:H.value.color,active:ir.value,isCursorPointer:Dn.value,palette:U.value.annotatorPalette,onClose:ar}),Oe({_:2},[k(M(r),n=>({name:n,fn:N(r=>[A(e.$slots,n,Pe(Ae(M(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):x(``,!0),H.value.title.text?(D(),S(`div`,{key:2,ref_key:`chartTitle`,ref:bn,style:`width:100%;background:transparent`},[(D(),b(he,{key:`title_${vn.value}`,config:{title:{cy:`3dBar-div-title`,...H.value.title},subtitle:{cy:`3dBar-div-subtitle`,...H.value.title.subtitle}}},null,8,[`config`]))],512)):x(``,!0),U.value.show&&_n.value&&(M(Mn)||M(An))?(D(),b(M(fn),{key:3,ref_key:`userOptionsRef`,ref:Tn,backgroundColor:H.value.backgroundColor,color:H.value.color,isPrinting:M(Fn),isImaging:M(In),uid:F.value,hasPdf:U.value.buttons.pdf,hasTable:!!K.value&&U.value.buttons.table,hasXls:!!K.value&&U.value.buttons.csv,hasImg:U.value.buttons.img,hasSvg:U.value.buttons.svg,hasFullscreen:U.value.buttons.fullscreen,hasAltCopy:U.value.buttons.altCopy,titles:{...U.value.buttonTitles},isFullscreen:Qn.value,chartElement:I.value,position:U.value.position,hasAnnotator:U.value.buttons.annotator,isAnnotation:ir.value,callbacks:U.value.callbacks,printScale:U.value.print.scale,tableDialog:V.value.table.useDialog,isCursorPointer:Dn.value,onToggleFullscreen:$n,onGeneratePdf:M(Ln),onGenerateCsv:nr,onGenerateImage:M(mr),onGenerateSvg:M(pr),onToggleTable:rr,onToggleAnnotator:ar,onCopyAlt:hr,style:E({visibility:M(Mn)?M(An)?`visible`:`hidden`:`visible`})},Oe({_:2},[k(M(ye)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:N(n=>[A(e.$slots,t,Pe(Ae(M(be)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasTable.hasXls.hasImg.hasSvg.hasFullscreen.hasAltCopy.titles.isFullscreen.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):x(``,!0),C(`div`,Ge,[(D(),S(`svg`,{ref_key:`svgRef`,ref:Nn,xmlns:M(ae),class:Ne({"vue-data-ui-fullscreen--on":Qn.value,"vue-data-ui-fulscreen--off":!Qn.value}),viewBox:`0 0 ${q.value.absoluteWidth} ${q.value.height}`,style:E(`max-width:100%; overflow: visible; background:transparent;color:${H.value.color}`),tabindex:`0`,"aria-describedby":`chart-instructions-${F.value}`,onFocus:yr,onBlur:br,onKeydown:xr},[w(M(pn)),A(e.$slots,`svg-underlayer`,{svg:{...q.value,isPrintingImg:M(Fn)||M(In)||M(dr),isPrintingSvg:M(fr)}},void 0,!0),e.$slots[`chart-background`]?(D(),S(`foreignObject`,{key:0,x:0,y:0,width:q.value.absoluteWidth,height:q.value.height,style:{pointerEvents:`none`}},[A(e.$slots,`chart-background`,{},void 0,!0)],8,qe)):x(``,!0),C(`defs`,null,[w(_,{t:`radial`,id:`gradient_top${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,H.value.bar.color,1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_tube_top${F.value}`,stops:[[`0%`,M(u)(M(s)(H.value.bar.color,.5),80),1],[`100%`,M(u)(M(d)(H.value.bar.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_left${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,M(u)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_right${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,M(u)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body${F.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,H.value.bar.color,1],[`10%`,M(u)(M(d)(H.value.bar.color,.7),100),1],[`25%`,M(u)(M(d)(H.value.bar.color,.5),100),1],[`75%`,M(u)(H.value.bar.color,80),1],[`100%`,M(u)(M(s)(H.value.bar.color,.7),100),1]]},null,8,[`id`,`stops`])]),K.value?(D(),S(`defs`,Je,[(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`radial`,id:`grad_top_${e.id}`,key:`grad_top_${e.id}`,stops:[[`0%`,M(u)(M(s)(e.color,.5),80),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_left_${e.id}`,key:`grad_left_${e.id}`,stops:[[`0%`,M(u)(e.color,80),1],[`100%`,M(u)(M(d)(e.color,.5),100),1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_right_${e.id}`,key:`grad_right_${e.id}`,stops:[[`2%`,M(u)(M(s)(e.color,.5),100),1],[`100%`,M(u)(e.color,80),1]]},null,8,[`id`,`stops`]))),128)),w(_,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`vertical_line_${F.value}`,stops:[[`0%`,`#FFFFFF`,1],[`100%`,`#FFFFFF33`,1]]},null,8,[`id`])])):x(``,!0),H.value.dataLabel.show&&![null,void 0].includes(M(W).percentage)&&[null,void 0].includes(M(W).series)?(D(),S(`text`,{key:2,x:q.value.width/2,y:q.value.top-H.value.dataLabel.fontSize/2,"font-size":H.value.dataLabel.fontSize,"font-weight":H.value.dataLabel.bold?`bold`:`normal`,fill:H.value.dataLabel.color,"text-anchor":`middle`},j(M(a)({v:Hn.value,s:`%`,r:H.value.dataLabel.rounding})),9,Ye)):x(``,!0),L.value?(D(),S(`g`,{key:3,role:`button`,tabindex:`0`,"aria-label":`Clear selection`,onClick:i[0]||=e=>{L.value=!1,X.value=null},onKeydown:[i[1]||=ze(Be(e=>{L.value=!1,X.value=null},[`prevent`]),[`enter`]),i[2]||=ze(Be(e=>{L.value=!1,X.value=null},[`prevent`]),[`space`])],onFocus:i[3]||=e=>R.value=!0,onBlur:i[4]||=e=>R.value=!1,onMouseenter:i[5]||=e=>R.value=!0,onMouseleave:i[6]||=e=>R.value=!1,class:`svg-btn`,"data-dom-to-png-ignore":``,style:E({cursor:Dn.value?`pointer`:`default`,outline:`none`})},[i[10]||=C(`title`,null,`Clear selection`,-1),C(`rect`,{x:qn.value-12,y:q.value.top-24,width:24,height:24,fill:`transparent`,"pointer-events":`all`},null,8,Xe),C(`circle`,{cx:qn.value,cy:q.value.top-12,r:`10`,fill:`none`,stroke:H.value.color,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`,opacity:R.value?.5:0},null,8,Ze),C(`path`,{d:`M${qn.value-6},${q.value.top-18} ${qn.value+6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,Qe),C(`path`,{d:`M${qn.value+6},${q.value.top-18} ${qn.value-6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,$e)],36)):x(``,!0),!En.value.shape||En.value.shape===`bar`?(D(),S(`g`,et,[K.value?x(``,!0):(D(),S(`g`,tt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.right,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,nt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.left,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,rt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.side,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,it),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.topSides,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,at)])),K.value?x(``,!0):(D(),S(`g`,ot,[C(`path`,{d:Yn.value.right,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_right${F.value})`},null,8,st),C(`path`,{d:Yn.value.left,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_left${F.value})`},null,8,ct),C(`path`,{d:Yn.value.top,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_top${F.value})`},null,8,lt)])),K.value?(D(),S(`g`,ut,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":_r(e)},[C(`path`,{d:e.fill.right,fill:`url(#grad_right_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,ft),C(`path`,{d:e.fill.left,fill:`url(#grad_left_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,pt),C(`path`,{d:e.fill.top,fill:`url(#grad_top_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,mt),C(`path`,{d:e.fill.liningTop,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,ht),C(`path`,{d:`M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`},null,8,gt)],12,dt))),256)),(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,null,[t===J.value.length-1?x(``,!0):(D(),S(`path`,{key:0,d:e.fill.liningTopShade,stroke:H.value.bar.shadeColor,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,style:{"pointer-events":`none`}},null,8,_t))]))),256)),(D(!0),S(v,null,k(J.value,(t,n)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>gn(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,yt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,bt)):x(``,!0),M(kn)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,xt)):x(``,!0),M(kn)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color}; font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(te)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(a)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(a)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:n,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,je({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,St)),t.fill.donut&&X.value===t.id?(D(),S(`g`,Ct,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(ee)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,wt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,Tt))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`g`,Et,[C(`text`,{"text-anchor":M(g)(e,!0,0).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(te)(H.value.dataLabel.formatter,e.value,`${Xn(e,t.fill.donut)} (${M(a)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:n,type:`donutDatapoint`})),9,Dt),C(`text`,{"text-anchor":M(g)(e).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,Ot)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,kt,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,At))),256))])):x(``,!0)],12,vt))),256))])):x(``,!0)])):x(``,!0),En.value.shape===`tube`?(D(),S(`g`,jt,[K.value?x(``,!0):(D(),S(`g`,Mt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeTop,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Nt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeLeft,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Pt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeRight,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Ft),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeBottom,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,It),C(`path`,{d:Yn.value.tubeTop,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top${F.value})`},null,8,Lt),C(`path`,{d:Yn.value.tubeBody,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body${F.value})`},null,8,Rt),C(`path`,{d:Yn.value.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,zt)])),K.value?(D(),S(`g`,Bt,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":_r(e)},[C(`defs`,null,[w(_,{t:`radial`,id:`gradient_tube_top_${e.id}`,fx:`10%`,cy:`55%`,stops:[[`0%`,M(u)(M(s)(e.color,.5),80),1],[`100%`,M(u)(M(d)(e.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body_${e.id}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,e.color,1],[`10%`,M(u)(M(d)(e.color,.7),100),1],[`25%`,M(u)(M(d)(e.color,.5),100),1],[`75%`,M(u)(e.color,80),1],[`100%`,M(u)(M(s)(e.color,.7),100),1]]},null,8,[`id`,`stops`])]),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeBody,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body_${e.id})`},null,40,Ht),t>0?(D(),S(`path`,{key:0,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.bottomTubeTop,stroke:`#000000`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,40,Ut)):x(``,!0),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top_${e.id})`},null,40,Wt)],12,Vt))),256)),(D(!0),S(v,null,k(J.value,(t,n)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>gn(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,Kt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,qt)):x(``,!0),M(kn)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,Jt)):x(``,!0),M(kn)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color};font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(te)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(a)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(a)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:n,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,je({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,Yt)),t.fill.donut&&X.value===t.id?(D(),S(`g`,Xt,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(ee)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Zt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,Qt))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Xn(e,t.fill.donut,!0)>6?(D(),S(`g`,$t,[C(`text`,{"text-anchor":M(g)(e,!0,0).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(te)(H.value.dataLabel.formatter,e.value,`${Xn(e,t.fill.donut)} (${M(a)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:n,type:`donutDatapoint`})),9,en),C(`text`,{"text-anchor":M(g)(e).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,tn)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,nn,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,rn))),256))])):x(``,!0)],12,Gt))),256))])):x(``,!0)])):x(``,!0),A(e.$slots,`svg`,{svg:{...q.value,isPrintingImg:M(Fn)||M(In)||M(dr),isPrintingSvg:M(fr)}},void 0,!0)],46,Ke))]),e.$slots.watermark?(D(),S(`div`,an,[A(e.$slots,`watermark`,Pe(Ae({isPrinting:M(Fn)||M(In)||M(fr)||M(dr)})),void 0,!0)])):x(``,!0),e.$slots.source?(D(),S(`div`,{key:5,ref_key:`source`,ref:Cn,dir:`auto`},[A(e.$slots,`source`,{},void 0,!0)],512)):x(``,!0),_n.value&&K.value&&U.value.buttons.table?(D(),b(Ie(sr.value.component),je({key:6},sr.value.props,{ref_key:`tableUnit`,ref:wn,onClose:cr}),Oe({content:N(()=>[(D(),b(M(un),{key:`table_${yn.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:V.value.table.useDialog?``:sr.value.title,withCloseButton:!V.value.table.useDialog,isCursorPointer:Dn.value,onClose:cr},{th:N(({th:e})=>[e===`__SUM__`?(D(),S(`div`,on,[w(M(cn),{name:`sigma`,stroke:$.value.config.th.color,size:16},null,8,[`stroke`])])):(D(),S(`div`,sn,j(e),1))]),td:N(({td:e})=>[ke(j(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[V.value.table.useDialog?{name:`title`,fn:N(()=>[ke(j(sr.value.title),1)]),key:`0`}:void 0,V.value.table.useDialog?{name:`actions`,fn:N(()=>[C(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:i[7]||=e=>nr(U.value.callbacks.csv)},[w(M(cn),{name:`fileCsv`,stroke:sr.value.props.color},null,8,[`stroke`])])]),key:`1`}:void 0]),1040)):x(``,!0),A(e.$slots,`skeleton`,{},()=>[M(kn)?(D(),b(ue,{key:0})):x(``,!0)],!0)],44,He))}},[[`__scopeId`,`data-v-068856ae`]]);export{Ve as n,cn as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-By3Vb5kz.js";import{$ as a,D as o,Dt as ee,Jt as te,X as ne,Yt as re,at as ie,b as s,et as ae,i as c,in as oe,nt as se,pt as ce,t as le,tn as ue,zt as de}from"./lib-rPeBMZrn.js";import{n as fe,t as pe}from"./BaseScanner-8NdoBs7B.js";import{n as me,t as he}from"./useHints-C-TwxM0Y.js";import{t as ge}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as _e}from"./resolveChartConfig-CIhClE5R.js";import{t as ve}from"./img-D4RQwASc.js";import{n as ye}from"./Title-BliHuXfT.js";import{t as be}from"./useChartExport-BZts4KFb.js";import{n as xe,t as Se}from"./tableIntegration-CNoJ1CIY.js";import{n as Ce,t as we}from"./userOptionsSlots-DYuo-E5m.js";import{t as Te}from"./usePrinter-DVf3YcG5.js";import{t as Ee}from"./useSvgLabelLayout-42Kats14.js";import{t as De}from"./useTimeLabelCollider-BTybMUFi.js";import{t as Oe}from"./useResponsive-CENUxfEL.js";import{t as ke}from"./DefGrad-DKMq1REY.js";import{t as Ae}from"./A11yDataTable-DWNlWXzs.js";import{t as je}from"./useUserOptionState-CXlFnwPv.js";import{t as Me}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ne}from"./vue_ui_age_pyramid-CL0Ef8Ov.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Pe,createTextVNode as Fe,createVNode as h,defineAsyncComponent as g,guardReactiveProps as _,mergeProps as Ie,nextTick as Le,normalizeClass as Re,normalizeProps as v,normalizeStyle as ze,onBeforeUnmount as Be,onMounted as Ve,openBlock as y,ref as b,renderList as x,renderSlot as S,resolveDynamicComponent as He,shallowRef as Ue,toDisplayString as C,toRefs as We,unref as w,watch as T,withCtx as E}from"vue";var Ge=/* @__PURE__ */ e({default:()=>bt}),Ke=[`id`],qe=[`id`],Je={style:{position:`relative`}},Ye=[`xmlns`,`viewBox`,`aria-describedby`],Xe=[`x`,`y`,`width`,`height`],Ze=[`x`,`y`,`width`,`height`,`fill`,`rx`],Qe=[`x`,`y`,`width`,`height`,`fill`,`rx`],$e=[`x`,`y`,`width`,`height`,`fill`,`rx`],et=[`x`,`y`,`width`,`height`,`fill`,`rx`],tt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],nt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],rt={key:0},it=[`x`,`y`,`fill`,`font-size`,`font-weight`],at=[`x`,`y`,`fill`,`font-size`,`font-weight`],ot={key:1},st=[`x`,`y`,`font-size`,`fill`,`font-weight`],ct={key:2},lt={key:0},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],ht=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],gt=[`x`,`y`,`font-size`,`fill`,`font-weight`],_t=[`x`,`y`,`width`,`height`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],vt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},yt={key:5,class:`vue-data-ui-watermark`},bt=/*#__PURE__*/ ge({__name:`vue-ui-age-pyramid`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:ge,emit:Ge}){let bt=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),xt=g(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),St=g(()=>import(`./vue-ui-accordion-DFxSW8ET.js`).then(e=>e.n)),Ct=g(()=>import(`./DataTable-Dof6yhO7.js`)),wt=g(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),Tt=g(()=>import(`./UserOptions-DW84OKKr.js`).then(e=>e.n)),Et=g(()=>import(`./PackageVersion-Bczw6rsP.js`).then(e=>e.t)),Dt=g(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_age_pyramid:Ot}=i(),D=e,kt=Ge,At=u(()=>!!D.dataset&&D.dataset.length),O=b(ne()),k=b(!1),jt=b(``),A=b(null),Mt=b(0),j=b(null),Nt=b(null),Pt=b(null),Ft=b(null),It=b(0),Lt=b(0),Rt=b(null),zt=b(null),Bt=b(null),M=b(null),Vt=b({x:0,y:0}),N=b(`pointer`),Ht=b(!1),P=b(Xt()),F=u(()=>P.value.style),I=u(()=>P.value.style.layout.dataLabels),L=u(()=>P.value.style.layout.bars),R=u(()=>P.value.style.layout.bars.labels);me({config:()=>P.value,dataset:()=>D.dataset,component:`VueUiAgePyramid`,rules:[he.emptyArray,{test:e=>e.length>130,message:[`👀 Dataset has > 130 points. Consider:`,``,`▶️ Grouping small values into aggregated categories.`,``,`▶️ Using VueUiStackline to display data in a more compact way.`]}]});let z=u(()=>P.value.userOptions.useCursorPointer),Ut=u(()=>oe({defaultConfig:{userOptions:{show:!1},table:{show:!1},translations:{male:``,female:``},style:{backgroundColor:`#99999930`,layout:{bars:{left:{color:`#CACACA`},right:{color:`#999999`}},dataLabels:{xAxis:{fontSize:0,scale:1e3,translation:``},yAxis:{show:!1}},grid:{stroke:`#6A6A6A`}}}},userConfig:P.value.skeletonConfig??{}})),{loading:Wt,FINAL_DATASET:Gt,manualLoading:Kt}=fe({...We(D),FINAL_CONFIG:P,prepareConfig:Xt,skeletonDataset:D.config?.skeletonDataset??[[`_`,9,2,2],[`_`,8,3,3],[`_`,7,5,5],[`_`,6,8,8],[`_`,5,13,13],[`_`,4,21,21],[`_`,3,34,34],[`_`,2,55,55],[`_`,1,89,89],[`_`,0,144,144]],skeletonConfig:oe({defaultConfig:P.value,userConfig:Ut.value})}),{userOptionsVisible:qt,setUserOptionsVisibility:Jt,keepUserOptionState:Yt}=je({config:P.value}),{svgRef:B}=Me({config:P.value.style.title});function Xt(){return _e(D.config,Ot,Ne)}function Zt(e){let t=ae(e);return t?.style?.chart&&delete t.style.tooltip,JSON.stringify(t)}let Qt=Zt(D.config);T(()=>D.config,(e,t)=>{let n=Zt(e),r=n!==Qt;Qt=n;let i=Xt();r?(Wt.value||(P.value=i),qt.value=!P.value.userOptions.showOnChartHover,nn(),It.value+=1,Lt.value+=1,U.value.showTable=P.value.table.show,U.value.showTooltip=P.value.style.tooltip.show):(P.value.style.tooltip=i.style.tooltip,U.value.showTooltip=P.value.style.tooltip.show)},{deep:!0}),T(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(Kt.value=!1)},{deep:!0});let V=Ue(null),H=Ue(null),$t=b(!1),en=0;Ve(()=>{nn()});let tn=u(()=>P.value.debug);function nn(){de(D.dataset)&&(ie({componentName:`VueUiAgePyramid`,type:`dataset`,debug:tn.value}),Kt.value=!0),de(D.dataset)||(Kt.value=P.value.loading),P.value.responsive&&(V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect()),V.value=new ResizeObserver(()=>{let{width:e,height:t}=Oe({chart:j.value,title:F.value.title.text?Nt.value:null,source:Pt.value,noTitle:Ft.value});cancelAnimationFrame(en),en=requestAnimationFrame(()=>{W.value.width=e,W.value.height=t,$t.value=!0})}),H.value=j.value.parentNode,V.value.observe(H.value))}Be(()=>{cancelAnimationFrame(en),V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect())});let{isPrinting:rn,isImaging:an,generatePdf:on,generateImage:sn}=Te({elementId:`vue-ui-age-pyramid_${O.value}`,fileName:F.value.title.text||`vue-ui-age-pyramid`,options:P.value.userOptions.print}),cn=u(()=>P.value.userOptions.show&&!F.value.title.text),U=b({showTable:P.value.table.show,showTooltip:F.value.tooltip.show});T(P,()=>{U.value={showTable:P.value.table.show,showTooltip:F.value.tooltip.show}},{immediate:!0});let W=b({height:F.value.height,width:F.value.width}),ln=u(()=>W.value.width),un=u(()=>W.value.height),{metrics:dn,ready:fn,settling:pn,update:mn}=Ee({svgRef:B,canMeasure:()=>!P.value.responsive||$t.value,initialMetrics:{bottom:0},measure:e=>({bottom:e(Rt.value).height})}),hn=u(()=>dn.value.bottom),G=u(()=>{let e=W.value.width-F.value.layout.padding.right-F.value.layout.padding.left,t=F.value.layout.padding.left,n=W.value.width-F.value.layout.padding.right;return{top:F.value.layout.padding.top+I.value.sideTitles.fontSize+I.value.sideTitles.offsetY+12,left:t,right:n,bottom:W.value.height-F.value.layout.padding.bottom-hn.value,width:e,height:W.value.height-F.value.layout.padding.top-F.value.layout.padding.bottom-hn.value-I.value.sideTitles.fontSize-I.value.sideTitles.offsetY-12,centerX:F.value.layout.padding.left+e/2,leftChart:{width:e/2-F.value.layout.centerSlit.width,right:t+e/2-F.value.layout.centerSlit.width},rightChart:{width:e/2-F.value.layout.centerSlit.width,left:t+e/2+F.value.layout.centerSlit.width}}}),gn=u(()=>Gt.value.map(e=>I.value.yAxis.display===`age`?e[1]:e[0])),K=u(()=>{let e=_n(q.value/5),t=[],n=[];for(let r=0;r<=5;r+=1){let i=e*r,a=e*(r-5);t.push({value:i,x:G.value.left+G.value.width/2+F.value.layout.centerSlit.width+i/q.value*G.value.leftChart.width}),n.push({value:Math.abs(a),x:G.value.left+G.value.width/2+a/q.value*G.value.leftChart.width-F.value.layout.centerSlit.width})}return{right:t,left:n}});function _n(e){if(e===0)return 0;let t=10**Math.floor(Math.log10(Math.abs(e))),n;return n=Math.round(e/t)*t,n}let q=u(()=>Math.max(...Gt.value.flatMap(e=>e.slice(-2).map(e=>s(e))))),J=u(()=>Gt.value.length),vn=u(()=>Gt.value.map(e=>({segment:e[0],age:e[1],left:{value:e[2],proportionToMax:e[2]/q.value},right:{value:e[3],proportionToMax:e[3]/q.value}}))),Y=u(()=>vn.value.map((e,t)=>{let n=G.value.top+G.value.height/J.value*t,r=G.value.height/J.value-L.value.gap;return{segment:e.segment,age:e.age,left:{...e.left,y:n,color:L.value.left.color,x:G.value.leftChart.right-e.left.proportionToMax*G.value.leftChart.width,width:s(e.left.proportionToMax*G.value.leftChart.width),height:r},right:{...e.right,y:n,color:L.value.right.color,x:G.value.rightChart.left,width:s(e.right.proportionToMax*G.value.rightChart.width),height:r}}})),yn=b(null);function bn(e){let[t,n,r,i]=e;return{segment:t,index:n,left:r,right:i}}function xn(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:bn(t),seriesIndex:e})}function Sn(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:bn(t),seriesIndex:e}),(N.value!==`keyboard`||M.value!==e)&&(A.value=null,k.value=!1)}function Cn(e){if(!B.value)return;let t=Y.value[e];if(!t)return;let n=ue(G.value.left+G.value.width/2,t.left.y+t.left.height/2,B.value);n&&(Vt.value=n)}function wn(e,t,n=`pointer`){P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:bn(t),seriesIndex:e}),A.value=e,M.value=e,N.value=n,yn.value={datapoint:t,seriesIndex:e,series:Y.value,config:P.value};let r=F.value.tooltip.customFormat;if(ee(r)&&ce(()=>r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value})))jt.value=r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value});else{let n=``,r=Y.value[e];n+=`<div><b>${r.segment}</b></div>`,n+=`<div>${P.value.translations.age}: ${c(I.value.yAxis.formatter,s(r.age),a({v:s(r.age)}),{datapoint:t,seriesIndex:e})}</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`,n+=`<div style="display:flex; flex-direction:row;gap:12px">`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${c(I.value.xAxis.formatter,s(r.left.value),a({v:s(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${c(I.value.xAxis.formatter,s(r.right.value),a({v:s(r.right.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${c(I.value.xAxis.formatter,s(r.right.value)+s(r.left.value),a({v:s(r.right.value)+s(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,jt.value=`<div>${n}</div>`}k.value=!0,n===`keyboard`&&Le(()=>{Cn(e)})}function Tn(e=null){Le(()=>{let t=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total],n=D.dataset.map(e=>[e[0],e[1],e[2],e[3],e[2]??0+e[3]??0]),r=[[F.value.title.text],[F.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),i=o(r);e?e(i):se({csvContent:i,title:F.value.title.text||`vue-ui-heatmap`})})}let X=u(()=>{let e=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total];return{head:e,body:D.dataset.map(e=>[e[0],e[1],e[2]==null?``:e[2].toLocaleString(),e[3]==null?``:e[3].toLocaleString(),(e[2]??0+e[3]??0).toLocaleString()]),config:{th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint},colNames:e}}),Z=b(!1);function En(e){Z.value=e,Mt.value+=1}function Dn(){U.value.showTable=!U.value.showTable}function On(){U.value.showTooltip=!U.value.showTooltip}let Q=b(!1);function kn(){Q.value=!Q.value}async function An({scale:e=2}={}){if(!j.value)return;let{width:t,height:n}=j.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await ve({domElement:j.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:F.value.title.text,width:t,height:n,aspectRatio:r}}let jn=b([]),Mn=b({start:0,end:Y.value.length});De({timeLabelsEls:Rt,timeLabels:jn,slicer:Mn,configRef:P,rotationPath:[`style`,`layout`,`dataLabels`,`xAxis`,`rotation`],autoRotatePath:[`style`,`layout`,`dataLabels`,`xAxis`,`autoRotate`,`enable`],isAutoSize:!1,width:ln,height:un,targetClass:`.vue-ui-age-pyramid-x-axis-label`,rotation:F.value.layout.dataLabels.xAxis.autoRotate.angle});let $=u(()=>Se({config:P,style:F,mutableConfig:U,dialog:Dt,accordion:St,isFullscreen:Z,parent:j,maxWidth:800,isCursorPointer:z}));T(()=>U.value.showTable,e=>xe(e,P,zt));function Nn(){U.value.showTable=!1,Bt.value&&Bt.value.setTableIconState(!1)}let Pn=u(()=>P.value.style.backgroundColor),Fn=u(()=>P.value.style.title),{isCallbackImaging:In,isCallbackSvg:Ln,generateSvg:Rn,onGenerateImage:zn}=be({svg:B,title:Fn,legend:null,legendItems:null,backgroundColor:Pn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:sn});async function Bn(){kt(`copyAlt`,{config:P.value,dataset:Y.value}),P.value.userOptions.callbacks.altCopy?await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:Y.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Vn(){Ht.value=!0}function Hn(){A.value=null,M.value=null,N.value=`pointer`,k.value=!1,Ht.value=!1}function Un(e){if(!B.value||Q.value||document.activeElement!==B.value||!Y.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){A.value=null,M.value=null,N.value=`pointer`,k.value=!1;return}if(r){if(M.value===null)return;let e=D.dataset[M.value];if(!e)return;xn(M.value,e);return}let a=M.value,o=A.value,ee=a!==null&&a>=0&&a<Y.value.length,te=o!==null&&o>=0&&o<Y.value.length;ee?t?a=a-1<0?Y.value.length-1:a-1:n&&(a=a+1>Y.value.length-1?0:a+1):te?(a=n?o+1:o-1,a>=Y.value.length&&(a=0),a<0&&(a=Y.value.length-1)):a=n?0:Y.value.length-1;let ne=D.dataset[a];ne&&wn(a,ne,`keyboard`)}return ge({getImage:An,generatePdf:on,generateCsv:Tn,generateImage:sn,generateSvg:Rn,toggleTable:Dn,toggleTooltip:On,toggleAnnotator:kn,toggleFullscreen:En,copyAlt:Bn}),T(()=>[W.value,I.value,Rt.value,D.dataset,$t.value,P.value.style.fontFamily],mn,{flush:`post`,deep:!0}),(i,o)=>(y(),p(`div`,{class:Re(`vue-data-ui-component vue-ui-age-pyramid ${Z.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`agePyramid`,ref:j,id:`vue-ui-age-pyramid_${O.value}`,style:ze(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive?`height:100%`:``}`),onMouseenter:o[1]||=()=>w(Jt)(!0),onMouseleave:o[2]||=()=>w(Jt)(!1)},[m(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[m(`p`,null,C(P.value.a11y.translations.keyboardNavigation),1)],8,qe),X.value?.body?.length?(y(),d(Ae,{key:0,uid:O.value,head:X.value.head,body:X.value.body,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):f(``,!0),P.value.userOptions.buttons.annotator?(y(),d(w(wt),Ie({key:1},w(n)(P.value.userOptions.annotator),{svgRef:w(B),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Q.value,isCursorPointer:z.value,palette:P.value.userOptions.annotatorPalette,onClose:kn}),Pe({_:2},[x(w(r),e=>({name:e,fn:E(n=>[S(i.$slots,e,v(_(w(t)(e,n))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),cn.value?(y(),p(`div`,{key:2,ref_key:`noTitle`,ref:Ft,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),F.value.title.text?(y(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Nt,style:`width:100%;background:transparent`},[(y(),d(ye,{key:`title_${It.value}`,config:{title:{cy:`pyramid-div-title`,...F.value.title},subtitle:{cy:`pyramid-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),P.value.userOptions.show&&At.value&&(w(Yt)||w(qt))?(y(),d(w(Tt),{ref_key:`userOptionsRef`,ref:Bt,key:`user_options_${Mt.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isImaging:w(an),isPrinting:w(rn),uid:O.value,hasTooltip:P.value.userOptions.buttons.tooltip&&F.value.tooltip.show,hasPdf:P.value.userOptions.buttons.pdf,hasXls:P.value.userOptions.buttons.csv,hasImg:P.value.userOptions.buttons.img,hasSvg:P.value.userOptions.buttons.svg,hasTable:P.value.userOptions.buttons.table,hasFullscreen:P.value.userOptions.buttons.fullscreen,hasAltCopy:P.value.userOptions.buttons.altCopy,isFullscreen:Z.value,isTooltip:U.value.showTooltip,titles:{...P.value.userOptions.buttonTitles},chartElement:j.value,position:P.value.userOptions.position,hasAnnotator:P.value.userOptions.buttons.annotator,isAnnotation:Q.value,callbacks:P.value.userOptions.callbacks,printScale:P.value.userOptions.print.scale,tableDialog:P.value.table.useDialog,isCursorPointer:z.value,onToggleFullscreen:En,onGeneratePdf:w(on),onGenerateCsv:Tn,onGenerateImage:w(zn),onGenerateSvg:w(Rn),onToggleTable:Dn,onToggleTooltip:On,onToggleAnnotator:kn,onCopyAlt:Bn,style:ze({visibility:w(Yt)?w(qt)?`visible`:`hidden`:`visible`})},Pe({_:2},[x(w(Ce)(i.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:E(t=>[S(i.$slots,e,v(_(w(we)(e,t))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):f(``,!0),m(`div`,Je,[(y(),p(`svg`,{ref_key:`svgRef`,ref:B,xmlns:w(le),class:Re({"vue-data-ui-fullscreen--on":Z.value,"vue-data-ui-fulscreen--off":!Z.value}),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,style:ze(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color};visibility:${w(fn)?`visible`:`hidden`}`),tabindex:`0`,"aria-describedby":`chart-instructions-${O.value}`,onFocus:Vn,onBlur:Hn,onKeydown:Un},[h(w(Et)),S(i.$slots,`svg-underlayer`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(rn)||w(an)||w(In),isPrintingSvg:w(Ln)}},void 0,!0),i.$slots[`chart-background`]?(y(),p(`foreignObject`,{key:0,x:G.value.left,y:G.value.top,width:Math.max(.1,G.value.width),height:Math.max(.1,G.value.height),style:{pointerEvents:`none`}},[S(i.$slots,`chart-background`,{},void 0,!0)],8,Xe)):f(``,!0),m(`defs`,null,[h(ke,{t:`linear`,id:`age_pyramid_left_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,L.value.left.color,1],[`100%`,w(te)(w(re)(L.value.left.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1]]},null,8,[`id`,`stops`]),h(ke,{t:`linear`,id:`age_pyramid_right_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,w(te)(w(re)(L.value.right.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1],[`100%`,L.value.right.color,1]]},null,8,[`id`,`stops`])]),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:e.left.x,y:e.left.y,width:w(s)(e.left.width<=0?1e-4:e.left.width),height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Ze),m(`rect`,{x:e.left.x,y:e.left.y,width:e.left.width<=0?1e-4:e.left.width,height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:e.left.color,rx:L.value.borderRadius},null,8,Qe),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,$e),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:e.right.color,rx:L.value.borderRadius},null,8,et)]))),256)),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[R.value.show?(y(),p(l,{key:0},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.left.x+Math.max(1e-4,e.left.width)-R.value.offsetX-6,y:e.left.y+Math.max(1e-4,e.left.height/2)+L.value.gap/2,"text-anchor":`end`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.left.value,w(a)({v:e.left.value}),{datapoint:e.left,seriesIndex:t})),9,tt)):f(``,!0)],64)):f(``,!0),R.value.show?(y(),p(l,{key:1},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.right.x+R.value.offsetX+6,y:e.right.y+Math.max(1e-4,e.right.height/2)+L.value.gap/2,"text-anchor":`start`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.right.value,w(a)({v:e.right.value}),{datapoint:e.right,seriesIndex:t})),9,nt)):f(``,!0)],64)):f(``,!0)]))),256)),m(`g`,null,[I.value.sideTitles.show?(y(),p(`g`,rt,[m(`text`,{x:G.value.left,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.left.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`start`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.female),9,it),m(`text`,{x:G.value.right,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.right.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`end`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.male),9,at)])):f(``,!0),I.value.yAxis.show?(y(),p(`g`,ot,[(y(!0),p(l,null,x(gn.value,(e,t)=>(y(),p(l,null,[t%I.value.yAxis.showEvery===0&&(!R.value.show||R.value.showOnHover&&A.value===t||A.value===null)||(R.value.show||R.value.showOnHover)&&A.value===t?(y(),p(`text`,{key:0,x:G.value.centerX,y:G.value.top+G.value.height/J.value/2+G.value.height/J.value*t,"dominant-baseline":`middle`,"text-anchor":`middle`,"font-size":I.value.yAxis.fontSize,fill:I.value.yAxis.color,"font-weight":I.value.yAxis.bold?`bold`:`normal`},C(w(c)(I.value.yAxis.formatter,e,w(a)({v:e}),{datapoint:e,seriesIndex:t})),9,st)):f(``,!0)],64))),256))])):f(``,!0),I.value.xAxis.show?(y(),p(`g`,ct,[F.value.layout.grid.show?(y(),p(`g`,lt,[m(`line`,{x1:K.value.right[0].x,x2:K.value.right.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ut),m(`line`,{x1:K.value.left[0].x,x2:K.value.left.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,dt)])):f(``,!0),(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ft)):f(``,!0)]))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,pt)):f(``,!0)]))),256)),m(`g`,{ref_key:`xAxisLabels`,ref:Rt},[(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(a)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,mt))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(a)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,ht))),256))],512),m(`text`,{x:G.value.right,y:W.value.height,"text-anchor":`end`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"font-weight":I.value.xAxis.bold?`bold`:`normal`},C(I.value.xAxis.translation),9,gt)])):f(``,!0)]),(y(!0),p(l,null,x(e.dataset,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:G.value.left,y:G.value.top+G.value.height/J.value*t-L.value.gap/2,width:G.value.width<=0?1e-4:G.value.width,height:G.value.height/J.value<=0?1e-4:G.value.height/J.value,fill:A.value!==null&&A.value===t?w(te)(F.value.highlighter.color,F.value.highlighter.opacity):`transparent`,onMouseover:n=>wn(t,e,`pointer`),onMouseleave:n=>Sn(t,e),onClick:n=>xn(t,e)},null,40,_t)]))),256)),S(i.$slots,`svg`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(rn)||w(an)||w(In),isPrintingSvg:w(Ln)}},void 0,!0)],46,Ye)),i.$slots.hint?(y(),p(`div`,vt,[S(i.$slots,`hint`,v(_({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Ht.value})),void 0,!0)])):f(``,!0)]),i.$slots.watermark?(y(),p(`div`,yt,[S(i.$slots,`watermark`,v(_({isPrinting:w(rn)||w(an)||w(In)||w(Ln)})),void 0,!0)])):f(``,!0),S(i.$slots,`legend`,{legend:Y.value},void 0,!0),i.$slots.source?(y(),p(`div`,{key:6,ref_key:`source`,ref:Pt,dir:`auto`},[S(i.$slots,`source`,{},void 0,!0)],512)):f(``,!0),h(w(bt),{teleportTo:F.value.tooltip.teleportTo,show:U.value.showTooltip&&k.value,backgroundColor:F.value.tooltip.backgroundColor,color:F.value.tooltip.color,borderRadius:F.value.tooltip.borderRadius,borderColor:F.value.tooltip.borderColor,borderWidth:F.value.tooltip.borderWidth,fontSize:F.value.tooltip.fontSize,backgroundOpacity:F.value.tooltip.backgroundOpacity,position:F.value.tooltip.position,offsetX:F.value.tooltip.offsetX,offsetY:F.value.tooltip.offsetY,parent:j.value,content:jt.value,isFullscreen:Z.value,isCustom:F.value.tooltip.customFormat&&typeof F.value.tooltip.customFormat==`function`,smooth:F.value.tooltip.smooth,backdropFilter:F.value.tooltip.backdropFilter,smoothForce:F.value.tooltip.smoothForce,smoothSnapThreshold:F.value.tooltip.smoothSnapThreshold,isA11yMode:N.value===`keyboard`,a11yPosition:Vt.value},{"tooltip-before":E(()=>[S(i.$slots,`tooltip-before`,v(_({...yn.value})),void 0,!0)]),tooltip:E(()=>[S(i.$slots,`tooltip`,v(_({...yn.value})),void 0,!0)]),"tooltip-after":E(()=>[S(i.$slots,`tooltip-after`,v(_({...yn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),At.value&&P.value.userOptions.buttons.table?(y(),d(He($.value.component),Ie({key:7},$.value.props,{ref_key:`tableUnit`,ref:zt,onClose:Nn}),Pe({content:E(()=>[(y(),d(w(Ct),{key:`table_${Lt.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:P.value.table.useDialog?``:$.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:z.value,onClose:Nn},{th:E(({th:e})=>[Fe(C(e),1)]),td:E(({td:e})=>[Fe(C(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:E(()=>[Fe(C($.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:E(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:o[0]||=e=>Tn(P.value.userOptions.callbacks.csv),style:ze({cursor:z.value?`pointer`:`default`})},[h(w(xt),{name:`fileCsv`,stroke:$.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),S(i.$slots,`skeleton`,{},()=>[w(Wt)?(y(),d(pe,{key:0})):f(``,!0)],!0)],46,Ke))}},[[`__scopeId`,`data-v-285e241f`]]);export{Ge as n,bt as t};