vue-data-ui 2.3.98 → 2.4.0

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 (153) hide show
  1. package/dist/{Arrow-BLDzSVI-.cjs → Arrow-CbntjQjr.cjs} +1 -1
  2. package/dist/{Arrow-DgyN_Z51.js → Arrow-NcE21Ngm.js} +1 -1
  3. package/dist/BaseIcon-7IlvRUX2.cjs +1 -0
  4. package/dist/{BaseIcon-CdxkWcA_.js → BaseIcon-BUTpMnXi.js} +17 -16
  5. package/dist/{DataTable-DT8VcwR5.cjs → DataTable-BwH-MU-S.cjs} +1 -1
  6. package/dist/{DataTable-CFtLoh2y.js → DataTable-DAgyf9zN.js} +2 -2
  7. package/dist/{Legend-BiaVNQjc.cjs → Legend-CHQgjBuK.cjs} +1 -1
  8. package/dist/{Legend-DlZZeU8Y.js → Legend-DBhpIX2x.js} +1 -1
  9. package/dist/PackageVersion-Djty0wb2.cjs +1 -0
  10. package/dist/{PackageVersion-B2pJ6f4s.js → PackageVersion-wB6dCDZw.js} +1 -1
  11. package/dist/{Shape-CbyenPbK.js → Shape-CQVJz33T.js} +1 -1
  12. package/dist/{Shape-CLCzNUYM.cjs → Shape-DQ0Hh2Gg.cjs} +1 -1
  13. package/dist/{Slicer-CCE1xFS8.cjs → Slicer-CiSmaE0_.cjs} +1 -1
  14. package/dist/{Slicer-C2ocGjgt.js → Slicer-DXw23eOC.js} +2 -2
  15. package/dist/{Title-spYln43E.cjs → Title-BHmTg9iK.cjs} +1 -1
  16. package/dist/{Title-DqYX5EDQ.js → Title-DlVZnHjs.js} +1 -1
  17. package/dist/{Tooltip-7I8a4mo2.js → Tooltip-CveCRFgK.js} +1 -1
  18. package/dist/{Tooltip-BgkDlGZj.cjs → Tooltip-DBzXz806.cjs} +1 -1
  19. package/dist/{index-CHn5mpNE.js → index-B0CpCD8z.js} +33 -26
  20. package/dist/index-Dfhvf8hT.cjs +9 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +7 -1
  23. package/dist/types/vue-data-ui.d.ts +7 -1
  24. package/dist/{useNestedProp-BF5raFbY.js → useNestedProp-DGWP4D-K.js} +1 -1
  25. package/dist/{useNestedProp-XzXFHriE.cjs → useNestedProp-iuDCMc2p.cjs} +1 -1
  26. package/dist/usePrinter-BQQasUin.cjs +1 -0
  27. package/dist/{usePrinter-DNwJl64i.js → usePrinter-Dr30K4cu.js} +27 -23
  28. package/dist/{vue-data-ui-D74akyv3.js → vue-data-ui-BdSFeW_X.js} +57 -57
  29. package/dist/{vue-data-ui-DyzsgRrE.cjs → vue-data-ui-BgVPGbxq.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-CEIsvuEw.js → vue-ui-3d-bar-C3hYrYTV.js} +8 -8
  33. package/dist/{vue-ui-3d-bar-DABkuo-g.cjs → vue-ui-3d-bar-DhHuwXZ1.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-DXd5ND_A.js → vue-ui-accordion-CmENcGVW.js} +3 -3
  35. package/dist/{vue-ui-accordion-DDiQi7FV.cjs → vue-ui-accordion-Deyo7jw7.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-Bk87h-18.js → vue-ui-age-pyramid-C075Lvfe.js} +9 -9
  37. package/dist/{vue-ui-age-pyramid-DgDByrGl.cjs → vue-ui-age-pyramid-DaenyRp2.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-B6velitp.js → vue-ui-annotator-Bb6fUz4x.js} +1 -1
  39. package/dist/{vue-ui-annotator-CC523zDg.cjs → vue-ui-annotator-DslXalSQ.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-BW7ajYg7.js → vue-ui-candlestick-C4VEOmY_.js} +10 -10
  41. package/dist/{vue-ui-candlestick-DbU_XaYN.cjs → vue-ui-candlestick-CnVzd826.cjs} +1 -1
  42. package/dist/vue-ui-carousel-table-Coq4gg_P.cjs +1 -0
  43. package/dist/{vue-ui-carousel-table-C2GpkqxJ.js → vue-ui-carousel-table-DZfMMpZ7.js} +26 -25
  44. package/dist/{vue-ui-chestnut-ynySog92.cjs → vue-ui-chestnut-CLnJ0jmo.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-s4sYE-Yq.js → vue-ui-chestnut-CUnbj-Zb.js} +7 -7
  46. package/dist/{vue-ui-cursor-C0JCZjSM.cjs → vue-ui-cursor-B9UvQwLp.cjs} +1 -1
  47. package/dist/{vue-ui-cursor-B3OZaotE.js → vue-ui-cursor-CtuPho-s.js} +2 -2
  48. package/dist/{vue-ui-dashboard-B8glPKoJ.js → vue-ui-dashboard-8gQ1bGCn.js} +2 -2
  49. package/dist/{vue-ui-dashboard-Bn3v9JMP.cjs → vue-ui-dashboard-KMTRqXzR.cjs} +1 -1
  50. package/dist/{vue-ui-digits-Bf3jPyKq.cjs → vue-ui-digits-DSMNN4z_.cjs} +1 -1
  51. package/dist/{vue-ui-digits-BTw5A-9I.js → vue-ui-digits-DuEyX8op.js} +2 -2
  52. package/dist/{vue-ui-donut-CMHiEbv5.js → vue-ui-donut-0xdYBc41.js} +362 -336
  53. package/dist/vue-ui-donut-C4ek9m3R.cjs +1 -0
  54. package/dist/{vue-ui-donut-evolution-DMM09v7x.cjs → vue-ui-donut-evolution-B4TkwvNq.cjs} +1 -1
  55. package/dist/{vue-ui-donut-evolution-Cn-kZE-i.js → vue-ui-donut-evolution-DbojarYN.js} +10 -10
  56. package/dist/{vue-ui-dumbbell-BRgiYAXh.js → vue-ui-dumbbell-BxhWjCvR.js} +9 -9
  57. package/dist/{vue-ui-dumbbell-6liDM1Uq.cjs → vue-ui-dumbbell-Cn3spRSv.cjs} +1 -1
  58. package/dist/{vue-ui-flow-B7wvK8sK.cjs → vue-ui-flow-D00VdtGU.cjs} +1 -1
  59. package/dist/{vue-ui-flow-CkRBNjsz.js → vue-ui-flow-DreN8go4.js} +8 -8
  60. package/dist/{vue-ui-galaxy-C1I2rPqV.js → vue-ui-galaxy-BddgLpP-.js} +10 -10
  61. package/dist/{vue-ui-galaxy-BuuC5iw-.cjs → vue-ui-galaxy-DVN-S67V.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-BvJ0qzq4.cjs → vue-ui-gauge-DYZYFzHP.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-B0PNChvw.js → vue-ui-gauge-DoTctAHq.js} +6 -6
  64. package/dist/{vue-ui-gizmo-C6G_WlP5.cjs → vue-ui-gizmo-DRASsqlp.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-HvL1eMUO.js → vue-ui-gizmo-hXBWaB0c.js} +3 -3
  66. package/dist/{vue-ui-heatmap-CQXqbbaT.js → vue-ui-heatmap-B43q8UHu.js} +9 -9
  67. package/dist/{vue-ui-heatmap-5ALzyHu_.cjs → vue-ui-heatmap-ldCySJFf.cjs} +1 -1
  68. package/dist/{vue-ui-kpi-5u25Gbfg.cjs → vue-ui-kpi-BiJnqtGR.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-JIlZQFAC.js → vue-ui-kpi-_GVnhxEd.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-DcJ58uSW.cjs → vue-ui-mini-loader-DVZtFcHw.cjs} +1 -1
  71. package/dist/{vue-ui-mini-loader-Dktn_fME.js → vue-ui-mini-loader-qvtu5jtI.js} +2 -2
  72. package/dist/{vue-ui-molecule-Wefpekma.cjs → vue-ui-molecule-DP9jhODZ.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-BSSNMC6m.js → vue-ui-molecule-Dpu7Xmu5.js} +10 -10
  74. package/dist/{vue-ui-mood-radar-B7oYZs55.cjs → vue-ui-mood-radar-BR0INhYL.cjs} +1 -1
  75. package/dist/{vue-ui-mood-radar-D4fVO5iO.js → vue-ui-mood-radar-iZJ0B1Wf.js} +10 -10
  76. package/dist/{vue-ui-nested-donuts-4_tabA8c.js → vue-ui-nested-donuts-CovQfZ81.js} +10 -10
  77. package/dist/{vue-ui-nested-donuts-ClqZ-eJl.cjs → vue-ui-nested-donuts-CwIsGnyH.cjs} +1 -1
  78. package/dist/{vue-ui-onion-Ch6BgUFP.js → vue-ui-onion-CJb2Pg0t.js} +10 -10
  79. package/dist/{vue-ui-onion-DQ9E4dGJ.cjs → vue-ui-onion-DjEChSmi.cjs} +1 -1
  80. package/dist/{vue-ui-parallel-coordinate-plot-CeXmNMQ-.cjs → vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs} +1 -1
  81. package/dist/{vue-ui-parallel-coordinate-plot-BtZ1F37V.js → vue-ui-parallel-coordinate-plot-CUA_fFC3.js} +11 -11
  82. package/dist/{vue-ui-quadrant-fhNZ5-B5.cjs → vue-ui-quadrant-CmdbW8yZ.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-CGiq44Mt.js → vue-ui-quadrant-IAIp5IZq.js} +11 -11
  84. package/dist/{vue-ui-quick-chart-B-vFmpy5.js → vue-ui-quick-chart-Bb2RQ6qI.js} +8 -8
  85. package/dist/{vue-ui-quick-chart-DI4IPOIj.cjs → vue-ui-quick-chart-DcEk6Ho7.cjs} +1 -1
  86. package/dist/{vue-ui-radar-B80HMKEf.cjs → vue-ui-radar-TjgO9_LA.cjs} +1 -1
  87. package/dist/{vue-ui-radar-DWzxx466.js → vue-ui-radar-mIQMBRHx.js} +11 -11
  88. package/dist/vue-ui-rating-BGRWSTGr.cjs +1 -0
  89. package/dist/vue-ui-rating-DcJb7_bV.js +323 -0
  90. package/dist/{vue-ui-relation-circle-dUlg-_QI.js → vue-ui-relation-circle-f0fKvSSw.js} +6 -6
  91. package/dist/{vue-ui-relation-circle-DNaNyiIv.cjs → vue-ui-relation-circle-x4sKnxbi.cjs} +1 -1
  92. package/dist/{vue-ui-rings-C_z0XK6f.cjs → vue-ui-rings-B3mUyyQ9.cjs} +1 -1
  93. package/dist/{vue-ui-rings-CqFaPqaR.js → vue-ui-rings-M1PUv5Wu.js} +10 -10
  94. package/dist/{vue-ui-scatter-DFiICBjw.cjs → vue-ui-scatter-DF_nobsG.cjs} +1 -1
  95. package/dist/{vue-ui-scatter-Bsfc6z4K.js → vue-ui-scatter-DiQJtMz1.js} +11 -11
  96. package/dist/{vue-ui-screenshot-uE34c5Im.cjs → vue-ui-screenshot-BdnW3WFN.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-CXptYbDY.js → vue-ui-screenshot-QRt5bT48.js} +1 -1
  98. package/dist/{vue-ui-skeleton-BmPO8QNa.js → vue-ui-skeleton-DEv_1TFa.js} +3 -3
  99. package/dist/{vue-ui-skeleton-g8cEqYmt.cjs → vue-ui-skeleton-fqwO2mHD.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-ByBzn20M.js → vue-ui-smiley-BAr3XuJG.js} +405 -320
  101. package/dist/vue-ui-smiley-D-zRYR9g.cjs +2 -0
  102. package/dist/{vue-ui-spark-trend-BXiiilKK.cjs → vue-ui-spark-trend-Br0GTMx_.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-DYfjqLKr.js → vue-ui-spark-trend-CS6jl2aN.js} +5 -5
  104. package/dist/{vue-ui-sparkbar-BCqmWJWk.cjs → vue-ui-sparkbar-N8aFbuJv.cjs} +1 -1
  105. package/dist/{vue-ui-sparkbar-D37uDtG6.js → vue-ui-sparkbar-tgfbnVYO.js} +4 -4
  106. package/dist/{vue-ui-sparkgauge-Dp4bJ89f.cjs → vue-ui-sparkgauge--hgbxLQS.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-f1tYOMwd.js → vue-ui-sparkgauge-CqH25hj7.js} +4 -4
  108. package/dist/{vue-ui-sparkhistogram-DHYJG6d0.js → vue-ui-sparkhistogram-Cry2PFGH.js} +5 -5
  109. package/dist/{vue-ui-sparkhistogram-Gh_h9QK_.cjs → vue-ui-sparkhistogram-vVRA6Z_l.cjs} +1 -1
  110. package/dist/{vue-ui-sparkline-CkPExlPm.cjs → vue-ui-sparkline-BZir7JxD.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-CENc9bgs.js → vue-ui-sparkline-DXwqMlzQ.js} +4 -4
  112. package/dist/{vue-ui-sparkstackbar-BNUyfD4B.js → vue-ui-sparkstackbar-CQjpberv.js} +4 -4
  113. package/dist/{vue-ui-sparkstackbar-WWR3yYii.cjs → vue-ui-sparkstackbar-Dc6tZvej.cjs} +1 -1
  114. package/dist/{vue-ui-stackbar-BQC8Ca_b.js → vue-ui-stackbar-BF0M1KJf.js} +11 -11
  115. package/dist/{vue-ui-stackbar-CFIZ94i3.cjs → vue-ui-stackbar-BGmTwxvv.cjs} +1 -1
  116. package/dist/{vue-ui-strip-plot-OPkq7c7M.js → vue-ui-strip-plot-C8dme7tS.js} +10 -10
  117. package/dist/{vue-ui-strip-plot-BEyk6uih.cjs → vue-ui-strip-plot-DT9Od_To.cjs} +1 -1
  118. package/dist/{vue-ui-table-DQno4vjF.js → vue-ui-table-BvbXppa1.js} +1 -1
  119. package/dist/{vue-ui-table-Btz8Txup.cjs → vue-ui-table-DGmUNjR_.cjs} +1 -1
  120. package/dist/{vue-ui-table-heatmap-DAQ3DL1R.cjs → vue-ui-table-heatmap-Ch2UwsIw.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-Dvl7B3i2.js → vue-ui-table-heatmap-ccoLJyce.js} +4 -4
  122. package/dist/{vue-ui-table-sparkline-DJwhjePK.js → vue-ui-table-sparkline-BZ8faxdR.js} +5 -5
  123. package/dist/{vue-ui-table-sparkline-ZEGDkLve.cjs → vue-ui-table-sparkline-DT5a8gHs.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-Dmi60VAf.js → vue-ui-thermometer-BOs1_H4X.js} +6 -6
  125. package/dist/{vue-ui-thermometer-DCP3GH7M.cjs → vue-ui-thermometer-Biv2CIsy.cjs} +1 -1
  126. package/dist/{vue-ui-timer-BjlYd8dM.cjs → vue-ui-timer-CNpKGbIg.cjs} +1 -1
  127. package/dist/{vue-ui-timer-BffyRll5.js → vue-ui-timer-DE_m5wxu.js} +5 -5
  128. package/dist/{vue-ui-tiremarks-GSBKzXEK.js → vue-ui-tiremarks-CTMS_E0z.js} +6 -6
  129. package/dist/{vue-ui-tiremarks-2RGbitnQ.cjs → vue-ui-tiremarks-YU4wuZl3.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-CuYV5RnC.js → vue-ui-treemap-5Dm82baA.js} +10 -10
  131. package/dist/{vue-ui-treemap-D0wMLDpi.cjs → vue-ui-treemap-C0E1_DGA.cjs} +1 -1
  132. package/dist/{vue-ui-vertical-bar-CqH76_tw.cjs → vue-ui-vertical-bar-CVZHDENz.cjs} +1 -1
  133. package/dist/{vue-ui-vertical-bar-n6-aILoL.js → vue-ui-vertical-bar-CVZI3v1Y.js} +10 -10
  134. package/dist/{vue-ui-waffle-DN0nEorT.js → vue-ui-waffle-Bf4epEaH.js} +10 -10
  135. package/dist/{vue-ui-waffle-CUw9wjum.cjs → vue-ui-waffle-DD09_Fdb.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-bauD1n_w.cjs → vue-ui-wheel-BybAQ0bR.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-gFxj5brx.js → vue-ui-wheel-DMvZZCzi.js} +6 -6
  138. package/dist/{vue-ui-word-cloud-BXCUAiAK.js → vue-ui-word-cloud-B8hdGDYI.js} +9 -9
  139. package/dist/{vue-ui-word-cloud-CzXCfW8Q.cjs → vue-ui-word-cloud-MQ0kgdPw.cjs} +1 -1
  140. package/dist/{vue-ui-xy-CEfc7szr.cjs → vue-ui-xy-B4C0WR56.cjs} +1 -1
  141. package/dist/{vue-ui-xy-BbRzriSg.js → vue-ui-xy-D3TaTkPR.js} +13 -13
  142. package/dist/{vue-ui-xy-canvas-Cw-F7w38.js → vue-ui-xy-canvas-ClETpddw.js} +10 -10
  143. package/dist/{vue-ui-xy-canvas-DhHuhTxz.cjs → vue-ui-xy-canvas-qbn0PHMN.cjs} +1 -1
  144. package/package.json +1 -1
  145. package/dist/BaseIcon-BriP3G7r.cjs +0 -1
  146. package/dist/PackageVersion-DMkpXFFU.cjs +0 -1
  147. package/dist/index-xtIm3ydy.cjs +0 -9
  148. package/dist/usePrinter-BrE53tUa.cjs +0 -1
  149. package/dist/vue-ui-carousel-table-23OR7otR.cjs +0 -1
  150. package/dist/vue-ui-donut-yfNvdjlP.cjs +0 -1
  151. package/dist/vue-ui-rating-BOGhqulq.cjs +0 -1
  152. package/dist/vue-ui-rating-CPuKzB4x.js +0 -271
  153. package/dist/vue-ui-smiley-DQEb9ejw.cjs +0 -2
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-xtIm3ydy.cjs"),he=require("./useResponsive-B3TrDDIG.cjs"),_e=require("./Title-spYln43E.cjs"),fe=require("./usePrinter-BrE53tUa.cjs"),Se=require("./DataTable-DT8VcwR5.cjs"),Pe=require("./Tooltip-BgkDlGZj.cjs"),$e=require("./Legend-BiaVNQjc.cjs"),Ne=require("./vue-ui-skeleton-g8cEqYmt.cjs"),Ee=require("./vue-ui-accordion-DDiQi7FV.cjs"),ye=require("./useNestedProp-XzXFHriE.cjs"),Le=require("./PackageVersion-DMkpXFFU.cjs"),Fe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ve=$=>(e.pushScopeId("data-v-3151515d"),$=$(),e.popScopeId(),$),ze=["id"],Oe=["xmlns","viewBox"],Te={key:0},Xe=["id"],De=["stop-color"],Me=["offset","stop-color"],Ye=["offset","stop-color"],Ie=["stop-color"],Ae={key:1},qe=["id","cx","cy"],Ge=["stop-color","stop-opacity"],Re=["stop-color"],je=["id"],He=["id"],Ue=Ve(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),We=["id"],Je=["flood-color"],Ke=["d","stroke","filter"],Qe=["x1","y1","x2","y2","stroke","filter"],Ze=["cx","cy","r","fill","filter"],et=["stroke","d"],tt=["d","fill","stroke","stroke-width","filter"],lt={key:0},at=["stroke","d"],ot=["d","fill","stroke","stroke-width","filter"],nt={key:1},rt=["cx","cy","r","fill","stroke","stroke-width"],ut=["cx","cy","r","stroke"],st=["cx","cy","r","fill"],it={key:0},ct=["d","fill","onMouseenter","onClick"],dt={key:1},vt=["cx","cy","r","fill"],ht=["x","y","fill","font-size"],ft=["x","y","fill","font-size"],yt=["x","y","fill","font-size"],mt=["x","y","fill","font-size"],pt=["filter"],gt={key:0},bt=["x","y"],kt={key:1},wt=["cx","cy","fill","stroke","filter","onClick"],Ct=["cx","cy","fill","stroke","filter","onClick"],xt=["text-anchor","x","y","fill","font-size","onClick"],Bt=["text-anchor","x","y","fill","font-size","onClick"],_t=["text-anchor","x","y","fill","font-size","onClick"],St=["text-anchor","x","y","fill","font-size","onClick"],Pt={key:2},$t=["x","y","width"],Nt=["x","y","width"],Et={key:3,class:"vue-data-ui-watermark"},Lt=["onClick"],Ft={key:0,style:{"font-variant-numeric":"tabular-nums"}},Vt={key:1},zt=["innerHTML"],Ot={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup($,{expose:me,emit:A}){const k=$,{vue_ui_donut:pe}=o.useConfig(),N=e.computed({get(){return!!k.dataset&&k.dataset.length},set(a){return a}}),E=e.ref(null),q=e.ref(null),G=e.ref(null),O=e.ref(null),R=e.ref(0),j=e.ref(0),H=e.ref(0);e.onMounted(()=>{U()}),e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});function U(){if(o.objectIsEmpty(k.dataset)?o.error({componentName:"VueUiDonut",type:"dataset"}):k.dataset.forEach((a,u)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","values"]}).forEach(l=>{N.value=!1,o.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const a=he.throttle(()=>{const{width:u,height:l}=he.useResponsive({chart:E.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?G.value:null});r.value.width=u,r.value.height=l});O.value=new ResizeObserver(a),O.value.observe(E.value.parentNode)}}const f=e.ref(o.createUid()),ge=e.ref(null),T=e.ref(!1),D=e.ref(""),p=e.ref(null),W=e.ref(0);function J(){const a=ye.useNestedProp({userConfig:k.config,defaultConfig:pe});return a.theme?{...ye.useNestedProp({userConfig:o.themes.vue_ui_donut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}const t=e.computed({get:()=>J(),set:a=>a});e.watch(()=>k.config,a=>{t.value=J(),U(),R.value+=1,j.value+=1,H.value+=1},{deep:!0});const{isPrinting:K,isImaging:Q,generatePdf:Z,generateImage:ee}=fe.usePrinter({elementId:`donut__${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut"}),te=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),r=e.ref({height:360,width:512}),L=e.computed(()=>{const a=t.value.style.chart.layout.donut.strokeWidth/512,u=r.value.width*a,l=u>y.value?y.value:u;return l<24?24:l}),_=e.computed(()=>k.dataset.map((a,u)=>({name:a.name,color:o.convertColorToHex(a.color)||te.value[u]||o.palette[u]||o.palette[u%o.palette.length],value:a.values.reduce((l,n)=>l+n,0),absoluteValues:a.values,comment:a.comment||""}))),g=e.ref(_.value);e.watch(()=>_.value,a=>g.value=a);function be(){return _.value.map(a=>({name:a.name,color:a.color,value:a.value}))}const w=e.ref([]),le=e.ref(null),ae=e.ref(null),S=e.ref(!1);function oe(a){const u=_.value.find((s,h)=>h===a);let n=g.value.find((s,h)=>h===a).value;if(w.value.includes(a)){let h=function(){n>s?(cancelAnimationFrame(le.value),g.value=g.value.map((d,I)=>a===I?{...d,value:s}:d),S.value=!1):(S.value=!0,n+=s*.025,g.value=g.value.map((d,I)=>a===I?{...d,value:n}:d),le.value=requestAnimationFrame(h))};w.value=w.value.filter(d=>d!==a);const s=u.value;h()}else if(w.value.length<_.value.length-1){let s=function(){n<.1?(cancelAnimationFrame(ae.value),w.value.push(a),g.value=g.value.map((h,d)=>a===d?{...h,value:0}:h),S.value=!1):(S.value=!0,n/=1.1,g.value=g.value.map((h,d)=>a===d?{...h,value:n}:h),ae.value=requestAnimationFrame(s))};s()}A("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(g.value.forEach((a,u)=>{if([null,void 0].includes(a.values))return{...a,values:[]}}),g.value.map((a,u)=>({...a,seriesIndex:u})).filter((a,u)=>!w.value.includes(u)))),ne=e.computed(()=>k.dataset.map((a,u)=>({name:a.name,color:o.convertColorToHex(a.color)||te.value[u]||o.palette[u]||o.palette[u%o.palette.length],value:(a.values||[]).reduce((l,n)=>l+n,0),shape:"circle"})).map((a,u)=>({...a,proportion:a.value/k.dataset.map(l=>(l.values||[]).reduce((n,s)=>n+s,0)).reduce((l,n)=>l+n,0),opacity:w.value.includes(u)?.5:1,segregate:()=>oe(u),isSegregated:w.value.includes(u)}))),ke=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>{const a=Math.min(r.value.width/3,r.value.height/3);return a<55?55:a}),v=e.computed(()=>o.makeDonut({series:C.value},r.value.width/2,r.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,L.value)),i=e.computed(()=>{const a=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/a);return o.createPolarAreas({series:u,center:{x:r.value.width/2,y:r.value.height/2},maxRadius:Math.min(r.value.width,r.value.height)/3})});function P(a){return a.x>r.value.width/2+6?"start":a.x<r.value.width/2-6?"end":"middle"}function we(a){return a.middlePoint.y>r.value.height/2?o.offsetFromCenterPoint({initX:a.middlePoint.x,initY:a.middlePoint.y,offset:100,centerX:r.value.width/2,centerY:r.value.height/2}).y:o.offsetFromCenterPoint({initX:a.middlePoint.x,initY:a.middlePoint.y,offset:0,centerX:r.value.width/2,centerY:r.value.height/2}).y-100}function b(a){return a.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function M(a,u){const l=a.value/Ce(u);return isNaN(l)?0:o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,o.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:a})}function Ce(a){return[...a].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(a=>a.value).reduce((a,u)=>a+u,0)),re=e.computed(()=>m.value/C.value.length),Y=e.ref(null),F=e.ref(!1);function ue({datapoint:a,relativeIndex:u,seriesIndex:l,show:n=!1}){Y.value={datapoint:a,seriesIndex:l,config:t.value,series:_.value},T.value=n,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(F.value=!1,o.isFunction(h))try{const d=h({seriesIndex:l,datapoint:a,series:_.value,config:t.value});typeof d=="string"&&(D.value=d,F.value=!0)}catch{console.warn("Custom format cannot be applied."),F.value=!1}if(!F.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${a.color}"/></svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${o.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,a.value,o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const d=o.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,a.proportion*100,o.dataLabel({v:a.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:a,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${d})</span></div>`:s+=`<b>${d}</b></div>`}t.value.style.chart.comments.showInTooltip&&a.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${a.color}">${a.comment}</div>`),D.value=`<div>${s}</div>`}}function V(a){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==a?`url(#blur_${f.value})`:""}const x=e.computed(()=>{const a=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:a,body:u}});function se(){e.nextTick(()=>{const a=x.value.head.map((n,s)=>[[n.name],[x.value.body[s]],[isNaN(x.value.body[s]/m.value)?"-":x.value.body[s]/m.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(a),l=o.createCsvContent(u);o.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const X=e.computed(()=>{const a=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=x.value.head.map((s,h)=>{const d=o.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:x.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue});return[{color:s.color,name:s.name},d,isNaN(x.value.body[h]/m.value)?"-":(x.value.body[h]/m.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:a,body:u,config:l}}),z=e.ref(!1);function xe(a){z.value=a,W.value+=1}const ie=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Be(a){return a.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function B(a,u){A("selectDatapoint",{datapoint:a,index:u})}function ce(){c.value.showTable=!c.value.showTable}function de(){c.value.dataLabels.show=!c.value.dataLabels.show}function ve(){c.value.showTooltip=!c.value.showTooltip}return me({getData:be,generatePdf:Z,generateCsv:se,generateImage:ee,toggleTable:ce,toggleLabels:de,toggleTooltip:ve}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:E,class:e.normalizeClass(`vue-ui-donut ${z.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor}`),id:`donut__${f.value}`},[e.renderSlot(a.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:q,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(_e._sfc_main,{key:`title_${R.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&N.value?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:ge,key:`user_option_${W.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(K),isImaging:e.unref(Q),uid:f.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:z.value,chartElement:E.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},onToggleFullscreen:xe,onGeneratePdf:e.unref(Z),onGenerateCsv:se,onGenerateImage:e.unref(ee),onToggleTable:ce,onToggleLabels:de,onToggleTooltip:ve},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),N.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":z.value,"vue-data-ui-fulscreen--off":!z.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Le._sfc_main),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",Te,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${f.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,De),e.createElementVNode("stop",{offset:`${(1-L.value/y.value)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,Me),e.createElementVNode("stop",{offset:`${(1-L.value/y.value/2)*100}%`,"stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,Ie)],8,Xe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${n}_${f.value}`,cx:l.middlePoint.x/r.value.width*100+"%",cy:l.middlePoint.y/r.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.shiftHue)(v.value[n].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":v.value[n].color},null,8,Re)],8,qe))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${f.value}`},null,8,He),Ue],8,je),e.createElementVNode("filter",{id:`shadow_${f.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,Je)],8,We)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:r.value.width/2,y:r.value.height/2},16,16,!1,!1,L.value),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:V(n)},null,8,Ke)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,y1:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,x2:i.value[n].middlePoint.x,y2:i.value[n].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:V(n)},null,8,Qe)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:4,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:t.value.style.chart.layout.donut.useShadow?`url(#shadow_${f.value})`:""},null,8,Ze)):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,et))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(o.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:V(n)},null,8,tt))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[v.value.length>1?(e.openBlock(),e.createElementBlock("g",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[n].path,fill:"#FFFFFF"},null,8,at))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[n].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${n}_${f.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:V(n)},null,8,ot))),256))])):(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${f.value})`:v.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,rt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:7,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,ut)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:8,cx:r.value.width/2,cy:r.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${f.value})`},null,8,st)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:9},[v.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{"data-cy-donut-trap":"",d:t.value.type==="classic"?l.arcSlice:i.value[n].path,fill:p.value===n?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>ue({datapoint:l,relativeIndex:n,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{T.value=!1,p.value=null}),onClick:s=>B(l,n)},null,40,ct))),256))])):(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("circle",{cx:r.value.width/2,cy:r.value.height/2,r:y.value,fill:p.value===a.i?"rgba(0,0,0,0.1)":"transparent","data-cy-donut-trap":"",onMouseenter:u[1]||(u[1]=l=>ue({datapoint:v.value[0],relativeIndex:0,seriesIndex:v.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{T.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>B(v.value[0],a.i))},null,40,vt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,ht)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,ft)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,yt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:r.value.width/2,y:r.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString(S.value?"--":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,re.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:re.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,mt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",{filter:V(n),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-120:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-60:e.unref(o.calcMarkerOffsetX)(l).x,y:e.unref(o.calcMarkerOffsetY)(l)-(ie.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"dataLabel",e.normalizeProps(e.guardReactiveProps({datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===n,isSafari:ie.value,isVisible:b(l)&&c.value.dataLabels.show,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor,percentage:M(l,v.value)})),void 0,!0)])],8,bt))])):(e.openBlock(),e.createElementBlock("g",kt,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.calcMarkerOffsetX)(l).x,cy:e.unref(o.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===n?"":`url(#blur_${f.value})`,onClick:s=>B(l,n)},null,8,wt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).x,cy:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:24,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===n?"":`url(#blur_${f.value})`,onClick:s=>B(l,n)},null,8,Ct)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>B(l,n)},e.toDisplayString(M(l,v.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,xt)):e.createCommentVNode("",!0),b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,x:e.unref(o.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>B(l,n)},e.toDisplayString(l.name),13,Bt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":P(i.value[n].middlePoint),x:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>B(l,n)},e.toDisplayString(M(l,v.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,_t)):e.createCommentVNode("",!0),b(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":P(i.value[n].middlePoint),x:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x,y:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>B(l,n)},e.toDisplayString(l.name),13,St)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",Pt,[b(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(o.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(o.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(o.calcMarkerOffsetX)(l).x),y:e.unref(o.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(o.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,$t)):e.createCommentVNode("",!0),b(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(P(i.value[n].middlePoint)==="end"?e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width:P(i.value[n].middlePoint)==="middle"?e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(o.offsetFromCenterPoint)({initX:i.value[n].middlePoint.x,initY:i.value[n].middlePoint.y,offset:42,centerX:r.value.width/2,centerY:r.value.height/2}).x),y:we(i.value[n])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(a.$slots,"plot-comment",{plot:{...l,textAlign:P(i.value[n].middlePoint),flexAlign:P(i.value[n].middlePoint)}},void 0,!0)])],8,Nt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,pt))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,Oe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Et,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),N.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ne.default,{key:4,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:L.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:G},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock($e.Legend,{key:`legend_${H.value}`,legendSet:ne.value,config:ke.value,onClickMarker:u[4]||(u[4]=({i:l})=>oe(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${w.value.includes(n)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:n}))+" ",1),w.value.includes(n)?(e.openBlock(),e.createElementBlock("span",Vt," ( "+e.toDisplayString(Be(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",Ft," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,S.value?l.proportion*100:l.value/m.value*100,e.unref(o.dataLabel)({v:S.value?l.proportion*100:l.value/m.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,Lt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:ne.value},void 0,!0)],512),e.createVNode(Pe._sfc_main,{show:c.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:E.value,content:D.value,isCustom:F.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),N.value?(e.openBlock(),e.createBlock(Ee.default,{key:5,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Se.DataTable,{key:`table_${j.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:u[5]||(u[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,zt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(o.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(o.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(o.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ze))}},Tt=Fe._export_sfc(Ot,[["__scopeId","data-v-3151515d"]]);exports.default=Tt;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-xtIm3ydy.cjs"),C=require("./useNestedProp-XzXFHriE.cjs"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},F=["src","height","width"],A=["xmlns","height","width"],D=["id"],R=["stop-color"],X=["stop-color"],j=["points","fill","stroke","stroke-width"],I=["src","alt","height","width","id"],O=["xmlns","viewBox","height","id"],Y=["id"],G=["stop-color"],L=["stop-color"],q=["points","fill","stroke"],T=["xmlns","height"],U=["onClick","onMouseenter","onKeyup"],H=["onMouseenter"],K={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup($,{expose:k,emit:S}){const s=$,{vue_ui_rating:_}=n.useConfig(),d=e.ref(n.createUid()),p=e.ref(!1),r=e.ref(void 0),g=e.ref([]),t=e.computed(()=>C.useNestedProp({userConfig:s.config,defaultConfig:_})),b=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)?z(s.dataset.rating):s.dataset.rating),N=e.computed(()=>typeof s.dataset.rating=="object"&&!Array.isArray(s.dataset.rating)),i=e.ref(b.value),f=e.ref(t.value.type==="image"),c=e.ref(t.value.readonly);function z(o){let a=0,l=0;for(const u in o){const E=parseInt(u),h=o[u];a+=E*h,l+=h}if(l===0)return 0;const v=a/l;return Math.min(t.value.to,Math.max(t.value.from,v))}e.onMounted(()=>{n.objectIsEmpty(s.dataset)&&n.error({componentName:"VueUiRating",type:"dataset"});for(let o=t.value.from;o<=t.value.to;o+=1)g.value.push(o)});function y(o,a=!1){return o>r.value||c.value?a?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:a?1:t.value.style.star.useGradient?`url(#star_gradient_under_${d.value})`:t.value.style.star.activeColor}function m(o,a=!1){const l=i.value-o,v=a?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*v;default:return l*v}}function x(o){c.value||(i.value=o,S("rate",o))}function w(){return i.value}function B(o=!0){c.value=o}return k({getData:w,toggleReadonly:B}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:a[2]||(a[2]=l=>p.value=!0),onMouseleave:a[3]||(a[3]=l=>{p.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",M,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,v)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[f.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:y(l,!0)}`)},null,12,F)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(n.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,R),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,X)],8,D)]),e.createElementVNode("polygon",{points:e.unref(n.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:y(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?y(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,j)],8,A)),f.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${d.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${m(v,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),viewBox:`0 0 ${m(v)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${d.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(n.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,G),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,L)],8,Y)]),e.createElementVNode("polygon",{points:e.unref(n.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${d.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,q)],8,O)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(n.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:u=>x(l),onMouseenter:u=>r.value=l,onMouseleave:a[0]||(a[0]=u=>r.value=void 0),tabindex:"0",onKeyup:e.withKeys(u=>x(l),["enter"])},null,40,U)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:u=>r.value=l,onMouseleave:a[1]||(a[1]=u=>r.value=void 0)},null,40,H)):e.createCommentVNode("",!0)],12,T)),t.value.style.tooltip.show&&N.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:4,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l),5),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(s.dataset.rating[l]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(i.value)?"":i.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},P=V._export_sfc(K,[["__scopeId","data-v-86ced882"]]);exports.default=P;
@@ -1,271 +0,0 @@
1
- import { ref as f, computed as $, onMounted as O, openBlock as l, createElementBlock as i, normalizeStyle as a, createElementVNode as n, toDisplayString as p, createCommentVNode as d, Fragment as U, renderList as E, unref as m, withKeys as L, createTextVNode as D } from "vue";
2
- import { u as K, c as T, o as H, e as P, X as _, w as N, U as F } from "./index-CHn5mpNE.js";
3
- import { u as W } from "./useNestedProp-BF5raFbY.js";
4
- import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const J = {
6
- key: 0,
7
- class: "vue-ui-rating-title",
8
- style: { width: "100%" }
9
- }, Q = ["src", "height", "width"], Z = ["xmlns", "height", "width"], tt = ["id"], et = ["stop-color"], lt = ["stop-color"], it = ["points", "fill", "stroke", "stroke-width"], at = ["src", "alt", "height", "width", "id"], ot = ["xmlns", "viewBox", "height", "id"], st = ["id"], nt = ["stop-color"], rt = ["stop-color"], ut = ["points", "fill", "stroke"], vt = ["xmlns", "height"], dt = ["onClick", "onMouseenter", "onKeyup"], yt = ["onMouseenter"], pt = {
10
- __name: "vue-ui-rating",
11
- props: {
12
- config: {
13
- type: Object,
14
- default() {
15
- return {};
16
- }
17
- },
18
- dataset: {
19
- type: Object,
20
- default() {
21
- return {};
22
- }
23
- }
24
- },
25
- emits: ["rate"],
26
- setup(M, { expose: A, emit: V }) {
27
- const v = M, { vue_ui_rating: R } = K(), x = f(T()), b = f(!1), u = f(void 0), w = f([]), t = $(() => W({
28
- userConfig: v.config,
29
- defaultConfig: R
30
- })), X = $(() => typeof v.dataset.rating == "object" && !Array.isArray(v.dataset.rating) ? B(v.dataset.rating) : v.dataset.rating), j = $(() => typeof v.dataset.rating == "object" && !Array.isArray(v.dataset.rating)), r = f(X.value), k = f(t.value.type === "image"), c = f(t.value.readonly);
31
- function B(o) {
32
- let s = 0, e = 0;
33
- for (const y in o) {
34
- const G = parseInt(y), C = o[y];
35
- s += G * C, e += C;
36
- }
37
- if (e === 0)
38
- return 0;
39
- const g = s / e;
40
- return Math.min(t.value.to, Math.max(t.value.from, g));
41
- }
42
- O(() => {
43
- H(v.dataset) && P({
44
- componentName: "VueUiRating",
45
- type: "dataset"
46
- });
47
- for (let o = t.value.from; o <= t.value.to; o += 1)
48
- w.value.push(o);
49
- });
50
- function h(o, s = !1) {
51
- return o > u.value || c.value ? s ? t.value.style.image.inactiveOpacity : t.value.style.star.inactiveColor : s ? 1 : t.value.style.star.useGradient ? `url(#star_gradient_under_${x.value})` : t.value.style.star.activeColor;
52
- }
53
- function z(o, s = !1) {
54
- const e = r.value - o, g = s ? 1 : 100;
55
- switch (!0) {
56
- case e <= 0:
57
- return 1e-3;
58
- case e > 1:
59
- return 1 * g;
60
- default:
61
- return e * g;
62
- }
63
- }
64
- function S(o) {
65
- c.value || (r.value = o, V("rate", o));
66
- }
67
- function I() {
68
- return r.value;
69
- }
70
- function Y(o = !0) {
71
- c.value = o;
72
- }
73
- return A({
74
- getData: I,
75
- toggleReadonly: Y
76
- }), (o, s) => (l(), i("div", {
77
- style: a(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),
78
- class: "vue-ui-rating",
79
- onMouseover: s[2] || (s[2] = (e) => b.value = !0),
80
- onMouseleave: s[3] || (s[3] = (e) => {
81
- b.value = !1, u.value = void 0;
82
- })
83
- }, [
84
- t.value.style.title.text ? (l(), i("div", J, [
85
- n("div", {
86
- style: a(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold ? "bold" : "normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)
87
- }, p(t.value.style.title.text), 5),
88
- t.value.style.title.subtitle.text ? (l(), i("div", {
89
- key: 0,
90
- style: a(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold ? "bold" : "normal"}`)
91
- }, p(t.value.style.title.subtitle.text), 5)) : d("", !0)
92
- ])) : d("", !0),
93
- t.value.style.rating.show && t.value.style.rating.position === "top" ? (l(), i("div", {
94
- key: 1,
95
- style: a(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};margin-left:${t.value.style.rating.offsetX}px`)
96
- }, p(isNaN(r.value) ? "" : r.value.toFixed(t.value.style.rating.roundingValue)), 5)) : d("", !0),
97
- n("div", {
98
- class: "vue-ui-rating-wrapper",
99
- style: a(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)
100
- }, [
101
- t.value.style.rating.show && t.value.style.rating.position === "left" ? (l(), i("div", {
102
- key: 0,
103
- style: a(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};padding-right:${t.value.style.rating.offsetX}px`)
104
- }, p(isNaN(r.value) ? "" : r.value.toFixed(t.value.style.rating.roundingValue)), 5)) : d("", !0),
105
- (l(!0), i(U, null, E(w.value, (e, g) => (l(), i("div", {
106
- class: "vue-ui-rating-unit-container",
107
- style: a(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)
108
- }, [
109
- k.value ? (l(), i("img", {
110
- key: 0,
111
- src: t.value.style.image.src,
112
- height: t.value.style.itemSize,
113
- width: t.value.style.itemSize,
114
- class: "vue-ui-rating-unit",
115
- style: a(`position:absolute;top:0;left:0;opacity:${isNaN(u.value) ? t.value.style.image.inactiveOpacity : h(e, !0)}`)
116
- }, null, 12, Q)) : (l(), i("svg", {
117
- key: 1,
118
- xmlns: m(_),
119
- viewBox: "0 0 100 100",
120
- height: t.value.style.itemSize,
121
- width: t.value.style.itemSize,
122
- class: "vue-ui-rating-unit"
123
- }, [
124
- n("defs", null, [
125
- n("radialGradient", {
126
- cx: "50%",
127
- cy: "50%",
128
- r: "50%",
129
- fx: "50%",
130
- fy: "50%",
131
- id: `star_gradient_under_${x.value}`
132
- }, [
133
- n("stop", {
134
- offset: "0%",
135
- "stop-color": `${m(N)(t.value.style.star.activeColor, 0.05)}`
136
- }, null, 8, et),
137
- n("stop", {
138
- offset: "100%",
139
- "stop-color": t.value.style.star.activeColor
140
- }, null, 8, lt)
141
- ], 8, tt)
142
- ]),
143
- n("polygon", {
144
- points: m(F)({
145
- plot: { x: 50, y: 50 },
146
- radius: 30,
147
- apexes: t.value.style.star.apexes
148
- }),
149
- fill: isNaN(u.value) ? t.value.style.star.inactiveColor : h(e),
150
- stroke: t.value.style.star.borderColor ? t.value.style.star.borderColor : u.value ? h(e) : t.value.style.star.inactiveColor,
151
- "stroke-width": t.value.style.star.borderWidth,
152
- "stroke-linecap": "round",
153
- "stroke-linejoin": "round"
154
- }, null, 8, it)
155
- ], 8, Z)),
156
- k.value ? (l(), i("img", {
157
- key: 2,
158
- src: t.value.style.image.src,
159
- alt: `${t.value.style.image.alt} ${e}`,
160
- height: t.value.style.itemSize,
161
- width: t.value.style.itemSize,
162
- id: `active_${x.value}_${e}`,
163
- class: "vue-ui-rating-unit",
164
- style: a(`position:absolute;top:0;left:0;clip:rect(0px,${z(g, !0) * t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)
165
- }, null, 12, at)) : (l(), i("svg", {
166
- key: 3,
167
- xmlns: m(_),
168
- viewBox: `0 0 ${z(g)} 100`,
169
- height: t.value.style.itemSize,
170
- class: "vue-ui-rating-unit",
171
- id: `active_${x.value}_${e}`,
172
- style: { position: "absolute", top: "0", left: "0" }
173
- }, [
174
- n("defs", null, [
175
- n("radialGradient", {
176
- cx: "50%",
177
- cy: "50%",
178
- r: "50%",
179
- fx: "50%",
180
- fy: "50%",
181
- id: `star_gradient_over_${x.value}`
182
- }, [
183
- n("stop", {
184
- offset: "0%",
185
- "stop-color": `${m(N)(t.value.style.star.activeColor, 0.05)}`
186
- }, null, 8, nt),
187
- n("stop", {
188
- offset: "100%",
189
- "stop-color": t.value.style.star.activeColor
190
- }, null, 8, rt)
191
- ], 8, st)
192
- ]),
193
- n("polygon", {
194
- points: m(F)({
195
- plot: { x: 50, y: 50 },
196
- radius: 30,
197
- apexes: t.value.style.star.apexes
198
- }),
199
- fill: t.value.style.star.useGradient ? `url(#star_gradient_over_${x.value})` : t.value.style.star.activeColor,
200
- stroke: t.value.style.star.activeColor
201
- }, null, 8, ut)
202
- ], 8, ot)),
203
- (l(), i("svg", {
204
- xmlns: m(_),
205
- viewBox: "0 0 100 100",
206
- height: t.value.style.itemSize,
207
- class: "vue-ui-rating-unit",
208
- style: a(`position:absolute;top:0;left:0;${c.value ? "" : "cursor:pointer"}`)
209
- }, [
210
- c.value ? d("", !0) : (l(), i("rect", {
211
- key: 0,
212
- class: "vue-ui-rating-mouse-trap",
213
- x: 0,
214
- y: 0,
215
- width: 100,
216
- height: 100,
217
- fill: "transparent",
218
- onClick: (y) => S(e),
219
- onMouseenter: (y) => u.value = e,
220
- onMouseleave: s[0] || (s[0] = (y) => u.value = void 0),
221
- tabindex: "0",
222
- onKeyup: L((y) => S(e), ["enter"])
223
- }, null, 40, dt)),
224
- c.value ? (l(), i("rect", {
225
- key: 1,
226
- class: "vue-ui-rating-mouse-trap",
227
- x: 0,
228
- y: 0,
229
- width: 100,
230
- height: 100,
231
- fill: "transparent",
232
- onMouseenter: (y) => u.value = e,
233
- onMouseleave: s[1] || (s[1] = (y) => u.value = void 0)
234
- }, null, 40, yt)) : d("", !0)
235
- ], 12, vt)),
236
- t.value.style.tooltip.show && j.value && c.value ? (l(), i("div", {
237
- key: 4,
238
- class: "vue-ui-rating-tooltip",
239
- style: a(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48 + t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${u.value === e ? "block" : "none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)
240
- }, [
241
- n("div", {
242
- style: a(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)
243
- }, [
244
- n("span", {
245
- style: a(`font-size:${t.value.style.tooltip.fontSize}px`)
246
- }, p(e), 5),
247
- D(" : "),
248
- n("span", {
249
- style: a(`font-weight:${t.value.style.tooltip.bold ? "bold" : "normal"};font-size:${t.value.style.tooltip.fontSize}px`)
250
- }, p(v.dataset.rating[e]), 5),
251
- n("div", {
252
- style: a(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)
253
- }, " ▼ ", 4)
254
- ], 4)
255
- ], 4)) : d("", !0)
256
- ], 4))), 256)),
257
- t.value.style.rating.show && t.value.style.rating.position === "right" ? (l(), i("div", {
258
- key: 1,
259
- style: a(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};padding-left:${t.value.style.rating.offsetX}px`)
260
- }, p(isNaN(r.value) ? "" : r.value.toFixed(t.value.style.rating.roundingValue)), 5)) : d("", !0)
261
- ], 4),
262
- t.value.style.rating.show && t.value.style.rating.position === "bottom" ? (l(), i("div", {
263
- key: 2,
264
- style: a(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold ? "bold" : "normal"};margin-left:${t.value.style.rating.offsetX}px`)
265
- }, p(isNaN(r.value) ? "" : r.value.toFixed(t.value.style.rating.roundingValue)), 5)) : d("", !0)
266
- ], 36));
267
- }
268
- }, xt = /* @__PURE__ */ q(pt, [["__scopeId", "data-v-86ced882"]]);
269
- export {
270
- xt as default
271
- };
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-xtIm3ydy.cjs"),$=require("./useNestedProp-XzXFHriE.cjs"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=y=>(e.pushScopeId("data-v-3e41118a"),y=y(),e.popScopeId(),y),w={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},M=["xmlns","stroke"],B={id:"vueUiSmiley0"},C=["stop-color"],R=["stop-color"],H=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),X=["fill"],j=["stroke"],U=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-3e41118a></path>',5),G=[U],L=["xmlns","viewBox","stroke"],A={id:"vueUiSmiley0"},D=["stop-color"],Y=["stop-color"],F=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),K=["fill"],I=["viewBox","stroke"],T=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-3e41118a></path>',5),O=[T],q=["xmlns","stroke"],P={id:"vueUiSmiley1"},J=["stop-color"],Q=["stop-color"],W=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Z=["fill"],ee=["xmlns","stroke"],te=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9 15l6 0" data-v-3e41118a></path>',5),oe=[te],le=["xmlns","viewBox","stroke"],ae={id:"vueUiSmiley1"},ne=["stop-color"],se=["stop-color"],ie=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),re=["fill"],de=["viewBox","stroke"],ue=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9 15l6 0" data-v-3e41118a></path>',5),ce=[ue],pe=["xmlns","stroke"],ve={id:"vueUiSmiley2"},ye=["stop-color"],me=["stop-color"],fe=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),he=["fill"],ke=["xmlns","stroke"],ge=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),xe=i(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),_e=i(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Ne=i(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),ze=[ge,xe,_e,Ne],Ve=["xmlns","viewBox","stroke"],be=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ee={id:"vueUiSmiley2"},$e=["stop-color"],Se=["stop-color"],we=["fill"],Me=["xmlns","viewBox","stroke"],Be=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Ce=i(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Re=i(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),He=i(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),Xe=[Be,Ce,Re,He],je=["xmlns","stroke"],Ue={id:"vueUiSmiley3"},Ge=["stop-color"],Le=["stop-color"],Ae=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),De=["fill"],Ye=["xmlns","stroke"],Fe=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-3e41118a></path>',5),Ke=[Fe],Ie=["xmlns","viewBox","stroke"],Te=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Oe={id:"vueUiSmiley3"},qe=["stop-color"],Pe=["stop-color"],Je=["fill"],Qe=["xmlns","viewBox","stroke"],We=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 10l.01 0" data-v-3e41118a></path><path d="M15 10l.01 0" data-v-3e41118a></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-3e41118a></path>',5),Ze=[We],et=["xmlns","stroke"],tt={id:"vueUiSmiley4"},ot=["stop-color"],lt=["stop-color"],at=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),nt=["fill"],st=["xmlns","stroke"],it=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 9l.01 0" data-v-3e41118a></path><path d="M15 9l.01 0" data-v-3e41118a></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-3e41118a></path>',5),rt=[it],dt=["xmlns","viewBox","stroke"],ut=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),ct={id:"vueUiSmiley4"},pt=["stop-color"],vt=["stop-color"],yt=["fill"],mt=["xmlns","viewBox","stroke"],ft=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-3e41118a></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-3e41118a></path><path d="M9 9l.01 0" data-v-3e41118a></path><path d="M15 9l.01 0" data-v-3e41118a></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-3e41118a></path>',5),ht=[ft],kt={__name:"vue-ui-smiley",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(y,{expose:g,emit:x}){const c=y,{vue_ui_smiley:_}=l.useConfig();e.onMounted(()=>{l.objectIsEmpty(c.dataset)&&l.error({componentName:"VueUiSmiley",type:"dataset"})});const f=e.ref(!1),s=e.ref(void 0),t=e.computed(()=>$.useNestedProp({userConfig:c.config,defaultConfig:_})),N=e.computed(()=>typeof c.dataset.rating=="object"&&!Array.isArray(c.dataset.rating)?z(c.dataset.rating):c.dataset.rating||null),m=e.computed(()=>typeof c.dataset.rating=="object"&&!Array.isArray(c.dataset.rating)),r=e.ref(N.value),d=e.ref(t.value.readonly);function z(n){if(n===null)return null;let o=0,a=0;for(const h in n){const E=parseInt(h),k=n[h];o+=E*k,a+=k}return a===0?0:o/a}function p(n){const o=r.value-n,a=24;switch(!0){case o<0:return 0;case o>1:return 1*a;default:return o*a}}function v(n){d.value||(r.value=n,x("rate",n))}function V(){return r.value}function b(n=!0){d.value=n}g({getData:V,toggleReadonly:b});function u(n){return t.value.readonly?t.value.style.colors.inactive[n]:r.value===n+1?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:s.value!==void 0&&s.value===n?t.value.style.icons.useGradient&&t.value.style.icons.filled?`url(#vueUiSmiley${n})`:t.value.style.colors.active[n]:t.value.style.colors.inactive[n]}return(n,o)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%;`),onMouseover:o[20]||(o[20]=a=>f.value=!0),onMouseleave:o[21]||(o[21]=a=>{f.value=!1,s.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(r.value)?"":r.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-smiley-wrapper",style:e.normalizeStyle(`overflow:visible;height:${t.value.style.itemSize}px;width:fit-content;margin:0 auto;display:flex;align-items:center;justify-content:center;`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(r.value)?"":r.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&r.value===1}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;
2
- position:relative`),onMouseenter:o[0]||(o[0]=a=>s.value=0),onMouseleave:o[1]||(o[1]=a=>s.value=void 0),onClick:o[2]||(o[2]=a=>v(1)),onKeyup:o[3]||(o[3]=e.withKeys(a=>v(1),["enter"]))},[t.value.style.tooltip.show&&m.value&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${s.value===0?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"1",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(c.dataset.rating[1]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",B,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.active[0],.05)},null,8,C),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.active[0]},null,8,R)])]),H,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u(0)},null,8,X)],8,M)):(e.openBlock(),e.createElementBlock("svg",{key:2,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(0),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},G,8,j)),t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),style:{transition:"all 0.1s ease-in-out",position:"absolute",top:"0",left:"0"},height:"100%",viewBox:`0 0 ${p(0)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",A,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[0],.05)},null,8,D),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[0]},null,8,Y)])]),F,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-5 9.86a4.5 4.5 0 0 0 -3.214 1.35a1 1 0 1 0 1.428 1.4a2.5 2.5 0 0 1 3.572 0a1 1 0 0 0 1.428 -1.4a4.5 4.5 0 0 0 -3.214 -1.35zm-2.99 -4.2l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley0)":t.value.style.colors.activeReadonly[0]},null,8,K)],8,L)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(0)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[0],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},O,8,I)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&r.value===2}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:o[4]||(o[4]=a=>s.value=1),onMouseleave:o[5]||(o[5]=a=>s.value=void 0),onClick:o[6]||(o[6]=a=>v(2)),onKeyup:o[7]||(o[7]=e.withKeys(a=>v(2),["enter"]))},[t.value.style.tooltip.show&&m.value&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${s.value===1?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"2",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(c.dataset.rating[2]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",P,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.active[1],.05)},null,8,J),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.active[1]},null,8,Q)])]),W,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u(1)},null,8,Z)],8,q)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(1),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},oe,8,ee)),t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(1)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",ae,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[1],.05)},null,8,ne),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[1]},null,8,se)])]),ie,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 10.66h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-5.99 -5l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley1)":t.value.style.colors.activeReadonly[1]},null,8,re)],8,le)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(1)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[1],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ce,8,de)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&r.value===3}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:o[8]||(o[8]=a=>s.value=2),onMouseleave:o[9]||(o[9]=a=>s.value=void 0),onClick:o[10]||(o[10]=a=>v(3)),onKeyup:o[11]||(o[11]=e.withKeys(a=>v(3),["enter"]))},[t.value.style.tooltip.show&&m.value&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${s.value===2?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"3",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(c.dataset.rating[3]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",ve,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[2],.05)},null,8,ye),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[2]},null,8,me)])]),fe,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:u(2)},null,8,he)],8,pe)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(2),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ze,8,ke)),t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(2)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[be,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Ee,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[2],.05)},null,8,$e),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[2]},null,8,Se)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-7.99 5.66l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm6 0l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley2)":t.value.style.colors.activeReadonly[2]},null,8,we)],8,Ve)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(2)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[2],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Xe,8,Me)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&r.value===4}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:o[12]||(o[12]=a=>s.value=3),onMouseleave:o[13]||(o[13]=a=>s.value=void 0),onClick:o[14]||(o[14]=a=>v(4)),onKeyup:o[15]||(o[15]=e.withKeys(a=>v(4),["enter"]))},[t.value.style.tooltip.show&&m.value&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${s.value===3?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"4",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(c.dataset.rating[4]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Ue,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[3],.95)},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[3]},null,8,Le)])]),Ae,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u(3)},null,8,De)],8,je)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(3),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Ke,8,Ye)),t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(3)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[Te,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",Oe,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[3],.95)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[3]},null,8,Pe)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.8 10.946a1 1 0 0 0 -1.414 .014a2.5 2.5 0 0 1 -3.572 0a1 1 0 0 0 -1.428 1.4a4.5 4.5 0 0 0 6.428 0a1 1 0 0 0 -.014 -1.414zm-6.19 -5.286l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley3)":t.value.style.colors.activeReadonly[3]},null,8,Je)],8,Ie)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(3)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[3],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},Ze,8,Qe)):e.createCommentVNode("",!0)],38),e.createElementVNode("div",{tabindex:"0",class:e.normalizeClass({"vue-ui-smiley-rated":!t.value.readonly&&r.value===5}),style:e.normalizeStyle(`cursor:${t.value.readonly?"default":"pointer"};height:${t.value.style.itemSize}px;aspect-ratio:1/1;position:relative`),onMouseenter:o[16]||(o[16]=a=>s.value=4),onMouseleave:o[17]||(o[17]=a=>s.value=void 0),onClick:o[18]||(o[18]=a=>v(5)),onKeyup:o[19]||(o[19]=e.withKeys(a=>v(5),["enter"]))},[t.value.style.tooltip.show&&m.value&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${s.value===4?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},"5",4),e.createTextVNode(" : "),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(c.dataset.rating[5]),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0),t.value.style.icons.filled?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",tt,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[4],.9)},null,8,ot),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[4]},null,8,lt)])]),at,e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:u(4)},null,8,nt)],8,et)):(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:u(4),fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},rt,8,st)),t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(4)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[ut,e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",ct,[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(l.shiftHue)(t.value.style.colors.activeReadonly[4],.9)},null,8,pt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.colors.activeReadonly[4]},null,8,vt)])]),e.createElementVNode("path",{d:"M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-2 9.66h-6a1 1 0 0 0 -1 1v.05a3.975 3.975 0 0 0 3.777 3.97l.227 .005a4.026 4.026 0 0 0 3.99 -3.79l.006 -.206a1 1 0 0 0 -1 -1.029zm-5.99 -5l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993zm6 0l-.127 .007a1 1 0 0 0 .117 1.993l.127 -.007a1 1 0 0 0 -.117 -1.993z","stroke-width":"0",fill:t.value.style.icons.useGradient?"url(#vueUiSmiley4)":t.value.style.colors.activeReadonly[4]},null,8,yt)],8,dt)):e.createCommentVNode("",!0),!t.value.style.icons.filled&&d.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(l.XMLNS),style:{position:"absolute",top:"0",left:"0",transition:"all 0.1s ease-in-out"},height:"100%",viewBox:`0 0 ${p(4)} 24`,"stroke-width":"1.5",stroke:t.value.style.colors.activeReadonly[4],fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},ht,8,mt)):e.createCommentVNode("",!0)],38),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(r.value)?"":r.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(isNaN(r.value)?"":r.value.toFixed(t.value.style.rating.roundingValue)),5)):e.createCommentVNode("",!0)],36))}},gt=S._export_sfc(kt,[["__scopeId","data-v-3e41118a"]]);exports.default=gt;