vue-data-ui 3.22.2 → 3.22.4

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 (203) hide show
  1. package/dist/{Arrow-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
  2. package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
  3. package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
  4. package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
  5. package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
  6. package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
  7. package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
  8. package/dist/Legend-DXOzbXb-.js +156 -0
  9. package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
  10. package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
  11. package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
  12. package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
  13. package/dist/Slicer-hEvKOLw3.js +1145 -0
  14. package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
  15. package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
  16. package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
  17. package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
  18. package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
  89. package/dist/exposedLib-C2U48XK7.js +19 -0
  90. package/dist/img-B29J8tV5.js +129 -0
  91. package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
  92. package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
  93. package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
  94. package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
  95. package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +69 -2
  101. package/dist/types/vue-ui-strip-plot.d.ts +2 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
  103. package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
  104. package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
  105. package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
  106. package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
  107. package/dist/utils.js +14 -14
  108. package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
  111. package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
  113. package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
  114. package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
  115. package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
  116. package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
  117. package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
  118. package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
  119. package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
  120. package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
  121. package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
  122. package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
  123. package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
  124. package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
  125. package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
  126. package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
  127. package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
  128. package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
  129. package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
  130. package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
  131. package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
  132. package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
  133. package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
  134. package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
  135. package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
  136. package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
  137. package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
  138. package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
  139. package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
  140. package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
  141. package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
  142. package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
  143. package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
  144. package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
  145. package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
  146. package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
  147. package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
  148. package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
  149. package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
  150. package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
  151. package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
  152. package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
  153. package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
  154. package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
  155. package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
  156. package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
  157. package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
  158. package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
  159. package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
  160. package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
  161. package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
  162. package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
  163. package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
  164. package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
  165. package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
  166. package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
  167. package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
  168. package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
  170. package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
  171. package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
  172. package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
  173. package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
  174. package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
  175. package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
  176. package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
  177. package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
  178. package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
  179. package/package.json +1 -1
  180. package/dist/Legend-BVDhEEsC.js +0 -115
  181. package/dist/Slicer-ClR833cP.js +0 -1144
  182. package/dist/exposedLib-CffbQxjN.js +0 -19
  183. package/dist/img-BCAOkqfM.js +0 -74
  184. package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
  185. package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
  186. package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
  187. package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
  188. package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
  189. package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
  190. package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
  191. package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
  192. package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
  193. package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
  194. package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
  195. package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
  196. package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
  197. package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
  198. package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
  199. package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
  200. package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
  201. package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
  202. package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
  203. package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
@@ -0,0 +1,1826 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Gt as t, Lt as n, Ot as r, Q as i, Rt as a, W as o, Wt as s, X as c, h as l, ot as ee, q as u, s as te, t as ne, v as d, vt as re, w as ie } from "./lib-CuwHGt1j.js";
3
+ import { n as ae, r as oe, t as se } from "./useTimeLabels-BmBRv27Y.js";
4
+ import { t as ce } from "./useConfig-pVLia3dt.js";
5
+ import { t as le } from "./usePrinter-C0wAS8yc.js";
6
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as fe } from "./useSvgExport-SVIsDot8.js";
8
+ import { t as pe } from "./useNestedProp-BjkuFaz1.js";
9
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
11
+ import { t as ge } from "./img-B29J8tV5.js";
12
+ import { n as _e } from "./Title-DDEEO-Nr.js";
13
+ import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { c as ye } from "./canvas-lib-BOP_HS11.js";
15
+ import { t as be } from "./useResponsive-BfnK0KxU.js";
16
+ import { t as xe } from "./SlicerPreview-BDI-aCXE.js";
17
+ import { t as Se } from "./A11yDataTable-DdRsVULz.js";
18
+ import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
19
+ import { t as we } from "./useChartAccessibility-DYqac8yF.js";
20
+ import { t as Te } from "./vue_ui_candlestick-J8jmJvxP.js";
21
+ import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as v, guardReactiveProps as y, mergeProps as ke, nextTick as Ae, normalizeClass as b, normalizeProps as x, normalizeStyle as je, onBeforeUnmount as Me, onMounted as Ne, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as E, toRefs as Ie, unref as D, watch as Le, watchEffect as Re, withCtx as O } from "vue";
22
+ //#region src/components/vue-ui-candlestick.vue
23
+ var ze = /* @__PURE__ */ e({ default: () => Dt }), Be = ["id"], Ve = ["id"], He = { style: { position: "relative" } }, Ue = [
24
+ "xmlns",
25
+ "aria-describedby",
26
+ "viewBox"
27
+ ], We = [
28
+ "x",
29
+ "y",
30
+ "width",
31
+ "height"
32
+ ], Ge = { key: 1 }, Ke = ["id"], qe = ["stop-color"], Je = ["stop-color"], Ye = ["stop-color"], Xe = ["id"], Ze = ["stop-color"], Qe = ["stop-color"], $e = ["stop-color"], et = { key: 0 }, tt = [
33
+ "x1",
34
+ "x2",
35
+ "y1",
36
+ "y2",
37
+ "stroke",
38
+ "stroke-width"
39
+ ], nt = [
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width"
46
+ ], rt = [
47
+ "x1",
48
+ "x2",
49
+ "y1",
50
+ "y2",
51
+ "stroke",
52
+ "stroke-width",
53
+ "stroke-dasharray"
54
+ ], it = [
55
+ "x1",
56
+ "x2",
57
+ "y1",
58
+ "y2",
59
+ "stroke",
60
+ "stroke-width",
61
+ "stroke-dasharray"
62
+ ], at = [
63
+ "x1",
64
+ "x2",
65
+ "y1",
66
+ "y2",
67
+ "stroke",
68
+ "stroke-width"
69
+ ], ot = [
70
+ "x1",
71
+ "x2",
72
+ "y1",
73
+ "y2",
74
+ "stroke",
75
+ "stroke-width"
76
+ ], st = [
77
+ "x",
78
+ "y",
79
+ "text-anchor",
80
+ "font-size",
81
+ "fill",
82
+ "font-weight"
83
+ ], ct = [
84
+ "transform",
85
+ "text-anchor",
86
+ "font-size",
87
+ "fill",
88
+ "font-weight"
89
+ ], lt = [
90
+ "transform",
91
+ "text-anchor",
92
+ "font-size",
93
+ "fill",
94
+ "font-weight"
95
+ ], ut = [
96
+ "x",
97
+ "y",
98
+ "width",
99
+ "height",
100
+ "fill",
101
+ "rx"
102
+ ], dt = { key: 0 }, ft = [
103
+ "cx",
104
+ "cy",
105
+ "r",
106
+ "fill"
107
+ ], pt = [
108
+ "cx",
109
+ "cy",
110
+ "r",
111
+ "fill"
112
+ ], mt = { key: 1 }, ht = [
113
+ "x",
114
+ "y",
115
+ "width",
116
+ "height",
117
+ "rx",
118
+ "fill"
119
+ ], gt = [
120
+ "x",
121
+ "y",
122
+ "width",
123
+ "height",
124
+ "fill",
125
+ "rx"
126
+ ], _t = [
127
+ "x",
128
+ "y",
129
+ "height",
130
+ "width",
131
+ "fill",
132
+ "rx"
133
+ ], vt = [
134
+ "x",
135
+ "y",
136
+ "height",
137
+ "width",
138
+ "fill",
139
+ "rx",
140
+ "stroke",
141
+ "stroke-width"
142
+ ], yt = ["d", "stroke"], bt = [
143
+ "x",
144
+ "y",
145
+ "height",
146
+ "width",
147
+ "fill",
148
+ "onMouseover",
149
+ "onMouseleave",
150
+ "onClick"
151
+ ], xt = ["data-start", "data-end"], St = {
152
+ key: 0,
153
+ style: {
154
+ position: "absolute",
155
+ top: "100%",
156
+ left: "0",
157
+ width: "100%"
158
+ },
159
+ "data-dom-to-png-ignore": "",
160
+ "aria-hidden": "true"
161
+ }, Ct = {
162
+ key: 5,
163
+ class: "vue-data-ui-watermark"
164
+ }, wt = ["d", "stroke"], Tt = [
165
+ "d",
166
+ "stroke",
167
+ "stroke-width"
168
+ ], Et = ["innerHTML"], Dt = /*#__PURE__*/ ve({
169
+ __name: "vue-ui-candlestick",
170
+ props: {
171
+ config: {
172
+ type: Object,
173
+ default() {
174
+ return {};
175
+ }
176
+ },
177
+ dataset: {
178
+ type: Array,
179
+ default() {
180
+ return [];
181
+ }
182
+ },
183
+ selectedXIndex: {
184
+ type: Number,
185
+ default: void 0
186
+ }
187
+ },
188
+ emits: ["selectX", "copyAlt"],
189
+ setup(e, { expose: ve, emit: ze }) {
190
+ let Dt = v(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Ot = v(() => import("./Tooltip-BhKov422.js")), kt = v(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), At = v(() => import("./DataTable-PidUPOit.js")), jt = v(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Mt = v(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Nt = v(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), Pt = v(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_candlestick: Ft } = ce(), { isThemeValid: It, warnInvalidTheme: Lt } = me(), k = e, Rt = ze, zt = p(() => !!k.dataset && k.dataset.length), A = C(!1), Bt = C(null), j = C(o()), Vt = C(!1), Ht = C(""), M = C(void 0), Ut = C(0), N = C(null), Wt = C(null), Gt = C(null), Kt = C(null), qt = C(null), Jt = C(null), Yt = C(0), Xt = C(0), Zt = C(0), Qt = C(null), $t = C(null), en = C(null), tn = C(null), nn = C(null), rn = C(!1), an = C(!1), P = C(null), on = C({
191
+ x: 0,
192
+ y: 0
193
+ }), sn = C("pointer"), cn = C(!1), F = C(_n()), ln = p(() => F.value.userOptions.useCursorPointer), un = p(() => t({
194
+ defaultConfig: {
195
+ useCssAnimation: !1,
196
+ userOptions: { show: !1 },
197
+ table: { show: !1 },
198
+ style: {
199
+ backgroundColor: "#99999930",
200
+ layout: {
201
+ candle: { colors: {
202
+ bearish: "#BABABA",
203
+ bullish: "#CACACA"
204
+ } },
205
+ grid: {
206
+ stroke: "#6A6A6A",
207
+ verticalLines: { stroke: "#6A6A6A" },
208
+ horizontalLines: { stroke: "#6A6A6A" },
209
+ yAxis: {
210
+ dataLabels: { show: !1 },
211
+ scale: {
212
+ min: null,
213
+ max: null
214
+ }
215
+ }
216
+ },
217
+ wick: {
218
+ stroke: "#6A6A6A",
219
+ extremity: { color: "#6A6A6A" }
220
+ }
221
+ },
222
+ tooltip: { show: !1 },
223
+ zoom: {
224
+ show: !1,
225
+ startIndex: null,
226
+ endIndex: null
227
+ }
228
+ }
229
+ },
230
+ userConfig: F.value.skeletonConfig ?? {}
231
+ })), { loading: I, FINAL_DATASET: L, manualLoading: dn } = ue({
232
+ ...Ie(k),
233
+ FINAL_CONFIG: F,
234
+ prepareConfig: _n,
235
+ callback: () => {
236
+ Promise.resolve().then(async () => {
237
+ await dr();
238
+ });
239
+ },
240
+ skeletonDataset: k.config?.skeletonDataset ?? [
241
+ [
242
+ 17040672e5,
243
+ 10,
244
+ 20,
245
+ 2,
246
+ 10,
247
+ 30
248
+ ],
249
+ [
250
+ 17067456e5,
251
+ 10,
252
+ 30,
253
+ 5,
254
+ 20,
255
+ 50
256
+ ],
257
+ [
258
+ 17092512e5,
259
+ 20,
260
+ 50,
261
+ 10,
262
+ 30,
263
+ 80
264
+ ],
265
+ [
266
+ 17119296e5,
267
+ 30,
268
+ 80,
269
+ 20,
270
+ 50,
271
+ 130
272
+ ],
273
+ [
274
+ 17145216e5,
275
+ 50,
276
+ 130,
277
+ 30,
278
+ 100,
279
+ 210
280
+ ],
281
+ [
282
+ 17172e8,
283
+ 80,
284
+ 210,
285
+ 50,
286
+ 150,
287
+ 340
288
+ ],
289
+ [
290
+ 1719792e6,
291
+ 130,
292
+ 340,
293
+ 80,
294
+ 280,
295
+ 550
296
+ ],
297
+ [
298
+ 17224704e5,
299
+ 210,
300
+ 550,
301
+ 130,
302
+ 450,
303
+ 890
304
+ ],
305
+ [
306
+ 17251488e5,
307
+ 340,
308
+ 890,
309
+ 210,
310
+ 750,
311
+ 1440
312
+ ],
313
+ [
314
+ 17277408e5,
315
+ 550,
316
+ 1440,
317
+ 340,
318
+ 1230,
319
+ 2330
320
+ ],
321
+ [
322
+ 17304192e5,
323
+ 890,
324
+ 2330,
325
+ 550,
326
+ 1950,
327
+ 3770
328
+ ],
329
+ [
330
+ 17330112e5,
331
+ 1440,
332
+ 3770,
333
+ 890,
334
+ 3200,
335
+ 5100
336
+ ]
337
+ ],
338
+ skeletonConfig: t({
339
+ defaultConfig: F.value,
340
+ userConfig: un.value
341
+ })
342
+ }), { userOptionsVisible: fn, setUserOptionsVisibility: pn, keepUserOptionState: mn } = Ce({ config: F.value }), { svgRef: R } = we({ config: F.value.style.title });
343
+ function hn() {
344
+ pn(!0);
345
+ }
346
+ function gn() {
347
+ pn(!1), Rt("selectX", {
348
+ seriesIndex: null,
349
+ datapoint: null
350
+ }), M.value = null;
351
+ }
352
+ function _n() {
353
+ let e = pe({
354
+ userConfig: k.config,
355
+ defaultConfig: Ft
356
+ }), t = {}, n = e.theme;
357
+ if (n) if (!It.value(e)) Lt(e), t = e;
358
+ else {
359
+ let r = pe({
360
+ userConfig: Te[n] || k.config,
361
+ defaultConfig: e
362
+ });
363
+ t = { ...pe({
364
+ userConfig: k.config,
365
+ defaultConfig: r
366
+ }) };
367
+ }
368
+ else t = e;
369
+ return t;
370
+ }
371
+ Le(() => k.config, (e) => {
372
+ I.value || (F.value = _n()), fn.value = !F.value.userOptions.showOnChartHover, yn(), Yt.value += 1, Zt.value += 1, Xt.value += 1, H.value.showTable = F.value.table.show, H.value.showTooltip = F.value.style.tooltip.show, Mn();
373
+ }, { deep: !0 }), Le(() => k.dataset, (e) => {
374
+ Array.isArray(e) && e.length > 0 && (dn.value = !1), sr();
375
+ }, { deep: !0 });
376
+ let z = C({
377
+ height: F.value.style.height,
378
+ width: F.value.style.width,
379
+ xAxisFontSize: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
380
+ yAxisFontSize: F.value.style.layout.grid.yAxis.dataLabels.fontSize
381
+ }), B = Fe(null), vn = Fe(null);
382
+ Ne(() => {
383
+ yn();
384
+ });
385
+ let V = p(() => !!F.value.debug);
386
+ function yn() {
387
+ if (r(k.dataset) && (i({
388
+ componentName: "VueUiCandlestick",
389
+ type: "dataset",
390
+ debug: V.value
391
+ }), dn.value = !0), r(k.dataset) || (dn.value = F.value.loading), setTimeout(() => {
392
+ A.value = !0;
393
+ }, 10), F.value.responsive) {
394
+ let e = ye(() => {
395
+ A.value = !1;
396
+ let { width: e, height: t } = be({
397
+ chart: N.value,
398
+ title: F.value.style.title.text ? Wt.value : null,
399
+ slicer: F.value.style.zoom.show && G.value > 6 ? Kt.value.$el : null,
400
+ legend: Gt.value,
401
+ source: qt.value,
402
+ noTitle: Jt.value
403
+ });
404
+ requestAnimationFrame(() => {
405
+ z.value.width = e, z.value.height = t - 12, F.value.responsiveProportionalSizing ? (z.value.xAxisFontSize = s({
406
+ relator: Math.min(e, t),
407
+ adjuster: F.value.style.width,
408
+ source: F.value.style.layout.grid.xAxis.dataLabels.fontSize,
409
+ threshold: 6,
410
+ fallback: 6
411
+ }), z.value.yAxisFontSize = s({
412
+ relator: Math.min(e, t),
413
+ adjuster: F.value.style.width,
414
+ source: F.value.style.layout.grid.yAxis.dataLabels.fontSize,
415
+ threshold: 6,
416
+ fallback: 6
417
+ })) : (z.value.xAxisFontSize = F.value.style.layout.grid.xAxis.dataLabels.fontSize, z.value.yAxisFontSize = F.value.style.layout.grid.yAxis.dataLabels.fontSize), Bt.value && clearTimeout(Bt.value), Bt.value = setTimeout(() => {
418
+ A.value = !0;
419
+ }, 10);
420
+ });
421
+ });
422
+ B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect()), B.value = new ResizeObserver(e), vn.value = N.value.parentNode, B.value.observe(vn.value);
423
+ }
424
+ dr();
425
+ }
426
+ Me(() => {
427
+ B.value && (vn.value && B.value.unobserve(vn.value), B.value.disconnect());
428
+ });
429
+ let { isPrinting: bn, isImaging: xn, generatePdf: Sn, generateImage: Cn } = le({
430
+ elementId: `vue-ui-candlestick_${j.value}`,
431
+ fileName: F.value.style.title.text || "vue-ui-candlestick",
432
+ options: F.value.userOptions.print
433
+ }), wn = p(() => F.value.userOptions.show && !F.value.style.title.text), H = C({
434
+ showTable: F.value.table.show,
435
+ showTooltip: F.value.style.tooltip.show
436
+ }), Tn = C(0), En = ye((e) => {
437
+ Tn.value = e;
438
+ }, 100);
439
+ Re((e) => {
440
+ let t = $t.value;
441
+ if (!t) return;
442
+ let n = new ResizeObserver((e) => {
443
+ En(e[0].contentRect.height);
444
+ });
445
+ n.observe(t), e(() => n.disconnect());
446
+ }), Me(() => {
447
+ Tn.value = 0;
448
+ });
449
+ let Dn = p(() => {
450
+ let e = 0;
451
+ return $t.value && (e = Tn.value + z.value.xAxisFontSize), e;
452
+ }), U = p(() => F.value.style.layout.grid.yAxis.position === "right");
453
+ function On() {
454
+ let e = F.value.style.layout.grid.yAxis.dataLabels.offsetX;
455
+ Qt.value && (e = Array.from(Qt.value.querySelectorAll("text")).reduce((e, t) => {
456
+ let n = t.getComputedTextLength();
457
+ return n > e ? n : e;
458
+ }, 0));
459
+ let t = F.value.style.layout.grid.yAxis.axisName?.show ? F.value.style.layout.grid.yAxis.axisName.fontSize + F.value.style.layout.grid.yAxis.axisName.offsetX : 0, n = e + 13 + t;
460
+ return {
461
+ left: U.value ? 0 : n,
462
+ right: U.value ? n : 0,
463
+ scaleLabelsWidth: e,
464
+ yAxisNameWidth: t,
465
+ crosshair: 13
466
+ };
467
+ }
468
+ let W = p(() => {
469
+ let { top: e, right: t, bottom: n, left: r } = F.value.style.layout.padding, i = On();
470
+ return {
471
+ top: e + 12,
472
+ right: z.value.width - t - i.right,
473
+ left: r + i.left,
474
+ bottom: z.value.height - n - Dn.value,
475
+ width: z.value.width - r - t - i.left - i.right,
476
+ height: z.value.height - e - n - Dn.value - 12,
477
+ scaleLabelsWidth: i.scaleLabelsWidth,
478
+ yAxisNameWidth: i.yAxisNameWidth,
479
+ crosshair: i.crosshair
480
+ };
481
+ }), kn = p(() => {
482
+ let { left: e, top: t, width: n, height: r } = W.value, i = K.value.start, a = K.value.end - i, o = n / a, s = q.value.start - i, c = q.value.end - i, l = Math.max(0, Math.min(a, s)), ee = Math.max(0, Math.min(a, c));
483
+ return {
484
+ x: e + l * o,
485
+ y: t,
486
+ width: (ee - l) * o,
487
+ height: r,
488
+ fill: F.value.style.zoom.preview.fill,
489
+ stroke: F.value.style.zoom.preview.stroke,
490
+ "stroke-width": F.value.style.zoom.preview.strokeWidth,
491
+ "stroke-dasharray": F.value.style.zoom.preview.strokeDasharray,
492
+ "stroke-linecap": "round",
493
+ "stroke-linejoin": "round",
494
+ style: {
495
+ pointerEvents: "none",
496
+ transition: "none !important",
497
+ animation: "none !important"
498
+ }
499
+ };
500
+ }), G = p(() => L.value.length), K = C({
501
+ start: 0,
502
+ end: G.value
503
+ }), q = C({
504
+ start: 0,
505
+ end: G.value
506
+ }), An = p(() => F.value.style.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
507
+ function jn(e, t) {
508
+ q.value[e] = t;
509
+ }
510
+ function Mn() {
511
+ let e = Math.max(0, Math.min(K.value.start ?? 0, G.value - 1)), t = Math.max(e + 1, Math.min(K.value.end ?? G.value, G.value));
512
+ (!Number.isFinite(e) || !Number.isFinite(t) || t <= e) && (e = 0, t = G.value), K.value.start = e, K.value.end = t, q.value.start = e, q.value.end = t, Kt.value && (Kt.value.setStartValue(e), Kt.value.setEndValue(t));
513
+ }
514
+ let Nn = p(() => L.value.map((e, t) => ({
515
+ ...e,
516
+ absoluteIndex: t
517
+ }))), Pn = p(() => Nn.value.slice(K.value.start, K.value.end)), J = p(() => (L.value.forEach((e, t) => {
518
+ [null, void 0].includes(e[0]) && i({
519
+ componentName: "VueUiCandlestick",
520
+ type: "datasetAttribute",
521
+ property: "period (index 0)",
522
+ index: t,
523
+ debug: V.value
524
+ }), [null, void 0].includes(e[1]) && i({
525
+ componentName: "VueUiCandlestick",
526
+ type: "datasetAttribute",
527
+ property: "open (index 1)",
528
+ index: t,
529
+ debug: V.value
530
+ }), [null, void 0].includes(e[2]) && i({
531
+ componentName: "VueUiCandlestick",
532
+ type: "datasetAttribute",
533
+ property: "high (index 2)",
534
+ index: t,
535
+ debug: V.value
536
+ }), [null, void 0].includes(e[3]) && i({
537
+ componentName: "VueUiCandlestick",
538
+ type: "datasetAttribute",
539
+ property: "low (index 3)",
540
+ index: t,
541
+ debug: V.value
542
+ }), [null, void 0].includes(e[4]) && i({
543
+ componentName: "VueUiCandlestick",
544
+ type: "datasetAttribute",
545
+ property: "close (index 4)",
546
+ index: t,
547
+ debug: V.value
548
+ }), [null, void 0].includes(e[5]) && i({
549
+ componentName: "VueUiCandlestick",
550
+ type: "datasetAttribute",
551
+ property: "volume (index 5)",
552
+ index: t,
553
+ debug: V.value
554
+ });
555
+ }), Pn.value.map((e) => ({
556
+ absoluteIndex: e.absoluteIndex,
557
+ period: e[0],
558
+ open: e[1],
559
+ high: e[2],
560
+ low: e[3],
561
+ close: e[4],
562
+ volume: e[5]
563
+ })))), Fn = p(() => Nn.value.map((e) => ({
564
+ absoluteIndex: e.absoluteIndex,
565
+ period: e[0],
566
+ open: e[1],
567
+ high: e[2],
568
+ low: e[3],
569
+ close: e[4],
570
+ volume: e[5]
571
+ }))), Y = p(() => W.value.width / Pn.value.length), In = p(() => ({
572
+ max: F.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...J.value.map((e) => e.high)) : F.value.style.layout.grid.yAxis.scale.max,
573
+ min: F.value.style.layout.grid.yAxis.scale.min === null ? 0 : F.value.style.layout.grid.yAxis.scale.min
574
+ })), X = p(() => l(In.value.min, In.value.max, F.value.style.layout.grid.yAxis.dataLabels.steps));
575
+ function Ln(e, t, n = null, r = null) {
576
+ return {
577
+ ...e,
578
+ x: d(W.value.left + t * Y.value + Y.value / 2),
579
+ y: d(W.value.top + (1 - (e - X.value.min) / (X.value.max - X.value.min)) * W.value.height),
580
+ value: d(e),
581
+ isMax: e === n,
582
+ isMin: e === r
583
+ };
584
+ }
585
+ let Z = p(() => {
586
+ let e = {
587
+ o: Math.max(...J.value.map((e) => e.open)),
588
+ h: Math.max(...J.value.map((e) => e.high)),
589
+ l: Math.max(...J.value.map((e) => e.low)),
590
+ c: Math.max(...J.value.map((e) => e.low))
591
+ }, t = {
592
+ o: Math.min(...J.value.map((e) => e.open)),
593
+ h: Math.min(...J.value.map((e) => e.high)),
594
+ l: Math.min(...J.value.map((e) => e.low)),
595
+ c: Math.min(...J.value.map((e) => e.low))
596
+ }, n = Math.max(...J.value.map((e) => e.volume)), r = Math.min(...J.value.map((e) => e.volume));
597
+ return J.value.map((i, a) => {
598
+ let o = Ln(i.open, a, e.o, t.o), s = Ln(i.high, a, e.h, t.h), c = Ln(i.low, a, e.l, t.l), l = Ln(i.close, a, e.c, t.c), ee = i.close > i.open, u = i.volume === n, te = i.volume === r;
599
+ return {
600
+ period: i.period,
601
+ open: o,
602
+ high: s,
603
+ low: c,
604
+ close: l,
605
+ volume: i.volume,
606
+ isBullish: ee,
607
+ absoluteIndex: i.absoluteIndex,
608
+ isMaxVolume: u,
609
+ isMinVolume: te
610
+ };
611
+ });
612
+ });
613
+ function Rn({ item: e, index: t, minimapH: n, unitW: r }) {
614
+ let i = F.value.style.layout.grid.yAxis.scale.min ?? 0, a = F.value.style.layout.grid.yAxis.scale.max ?? Math.max(...L.value.map((e) => e[2]));
615
+ return {
616
+ ...e,
617
+ x: d(t * r),
618
+ y: d((1 - (e - i) / (a - i)) * n),
619
+ value: d(e)
620
+ };
621
+ }
622
+ let zn = p(() => ({ minimapH: e, unitW: t }) => Fn.value.map((n, r) => {
623
+ let i = Rn({
624
+ item: n.open,
625
+ index: r,
626
+ minimapH: e,
627
+ unitW: t
628
+ }), a = Rn({
629
+ item: n.high,
630
+ index: r,
631
+ minimapH: e,
632
+ unitW: t
633
+ }), o = Rn({
634
+ item: n.low,
635
+ index: r,
636
+ minimapH: e,
637
+ unitW: t
638
+ }), s = Rn({
639
+ item: n.close,
640
+ index: r,
641
+ minimapH: e,
642
+ unitW: t
643
+ }), c = n.close > n.open;
644
+ return {
645
+ period: n.period,
646
+ open: i,
647
+ high: a,
648
+ low: o,
649
+ close: s,
650
+ volume: n.volume,
651
+ isBullish: c,
652
+ absoluteIndex: n.absoluteIndex
653
+ };
654
+ })), Bn = p(() => F.value.style.zoom.minimap.show ? [{
655
+ name: "",
656
+ series: L.value.map((e) => e[2]),
657
+ color: "#000000",
658
+ isVisible: !0
659
+ }] : []);
660
+ function Vn(e) {
661
+ return d((e - X.value.min) / (X.value.max - X.value.min));
662
+ }
663
+ let Hn = p(() => X.value.ticks.map((e) => ({
664
+ y: W.value.bottom - W.value.height * Vn(e),
665
+ value: d(e)
666
+ }))), Un = p(() => J.value.map((e) => e.period)), Q = C([]), Wn = C([]), Gn = 0;
667
+ Re(() => {
668
+ let e = ++Gn;
669
+ (async () => {
670
+ let t = await se({
671
+ values: L.value.map((e) => e[0]),
672
+ maxDatapoints: L.value.length,
673
+ formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
674
+ start: K.value.start,
675
+ end: K.value.end
676
+ });
677
+ e === Gn && (Q.value = t);
678
+ })();
679
+ });
680
+ let Kn = 0;
681
+ Re(() => {
682
+ let e = ++Kn;
683
+ (async () => {
684
+ let t = await se({
685
+ values: L.value.map((e) => e[0]),
686
+ maxDatapoints: L.value.length,
687
+ formatter: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter,
688
+ start: 0,
689
+ end: G.value
690
+ });
691
+ e === Kn && (Wn.value = t);
692
+ })();
693
+ });
694
+ let qn = p(() => {
695
+ let e = F.value.style.layout.grid.xAxis.dataLabels.modulo;
696
+ return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
697
+ }), Jn = C({
698
+ months: [],
699
+ shortMonths: [],
700
+ days: [],
701
+ shortDays: []
702
+ }), Yn = 0;
703
+ Re(() => {
704
+ let e = ++Yn, t = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter;
705
+ (async () => {
706
+ let n = await oe(t.locale).catch(() => oe("en"));
707
+ e === Yn && (Jn.value = n.data);
708
+ })();
709
+ });
710
+ let Xn = p(() => {
711
+ let e = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter, t = ae({
712
+ useUTC: e.useUTC,
713
+ locale: Jn.value,
714
+ januaryAsYear: e.januaryAsYear
715
+ });
716
+ return (e, n) => {
717
+ let r = L.value.map((e) => e[0])?.[e];
718
+ return r == null ? "" : t.formatDate(new Date(r), n);
719
+ };
720
+ }), Zn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
721
+ text: Xn.value(t, F.value.style.tooltip.timeFormat),
722
+ absoluteIndex: t
723
+ }))), Qn = p(() => (L.value.map((e) => e[0]) || []).map((e, t) => ({
724
+ text: Xn.value(t, F.value.style.zoom.timeFormat),
725
+ absoluteIndex: t
726
+ }))), $n = p(() => {
727
+ let e = F.value.style.layout.grid.xAxis.dataLabels, t = Q.value || [], n = Wn.value || [], r = K.value.start ?? 0, i = M.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
728
+ return te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, qn.value || 1), o, s, r, i, a);
729
+ }), er = p(() => F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? {
730
+ start: Q.value.find((e) => e.absoluteIndex === K.value.start)?.text ?? "",
731
+ end: Q.value.find((e) => e.absoluteIndex === K.value.end - 1)?.text ?? ""
732
+ } : {
733
+ start: L.value[K.value.start] ? L.value[K.value.start][0] : L.value[0][0],
734
+ end: L.value[K.value.end - 1] ? L.value[K.value.end - 1][0] : L.value.at(-1)[0]
735
+ }), tr = C(null);
736
+ function nr(e, t) {
737
+ F.value.events.datapointClick && F.value.events.datapointClick({
738
+ datapoint: t,
739
+ seriesIndex: e + K.value.start
740
+ });
741
+ }
742
+ function rr(e, t) {
743
+ F.value.events.datapointLeave && F.value.events.datapointLeave({
744
+ datapoint: t,
745
+ seriesIndex: e + K.value.start
746
+ }), M.value = void 0, Vt.value = !1, P.value = null, sn.value = "pointer";
747
+ }
748
+ Le(() => k.selectedXIndex, (e) => {
749
+ if ([null, void 0].includes(k.selectedXIndex)) {
750
+ M.value = null;
751
+ return;
752
+ }
753
+ let t = e - K.value.start;
754
+ t < 0 || e >= K.value.end ? M.value = null : M.value = t ?? null;
755
+ }, { immediate: !0 });
756
+ function ir(e, t, n = "pointer") {
757
+ F.value.events.datapointEnter && F.value.events.datapointEnter({
758
+ datapoint: t,
759
+ seriesIndex: e + K.value.start
760
+ }), M.value = e, P.value = e, sn.value = n, tr.value = {
761
+ datapoint: t,
762
+ seriesIndex: e,
763
+ series: Z.value,
764
+ config: F.value
765
+ }, Mr({
766
+ seriesIndex: e,
767
+ datapoint: t
768
+ });
769
+ let r = F.value.style.tooltip.customFormat;
770
+ if (re(r) && ee(() => r({
771
+ seriesIndex: e,
772
+ datapoint: t,
773
+ series: Z.value,
774
+ config: F.value
775
+ }))) Ht.value = r({
776
+ seriesIndex: e,
777
+ datapoint: t,
778
+ series: Z.value,
779
+ config: F.value
780
+ });
781
+ else if (F.value.style.tooltip.show) {
782
+ let n = "", { period: r, open: i, high: a, low: o, close: s, volume: c, isBullish: l } = Z.value[e], { period: ee, open: te, high: ne, low: d, close: re, volume: ie } = F.value.translations, ae = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? F.value.style.tooltip.useDefaultTimeFormat ? Q.value[e].text : Zn.value[e].text : r;
783
+ n += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${F.value.style.layout.candle.borderRadius * 3}" stroke="${F.value.style.layout.candle.stroke}" stroke-width="${F.value.style.layout.candle.strokeWidth}"
784
+ fill="${F.value.style.layout.candle.gradient.show ? l ? `url(#bullish_gradient_${j.value})` : `url(#bearish_gradient_${j.value})` : l ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg>${ae}</div>`, n += `${ie} : <b>${isNaN(c) ? "-" : Number(c.toFixed(F.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.style.tooltip.borderColor}">`;
785
+ let oe = u({
786
+ p: F.value.style.tooltip.prefix,
787
+ v: i.value,
788
+ s: F.value.style.tooltip.suffix,
789
+ r: F.value.style.tooltip.roundingValue
790
+ }), se = u({
791
+ p: F.value.style.tooltip.prefix,
792
+ v: a.value,
793
+ s: F.value.style.tooltip.suffix,
794
+ r: F.value.style.tooltip.roundingValue
795
+ }), ce = u({
796
+ p: F.value.style.tooltip.prefix,
797
+ v: o.value,
798
+ s: F.value.style.tooltip.suffix,
799
+ r: F.value.style.tooltip.roundingValue
800
+ }), le = u({
801
+ p: F.value.style.tooltip.prefix,
802
+ v: s.value,
803
+ s: F.value.style.tooltip.suffix,
804
+ r: F.value.style.tooltip.roundingValue
805
+ });
806
+ F.value.style.tooltip.showChart ? n += `<div style="width:100%;display:flex;align-items:center;justify-content:center;">
807
+ <svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
808
+ <g>
809
+ <line x1="50" x2="50" y1="20" y2="80" stroke="${t.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}" stroke-width="2" stroke-linecap="round" />
810
+ ${t.isBullish ? `
811
+ <line x1="45" x2="50" y1="65" y2="65" stroke="${F.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
812
+ <line x1="50" x2="55" y1="35" y2="35" stroke="${F.value.style.layout.candle.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
813
+ <text x="38" y="70" text-anchor="end" fill="${F.value.style.tooltip.color}">${oe}</text>
814
+ <text x="62" y="40" text-anchor="start" fill="${F.value.style.tooltip.color}">${le}</text>
815
+ ` : `
816
+ <line x1="45" x2="50" y1="35" y2="35" stroke="${F.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
817
+ <line x1="50" x2="55" y1="65" y2="65" stroke="${F.value.style.layout.candle.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
818
+ <text x="40" y="40" text-anchor="end" fill="${F.value.style.tooltip.color}">${oe}</text>
819
+ <text x="60" y="70" text-anchor="start" fill="${F.value.style.tooltip.color}">${le}</text>
820
+ `}
821
+ <text x="50" y="13" text-anchor="middle" fill="${F.value.style.tooltip.color}">${se}</text>
822
+ <text x="50" y="97" text-anchor="middle" fill="${F.value.style.tooltip.color}">${ce}</text>
823
+ <g>
824
+ </svg>
825
+ <div>
826
+ ` : (n += `<div>${te}: <b>${oe}</b></div>`, n += `<div>${ne}: <b>${se}</b></div>`, n += `<div>${d}: <b>${ce}</b></div>`, n += `<div>${re}: <b>${le}</b></div>`), n += "</div>", Ht.value = `<div style="text-align:right">${n}</div>`;
827
+ }
828
+ Vt.value = !0;
829
+ }
830
+ let ar = C(null);
831
+ function or() {
832
+ return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
833
+ }
834
+ Me(() => {
835
+ ar.value && cancelAnimationFrame(ar.value);
836
+ });
837
+ async function sr() {
838
+ dr(), await Ae(), ar.value && cancelAnimationFrame(ar.value), ar.value = requestAnimationFrame(async () => {
839
+ await or(), dr();
840
+ });
841
+ }
842
+ let cr = C(!1), lr = C(!1), ur = C(!1);
843
+ function dr() {
844
+ if (!cr.value) {
845
+ cr.value = !0;
846
+ try {
847
+ let { startIndex: e, endIndex: t } = F.value.style.zoom, n = G.value, r = e ?? 0, i = t == null ? n : Math.min(fr(t + 1), n);
848
+ ur.value = !0, K.value.start = r, K.value.end = i, q.value.start = r, q.value.end = i, Mn(), lr.value = !0;
849
+ } finally {
850
+ queueMicrotask(() => {
851
+ ur.value = !1;
852
+ }), cr.value = !1;
853
+ }
854
+ }
855
+ }
856
+ function fr(e) {
857
+ let t = G.value;
858
+ return e > t ? t : e < 0 || e < K.value.start ? F.value.style.zoom.startIndex === null ? 1 : F.value.style.zoom.startIndex + 1 : e;
859
+ }
860
+ function pr(e = null) {
861
+ Ae(() => {
862
+ let t = [
863
+ F.value.translations.period,
864
+ F.value.translations.open,
865
+ F.value.translations.high,
866
+ F.value.translations.low,
867
+ F.value.translations.close,
868
+ F.value.translations.volume
869
+ ], n = Z.value.map((e, t) => [
870
+ F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value[t].text : e.period,
871
+ e.open.value,
872
+ e.high.value,
873
+ e.low.value,
874
+ e.close.value,
875
+ e.volume
876
+ ]), r = ie([
877
+ [F.value.style.title.text],
878
+ [F.value.style.title.subtitle.text],
879
+ [
880
+ [""],
881
+ [""],
882
+ [""]
883
+ ],
884
+ t
885
+ ].concat(n));
886
+ e ? e(r) : c({
887
+ csvContent: r,
888
+ title: F.value.style.title.text || "vue-ui-candlestick"
889
+ });
890
+ });
891
+ }
892
+ let mr = p(() => {
893
+ let e = Z.value.map((e, t) => {
894
+ let n = F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period, r = u({
895
+ p: F.value.table.td.prefix,
896
+ v: e.open.value,
897
+ s: F.value.table.td.suffix,
898
+ r: F.value.table.td.roundingValue
899
+ }), i = u({
900
+ p: F.value.table.td.prefix,
901
+ v: e.high.value,
902
+ s: F.value.table.td.suffix,
903
+ r: F.value.table.td.roundingValue
904
+ }), a = u({
905
+ p: F.value.table.td.prefix,
906
+ v: e.low.value,
907
+ s: F.value.table.td.suffix,
908
+ r: F.value.table.td.roundingValue
909
+ }), o = u({
910
+ p: F.value.table.td.prefix,
911
+ v: e.close.value,
912
+ s: F.value.table.td.suffix,
913
+ r: F.value.table.td.roundingValue
914
+ });
915
+ return [
916
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${F.value.style.layout.candle.borderRadius * 3}" fill="${F.value.style.layout.candle.gradient.show ? e.isBullish ? `url(#bullish_gradient_${j.value}` : `url(#bearish_gradient_${j.value})` : e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish}"/></svg> ${n}`,
917
+ r,
918
+ i,
919
+ a,
920
+ o,
921
+ `${isNaN(e.volume) ? "-" : e.volume.toLocaleString()}`
922
+ ];
923
+ }), t = Z.value.map((e, t) => [
924
+ F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? Q.value?.[t]?.text ?? "" : e.period,
925
+ u({
926
+ p: F.value.table.td.prefix,
927
+ v: e.open.value,
928
+ s: F.value.table.td.suffix,
929
+ r: F.value.table.td.roundingValue
930
+ }),
931
+ u({
932
+ p: F.value.table.td.prefix,
933
+ v: e.high.value,
934
+ s: F.value.table.td.suffix,
935
+ r: F.value.table.td.roundingValue
936
+ }),
937
+ u({
938
+ p: F.value.table.td.prefix,
939
+ v: e.low.value,
940
+ s: F.value.table.td.suffix,
941
+ r: F.value.table.td.roundingValue
942
+ }),
943
+ u({
944
+ p: F.value.table.td.prefix,
945
+ v: e.close.value,
946
+ s: F.value.table.td.suffix,
947
+ r: F.value.table.td.roundingValue
948
+ }),
949
+ `${isNaN(e.volume) ? "-" : e.volume}`
950
+ ]), n = {
951
+ th: {
952
+ backgroundColor: F.value.table.th.backgroundColor,
953
+ color: F.value.table.th.color,
954
+ outline: F.value.table.th.outline
955
+ },
956
+ td: {
957
+ backgroundColor: F.value.table.td.backgroundColor,
958
+ color: F.value.table.td.color,
959
+ outline: F.value.table.td.outline
960
+ },
961
+ breakpoint: F.value.table.responsiveBreakpoint
962
+ }, r = [
963
+ F.value.translations.period,
964
+ F.value.translations.open,
965
+ F.value.translations.high,
966
+ F.value.translations.low,
967
+ F.value.translations.last,
968
+ F.value.translations.volume
969
+ ];
970
+ return {
971
+ head: r,
972
+ body: e,
973
+ bodyA11y: t,
974
+ config: n,
975
+ colNames: r
976
+ };
977
+ }), $ = C(!1);
978
+ function hr(e) {
979
+ $.value = e, Ut.value += 1;
980
+ }
981
+ function gr() {
982
+ H.value.showTable = !H.value.showTable;
983
+ }
984
+ function _r() {
985
+ H.value.showTooltip = !H.value.showTooltip;
986
+ }
987
+ let vr = C(!1);
988
+ function yr() {
989
+ vr.value = !vr.value;
990
+ }
991
+ async function br({ scale: e = 2 } = {}) {
992
+ if (!N.value) return;
993
+ let { width: t, height: n } = N.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ge({
994
+ domElement: N.value,
995
+ base64: !0,
996
+ img: !0,
997
+ scale: e
998
+ });
999
+ return {
1000
+ imageUri: i,
1001
+ base64: a,
1002
+ title: F.value.style.title.text,
1003
+ width: t,
1004
+ height: n,
1005
+ aspectRatio: r
1006
+ };
1007
+ }
1008
+ let xr = p(() => z.value.width), Sr = p(() => z.value.height);
1009
+ he({
1010
+ timeLabelsEls: $t,
1011
+ timeLabels: Q,
1012
+ slicer: K,
1013
+ configRef: F,
1014
+ rotationPath: [
1015
+ "style",
1016
+ "layout",
1017
+ "grid",
1018
+ "xAxis",
1019
+ "dataLabels",
1020
+ "rotation"
1021
+ ],
1022
+ autoRotatePath: [
1023
+ "style",
1024
+ "layout",
1025
+ "grid",
1026
+ "xAxis",
1027
+ "dataLabels",
1028
+ "autoRotate",
1029
+ "enable"
1030
+ ],
1031
+ isAutoSize: !1,
1032
+ rotation: F.value.style.layout.grid.xAxis.dataLabels.autoRotate.angle,
1033
+ width: xr,
1034
+ height: Sr
1035
+ }), Le(F, () => {
1036
+ H.value = {
1037
+ showTable: F.value.table.show,
1038
+ showTooltip: F.value.style.tooltip.show
1039
+ };
1040
+ }, { immediate: !0 });
1041
+ let Cr = p(() => {
1042
+ let e = F.value.table.useDialog && !F.value.table.show, t = H.value.showTable;
1043
+ return {
1044
+ component: e ? Pt : kt,
1045
+ title: `${F.value.style.title.text}${F.value.style.title.subtitle.text ? `: ${F.value.style.title.subtitle.text}` : ""}`,
1046
+ props: e ? {
1047
+ backgroundColor: F.value.table.th.backgroundColor,
1048
+ color: F.value.table.th.color,
1049
+ headerColor: F.value.table.th.color,
1050
+ headerBg: F.value.table.th.backgroundColor,
1051
+ isFullscreen: $.value,
1052
+ fullscreenParent: N.value,
1053
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1054
+ isCursorPointer: ln.value
1055
+ } : {
1056
+ hideDetails: !0,
1057
+ config: {
1058
+ open: t,
1059
+ maxHeight: 1e4,
1060
+ body: {
1061
+ backgroundColor: F.value.style.backgroundColor,
1062
+ color: F.value.style.color
1063
+ },
1064
+ head: {
1065
+ backgroundColor: F.value.style.backgroundColor,
1066
+ color: F.value.style.color
1067
+ }
1068
+ }
1069
+ }
1070
+ };
1071
+ });
1072
+ Le(() => H.value.showTable, (e) => {
1073
+ F.value.table.show || (e && F.value.table.useDialog && en.value ? en.value.open() : "close" in en.value && en.value.close());
1074
+ });
1075
+ function wr() {
1076
+ H.value.showTable = !1, tn.value && tn.value.setTableIconState(!1);
1077
+ }
1078
+ let Tr = p(() => F.value.style.backgroundColor), { exportSvg: Er, getSvg: Dr } = fe({
1079
+ svg: R,
1080
+ title: p(() => F.value.style.title),
1081
+ backgroundColor: Tr
1082
+ });
1083
+ async function Or({ isCb: e }) {
1084
+ an.value = !0, await Ae();
1085
+ try {
1086
+ if (e) {
1087
+ let { blob: e, url: t, text: n, dataUrl: r } = await Dr();
1088
+ await Promise.resolve(F.value.userOptions.callbacks.svg({
1089
+ blob: e,
1090
+ url: t,
1091
+ text: n,
1092
+ dataUrl: r
1093
+ }));
1094
+ } else await Promise.resolve(Er());
1095
+ } finally {
1096
+ an.value = !1;
1097
+ }
1098
+ }
1099
+ function kr(e) {
1100
+ nn.value = e;
1101
+ }
1102
+ function Ar(e) {
1103
+ cr.value || ur.value || e !== K.value.start && (K.value.start = e, q.value.start = e, Mn());
1104
+ }
1105
+ function jr(e) {
1106
+ if (cr.value || ur.value) return;
1107
+ let t = fr(e);
1108
+ t !== K.value.end && (K.value.end = t, q.value.end = t, Mn());
1109
+ }
1110
+ function Mr({ seriesIndex: e, datapoint: t }) {
1111
+ Rt("selectX", {
1112
+ dataset: t,
1113
+ index: K.value.start + e,
1114
+ indexLabel: ""
1115
+ });
1116
+ }
1117
+ function Nr(e) {
1118
+ if (e?.stage === "start") {
1119
+ rn.value = !0;
1120
+ return;
1121
+ }
1122
+ if (e?.stage === "end") {
1123
+ rn.value = !1;
1124
+ return;
1125
+ }
1126
+ Cn();
1127
+ }
1128
+ async function Pr() {
1129
+ if (Rt("copyAlt", {
1130
+ config: F.value,
1131
+ dataset: Z.value
1132
+ }), !F.value.userOptions.callbacks.altCopy) {
1133
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1134
+ return;
1135
+ }
1136
+ await Promise.resolve(F.value.userOptions.callbacks.altCopy({
1137
+ config: F.value,
1138
+ dataset: Z.value
1139
+ }));
1140
+ }
1141
+ function Fr() {
1142
+ P.value = null, cn.value = !0;
1143
+ }
1144
+ function Ir() {
1145
+ P.value = null, sn.value = "pointer", Vt.value = !1, M.value = void 0, cn.value = !1;
1146
+ }
1147
+ function Lr(e) {
1148
+ if (!R.value || vr.value || document.activeElement !== R.value || !Z.value.length) return;
1149
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1150
+ if (!t && !n && !r && !i) return;
1151
+ if (e.preventDefault(), e.stopPropagation(), i) {
1152
+ P.value = null, sn.value = "pointer", Vt.value = !1, M.value = void 0;
1153
+ return;
1154
+ }
1155
+ if (r) {
1156
+ if (P.value === null) return;
1157
+ let e = Z.value[P.value];
1158
+ if (!e) return;
1159
+ nr(P.value, e);
1160
+ return;
1161
+ }
1162
+ let a = P.value, o = M.value, s = a !== null && a >= 0 && a < Z.value.length, c = o != null && o >= 0 && o < Z.value.length;
1163
+ s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
1164
+ let l = Z.value[a];
1165
+ l && (Rr(a), ir(a, l, "keyboard"));
1166
+ }
1167
+ function Rr(e) {
1168
+ if (!Number.isFinite(e) || !R.value) return;
1169
+ let t = W.value.left + Y.value * e + Y.value / 2, n = W.value.top + W.value.height / 2, r = R.value.getBoundingClientRect();
1170
+ on.value = {
1171
+ x: r.left + t / z.value.width * r.width,
1172
+ y: r.top + n / z.value.height * r.height
1173
+ };
1174
+ }
1175
+ let zr = p(() => ({
1176
+ headers: mr.value?.colNames ?? [],
1177
+ rows: mr.value?.bodyA11y ?? []
1178
+ }));
1179
+ return ve({
1180
+ getImage: br,
1181
+ generatePdf: Sn,
1182
+ generateCsv: pr,
1183
+ generateImage: Cn,
1184
+ generateSvg: Or,
1185
+ toggleTable: gr,
1186
+ toggleTooltip: _r,
1187
+ toggleAnnotator: yr,
1188
+ toggleFullscreen: hr,
1189
+ copyAlt: Pr
1190
+ }), (e, t) => (S(), g("div", {
1191
+ ref_key: "candlestickChart",
1192
+ ref: N,
1193
+ class: b(`vue-data-ui-component vue-ui-candlestick ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1194
+ style: je(`position:relative;font-family:${F.value.style.fontFamily}; text-align:center;background:${F.value.style.backgroundColor}; ${F.value.responsive ? "height: 100%" : ""}`),
1195
+ id: `vue-ui-candlestick_${j.value}`,
1196
+ onMouseenter: hn,
1197
+ onMouseleave: gn
1198
+ }, [
1199
+ _("div", {
1200
+ id: `chart-instructions-${j.value}`,
1201
+ class: "sr-only"
1202
+ }, [_("p", null, E(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
1203
+ zr.value?.rows?.length ? (S(), m(Se, {
1204
+ key: 0,
1205
+ uid: j.value,
1206
+ head: zr.value.headers,
1207
+ body: zr.value.rows,
1208
+ notice: F.value.a11y.translations.tableAvailable,
1209
+ caption: F.value.a11y.translations.tableCaption
1210
+ }, null, 8, [
1211
+ "uid",
1212
+ "head",
1213
+ "body",
1214
+ "notice",
1215
+ "caption"
1216
+ ])) : h("", !0),
1217
+ F.value.userOptions.buttons.annotator ? (S(), m(D(jt), {
1218
+ key: 1,
1219
+ svgRef: D(R),
1220
+ backgroundColor: F.value.style.backgroundColor,
1221
+ color: F.value.style.color,
1222
+ active: vr.value,
1223
+ isCursorPointer: ln.value,
1224
+ onClose: yr
1225
+ }, {
1226
+ "annotator-action-close": O(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1227
+ "annotator-action-color": O(({ color: t }) => [T(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
1228
+ "annotator-action-draw": O(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(y({ mode: t })), void 0, !0)]),
1229
+ "annotator-action-undo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(y({ disabled: t })), void 0, !0)]),
1230
+ "annotator-action-redo": O(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(y({ disabled: t })), void 0, !0)]),
1231
+ "annotator-action-delete": O(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(y({ disabled: t })), void 0, !0)]),
1232
+ _: 3
1233
+ }, 8, [
1234
+ "svgRef",
1235
+ "backgroundColor",
1236
+ "color",
1237
+ "active",
1238
+ "isCursorPointer"
1239
+ ])) : h("", !0),
1240
+ wn.value ? (S(), g("div", {
1241
+ key: 2,
1242
+ ref_key: "noTitle",
1243
+ ref: Jt,
1244
+ class: "vue-data-ui-no-title-space",
1245
+ style: "height:36px; width: 100%;background:transparent"
1246
+ }, null, 512)) : h("", !0),
1247
+ F.value.style.title.text ? (S(), g("div", {
1248
+ key: 3,
1249
+ ref_key: "chartTitle",
1250
+ ref: Wt,
1251
+ style: "width:100%;background:transparent"
1252
+ }, [(S(), m(_e, {
1253
+ key: `title_${Zt.value}`,
1254
+ config: {
1255
+ title: {
1256
+ cy: "candlestick-div-title",
1257
+ ...F.value.style.title
1258
+ },
1259
+ subtitle: {
1260
+ cy: "candlestick-div-subtitle",
1261
+ ...F.value.style.title.subtitle
1262
+ }
1263
+ }
1264
+ }, null, 8, ["config"]))], 512)) : h("", !0),
1265
+ F.value.userOptions.show && zt.value && (D(mn) || D(fn)) ? (S(), m(D(Mt), {
1266
+ ref_key: "userOptionsRef",
1267
+ ref: tn,
1268
+ key: `user_options_${Ut.value}`,
1269
+ backgroundColor: F.value.style.backgroundColor,
1270
+ color: F.value.style.color,
1271
+ isImaging: D(xn),
1272
+ isPrinting: D(bn),
1273
+ uid: j.value,
1274
+ hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.tooltip.show,
1275
+ hasPdf: F.value.userOptions.buttons.pdf,
1276
+ hasImg: F.value.userOptions.buttons.img,
1277
+ hasSvg: F.value.userOptions.buttons.svg,
1278
+ hasXls: F.value.userOptions.buttons.csv,
1279
+ hasTable: F.value.userOptions.buttons.table,
1280
+ hasFullscreen: F.value.userOptions.buttons.fullscreen,
1281
+ hasAltCopy: F.value.userOptions.buttons.altCopy,
1282
+ isFullscreen: $.value,
1283
+ isTooltip: H.value.showTooltip,
1284
+ titles: { ...F.value.userOptions.buttonTitles },
1285
+ chartElement: N.value,
1286
+ position: F.value.userOptions.position,
1287
+ hasAnnotator: F.value.userOptions.buttons.annotator,
1288
+ isAnnotation: vr.value,
1289
+ callbacks: F.value.userOptions.callbacks,
1290
+ printScale: F.value.userOptions.print.scale,
1291
+ tableDialog: F.value.table.useDialog,
1292
+ isCursorPointer: ln.value,
1293
+ onToggleFullscreen: hr,
1294
+ onGeneratePdf: D(Sn),
1295
+ onGenerateCsv: pr,
1296
+ onGenerateImage: Nr,
1297
+ onGenerateSvg: Or,
1298
+ onToggleTable: gr,
1299
+ onToggleTooltip: _r,
1300
+ onToggleAnnotator: yr,
1301
+ onCopyAlt: Pr,
1302
+ style: je({ visibility: D(mn) ? D(fn) ? "visible" : "hidden" : "visible" })
1303
+ }, Ee({ _: 2 }, [
1304
+ e.$slots.menuIcon ? {
1305
+ name: "menuIcon",
1306
+ fn: O(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(y({
1307
+ isOpen: t,
1308
+ color: n
1309
+ })), void 0, !0)]),
1310
+ key: "0"
1311
+ } : void 0,
1312
+ e.$slots.optionTooltip ? {
1313
+ name: "optionTooltip",
1314
+ fn: O(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
1315
+ key: "1"
1316
+ } : void 0,
1317
+ e.$slots.optionPdf ? {
1318
+ name: "optionPdf",
1319
+ fn: O(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
1320
+ key: "2"
1321
+ } : void 0,
1322
+ e.$slots.optionCsv ? {
1323
+ name: "optionCsv",
1324
+ fn: O(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
1325
+ key: "3"
1326
+ } : void 0,
1327
+ e.$slots.optionImg ? {
1328
+ name: "optionImg",
1329
+ fn: O(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
1330
+ key: "4"
1331
+ } : void 0,
1332
+ e.$slots.optionSvg ? {
1333
+ name: "optionSvg",
1334
+ fn: O(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
1335
+ key: "5"
1336
+ } : void 0,
1337
+ e.$slots.optionTable ? {
1338
+ name: "optionTable",
1339
+ fn: O(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
1340
+ key: "6"
1341
+ } : void 0,
1342
+ e.$slots.optionFullscreen ? {
1343
+ name: "optionFullscreen",
1344
+ fn: O(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(y({
1345
+ toggleFullscreen: t,
1346
+ isFullscreen: n
1347
+ })), void 0, !0)]),
1348
+ key: "7"
1349
+ } : void 0,
1350
+ e.$slots.optionAnnotator ? {
1351
+ name: "optionAnnotator",
1352
+ fn: O(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(y({
1353
+ toggleAnnotator: t,
1354
+ isAnnotator: n
1355
+ })), void 0, !0)]),
1356
+ key: "8"
1357
+ } : void 0,
1358
+ e.$slots.optionAltCopy ? {
1359
+ name: "optionAltCopy",
1360
+ fn: O(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(y({ altCopy: t })), void 0, !0)]),
1361
+ key: "9"
1362
+ } : void 0,
1363
+ e.$slots["custom-menu-before"] ? {
1364
+ name: "custom-menu-before",
1365
+ fn: O(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1366
+ key: "10"
1367
+ } : void 0,
1368
+ e.$slots["custom-menu-after"] ? {
1369
+ name: "custom-menu-after",
1370
+ fn: O(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1371
+ key: "11"
1372
+ } : void 0
1373
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
1374
+ _("div", He, [(S(), g("svg", {
1375
+ ref_key: "svgRef",
1376
+ ref: R,
1377
+ xmlns: D(ne),
1378
+ "aria-describedby": `chart-instructions-${j.value}`,
1379
+ class: b({
1380
+ "vue-data-ui-fullscreen--on": $.value,
1381
+ "vue-data-ui-fulscreen--off": !$.value
1382
+ }),
1383
+ viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
1384
+ style: je(`max-width:100%;overflow:visible;background:transparent;color:${F.value.style.color}`),
1385
+ tabindex: "0",
1386
+ onFocus: Fr,
1387
+ onBlur: Ir,
1388
+ onKeydown: Lr
1389
+ }, [
1390
+ Oe(D(Nt)),
1391
+ e.$slots["chart-background"] ? (S(), g("foreignObject", {
1392
+ key: 0,
1393
+ x: W.value.left,
1394
+ y: W.value.top,
1395
+ width: Math.max(.1, W.value.width),
1396
+ height: Math.max(.1, W.value.height),
1397
+ style: { pointerEvents: "none" }
1398
+ }, [T(e.$slots, "chart-background", {}, void 0, !0)], 8, We)) : h("", !0),
1399
+ Z.value.length > 0 ? (S(), g("g", Ge, [
1400
+ _("defs", null, [_("linearGradient", {
1401
+ id: `bearish_gradient_${j.value}`,
1402
+ x2: "0%",
1403
+ y2: "100%"
1404
+ }, [
1405
+ _("stop", {
1406
+ offset: "0%",
1407
+ "stop-color": F.value.style.layout.candle.colors.bearish
1408
+ }, null, 8, qe),
1409
+ _("stop", {
1410
+ offset: "50%",
1411
+ "stop-color": `${D(a)(F.value.style.layout.candle.colors.bearish, .02)}DE`
1412
+ }, null, 8, Je),
1413
+ _("stop", {
1414
+ offset: "100%",
1415
+ "stop-color": `${D(a)(F.value.style.layout.candle.colors.bearish, .05)}66`
1416
+ }, null, 8, Ye)
1417
+ ], 8, Ke), _("linearGradient", {
1418
+ id: `bullish_gradient_${j.value}`,
1419
+ x2: "0%",
1420
+ y2: "100%"
1421
+ }, [
1422
+ _("stop", {
1423
+ offset: "0%",
1424
+ "stop-color": F.value.style.layout.candle.colors.bullish
1425
+ }, null, 8, Ze),
1426
+ _("stop", {
1427
+ offset: "50%",
1428
+ "stop-color": `${D(a)(F.value.style.layout.candle.colors.bullish, .02)}DE`
1429
+ }, null, 8, Qe),
1430
+ _("stop", {
1431
+ offset: "100%",
1432
+ "stop-color": `${D(a)(F.value.style.layout.candle.colors.bullish, .05)}66`
1433
+ }, null, 8, $e)
1434
+ ], 8, Xe)]),
1435
+ F.value.style.layout.grid.show ? (S(), g("g", et, [
1436
+ _("line", {
1437
+ x1: U.value ? W.value.right : W.value.left,
1438
+ x2: U.value ? W.value.right : W.value.left,
1439
+ y1: W.value.top,
1440
+ y2: W.value.bottom,
1441
+ stroke: F.value.style.layout.grid.stroke,
1442
+ "stroke-width": F.value.style.layout.grid.strokeWidth,
1443
+ "stroke-linecap": "round"
1444
+ }, null, 8, tt),
1445
+ _("line", {
1446
+ x1: W.value.left,
1447
+ x2: W.value.right,
1448
+ y1: W.value.bottom,
1449
+ y2: W.value.bottom,
1450
+ stroke: F.value.style.layout.grid.stroke,
1451
+ "stroke-width": F.value.style.layout.grid.strokeWidth,
1452
+ "stroke-linecap": "round"
1453
+ }, null, 8, nt),
1454
+ F.value.style.layout.grid.horizontalLines.show ? (S(!0), g(f, { key: 0 }, w(Hn.value, (e) => (S(), g("line", {
1455
+ x1: W.value.left,
1456
+ x2: W.value.right,
1457
+ y1: e.y,
1458
+ y2: e.y,
1459
+ stroke: F.value.style.layout.grid.horizontalLines.stroke,
1460
+ "stroke-width": F.value.style.layout.grid.horizontalLines.strokeWidth,
1461
+ "stroke-dasharray": F.value.style.layout.grid.horizontalLines.strokeDasharray,
1462
+ "stroke-linecap": "round"
1463
+ }, null, 8, rt))), 256)) : h("", !0),
1464
+ F.value.style.layout.grid.verticalLines.show ? (S(!0), g(f, { key: 1 }, w($n.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1465
+ key: 0,
1466
+ x1: W.value.left + Y.value * t + Y.value / 2,
1467
+ x2: W.value.left + Y.value * t + Y.value / 2,
1468
+ y1: W.value.top,
1469
+ y2: W.value.bottom,
1470
+ stroke: F.value.style.layout.grid.verticalLines.stroke,
1471
+ "stroke-width": F.value.style.layout.grid.verticalLines.strokeWidth,
1472
+ "stroke-dasharray": F.value.style.layout.grid.verticalLines.strokeDasharray,
1473
+ "stroke-linecap": "round"
1474
+ }, null, 8, it)) : h("", !0)]))), 256)) : h("", !0),
1475
+ F.value.style.layout.grid.xAxis.ticks.show ? (S(!0), g(f, { key: 2 }, w($n.value, (e, t) => (S(), g("g", null, [e.text ? (S(), g("line", {
1476
+ key: 0,
1477
+ x1: W.value.left + Y.value * t + Y.value / 2,
1478
+ x2: W.value.left + Y.value * t + Y.value / 2,
1479
+ y1: W.value.bottom,
1480
+ y2: W.value.bottom + 3,
1481
+ stroke: F.value.style.layout.grid.stroke,
1482
+ "stroke-width": F.value.style.layout.grid.strokeWidth,
1483
+ "stroke-linecap": "round"
1484
+ }, null, 8, at)) : h("", !0)]))), 256)) : h("", !0)
1485
+ ])) : h("", !0),
1486
+ F.value.style.layout.grid.yAxis.dataLabels.show ? (S(), g("g", {
1487
+ key: 1,
1488
+ ref_key: "scaleLabels",
1489
+ ref: Qt
1490
+ }, [(S(!0), g(f, null, w(Hn.value, (e, t) => (S(), g("g", null, [e.value >= X.value.min && e.value <= X.value.max ? (S(), g("line", {
1491
+ key: 0,
1492
+ x1: U.value ? W.value.right : W.value.left,
1493
+ x2: U.value ? W.value.right + 5 : W.value.left - 5,
1494
+ y1: e.y,
1495
+ y2: e.y,
1496
+ stroke: F.value.style.layout.grid.stroke,
1497
+ "stroke-width": F.value.style.layout.grid.strokeWidth,
1498
+ "stroke-linecap": "round"
1499
+ }, null, 8, ot)) : h("", !0), e.value >= X.value.min && e.value <= X.value.max ? (S(), g("text", {
1500
+ key: 1,
1501
+ x: U.value ? W.value.right + 8 + F.value.style.layout.grid.yAxis.dataLabels.offsetX : W.value.left - 8 + F.value.style.layout.grid.yAxis.dataLabels.offsetX,
1502
+ y: e.y + z.value.yAxisFontSize / 3,
1503
+ "text-anchor": U.value ? "start" : "end",
1504
+ "font-size": z.value.yAxisFontSize,
1505
+ fill: F.value.style.layout.grid.yAxis.dataLabels.color,
1506
+ "font-weight": F.value.style.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
1507
+ }, E(D(u)({
1508
+ p: F.value.style.layout.grid.yAxis.dataLabels.prefix,
1509
+ v: e.value,
1510
+ s: F.value.style.layout.grid.yAxis.dataLabels.suffix,
1511
+ r: F.value.style.layout.grid.yAxis.dataLabels.roundingValue
1512
+ })), 9, st)) : h("", !0)]))), 256))], 512)) : h("", !0),
1513
+ F.value.style.layout.grid.xAxis.dataLabels.show && !F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1514
+ key: 2,
1515
+ ref_key: "timeLabelsEls",
1516
+ ref: $t
1517
+ }, [(S(!0), g(f, null, w(Un.value, (e, t) => (S(), g("g", null, [_("text", {
1518
+ class: "vue-data-ui-time-label",
1519
+ transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + z.value.xAxisFontSize * 1.5}), rotate(${F.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1520
+ "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1521
+ "font-size": z.value.xAxisFontSize,
1522
+ fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1523
+ "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1524
+ }, E(e), 9, ct)]))), 256))], 512)) : h("", !0),
1525
+ F.value.style.layout.grid.xAxis.dataLabels.show && F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (S(), g("g", {
1526
+ key: 3,
1527
+ ref_key: "timeLabelsEls",
1528
+ ref: $t
1529
+ }, [(S(!0), g(f, null, w($n.value, (e, t) => (S(), g("g", null, [_("text", {
1530
+ class: "vue-data-ui-time-label",
1531
+ transform: `translate(${W.value.left + Y.value * t + Y.value / 2}, ${W.value.bottom + z.value.xAxisFontSize * 1.5}), rotate(${F.value.style.layout.grid.xAxis.dataLabels.rotation})`,
1532
+ "text-anchor": F.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : F.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
1533
+ "font-size": z.value.xAxisFontSize,
1534
+ fill: F.value.style.layout.grid.xAxis.dataLabels.color,
1535
+ "font-weight": F.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
1536
+ }, E(e?.text ?? ""), 9, lt)]))), 256))], 512)) : h("", !0),
1537
+ F.value.type === "candlestick" ? (S(), g(f, { key: 4 }, [_("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("g", null, [
1538
+ _("rect", {
1539
+ x: e.open.x - F.value.style.layout.wick.strokeWidth / 2,
1540
+ y: e.high.y,
1541
+ width: F.value.style.layout.wick.strokeWidth,
1542
+ height: Math.abs(e.high.y - e.low.y),
1543
+ fill: F.value.style.layout.wick.stroke,
1544
+ stroke: "none",
1545
+ rx: F.value.style.layout.wick.strokeWidth / 2,
1546
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1547
+ }, null, 10, ut),
1548
+ F.value.style.layout.wick.extremity.shape === "circle" ? (S(), g("g", dt, [_("circle", {
1549
+ cx: e.high.x,
1550
+ cy: e.high.y,
1551
+ r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1552
+ fill: F.value.style.layout.wick.extremity.color,
1553
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1554
+ }, null, 10, ft), _("circle", {
1555
+ cx: e.low.x,
1556
+ cy: e.low.y,
1557
+ r: F.value.style.layout.wick.extremity.size === "auto" ? Y.value / 20 : F.value.style.layout.wick.extremity.size,
1558
+ fill: F.value.style.layout.wick.extremity.color,
1559
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1560
+ }, null, 10, pt)])) : h("", !0),
1561
+ F.value.style.layout.wick.extremity.shape === "line" ? (S(), g("g", mt, [_("rect", {
1562
+ x: e.high.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2,
1563
+ y: e.high.y - F.value.style.layout.wick.strokeWidth / 2,
1564
+ width: Math.abs(e.high.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2 - (e.high.x + (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2)),
1565
+ height: F.value.style.layout.wick.strokeWidth,
1566
+ rx: F.value.style.layout.wick.strokeWidth / 2,
1567
+ fill: F.value.style.layout.wick.extremity.color,
1568
+ stroke: "none",
1569
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1570
+ }, null, 10, ht), _("rect", {
1571
+ x: e.low.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2,
1572
+ y: e.low.y - F.value.style.layout.wick.strokeWidth / 2,
1573
+ width: Math.abs(e.low.x - (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2 - (e.low.x + (F.value.style.layout.wick.extremity.size === "auto" ? Y.value * F.value.style.layout.candle.widthRatio : F.value.style.layout.wick.extremity.size) / 2)),
1574
+ height: F.value.style.layout.wick.strokeWidth,
1575
+ fill: F.value.style.layout.wick.extremity.color,
1576
+ stroke: "none",
1577
+ rx: F.value.style.layout.wick.strokeWidth / 2,
1578
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1579
+ }, null, 10, gt)])) : h("", !0)
1580
+ ]))), 256))]), _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1581
+ x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1582
+ y: e.isBullish ? e.close.y : e.open.y,
1583
+ height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
1584
+ width: Y.value * F.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : Y.value * F.value.style.layout.candle.widthRatio,
1585
+ fill: F.value.style.layout.candle.gradient.underlayer,
1586
+ rx: F.value.style.layout.candle.borderRadius,
1587
+ stroke: "none",
1588
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1589
+ }, null, 10, _t))), 256)), (S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1590
+ x: e.open.x - Y.value / 2 + Y.value * (1 - F.value.style.layout.candle.widthRatio) / 2,
1591
+ y: e.isBullish ? e.close.y : e.open.y,
1592
+ height: Math.abs(e.close.y - e.open.y) <= 0 ? 1e-4 : Math.abs(e.close.y - e.open.y),
1593
+ width: Y.value * F.value.style.layout.candle.widthRatio <= 0 ? 1e-4 : Y.value * F.value.style.layout.candle.widthRatio,
1594
+ fill: e.isBullish ? F.value.style.layout.candle.gradient.show ? `url(#bullish_gradient_${j.value})` : F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.gradient.show ? `url(#bearish_gradient_${j.value})` : F.value.style.layout.candle.colors.bearish,
1595
+ rx: F.value.style.layout.candle.borderRadius,
1596
+ stroke: F.value.style.layout.candle.stroke,
1597
+ "stroke-width": F.value.style.layout.candle.strokeWidth,
1598
+ "stroke-linecap": "round",
1599
+ "stroke-linejoin": "round",
1600
+ class: b({ "vue-data-ui-transition": A.value && !D(I) })
1601
+ }, null, 10, vt))), 256))])], 64)) : h("", !0),
1602
+ F.value.type === "ohlc" ? (S(!0), g(f, { key: 5 }, w(Z.value, (e, t) => (S(), g("g", null, [_("path", {
1603
+ d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x - Math.min(6, Y.value / 3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x + Math.min(6, Y.value / 3)},${e.close.y}`,
1604
+ stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1605
+ "stroke-width": 1
1606
+ }, null, 8, yt)]))), 256)) : h("", !0),
1607
+ _("g", null, [(S(!0), g(f, null, w(Z.value, (e, t) => (S(), g("rect", {
1608
+ x: W.value.left + t * Y.value,
1609
+ y: W.value.top,
1610
+ height: W.value.height <= 0 ? 1e-4 : W.value.height,
1611
+ width: Y.value <= 0 ? 1e-4 : Y.value,
1612
+ fill: M.value === t || nn.value === t ? D(n)(F.value.style.layout.selector.color, F.value.style.layout.selector.opacity) : "transparent",
1613
+ onMouseover: () => ir(t, e, "pointer"),
1614
+ onMouseleave: () => rr(t, e),
1615
+ onClick: () => nr(t, e)
1616
+ }, null, 40, bt))), 256))])
1617
+ ])) : h("", !0),
1618
+ An.value ? (S(), g("rect", ke({ key: 2 }, kn.value, {
1619
+ "data-start": K.value.start,
1620
+ "data-end": K.value.end
1621
+ }), null, 16, xt)) : h("", !0),
1622
+ T(e.$slots, "svg", { svg: {
1623
+ ...z.value,
1624
+ data: Z.value,
1625
+ drawingArea: W.value,
1626
+ isPrintingImg: D(bn) || D(xn) || rn.value,
1627
+ isPrintingSvg: an.value
1628
+ } }, void 0, !0)
1629
+ ], 46, Ue)), e.$slots.hint ? (S(), g("div", St, [T(e.$slots, "hint", x(y({
1630
+ hint: F.value.a11y.translations.keyboardNavigation,
1631
+ isVisible: cn.value
1632
+ })), void 0, !0)])) : h("", !0)]),
1633
+ e.$slots.watermark ? (S(), g("div", Ct, [T(e.$slots, "watermark", x(y({ isPrinting: D(bn) || D(xn) || rn.value || an.value })), void 0, !0)])) : h("", !0),
1634
+ F.value.style.zoom.show && G.value > 6 && zt.value && lr.value ? (S(), m(xe, {
1635
+ key: 6,
1636
+ ref_key: "chartSlicer",
1637
+ ref: Kt,
1638
+ allMinimaps: Bn.value,
1639
+ background: F.value.style.zoom.color,
1640
+ borderColor: F.value.style.backgroundColor,
1641
+ customFormat: F.value.style.zoom.customFormat,
1642
+ cutNullValues: !1,
1643
+ enableRangeHandles: F.value.style.zoom.enableRangeHandles,
1644
+ enableSelectionDrag: F.value.style.zoom.enableSelectionDrag,
1645
+ end: K.value.end,
1646
+ focusOnDrag: F.value.style.zoom.focusOnDrag,
1647
+ focusRangeRatio: F.value.style.zoom.focusRangeRatio,
1648
+ fontSize: F.value.style.zoom.fontSize,
1649
+ immediate: !F.value.style.zoom.preview.enable,
1650
+ inputColor: F.value.style.zoom.color,
1651
+ isPreview: An.value,
1652
+ labelLeft: er.value.start || "",
1653
+ labelRight: er.value.end || "",
1654
+ max: G.value,
1655
+ min: 0,
1656
+ minimap: F.value.style.zoom.minimap.show ? D(L).map((e) => e[2]) : [],
1657
+ minimapCompact: F.value.style.zoom.minimap.compact,
1658
+ minimapFrameColor: F.value.style.zoom.minimap.frameColor,
1659
+ minimapIndicatorColor: F.value.style.zoom.minimap.indicatorColor,
1660
+ minimapMerged: !1,
1661
+ minimapSelectedColor: F.value.style.zoom.minimap.selectedColor,
1662
+ minimapSelectedColorOpacity: F.value.style.zoom.minimap.selectedColorOpacity,
1663
+ minimapSelectedIndex: M.value,
1664
+ minimapSelectionRadius: 1,
1665
+ preciseLabels: Qn.value,
1666
+ refreshEndPoint: F.value.style.zoom.endIndex === null ? G.value : F.value.style.zoom.endIndex + 1,
1667
+ refreshStartPoint: F.value.style.zoom.startIndex === null ? 0 : F.value.style.zoom.startIndex,
1668
+ selectColor: F.value.style.zoom.highlightColor,
1669
+ selectedSeries: D(L),
1670
+ smoothMinimap: !1,
1671
+ start: K.value.start,
1672
+ textColor: F.value.style.color,
1673
+ timeLabels: Wn.value,
1674
+ usePreciseLabels: F.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable && !F.value.style.zoom.useDefaultFormat,
1675
+ useResetSlot: F.value.style.zoom.useResetSlot,
1676
+ valueEnd: K.value.end,
1677
+ valueStart: K.value.start,
1678
+ verticalHandles: F.value.style.zoom.minimap.verticalHandles,
1679
+ minScale: F.value.style.layout.grid.yAxis.scale.min,
1680
+ maxScale: F.value.style.layout.grid.yAxis.scale.max,
1681
+ maxWidth: F.value.style.zoom.maxWidth,
1682
+ additionalMinimapHeight: F.value.style.zoom.minimap.additionalHeight,
1683
+ handleType: F.value.style.zoom.minimap.handleType,
1684
+ handleIconColor: F.value.style.zoom.minimap.handleIconColor,
1685
+ handleBorderWidth: F.value.style.zoom.minimap.handleBorderWidth,
1686
+ handleBorderColor: F.value.style.zoom.minimap.handleBorderColor,
1687
+ handleFill: F.value.style.zoom.minimap.handleFill,
1688
+ handleWidth: F.value.style.zoom.minimap.handleWidth,
1689
+ "onUpdate:end": jr,
1690
+ "onUpdate:start": Ar,
1691
+ onTrapMouse: kr,
1692
+ onReset: sr,
1693
+ onFutureEnd: t[0] ||= (e) => jn("end", e),
1694
+ onFutureStart: t[1] ||= (e) => jn("start", e)
1695
+ }, {
1696
+ "reset-action": O(({ reset: t }) => [T(e.$slots, "reset-action", x(y({ reset: t })), void 0, !0)]),
1697
+ slotMap: O(({ height: e, unitW: t }) => [(S(!0), g(f, null, w(zn.value({
1698
+ minimapH: e,
1699
+ unitW: t
1700
+ }), (e, n) => (S(), g("g", null, [_("path", {
1701
+ d: `M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,
1702
+ stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1703
+ "stroke-width": 1,
1704
+ style: je({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1705
+ }, null, 12, wt), _("path", {
1706
+ d: `M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,
1707
+ stroke: e.isBullish ? F.value.style.layout.candle.colors.bullish : F.value.style.layout.candle.colors.bearish,
1708
+ "stroke-width": Math.min(6, t / 1.5),
1709
+ style: je({ opacity: n >= q.value.start && n <= q.value.end ? 1 : .6 })
1710
+ }, null, 12, Tt)]))), 256))]),
1711
+ _: 3
1712
+ }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.useResetSlot.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : h("", !0),
1713
+ _("div", {
1714
+ ref_key: "chartLegend",
1715
+ ref: Gt
1716
+ }, [T(e.$slots, "legend", { legend: Z.value }, void 0, !0)], 512),
1717
+ e.$slots.source ? (S(), g("div", {
1718
+ key: 7,
1719
+ ref_key: "source",
1720
+ ref: qt,
1721
+ dir: "auto"
1722
+ }, [T(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
1723
+ Oe(D(Ot), {
1724
+ teleportTo: F.value.style.tooltip.teleportTo,
1725
+ show: H.value.showTooltip && Vt.value,
1726
+ backgroundColor: F.value.style.tooltip.backgroundColor,
1727
+ color: F.value.style.tooltip.color,
1728
+ borderRadius: F.value.style.tooltip.borderRadius,
1729
+ borderColor: F.value.style.tooltip.borderColor,
1730
+ borderWidth: F.value.style.tooltip.borderWidth,
1731
+ fontSize: F.value.style.tooltip.fontSize,
1732
+ backgroundOpacity: F.value.style.tooltip.backgroundOpacity,
1733
+ position: F.value.style.tooltip.position,
1734
+ offsetX: F.value.style.tooltip.offsetX,
1735
+ offsetY: F.value.style.tooltip.offsetY,
1736
+ parent: N.value,
1737
+ content: Ht.value,
1738
+ isFullscreen: $.value,
1739
+ isCustom: F.value.style.tooltip.customFormat && typeof F.value.style.tooltip.customFormat == "function",
1740
+ smooth: F.value.style.tooltip.smooth,
1741
+ backdropFilter: F.value.style.tooltip.backdropFilter,
1742
+ smoothForce: F.value.style.tooltip.smoothForce,
1743
+ smoothSnapThreshold: F.value.style.tooltip.smoothSnapThreshold,
1744
+ isA11yMode: sn.value === "keyboard",
1745
+ a11yPosition: on.value
1746
+ }, {
1747
+ "tooltip-before": O(() => [T(e.$slots, "tooltip-before", x(y({ ...tr.value })), void 0, !0)]),
1748
+ tooltip: O(() => [T(e.$slots, "tooltip", x(y({ ...tr.value })), void 0, !0)]),
1749
+ "tooltip-after": O(() => [T(e.$slots, "tooltip-after", x(y({ ...tr.value })), void 0, !0)]),
1750
+ _: 3
1751
+ }, 8, [
1752
+ "teleportTo",
1753
+ "show",
1754
+ "backgroundColor",
1755
+ "color",
1756
+ "borderRadius",
1757
+ "borderColor",
1758
+ "borderWidth",
1759
+ "fontSize",
1760
+ "backgroundOpacity",
1761
+ "position",
1762
+ "offsetX",
1763
+ "offsetY",
1764
+ "parent",
1765
+ "content",
1766
+ "isFullscreen",
1767
+ "isCustom",
1768
+ "smooth",
1769
+ "backdropFilter",
1770
+ "smoothForce",
1771
+ "smoothSnapThreshold",
1772
+ "isA11yMode",
1773
+ "a11yPosition"
1774
+ ]),
1775
+ zt.value && F.value.userOptions.buttons.table ? (S(), m(Pe(Cr.value.component), ke({ key: 8 }, Cr.value.props, {
1776
+ ref_key: "tableUnit",
1777
+ ref: en,
1778
+ onClose: wr
1779
+ }), Ee({
1780
+ content: O(() => [(S(), m(D(At), {
1781
+ key: `table_${Xt.value}`,
1782
+ colNames: mr.value.colNames,
1783
+ head: mr.value.head,
1784
+ body: mr.value.body,
1785
+ config: mr.value.config,
1786
+ title: F.value.table.useDialog ? "" : Cr.value.title,
1787
+ withCloseButton: !F.value.table.useDialog,
1788
+ isCursorPointer: ln.value,
1789
+ onClose: wr
1790
+ }, {
1791
+ th: O(({ th: e }) => [De(E(e), 1)]),
1792
+ td: O(({ td: e }) => [_("div", { innerHTML: e }, null, 8, Et)]),
1793
+ _: 1
1794
+ }, 8, [
1795
+ "colNames",
1796
+ "head",
1797
+ "body",
1798
+ "config",
1799
+ "title",
1800
+ "withCloseButton",
1801
+ "isCursorPointer"
1802
+ ]))]),
1803
+ _: 2
1804
+ }, [F.value.table.useDialog ? {
1805
+ name: "title",
1806
+ fn: O(() => [De(E(Cr.value.title), 1)]),
1807
+ key: "0"
1808
+ } : void 0, F.value.table.useDialog ? {
1809
+ name: "actions",
1810
+ fn: O(() => [_("button", {
1811
+ tabindex: "0",
1812
+ class: "vue-ui-user-options-button",
1813
+ onClick: t[2] ||= (e) => pr(F.value.userOptions.callbacks.csv),
1814
+ style: je({ cursor: ln.value ? "pointer" : "default" })
1815
+ }, [Oe(D(Dt), {
1816
+ name: "fileCsv",
1817
+ stroke: Cr.value.props.color
1818
+ }, null, 8, ["stroke"])], 4)]),
1819
+ key: "1"
1820
+ } : void 0]), 1040)) : h("", !0),
1821
+ T(e.$slots, "skeleton", {}, () => [D(I) ? (S(), m(de, { key: 0 })) : h("", !0)], !0)
1822
+ ], 46, Be));
1823
+ }
1824
+ }, [["__scopeId", "data-v-6b89a6b9"]]);
1825
+ //#endregion
1826
+ export { ze as n, Dt as t };