mixdashboards 1.1.19 → 1.1.21

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 (359) hide show
  1. package/dist/{AgActionsRenderer-PlZa78ff.js → AgActionsRenderer-3HKXKUJY.js} +1 -1
  2. package/dist/{AgActionsRenderer-Dlr21zZJ.cjs → AgActionsRenderer-DnPvuT_-.cjs} +1 -1
  3. package/dist/{AgGridTable-oXfzJc2L.js → AgGridTable-BQ8M3fDj.js} +1 -1
  4. package/dist/{AgGridTable-CE6GaYj4.cjs → AgGridTable-BQvI6jpO.cjs} +1 -1
  5. package/dist/{BaseComponent-DdC8fmD6.cjs → BaseComponent-DKuQG62G.cjs} +1 -1
  6. package/dist/{BaseComponent-Bv3RJ3vA.js → BaseComponent-Dn65PXTp.js} +3 -3
  7. package/dist/{EChartComponentBase-DzP0_KR9.cjs → EChartComponentBase-8GSbyY5P.cjs} +1 -1
  8. package/dist/{EChartComponentBase-B5seB4Mc.js → EChartComponentBase-skupRYzl.js} +2 -2
  9. package/dist/{EmergencyPlanPanel-tVOIWw2Q.js → EmergencyPlanPanel-C4OsnsPP.js} +1 -1
  10. package/dist/{EmergencyPlanPanel-9KW6SFeg.cjs → EmergencyPlanPanel-DLvOrE5U.cjs} +1 -1
  11. package/dist/{HistoryPlanDialog-CDFm2aaq.cjs → HistoryPlanDialog--99rPq54.cjs} +1 -1
  12. package/dist/{HistoryPlanDialog-BJ8jXVxW.js → HistoryPlanDialog-DI0H_vgZ.js} +1 -1
  13. package/dist/{MixiotAppDetailPage-CGxGF4b4.cjs → MixiotAppDetailPage-4mYR4gHm.cjs} +1 -1
  14. package/dist/{MixiotAppDetailPage-BY0b1cSQ.js → MixiotAppDetailPage-C_NrtqJU.js} +1 -1
  15. package/dist/{MonitoringMap-BhE-240t.cjs → MonitoringMap-CstXoU8n.cjs} +1 -1
  16. package/dist/{MonitoringMap-Caf2Shxs.js → MonitoringMap-Gxy8ldt1.js} +2 -2
  17. package/dist/{UniverSheet-DK1fnNou.js → UniverSheet-DGNOHAEJ.js} +2 -2
  18. package/dist/{UniverSheet-CoBlKEHm.cjs → UniverSheet-phDDfwXk.cjs} +1 -1
  19. package/dist/{accelerationChart-CpzAy4XN.cjs → accelerationChart-B_y_8Y4q.cjs} +1 -1
  20. package/dist/{accelerationChart-CP1QTBXX.js → accelerationChart-C4JTCc65.js} +19 -19
  21. package/dist/{actionItem-CcDYnjv-.cjs → actionItem-Bdw3MAAf.cjs} +1 -1
  22. package/dist/{actionItem-C2CUz21T.js → actionItem-CGOgCPJR.js} +2 -2
  23. package/dist/{alarmLevelChart-D1el5vNk.js → alarmLevelChart-BQF-4a0s.js} +2 -2
  24. package/dist/{alarmLevelChart-bS2UEWev.cjs → alarmLevelChart-CY4GqDio.cjs} +1 -1
  25. package/dist/{alertTable-BdKLNkVJ.cjs → alertTable-D3riLPwz.cjs} +1 -1
  26. package/dist/{alertTable-21qWBMNt.js → alertTable-DgiRdm5f.js} +2 -2
  27. package/dist/{aliasObjectSelectorDemo-CpNohSP3.js → aliasObjectSelectorDemo-C7gQUdGu.js} +5 -5
  28. package/dist/{aliasObjectSelectorDemo-C7NLq1SO.cjs → aliasObjectSelectorDemo-DXFCCnvj.cjs} +1 -1
  29. package/dist/{annualRainfallChart-DDGrKSyV.js → annualRainfallChart-C1yG42iq.js} +2 -2
  30. package/dist/{annualRainfallChart-BvvLnmDL.cjs → annualRainfallChart-D3oUahrK.cjs} +1 -1
  31. package/dist/{aqi-B51UwYP8.cjs → aqi-B3g_go92.cjs} +1 -1
  32. package/dist/{aqi-SrcWK-ox.js → aqi-DLqM9gGc.js} +4 -4
  33. package/dist/{aqiIndass-DY6U7dbZ.js → aqiIndass-DDtB5_wf.js} +17 -17
  34. package/dist/{aqiIndass-BVxD6QC4.cjs → aqiIndass-DRYU-FAs.cjs} +1 -1
  35. package/dist/{areaDeformCurve-CWgMj6Ld.cjs → areaDeformCurve-CnvUJY_x.cjs} +1 -1
  36. package/dist/{areaDeformCurve-D3BuGscE.js → areaDeformCurve-DaLtFoJT.js} +2 -2
  37. package/dist/{arrayCard-9QeKfHnv.cjs → arrayCard-9p0Bkc_e.cjs} +1 -1
  38. package/dist/{arrayCard-qgDnMdcU.js → arrayCard-FYb8TmUw.js} +2 -2
  39. package/dist/{audio-CbbNeFwR.js → audio-BBXpJP54.js} +2 -2
  40. package/dist/{audio-lrTBdjeY.cjs → audio-DGxXcB0a.cjs} +1 -1
  41. package/dist/{bar-CJN8j8gU.js → bar-D26zndUl.js} +8 -8
  42. package/dist/{bar-BfPMVpDX.cjs → bar-btY9Pwkk.cjs} +1 -1
  43. package/dist/{basicShapeToolbox-eUxdwSiA.cjs → basicShapeToolbox-XR_NHK87.cjs} +1 -1
  44. package/dist/{basicShapeToolbox-DqSW0K9M.js → basicShapeToolbox-Y6mXTA8o.js} +7 -7
  45. package/dist/{bmp-pGXNGQ6L.js → bmp-C7tYeLi0.js} +2 -2
  46. package/dist/{bmp-BhCJePGA.cjs → bmp-DlSoc3Rw.cjs} +1 -1
  47. package/dist/{box-BAgrzKXC.js → box-DroQaZjH.js} +16 -16
  48. package/dist/{box-Be6Hpox4.cjs → box-DyIX9weX.cjs} +1 -1
  49. package/dist/{chartConfigPanel-BvMXZB2L.js → chartConfigPanel-D4dbsVKj.js} +1 -1
  50. package/dist/{chartConfigPanel-CGWijgZ-.cjs → chartConfigPanel-DvTKL5EZ.cjs} +1 -1
  51. package/dist/{circleBar-CGlveIpB.js → circleBar-DCnx8wNj.js} +2 -2
  52. package/dist/{circleBar-COsnnOW8.cjs → circleBar-DulXgWd8.cjs} +1 -1
  53. package/dist/{clock-CVO43_uj.js → clock-B1X6vX22.js} +2 -2
  54. package/dist/{clock-DgyRJ55m.cjs → clock-CeM6LdAl.cjs} +1 -1
  55. package/dist/{clt-Bfh4zPhb.cjs → clt-CcpO8rrD.cjs} +1 -1
  56. package/dist/{clt-d8tEBDXa.js → clt-IAzRVgiu.js} +15 -15
  57. package/dist/{cmc-B7O-zg2t.cjs → cmc-B4xRwSti.cjs} +1 -1
  58. package/dist/{cmc-By56qP2c.js → cmc-Swd4NfxE.js} +10 -10
  59. package/dist/{cmp-xri5dKb9.js → cmp--gCtei5x.js} +2 -2
  60. package/dist/{cmp-D73tbgfL.cjs → cmp-B9Aip3T2.cjs} +1 -1
  61. package/dist/{conclusionCard-EsUi-cs0.cjs → conclusionCard-CRif9GmS.cjs} +1 -1
  62. package/dist/{conclusionCard-Dk1KoNii.js → conclusionCard-DQ0HTHsg.js} +2 -2
  63. package/dist/{controlList-DlFba9SA.js → controlList-4TidO_XJ.js} +4 -4
  64. package/dist/{controlList-jIvwSzAZ.cjs → controlList-CwLNEkAi.cjs} +1 -1
  65. package/dist/{controlRecordList-Bmtp681m.cjs → controlRecordList-CuvV65TE.cjs} +1 -1
  66. package/dist/{controlRecordList-BJjkRs8d.js → controlRecordList-dPW6e4FN.js} +3 -3
  67. package/dist/{controlRecordListAPP-C_oMTkva.js → controlRecordListAPP-CObVdW3l.js} +2 -2
  68. package/dist/{controlRecordListAPP-C02TdcvH.cjs → controlRecordListAPP-DCzTOeXr.cjs} +1 -1
  69. package/dist/{crd-BS6MSmcS.cjs → crd-AH_sGivo.cjs} +1 -1
  70. package/dist/{crd-BYLbCcrj.js → crd-CEWC005o.js} +20 -20
  71. package/dist/{ctrBtn-V4qjGGtx.js → ctrBtn-8xev-mny.js} +3 -3
  72. package/dist/{ctrBtn-DhvhVrCW.cjs → ctrBtn-nYp9T0n0.cjs} +1 -1
  73. package/dist/{ctrSet-CHZZJIF7.js → ctrSet-3Q4eJSfK.js} +11 -11
  74. package/dist/{ctrSet-CQHpxMxP.cjs → ctrSet-z_9ztVyG.cjs} +1 -1
  75. package/dist/{ctrSwitch-ChvtxV9I.js → ctrSwitch-BhqYXTMZ.js} +7 -7
  76. package/dist/{ctrSwitch-D5n8S2_r.cjs → ctrSwitch-DacpvyBJ.cjs} +1 -1
  77. package/dist/{dataManagement-C3z0jdVy.js → dataManagement-BiPhJbF1.js} +2 -2
  78. package/dist/{dataManagement-DzESXejv.cjs → dataManagement-DP1Chfo2.cjs} +1 -1
  79. package/dist/{dataReport-D7WV4er3.js → dataReport-CQaL-d_q.js} +2 -2
  80. package/dist/{dataReport-D1myyCz7.cjs → dataReport-C_8TF5Dz.cjs} +1 -1
  81. package/dist/{dataTable-DkCWvmYS.js → dataTable-Bbx5XgV-.js} +1 -1
  82. package/dist/{dataTable-DOQRfWJN.cjs → dataTable-D6-325qb.cjs} +1 -1
  83. package/dist/{datetime-BfA0Yxsf.js → datetime-CmXZdgkW.js} +2 -2
  84. package/dist/{datetime-Dgr1l4mG.cjs → datetime-DBrUO7wD.cjs} +1 -1
  85. package/dist/{deepClusterSlipSurface-BTNdbcD0.cjs → deepClusterSlipSurface-Ch8i2ql5.cjs} +1 -1
  86. package/dist/{deepClusterSlipSurface-BotjleWU.js → deepClusterSlipSurface-D7o7mgg7.js} +27 -27
  87. package/dist/{deepDataMatrix-CqsdmOoD.js → deepDataMatrix-D9GCg496.js} +23 -23
  88. package/dist/{deepDataMatrix-B1glL8v7.cjs → deepDataMatrix-DoM8KUHn.cjs} +1 -1
  89. package/dist/{deepDisplacement3D-DNwOT442.cjs → deepDisplacement3D-C8ZRCP-R.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-DLdpPEbS.js → deepDisplacement3D-Cjx11pre.js} +2 -2
  91. package/dist/{deepDisplacementChart-DjaHZ1pw.js → deepDisplacementChart-BHe83IoB.js} +23 -23
  92. package/dist/{deepDisplacementChart-CfGD5BrP.cjs → deepDisplacementChart-BlcS3DVl.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-jJJQQFY6.js → deepDisplacementChart-HuWab3pz.js} +27 -27
  94. package/dist/{deepDisplacementChart-lDFewdsF.cjs → deepDisplacementChart-r3GIC8hq.cjs} +1 -1
  95. package/dist/{deepDisplacementView-B4Go1Hq0.js → deepDisplacementView-B4RBH8Ie.js} +1 -1
  96. package/dist/{deepDisplacementView-BH0UfjV6.cjs → deepDisplacementView-BHZQ4s3K.cjs} +1 -1
  97. package/dist/{deepNodeTemperatureChart-DUszGqXz.cjs → deepNodeTemperatureChart-BswYkP9V.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-9JmmT_3j.js → deepNodeTemperatureChart-D9maVN-M.js} +28 -28
  99. package/dist/{deepTangentAngleChart-rQ8QfuGN.js → deepTangentAngleChart-DIWKa8r3.js} +18 -18
  100. package/dist/{deepTangentAngleChart-C2CwkfSV.cjs → deepTangentAngleChart-DQxOv4Vz.cjs} +1 -1
  101. package/dist/{deepTemperatureField-C-ilAUbT.cjs → deepTemperatureField-2GBzigs_.cjs} +1 -1
  102. package/dist/{deepTemperatureField-CubuMfdf.js → deepTemperatureField-DlLLcuFb.js} +23 -23
  103. package/dist/{deepTrendChart-CLQFmRr2.cjs → deepTrendChart-CbYdfjcX.cjs} +1 -1
  104. package/dist/{deepTrendChart-Bo7kcMpS.js → deepTrendChart-CdX41nqe.js} +40 -40
  105. package/dist/{deviceOnlineStatus-DBulFfoC.cjs → deviceOnlineStatus-BMfNv4fX.cjs} +1 -1
  106. package/dist/{deviceOnlineStatus-CtIL7VFP.js → deviceOnlineStatus-BdOeLbLy.js} +2 -2
  107. package/dist/{deviceStatus-BDVPjgyN.js → deviceStatus-B8Ijgoyf.js} +15 -15
  108. package/dist/{deviceStatus-CF7z3bfZ.cjs → deviceStatus-CbYBmGvy.cjs} +1 -1
  109. package/dist/{displacementDataTable-B9HARhGm.cjs → displacementDataTable-BI8cE-vY.cjs} +1 -1
  110. package/dist/{displacementDataTable-GkggvGaZ.js → displacementDataTable-Cqi5Ql6a.js} +17 -17
  111. package/dist/{displacementTrajectoryChart-C_6Yq97U.js → displacementTrajectoryChart-D1UPR4dt.js} +30 -30
  112. package/dist/{displacementTrajectoryChart-CEui7uVX.cjs → displacementTrajectoryChart-DJM_B-gL.cjs} +1 -1
  113. package/dist/{displacementTrendChart-BStbvtyS.cjs → displacementTrendChart-C4jvpdRY.cjs} +1 -1
  114. package/dist/{displacementTrendChart-C40yhGCg.js → displacementTrendChart-Dii90QjN.js} +18 -18
  115. package/dist/{dxf-BoF0vKri.js → dxf-DAAwQlgQ.js} +2 -2
  116. package/dist/{dxf-CVjZUhtn.cjs → dxf-DsJIwOOJ.cjs} +1 -1
  117. package/dist/{dzc-B4ZvwN_l.js → dzc-BjOYTnIF.js} +5 -5
  118. package/dist/{dzc-Bc9cF-kF.cjs → dzc-CpML7WAZ.cjs} +1 -1
  119. package/dist/{emergencyPlan-DVoHbsNX.cjs → emergencyPlan-DWpGIszu.cjs} +1 -1
  120. package/dist/{emergencyPlan-Bae0pJIK.js → emergencyPlan-DeL1roPL.js} +3 -3
  121. package/dist/{evn-DwzNdVCs.js → evn-CUajXlYc.js} +2 -2
  122. package/dist/{evn-CwVRqTsX.cjs → evn-D0ROeiQD.cjs} +1 -1
  123. package/dist/{evolutionChart-xgWP4gp9.js → evolutionChart-B-2W9qVE.js} +3 -3
  124. package/dist/{evolutionChart-DcYx4Pka.cjs → evolutionChart-D23ALmPJ.cjs} +1 -1
  125. package/dist/{fileViewer-BD81tOyy.js → fileViewer-D6-jyRWy.js} +9 -9
  126. package/dist/{fileViewer-I2uylpjR.cjs → fileViewer-DHDmo6px.cjs} +1 -1
  127. package/dist/{filterBar-Dri4QUIb.cjs → filterBar-Bx0qkR7L.cjs} +1 -1
  128. package/dist/{filterBar-1JX2PNo7.js → filterBar-Cw-wbtF1.js} +2 -2
  129. package/dist/{fireCombustionCurve-B7fBz7l4.cjs → fireCombustionCurve-Dj2o6qcy.cjs} +1 -1
  130. package/dist/{fireCombustionCurve-Bh4mHmWN.js → fireCombustionCurve-wPPE55j_.js} +3 -3
  131. package/dist/{fireFilterBar-C_6JQb5k.js → fireFilterBar-COgdZt2b.js} +2 -2
  132. package/dist/{fireFilterBar-B916WbkV.cjs → fireFilterBar-t-aUk0FZ.cjs} +1 -1
  133. package/dist/{fireHistoryTable-DYbmSsbK.cjs → fireHistoryTable-BgzroLVi.cjs} +1 -1
  134. package/dist/{fireHistoryTable-DG0VPFRM.js → fireHistoryTable-Em_cwZSy.js} +2 -2
  135. package/dist/{gag-BBSJFndH.cjs → gag-C5gOltT8.cjs} +1 -1
  136. package/dist/{gag-BMrGqaQL.js → gag-Dd-osrR9.js} +2 -2
  137. package/dist/{gasStationList-yiSPtQ7o.cjs → gasStationList-CKe02Teb.cjs} +1 -1
  138. package/dist/{gasStationList-CgeVIXbG.js → gasStationList-CepcJ9BG.js} +3 -3
  139. package/dist/{geo3dViewer-DQfOfbvI.cjs → geo3dViewer-CSq4-kE-.cjs} +1 -1
  140. package/dist/{geo3dViewer-C9_rSsKP.js → geo3dViewer-yHqVv2BH.js} +3 -3
  141. package/dist/{glbModel-Dhw1Gtbr.cjs → glbModel-CBM7-1vZ.cjs} +1 -1
  142. package/dist/{glbModel-NldHnOVl.js → glbModel-DFDIJi5z.js} +2 -2
  143. package/dist/{globalObjectSelector-KnFppL_e.js → globalObjectSelector-BoBf_njv.js} +43 -43
  144. package/dist/{globalObjectSelector-BCPaufx_.cjs → globalObjectSelector-BvK0QxXk.cjs} +1 -1
  145. package/dist/{gnssFilterBar-CV4Toj67.cjs → gnssFilterBar-BabiLlIC.cjs} +1 -1
  146. package/dist/{gnssFilterBar-BwKMyUrQ.js → gnssFilterBar-C4Ozsjee.js} +2 -2
  147. package/dist/{gnssHistoryTable-CPf2oH22.cjs → gnssHistoryTable-CEtxui4z.cjs} +1 -1
  148. package/dist/{gnssHistoryTable-C6Wkw7OW.js → gnssHistoryTable-DWICO-OK.js} +2 -2
  149. package/dist/{gnssMapView-CutaT360.cjs → gnssMapView-C5IzKoTF.cjs} +2 -2
  150. package/dist/{gnssMapView-C-eK2r5B.js → gnssMapView-CgLO6fng.js} +4 -4
  151. package/dist/{gnssSectionProfile--g5C-EWx.js → gnssSectionProfile-BFU5_iQa.js} +2 -2
  152. package/dist/{gnssSectionProfile-EuFzJtuh.cjs → gnssSectionProfile-BcS3AU5H.cjs} +1 -1
  153. package/dist/{gnssTimeSeriesChart-NC4tfx2H.cjs → gnssTimeSeriesChart-2AOe01nY.cjs} +1 -1
  154. package/dist/{gnssTimeSeriesChart-CqmMTpuf.js → gnssTimeSeriesChart-Cyc9JVmX.js} +2 -2
  155. package/dist/{gnssXYTrajectory-_O0KOUM2.cjs → gnssXYTrajectory-B3HDdORI.cjs} +1 -1
  156. package/dist/{gnssXYTrajectory-Zpj3HyXr.js → gnssXYTrajectory-DAjqaaOt.js} +2 -2
  157. package/dist/{grd-BaPKVJ4W.js → grd-BdraSTc0.js} +18 -18
  158. package/dist/{grd-TbRuDGQr.cjs → grd-jisN3fY_.cjs} +1 -1
  159. package/dist/{grdIndass-3DrX62Jn.js → grdIndass-BuEWpm2p.js} +5 -5
  160. package/dist/{grdIndass-CKi2RLyZ.cjs → grdIndass-BxJWHgbc.cjs} +1 -1
  161. package/dist/{grg-Cgxf4HNj.js → grg-BiUyteXn.js} +13 -13
  162. package/dist/{grg-CFBuQnL1.cjs → grg-DHDNZzvS.cjs} +1 -1
  163. package/dist/{gridview-BhxlYHGR.cjs → gridview-C2eGcIgv.cjs} +1 -1
  164. package/dist/{gridview-BTGTAbxK.js → gridview-DsDgxIu-.js} +2 -2
  165. package/dist/{groundwaterFilterBar-BVxaSfzM.js → groundwaterFilterBar-CwNVHLoq.js} +2 -2
  166. package/dist/{groundwaterFilterBar-4SAnrU9X.cjs → groundwaterFilterBar-Dwoyvzll.cjs} +1 -1
  167. package/dist/{groundwaterProfileChart-DRv-gvDc.js → groundwaterProfileChart-pYkKSQRV.js} +3 -3
  168. package/dist/{groundwaterProfileChart-DnJvez9z.cjs → groundwaterProfileChart-xVZS96Bs.cjs} +2 -2
  169. package/dist/{groundwaterTimeCurve-8phEW2ri.cjs → groundwaterTimeCurve-CCP0yOcn.cjs} +1 -1
  170. package/dist/{groundwaterTimeCurve-BzBDRU4_.js → groundwaterTimeCurve-CRic1FkR.js} +3 -3
  171. package/dist/{groupCard-DhMy1k9J.cjs → groupCard-9mvfU5Qi.cjs} +1 -1
  172. package/dist/{groupCard-BPkVSNiL.js → groupCard-DyiQzmSU.js} +2 -2
  173. package/dist/{headerBar-BgTO4jul.cjs → headerBar-BnZZrxdl.cjs} +1 -1
  174. package/dist/{headerBar-DB-bjoAe.js → headerBar-CT2WWLFX.js} +2 -2
  175. package/dist/{history-D5cJ-xVg.js → history-CY_TCu9h.js} +18 -18
  176. package/dist/{history-DBDrYQmw.cjs → history-Dm7563t_.cjs} +1 -1
  177. package/dist/{index-C_ms8XdY.js → index-CPTJIw32.js} +1746 -1711
  178. package/dist/{index-DFbNT6Tf.cjs → index-DoEyCVDU.cjs} +10 -10
  179. package/dist/{insarDeformChart-DFF2bMqu.js → insarDeformChart-Bf6Q1Kll.js} +2 -2
  180. package/dist/{insarDeformChart-D_iGk8_3.cjs → insarDeformChart-D7r5dP7T.cjs} +1 -1
  181. package/dist/{insarImageViewer-BKewD3Uo.cjs → insarImageViewer-Cj6ywbUG.cjs} +1 -1
  182. package/dist/{insarImageViewer-B7UgA76F.js → insarImageViewer-CupmlYkz.js} +2 -2
  183. package/dist/{kds-CukCJwVJ.cjs → kds-BXJfeT1L.cjs} +1 -1
  184. package/dist/{kds-CacS9fZ_.js → kds-vKrvUAFM.js} +58 -58
  185. package/dist/{kpiCard-DV13L2GU.js → kpiCard-DxJnC2K1.js} +2 -2
  186. package/dist/{kpiCard-Cnm06jxN.cjs → kpiCard-SXeIckZe.cjs} +1 -1
  187. package/dist/{landslideMap-OIYysiUs.cjs → landslideMap-Byzuh2uI.cjs} +1 -1
  188. package/dist/{landslideMap-BPWu1Ajk.js → landslideMap-g1sW7hGk.js} +3 -3
  189. package/dist/{landslideWarning-K5mjIcfY.cjs → landslideWarning-DBYw20My.cjs} +1 -1
  190. package/dist/{landslideWarning-BjlYD19b.js → landslideWarning-K2gltHjy.js} +19 -19
  191. package/dist/{layerTabs-DTSAS0n2.js → layerTabs-DhKwbCdm.js} +2 -2
  192. package/dist/{layerTabs-D7fMZ0rB.cjs → layerTabs-pQHCSR8d.cjs} +1 -1
  193. package/dist/{leaflet-src-CzptRGB3.cjs → leaflet-src-BNvMLv27.cjs} +1 -1
  194. package/dist/{leaflet-src-BfJff719.js → leaflet-src-CLsvhZ1a.js} +1 -1
  195. package/dist/{lerc-CF_nGsay.cjs → lerc-7GSCiwa9.cjs} +1 -1
  196. package/dist/{lerc-CFhWDnG0.js → lerc-CqUbnv8h.js} +2 -2
  197. package/dist/{lin-CkatVtoy.js → lin-Bq35ycag.js} +6 -6
  198. package/dist/{lin-D0heXXjR.cjs → lin-D0itRkyl.cjs} +1 -1
  199. package/dist/{linIndass-DCv39q33.cjs → linIndass-DWiz2vOV.cjs} +1 -1
  200. package/dist/{linIndass-By83Npy7.js → linIndass-DYq4eFAR.js} +23 -23
  201. package/dist/{lst-BnazAvWe.cjs → lst-DdajeugL.cjs} +1 -1
  202. package/dist/{lst-DwAjJP5h.js → lst-qvTez4v1.js} +2 -2
  203. package/dist/{manualEntry-D3rJV8Lp.js → manualEntry-D33u42uH.js} +2 -2
  204. package/dist/{manualEntry-DuTfyZYG.cjs → manualEntry-s4RAoEru.cjs} +1 -1
  205. package/dist/{mapBackground-CJ6ix48H.js → mapBackground-DM72oEn2.js} +3 -3
  206. package/dist/{mapBackground-Cmhuw3k0.cjs → mapBackground-YtkaIPHY.cjs} +1 -1
  207. package/dist/{mappingList-5Rz-rwrk.cjs → mappingList-Ch1HZwNc.cjs} +1 -1
  208. package/dist/{mappingList-CGrZiJZB.js → mappingList-Dy_UeCUf.js} +4 -4
  209. package/dist/{markdownViewer-Dno96jfr.cjs → markdownViewer-DUjEXMVH.cjs} +1 -1
  210. package/dist/{markdownViewer-7WA9BEdg.js → markdownViewer-ZlwNlmLZ.js} +6 -6
  211. package/dist/{mix-control-modal-DgoayPIU.cjs → mix-control-modal-B3FrB7Jt.cjs} +1 -1
  212. package/dist/{mix-control-modal-Byfb7C-0.js → mix-control-modal-tXOouBPe.js} +8 -8
  213. package/dist/{mixGrid-Bhl9sZNP.cjs → mixGrid-BU9U3aHI.cjs} +1 -1
  214. package/dist/{mixGrid-kCUUwHZr.js → mixGrid-CogLsRzO.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +4 -4
  218. package/dist/{mjpegCamera-B1eioIqH.cjs → mjpegCamera-g6FXbrP3.cjs} +1 -1
  219. package/dist/{mjpegCamera-Dpfu2Xu6.js → mjpegCamera-xUmmLzM-.js} +2 -2
  220. package/dist/{monitorAlert-Dyxl86qu.cjs → monitorAlert-DZd5lJOJ.cjs} +1 -1
  221. package/dist/{monitorAlert-9zu3QFtA.js → monitorAlert-DhE_HvpR.js} +21 -21
  222. package/dist/{monitorData-CNI-qmu9.js → monitorData-BnEkcdiN.js} +8 -8
  223. package/dist/{monitorData-BcilR5l6.cjs → monitorData-CpWVhINV.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-DRfPueFf.js → monitorSpeedChart-CeW-Kk03.js} +1 -1
  225. package/dist/{monitorSpeedChart-CF67tIu3.cjs → monitorSpeedChart-DwsoytUF.cjs} +1 -1
  226. package/dist/{mxa-Bh2bYtVW.cjs → mxa-0DZWI1xK.cjs} +1 -1
  227. package/dist/{mxa-CuLqVCIj.js → mxa-C58deh1I.js} +4 -4
  228. package/dist/{myValue-B50MoOtL.js → myValue-B4ADQTTG.js} +2 -2
  229. package/dist/{myValue-DMJxfT2O.cjs → myValue-DQLm9XLI.cjs} +1 -1
  230. package/dist/{myValueList-BZzwxNxa.cjs → myValueList-DZA9_HEh.cjs} +1 -1
  231. package/dist/{myValueList-B_3_3_pi.js → myValueList-baXd51uR.js} +2 -2
  232. package/dist/{objectList-TMPUnr7O.js → objectList-5m0NKALq.js} +4 -4
  233. package/dist/{objectList-BGh1VKcK.cjs → objectList-BHmAruDg.cjs} +1 -1
  234. package/dist/{objectListAPP-Bc-piPZb.js → objectListAPP-COZlfKyw.js} +3 -3
  235. package/dist/{objectListAPP-30bQNnu8.cjs → objectListAPP-Cs7Wu_86.cjs} +1 -1
  236. package/dist/{percentBar-BprMUT7A.js → percentBar-BV6nG2iK.js} +15 -15
  237. package/dist/{percentBar-D4xt6lAd.cjs → percentBar-CPfJrspp.cjs} +1 -1
  238. package/dist/{photo-zl-fLPWx.cjs → photo-C4739K_A.cjs} +1 -1
  239. package/dist/{photo-DsEC_PV_.js → photo-DK4Z23e3.js} +15 -15
  240. package/dist/{pie-CUxR3v01.js → pie-Lx2zjyZY.js} +2 -2
  241. package/dist/{pie-DWhlbF_v.cjs → pie-kb79hzax.cjs} +1 -1
  242. package/dist/{placeholder-BZFA8p97.cjs → placeholder-CAWJju9d.cjs} +1 -1
  243. package/dist/{placeholder-DqKmmoWY.js → placeholder-Cv_i5j6V.js} +1 -1
  244. package/dist/{pressBtn-DIUaklZ-.cjs → pressBtn-DPp2yGFb.cjs} +1 -1
  245. package/dist/{pressBtn-B2XC73jR.js → pressBtn-DwN7ExMn.js} +7 -7
  246. package/dist/{processTable-DkOH9QSb.js → processTable-DRzy2-fX.js} +2 -2
  247. package/dist/{processTable-BTx3mQeL.cjs → processTable-kGjdZ2SC.cjs} +1 -1
  248. package/dist/{progressBar-xgdal-aW.cjs → progressBar-89gQ5oSf.cjs} +1 -1
  249. package/dist/{progressBar-BLodNQVU.js → progressBar-D5GyaH8h.js} +2 -2
  250. package/dist/{progressCircle-CFUGOwCj.js → progressCircle-C0qoN2X2.js} +2 -2
  251. package/dist/{progressCircle-cTY4gz07.cjs → progressCircle-D6jGTviS.cjs} +1 -1
  252. package/dist/{qrcode-2Hjwjwae.js → qrcode-B7wIdO7u.js} +2 -2
  253. package/dist/{qrcode-DQhhuhb6.cjs → qrcode-DutO28qr.cjs} +1 -1
  254. package/dist/{raceBar-CyXnZF-3.js → raceBar-JrtM5isa.js} +5 -5
  255. package/dist/{raceBar-DcF016MT.cjs → raceBar-Kb4Ok0_0.cjs} +1 -1
  256. package/dist/{rad-B14cTKz2.cjs → rad-BKh0I2W8.cjs} +1 -1
  257. package/dist/{rad-DTJntmoq.js → rad-NhNcdAlO.js} +2 -2
  258. package/dist/{radarMapViewer-TsQZJeIK.js → radarMapViewer-BrGy_wsI.js} +2 -2
  259. package/dist/{radarMapViewer-BUB-m2dW.cjs → radarMapViewer-a-NY9MyR.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-KdmV5zS5.js → rainfallFilterBar-CiVPGG1P.js} +2 -2
  261. package/dist/{rainfallFilterBar-B8up2RIh.cjs → rainfallFilterBar-DlJryHw0.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-Doj6yOAF.js → rainfallTimeCurve-BwrlePpg.js} +3 -3
  263. package/dist/{rainfallTimeCurve-CiXa2eZ3.cjs → rainfallTimeCurve-cYcKHYUj.cjs} +1 -1
  264. package/dist/{rangeLin-Dpq9Tvnx.cjs → rangeLin-B24wJK2h.cjs} +1 -1
  265. package/dist/{rangeLin-D1CqDmua.js → rangeLin-CPKLO87X.js} +18 -18
  266. package/dist/{realtimeEvolutionMap-DPXP3VM4.cjs → realtimeEvolutionMap-CHQ7-WE1.cjs} +1 -1
  267. package/dist/{realtimeEvolutionMap-Dl7vcNX_.js → realtimeEvolutionMap-ZFozACoZ.js} +2 -2
  268. package/dist/{regionBar-BwpGCKZj.js → regionBar-Cz4GtJuo.js} +2 -2
  269. package/dist/{regionBar-lxLnSNLC.cjs → regionBar-Dgv2JYSM.cjs} +1 -1
  270. package/dist/{request-DTE7aSW-.cjs → request-Dm2cf1Aw.cjs} +1 -1
  271. package/dist/{request-CbeEcJTO.js → request-aXSa-Jdv.js} +24 -24
  272. package/dist/{retainer1-D67S-YCN.js → retainer1-B4KyW6bw.js} +3 -3
  273. package/dist/{retainer1-C9AaH4tJ.cjs → retainer1-B6byWkE5.cjs} +1 -1
  274. package/dist/{retainer2-D8XYk-l4.cjs → retainer2-B06eGTYw.cjs} +1 -1
  275. package/dist/{retainer2-Cbdmf703.js → retainer2-X6vRW_D5.js} +3 -3
  276. package/dist/{retainerRecordList-CQjYV-M3.cjs → retainerRecordList-C8wYAf_v.cjs} +1 -1
  277. package/dist/{retainerRecordList-BpK_6Dnu.js → retainerRecordList-DDZSYpCF.js} +4 -4
  278. package/dist/{retainerRecordListAPP-BFGsCYj8.js → retainerRecordListAPP-B2Lp-jHM.js} +3 -3
  279. package/dist/{retainerRecordListAPP-CN59kp5A.cjs → retainerRecordListAPP-BHu691JS.cjs} +1 -1
  280. package/dist/{ringTopN-BeX_3N1q.cjs → ringTopN-BpJZOE13.cjs} +1 -1
  281. package/dist/{ringTopN-5r3Oe5jp.js → ringTopN-DX7OzPp7.js} +2 -2
  282. package/dist/{riskRegionTable-NiRJaNeQ.js → riskRegionTable-D7blgvMi.js} +2 -2
  283. package/dist/{riskRegionTable-DoSf3hpC.cjs → riskRegionTable-DziKMS_2.cjs} +1 -1
  284. package/dist/{sankey-ByGbWPFb.js → sankey-CmgfktZj.js} +14 -14
  285. package/dist/{sankey-Bnpk9cLQ.cjs → sankey-DjC4IYit.cjs} +1 -1
  286. package/dist/{scd-CnENqnZz.cjs → scd-QV9whYOR.cjs} +1 -1
  287. package/dist/{scd-Cfds38KL.js → scd-zUFKqN8p.js} +2 -2
  288. package/dist/{sideMenu-BPaBkvIX.js → sideMenu-CI23QNpx.js} +2 -2
  289. package/dist/{sideMenu-CXIHqey7.cjs → sideMenu-POQpSa8C.cjs} +1 -1
  290. package/dist/{slopeStability-Dl-cz8Fw.cjs → slopeStability-Da70drIy.cjs} +1 -1
  291. package/dist/{slopeStability-C9Hla3Dk.js → slopeStability-E55huDws.js} +24 -24
  292. package/dist/{speedCurve-kxsxCadk.js → speedCurve-BhhUH79z.js} +2 -2
  293. package/dist/{speedCurve-E6CSZYlW.cjs → speedCurve-DSX1UJeW.cjs} +1 -1
  294. package/dist/{stackedBar-Bh3u04a1.cjs → stackedBar-B0kr6QB7.cjs} +1 -1
  295. package/dist/{stackedBar-agXLBb7l.js → stackedBar-bgd2Ls04.js} +2 -2
  296. package/dist/stationList-BSPTM0iI.cjs +1 -0
  297. package/dist/{stationList-BUGSaLOZ.js → stationList-D7k3Lot6.js} +243 -239
  298. package/dist/{stressFilterBar-DP_KLGts.cjs → stressFilterBar-B3gk67B_.cjs} +1 -1
  299. package/dist/{stressFilterBar-HdY7po9C.js → stressFilterBar-Beupo7Zb.js} +2 -2
  300. package/dist/{stressTimeCurve-B6s5FgJE.cjs → stressTimeCurve-CbhFLXzA.cjs} +1 -1
  301. package/dist/{stressTimeCurve-ItQcQKdH.js → stressTimeCurve-DGBhkdbV.js} +3 -3
  302. package/dist/{swiper-D6TV4ZCd.js → swiper-BEau8Ehu.js} +2 -2
  303. package/dist/{swiper-Buxmd32g.cjs → swiper-UlVDFht8.cjs} +1 -1
  304. package/dist/{tablemanCreate-wybANxe3.cjs → tablemanCreate-CF_D5gYW.cjs} +1 -1
  305. package/dist/{tablemanCreate-CZgA3PsQ.js → tablemanCreate-WnNbHft8.js} +3 -3
  306. package/dist/{tablemanDetail-BRTZJyW5.cjs → tablemanDetail-_SNevfWv.cjs} +1 -1
  307. package/dist/{tablemanDetail-DfWhFk1K.js → tablemanDetail-yz3zQnFP.js} +36 -36
  308. package/dist/{tablemanList-BO_NeJgz.cjs → tablemanList-CDJWp9Pu.cjs} +1 -1
  309. package/dist/{tablemanList-BaOBHZ0V.js → tablemanList-CzcVRDtI.js} +4 -4
  310. package/dist/{tablemanTableList-Dbq82Z-h.js → tablemanTableList-Bm2fU0EX.js} +4 -4
  311. package/dist/{tablemanTableList-sMrfmiA9.cjs → tablemanTableList-DX76_Wzv.cjs} +1 -1
  312. package/dist/{tablemanUpdate-VmkxfpIh.cjs → tablemanUpdate-wdF6NUSW.cjs} +1 -1
  313. package/dist/{tablemanUpdate-KALCUbVd.js → tablemanUpdate-zmDu6tfj.js} +3 -3
  314. package/dist/{terminalConfigList-DjFLDQih.js → terminalConfigList-CCTkfKIn.js} +4 -4
  315. package/dist/{terminalConfigList-BVI2GPl0.cjs → terminalConfigList-Dpktm7uo.cjs} +1 -1
  316. package/dist/{terminalList-DQeF169Z.js → terminalList-DTG1Cd-P.js} +4 -4
  317. package/dist/{terminalList-DuW8drr5.cjs → terminalList-DlnAYr5c.cjs} +1 -1
  318. package/dist/{terminalListAPP-Brlll6Fx.js → terminalListAPP-BXX0YEmN.js} +3 -3
  319. package/dist/{terminalListAPP-D1ZHyTf5.cjs → terminalListAPP-DcG5Iu89.cjs} +1 -1
  320. package/dist/{textbox-DDpkVlaw.cjs → textbox-C5DmbaFz.cjs} +1 -1
  321. package/dist/{textbox-mnxb35mH.js → textbox-DyFcEXBF.js} +2 -2
  322. package/dist/{timeQueryBar-EKkIhz9m.js → timeQueryBar-BbWq3QkA.js} +1 -1
  323. package/dist/{timeQueryBar-BQD19vDp.cjs → timeQueryBar-OqKVqlTl.cjs} +1 -1
  324. package/dist/{timeSeries-CDjeGZKo.cjs → timeSeries-BDp-gfRT.cjs} +1 -1
  325. package/dist/{timeSeries-Bk2N1A6L.js → timeSeries-D_-6XcY8.js} +13 -13
  326. package/dist/{timeSeriesCurve-BRrpaqU8.js → timeSeriesCurve-DgSGvMqB.js} +3 -3
  327. package/dist/{timeSeriesCurve-CA5W-Oir.cjs → timeSeriesCurve-KPYndFEq.cjs} +1 -1
  328. package/dist/{toggleBtn-WYU3IUc8.js → toggleBtn-D0JJAMZR.js} +2 -2
  329. package/dist/{toggleBtn-CGYR01jI.cjs → toggleBtn-DtS2UoB4.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-y4bXsrXJ.cjs → trajectoryConfigPanel-Bth1LMLN.cjs} +1 -1
  331. package/dist/{trajectoryConfigPanel-BdTmJQzP.js → trajectoryConfigPanel-DxBIMfEx.js} +1 -1
  332. package/dist/{trajectoryScatter-Clb_fUfI.js → trajectoryScatter-DqgFAVSz.js} +42 -42
  333. package/dist/{trajectoryScatter-CQik1fcT.cjs → trajectoryScatter-GkbJne40.cjs} +1 -1
  334. package/dist/{universalConfigPanel-B5k_qOEq.js → universalConfigPanel-BjyXE23U.js} +1 -1
  335. package/dist/{universalConfigPanel-Dfbc5SvD.cjs → universalConfigPanel-C4Teu_Op.cjs} +1 -1
  336. package/dist/{universalTable-DoiFrrZH.js → universalTable-BVwrJKq8.js} +2 -2
  337. package/dist/{universalTable-CcQq8qmA.cjs → universalTable-D_rkyBG2.cjs} +1 -1
  338. package/dist/{useMixiotPanelPopperClass-BAb3JPdj.js → useMixiotPanelPopperClass-C6Y6iPSp.js} +3 -3
  339. package/dist/{useMixiotPanelPopperClass-B0l54_PF.cjs → useMixiotPanelPopperClass-DmA-0R1V.cjs} +1 -1
  340. package/dist/{useTablemanApi-D4G6rvXH.cjs → useTablemanApi-Big2Hfsi.cjs} +1 -1
  341. package/dist/{useTablemanApi-BXR_OKzO.js → useTablemanApi-CJh5jpVJ.js} +1 -1
  342. package/dist/{useTablemanFormPanel-JcWza2YJ.js → useTablemanFormPanel-CvrN_jY3.js} +2 -2
  343. package/dist/{useTablemanFormPanel-DTcITWwz.cjs → useTablemanFormPanel-prjUDI9m.cjs} +1 -1
  344. package/dist/{useTablemanListActions-COZ3zBoW.cjs → useTablemanListActions-B9SrCZRt.cjs} +1 -1
  345. package/dist/{useTablemanListActions-BUFJCLAW.js → useTablemanListActions-DVQL1pwu.js} +5 -5
  346. package/dist/{video-DylR59_l.cjs → video-CdMEjVoF.cjs} +1 -1
  347. package/dist/{video-CtiQVOnv.js → video-DDHDy4Eq.js} +2 -2
  348. package/dist/{videoMonitor-tBmgk3mm.cjs → videoMonitor-BZcjaMPX.cjs} +1 -1
  349. package/dist/{videoMonitor-8rqFRzST.js → videoMonitor-JQ4tj-qi.js} +11 -11
  350. package/dist/{vlu-B93iwAL3.cjs → vlu-39EqfkCs.cjs} +1 -1
  351. package/dist/{vlu-Bvbgox5l.js → vlu-Bmqrgnj8.js} +2 -2
  352. package/dist/{warningOverview-Drd9VneD.js → warningOverview-Ctab9k92.js} +3 -3
  353. package/dist/{warningOverview-igfNPVvg.cjs → warningOverview-DOsI-iKt.cjs} +1 -1
  354. package/dist/{weather-BVB786-I.cjs → weather-BfV-w4FG.cjs} +1 -1
  355. package/dist/{weather-Db_sZvLk.js → weather-BwTT4bPM.js} +2 -2
  356. package/dist/{windLin-D09MKfNK.cjs → windLin-Dfz6aBio.cjs} +1 -1
  357. package/dist/{windLin-M0ehkFjJ.js → windLin-DgZctBal.js} +2 -2
  358. package/package.json +1 -1
  359. package/dist/stationList-CnwkdvHq.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-DdC8fmD6.cjs"),_=require("./index-DFbNT6Tf.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
1
+ "use strict";var b=Object.defineProperty,S=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var v=(a,l,r)=>l in a?b(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r,x=(a,l)=>{for(var r in l||(l={}))k.call(l,r)&&v(a,r,l[r]);if(m)for(var r of m(l))N.call(l,r)&&v(a,r,l[r]);return a},y=(a,l)=>S(a,w(l));var h=(a,l,r)=>new Promise((d,n)=>{var g=s=>{try{p(r.next(s))}catch(c){n(c)}},f=s=>{try{p(r.throw(s))}catch(c){n(c)}},p=s=>s.done?d(s.value):Promise.resolve(s.value).then(g,f);p((r=r.apply(a,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/progress/style/css");const e=require("vue"),V=require("./BaseComponent-DKuQG62G.cjs"),_=require("./index-DoEyCVDU.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",E="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e环形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-735.000000,%20-341.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M743.063004,342.931102%20C743.116316,343.282573%20742.87461,343.610715%20742.523139,343.664027%20C739.245615,344.16117%20736.791283,346.991546%20736.791283,350.341222%20C736.791283,353.692268%20739.24752,356.523394%20742.526687,357.018996%20C742.861546,357.069587%20743.201677,357.095181%20743.545242,357.095181%20C743.887612,357.095181%20744.226635,357.069756%20744.560421,357.019508%20C747.477621,356.580105%20749.784771,354.272574%20750.223659,351.355292%20C750.276546,351.003757%20750.604395,350.761654%20750.95593,350.81454%20C751.307466,350.867427%20751.549569,351.195276%20751.496682,351.546811%20C750.973739,355.022805%20748.228057,357.768941%20744.752113,358.292505%20C744.354903,358.352301%20743.951823,358.382531%20743.545242,358.382531%20C743.137244,358.382531%20742.732829,358.3521%20742.334339,358.291894%20C738.427868,357.701483%20735.503933,354.331278%20735.503933,350.341222%20C735.503933,346.352789%20738.425598,342.983478%20742.330079,342.391237%20C742.68155,342.337925%20743.009692,342.579631%20743.063004,342.931102%20Z%20M743.545242,346.738567%20C745.534982,346.738567%20747.14797,348.351556%20747.14797,350.341296%20C747.14797,352.331036%20745.534982,353.944024%20743.545242,353.944024%20C741.555502,353.944024%20739.942514,352.331036%20739.942514,350.341296%20C739.942514,348.351556%20741.555502,346.738567%20743.545242,346.738567%20Z%20M743.545242,348.025917%20C742.266485,348.025917%20741.229863,349.062539%20741.229863,350.341296%20C741.229863,351.620052%20742.266485,352.656675%20743.545242,352.656675%20C744.823999,352.656675%20745.860621,351.620052%20745.860621,350.341296%20C745.860621,349.062539%20744.823999,348.025917%20743.545242,348.025917%20Z%20M744.666769,342.383049%20L744.754011,342.390268%20C748.228261,342.914384%20750.972652,345.659076%20751.496359,349.133416%20C751.549346,349.484937%20751.307336,349.812855%20750.955816,349.865842%20C750.604295,349.918828%20750.276377,349.676819%20750.22339,349.325298%20C749.783861,346.409405%20747.477795,344.103086%20744.561978,343.663214%20C744.210463,343.610185%20743.968493,343.282238%20744.021521,342.930724%20C744.065712,342.637796%20744.300818,342.420939%20744.581381,342.387478%20L744.666769,342.383049%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",B={class:"mix-body flex flex-wrap"},M={DEFAULT_ICON:T,ACTIVE_ICON:E,NAME_CN:"环形进度",NAME_EN:"Progress Circle",ORDER:3,PLATFORM:["pc","screen","mobile"]},A={titleColor:"#111",textColor:"#111",bgColor:"#fff",barColor:"#ebeef5",radiusSize:8,textSize:14,barWidth:16,diameter:70,position:{value:"outer",type:"radio",option:[{value:"outer",label:"component.gauge.outer"},{value:"inner",label:"component.gauge.inner"}],label:"component.gauge.position"},type:{value:"value",type:"radio",option:[{value:"value",label:"component.gauge.value"},{value:"rate",label:"component.gauge.rate"}],label:"component.gauge.type"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},D=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}],F=["name","fv","object_id","color","maxType","max"],L=["mosaic"],P={useAlias:!1,multiObject:!1,source:"mosaic"},j={DEFAULT:M,OPTIONS:A,DATA:D,PARAMS:F,SOURCE:L,COMMON:P},Z=e.defineComponent(y(x({},j),{__name:"progressCircle",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(a){const l=a;class r extends V.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),barColor:this.getOptionValue("barColor","#ebeef5"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),textSize:this.getOptionValue("textSize",14),radiusSize:this.getOptionValue("radiusSize",8),barWidth:this.getOptionValue("barWidth",16),diameter:this.getOptionValue("diameter",70),position:this.getOptionValue("position","outer"),type:this.getOptionValue("type","value"),isHideTitle:this.getOptionValue("isHideTitle",!1)}}init(){return h(this,null,function*(){var t;this.Style.value=this.extractStyles(),this.applyTheme(),(t=this.props.conf.data)!=null&&t.length||(this.props.conf.data=[{name:"参数一",fv:"",max:200,color:"#f56c6c",maxType:"value",object_id:""},{name:"参数二",fv:"",max:200,color:"#5cb87a",maxType:"value",object_id:""}])})}setHistoryData(t){if(!t)return;const{data:i}=this.props.conf;!Array.isArray(i)||!i.length||i.forEach((o,u)=>{var C;o.value=(C=t[u].data[0])!=null?C:0,o.percent=o.value/o.max*100})}setSocketData(t){if(!t)return;const{data:i}=this.props.conf;i.forEach(o=>{o.value=this.extractDataValue(t,o.fv)||0;const u=o.maxType==="value"?o.max:this.extractDataValue(t,o.max)||0;o.percent=u==0?0:Number((o.value/u*100).toFixed(2))})}}const d=new r(l,"progressCircle");d.setupLifecycle();const n=d.getStyle(),g=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.diameter,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>0?t:70}),f=e.computed(()=>{var i;const c=(i=n.value)==null?void 0:i.barWidth,t=Number(c);return typeof t=="number"&&!Number.isNaN(t)&&t>=0?t:16}),p=e.computed(()=>z.generateTitleStyle(l.conf.options)),s=(c,t)=>n.value.type==="value"?t==null?void 0:t.value:c+"%";return(c,t)=>{const i=O.ElProgress;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(p.value)},e.toDisplayString(a.conf.caption||a.conf.name),5),e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.conf.data,(o,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:"circle-item"},[e.createElementVNode("div",null,[e.createVNode(i,{percentage:o.percent,type:"circle",style:e.normalizeStyle({"--progress-bg-color":e.unref(n).barColor}),color:o.color,"stroke-width":f.value,width:g.value},{default:e.withCtx(({percentage:C})=>[e.createElementVNode("div",{style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(s(C,o)),5),e.unref(n).position==="inner"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"mt-1.5",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)]),_:2},1032,["percentage","style","color","stroke-width","width"]),e.unref(n).position==="outer"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"label",style:e.normalizeStyle({fontSize:e.unref(n).textSize+"px",color:e.unref(n).textColor})},e.toDisplayString(o.name),5)):e.createCommentVNode("",!0)])]))),128))]),e.renderSlot(c.$slots,"default",{},void 0,!0)],4)}}})),q=_._export_sfc(Z,[["__scopeId","data-v-0f05a5f9"]]);exports.default=q;
@@ -11,8 +11,8 @@ var K = (n, d, s) => d in n ? ae(n, d, { enumerable: !0, configurable: !0, writa
11
11
  return n;
12
12
  }, U = (n, d) => oe(n, ne(d));
13
13
  import { defineComponent as F, h as E, ref as $, onMounted as ue, watchEffect as se, Fragment as de, computed as A, openBlock as he, createElementBlock as ce, normalizeStyle as H, unref as z, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
14
- import { B as me } from "./BaseComponent-Bv3RJ3vA.js";
15
- import { _ as Ce } from "./index-C_ms8XdY.js";
14
+ import { B as me } from "./BaseComponent-Dn65PXTp.js";
15
+ import { _ as Ce } from "./index-CPTJIw32.js";
16
16
  import { g as we } from "./titleStyle-BT5GlpAb.js";
17
17
  var R = function() {
18
18
  return R = Object.assign || function(d) {
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-DdC8fmD6.cjs"),ae=require("./index-DFbNT6Tf.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;
1
+ "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-DKuQG62G.cjs"),ae=require("./index-DoEyCVDU.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;
@@ -1,15 +1,15 @@
1
- var q = Object.defineProperty, X = Object.defineProperties;
1
+ var X = Object.defineProperty, q = Object.defineProperties;
2
2
  var G = Object.getOwnPropertyDescriptors;
3
3
  var H = Object.getOwnPropertySymbols;
4
4
  var J = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
- var N = (m, r, c) => r in m ? q(m, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : m[r] = c, A = (m, r) => {
5
+ var N = (m, r, c) => r in m ? X(m, r, { enumerable: !0, configurable: !0, writable: !0, value: c }) : m[r] = c, A = (m, r) => {
6
6
  for (var c in r || (r = {}))
7
7
  J.call(r, c) && N(m, c, r[c]);
8
8
  if (H)
9
9
  for (var c of H(r))
10
10
  K.call(r, c) && N(m, c, r[c]);
11
11
  return m;
12
- }, R = (m, r) => X(m, G(r));
12
+ }, R = (m, r) => q(m, G(r));
13
13
  var z = (m, r, c) => new Promise((v, O) => {
14
14
  var y = (f) => {
15
15
  try {
@@ -28,9 +28,9 @@ var z = (m, r, c) => new Promise((v, O) => {
28
28
  });
29
29
  import { defineComponent as Q, computed as U, openBlock as B, createElementBlock as F, normalizeStyle as V, unref as T, createElementVNode as E, toDisplayString as I, createCommentVNode as Y, renderSlot as tt, nextTick as et } from "vue";
30
30
  import { u as it } from "./useComponentI18n-C-FcRq_9.js";
31
- import { q as ot, C as nt, _ as st } from "./index-C_ms8XdY.js";
31
+ import { s as ot, C as nt, _ as st } from "./index-CPTJIw32.js";
32
32
  import "element-plus";
33
- import { E as at } from "./EChartComponentBase-B5seB4Mc.js";
33
+ import { E as at } from "./EChartComponentBase-skupRYzl.js";
34
34
  import { g as lt } from "./titleStyle-BT5GlpAb.js";
35
35
  import { u as rt, i as ct, a as ut } from "./installCanvasRenderer-oDYkyVFy.js";
36
36
  import { i as pt } from "./install-DdM8j5Ll.js";
@@ -1,2 +1,2 @@
1
- "use strict";var $=Object.defineProperty,k=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(m,c,u)=>c in m?$(m,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[c]=u,A=(m,c)=>{for(var u in c||(c={}))W.call(c,u)&&U(m,u,c[u]);if(N)for(var u of N(c))Z.call(c,u)&&U(m,u,c[u]);return m},T=(m,c)=>k(m,q(c));var z=(m,c,u)=>new Promise((v,O)=>{var S=g=>{try{b(u.next(g))}catch(L){O(L)}},E=g=>{try{b(u.throw(g))}catch(L){O(L)}},b=g=>g.done?v(g.value):Promise.resolve(g.value).then(S,E);b((u=u.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),X=require("./useComponentI18n-MgEpVhO3.cjs"),P=require("./index-DFbNT6Tf.cjs");require("element-plus");const G=require("./EChartComponentBase-DzP0_KR9.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nt={key:0,class:"mix-title-unit"},ot={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=a.defineComponent(T(A({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){D.use([K.install,Q.install,D.install,Y.install,D.install$1,tt.install]);const c=m;function u(h,e,t){const i=h==null?void 0:h[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function v(h){return String(h).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class O extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var r,p,d;this.ensureCommonFields();const e=this.props.conf.common,t=(r=this.props.conf.data)==null?void 0:r[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(p=this.props.conf.options)==null?void 0:p.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(d=this.props.conf.options)==null?void 0:d.showPlanCompletionRate,s=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&s===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const s=t.indexOf(String(n));if(s!==-1)return s}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return T(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return z(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,s;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((s=e.data)==null?void 0:s.length)&&i.every((r,p)=>{var d;return r===((d=e.data[p])==null?void 0:d.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((r,p)=>{const d=P.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(r.color||P.COLORS[p]),r.value!==void 0&&r.value!==""?this.CHART.rawValues.push(r.value):o&&t[p]!==void 0&&t[p]!==""?this.CHART.rawValues.push(t[p]):this.CHART.rawValues.push(d[0]),this.CHART.items.push(r.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const s=this.parseNumericRaw(n);return s===null?null:e?i<=0?0:s/i*100:s}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:s}=this.buildSeriesAndMax(),r=t.direction==="x",p=r?"right":"center",d={pct:{color:"#000000",fontSize:t.textSize,align:p,padding:r?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((l,x)=>{d[`raw${x}`]={color:l||"#5470c6",fontSize:t.textSize,align:p,fontWeight:500}});const R=l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x];if(o&&s>0){const y=this.parseNumericRaw(C),w=v(String(C)),j=y!==null&&s>0?`${Math.round(y/s*100)}%`:"";return`{raw${x}|${w}}{pct|${v(j)}}`}return`{raw${x}|${v(String(C))}}`},_=28,V=108,I=l=>{var y,w;const x=(w=(y=e.chartObj)==null?void 0:y.getWidth())!=null?w:0;return!x||!l.labelRect?{}:{x:x-12,y:l.labelRect.y+l.labelRect.height/2,verticalAlign:"middle",align:"right"}},F=r?t.right+V:t.right;let f={grid:{top:r?t.top:t.top+_,bottom:t.bottom,left:t.left,right:F,containLabel:!0},tooltip:{show:!0,formatter:l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x],y=this.parseNumericRaw(C);let w=`${l.name}:`;return o&&s>0&&y!==null?w+=`${C}(${Math.round(y/s*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:l=>l.length>4?l.substr(0,4):l}},yAxis:{axisLabel:{formatter:l=>l.length>5?l.substr(0,5)+`
1
+ "use strict";var $=Object.defineProperty,k=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(m,c,u)=>c in m?$(m,c,{enumerable:!0,configurable:!0,writable:!0,value:u}):m[c]=u,A=(m,c)=>{for(var u in c||(c={}))W.call(c,u)&&U(m,u,c[u]);if(N)for(var u of N(c))Z.call(c,u)&&U(m,u,c[u]);return m},T=(m,c)=>k(m,q(c));var z=(m,c,u)=>new Promise((v,O)=>{var S=g=>{try{b(u.next(g))}catch(L){O(L)}},E=g=>{try{b(u.throw(g))}catch(L){O(L)}},b=g=>g.done?v(g.value):Promise.resolve(g.value).then(S,E);b((u=u.apply(m,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),X=require("./useComponentI18n-MgEpVhO3.cjs"),P=require("./index-DoEyCVDU.cjs");require("element-plus");const G=require("./EChartComponentBase-8GSbyY5P.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),D=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nt={key:0,class:"mix-title-unit"},ot={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=a.defineComponent(T(A({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){D.use([K.install,Q.install,D.install,Y.install,D.install$1,tt.install]);const c=m;function u(h,e,t){const i=h==null?void 0:h[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function v(h){return String(h).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class O extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var r,p,d;this.ensureCommonFields();const e=this.props.conf.common,t=(r=this.props.conf.data)==null?void 0:r[0];t&&typeof t=="object"&&((!e.valueUnit||String(e.valueUnit).trim()==="")&&t.valueUnit!=null&&String(t.valueUnit).trim()!==""&&(e.valueUnit=String(t.valueUnit)),e.showPlanCompletionRate===!1&&t.showPlanCompletionRate===!0&&(e.showPlanCompletionRate=!0),"valueUnit"in t&&delete t.valueUnit,"showPlanCompletionRate"in t&&delete t.showPlanCompletionRate);const i=(p=this.props.conf.options)==null?void 0:p.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(d=this.props.conf.options)==null?void 0:d.showPlanCompletionRate,s=n!=null&&typeof n=="object"&&"value"in n?n.value:n;e.showPlanCompletionRate===!1&&s===!0&&(e.showPlanCompletionRate=!0)}isPlanCompletionRateEnabled(){return this.ensureCommonFields(),!!this.props.conf.common.showPlanCompletionRate}resolveBarItemIndex(e){const t=this.CHART.items,i=[e==null?void 0:e.axisValue,e==null?void 0:e.name];for(const n of i){if(n==null||n==="")continue;const s=t.indexOf(String(n));if(s!==-1)return s}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return T(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return z(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield a.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,s;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((s=e.data)==null?void 0:s.length)&&i.every((r,p)=>{var d;return r===((d=e.data[p])==null?void 0:d.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((r,p)=>{const d=P.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(r.color||P.COLORS[p]),r.value!==void 0&&r.value!==""?this.CHART.rawValues.push(r.value):o&&t[p]!==void 0&&t[p]!==""?this.CHART.rawValues.push(t[p]):this.CHART.rawValues.push(d[0]),this.CHART.items.push(r.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const s=this.parseNumericRaw(n);return s===null?null:e?i<=0?0:s/i*100:s}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:s}=this.buildSeriesAndMax(),r=t.direction==="x",p=r?"right":"center",d={pct:{color:"#000000",fontSize:t.textSize,align:p,padding:r?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((l,x)=>{d[`raw${x}`]={color:l||"#5470c6",fontSize:t.textSize,align:p,fontWeight:500}});const R=l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x];if(o&&s>0){const y=this.parseNumericRaw(C),w=v(String(C)),j=y!==null&&s>0?`${Math.round(y/s*100)}%`:"";return`{raw${x}|${w}}{pct|${v(j)}}`}return`{raw${x}|${v(String(C))}}`},_=28,V=108,I=l=>{var y,w;const x=(w=(y=e.chartObj)==null?void 0:y.getWidth())!=null?w:0;return!x||!l.labelRect?{}:{x:x-12,y:l.labelRect.y+l.labelRect.height/2,verticalAlign:"middle",align:"right"}},F=r?t.right+V:t.right;let f={grid:{top:r?t.top:t.top+_,bottom:t.bottom,left:t.left,right:F,containLabel:!0},tooltip:{show:!0,formatter:l=>{const x=this.resolveBarItemIndex(l),C=i.rawValues[x],y=this.parseNumericRaw(C);let w=`${l.name}:`;return o&&s>0&&y!==null?w+=`${C}(${Math.round(y/s*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:l=>l.length>4?l.substr(0,4):l}},yAxis:{axisLabel:{formatter:l=>l.length>5?l.substr(0,5)+`
2
2
  `+l.substr(5):l,color:t.textColor,fontSize:t.textSize,overflow:"none"},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[T(A({realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:n},r?{labelLayout:I}:{}),{label:{show:!0,position:r?"right":"top",align:p,verticalAlign:r?"middle":"bottom",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:d,formatter:R},itemStyle:{color:l=>i.colors[this.resolveBarItemIndex(l)]||"#5470c6"}})],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return r?(f.yAxis.data=i.items,t.realSort&&(f.yAxis.inverse=t.sortType==="desc"),f.xAxis.splitLine.lineStyle.type="dashed",o&&s>0&&(f.xAxis.max=100,f.xAxis.axisLabel.formatter=l=>`${l}%`)):(f.xAxis.data=i.items,delete f.xAxis.max,t.realSort&&(f.xAxis.inverse=t.sortType==="asc"),f.yAxis.splitLine.lineStyle.type="dashed",delete f.yAxis.type,o&&s>0&&(f.yAxis.max=100,f.yAxis.axisLabel.formatter=l=>`${l}%`)),f}setHistoryData(e){if(!(e!=null&&e.length)||!this.chartObj)return;const{data:t}=this.props.conf;if(!Array.isArray(t)||!t.length)return;const i=n=>{if(n==null||n===""||n==="-")return null;const s=Number(n);return Number.isFinite(s)?s:null},o=Number(this.Style.value.points)||10;t.forEach((n,s)=>{var _;const r=e[s];if(!((_=r==null?void 0:r.data)!=null&&_.length)){this.CHART.rawValues[s]="--";return}const d=r.data.map(i).filter(V=>V!==null).slice(-o),R=d.length?d[d.length-1]:null;this.CHART.rawValues[s]=R!==null?R:"--"}),this.chartObj.setOption(this.getChartOption(),!1)}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(o=>{const n=this.extractDataValue(e,o.fv);this.CHART.rawValues.push(n!=null?n:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new O(c,"raceBar");S.setupLifecycle();const E=S.getStyle(),b=S.getEchartId(),g=c.conf,{t:L}=X.useComponentI18n(),M=a.computed(()=>{var o;const h=((o=c.conf)==null?void 0:o.common)||{},e=String(h.valueUnit||"").trim(),t=!!h.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),B=a.computed(()=>{const h=J.generateTitleStyle(c.conf.options);return h.display==="none"?h:T(A({},h),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),H=a.computed(()=>{var e;const h=((e=c.conf)==null?void 0:e.options)||{};return{flex:"1",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:u(h,"titleColor","#111"),fontSize:`${u(h,"titleSize",14)}px`,fontWeight:u(h,"titleWeight","bold"),textAlign:u(h,"titleAlign","left")}});return(h,e)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(E).bgColor,borderRadius:`${a.unref(E).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(B.value)},[a.createElementVNode("span",{class:"mix-title-caption",style:a.normalizeStyle(H.value)},a.toDisplayString(a.unref(g).caption||a.unref(g).name),5),M.value?(a.openBlock(),a.createElementBlock("span",nt,a.toDisplayString(M.value),1)):a.createCommentVNode("",!0)],4),a.createElementVNode("div",ot,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(b)},null,8,st)]),a.renderSlot(h.$slots,"default",{},void 0,!0)],4))}})),mt=P._export_sfc(dt,[["__scopeId","data-v-84c35822"]]);exports.default=mt;
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,b=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(l,e,o)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o,g=(l,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(l,o,e[o]);if(u)for(var o of u(e))_.call(e,o)&&f(l,o,e[o]);return l},h=(l,e)=>b(l,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-DFbNT6Tf.cjs");require("element-plus");const E=require("./EChartComponentBase-DzP0_KR9.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),N=require("./install-CltTFs4e.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A={class:"mix-body"},F=["id"],j={DEFAULT_ICON:Z,ACTIVE_ICON:k,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},m=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],D=["name","fv","object_id","max"],q=["mosaic","statistics","calculate"],R={useAlias:!1,multiObject:!1,source:"mosaic"},I={DEFAULT:j,OPTIONS:B,DATA:m,PARAMS:D,SOURCE:q,COMMON:R},P=t.defineComponent(h(g({},I),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){c.use([V.install,N.install,c.install,c.install$1,T.install]);const e=l,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),borderColor:this.getOptionValue("borderColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","none"),points:this.getOptionValue("points",10)}}getChartOption(){const i=this.Style.value,{data:r,name:a}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:i.type,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:r.map(n=>({name:n.name,max:n.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:i.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:i.borderColor}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:i.textSize,color:i.textColor}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return m}setHistoryData(i){if(!i)return;const r=this.chartObj.getOption();r.series[0].data[0].value=[],i.forEach(a=>{var n;r.series[0].data[0].value.push((n=a.data[0])!=null?n:0)}),this.chartObj.setOption(r)}setSocketData(i){if(!i||!this.chartObj)return;const{data:r}=this.props.conf,a=this.chartObj.getOption();a.series[0].data[0].value=[],r.forEach(n=>{const L=this.extractDataValue(i,n.fv);a.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(a)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>z.generateTitleStyle(e.conf.options));return(p,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",A,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,F)]),t.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),$=M._export_sfc(P,[["__scopeId","data-v-36fbdf8b"]]);exports.default=$;
1
+ "use strict";var y=Object.defineProperty,b=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(l,e,o)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o,g=(l,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(l,o,e[o]);if(u)for(var o of u(e))_.call(e,o)&&f(l,o,e[o]);return l},h=(l,e)=>b(l,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-DoEyCVDU.cjs");require("element-plus");const E=require("./EChartComponentBase-8GSbyY5P.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),N=require("./install-CltTFs4e.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A={class:"mix-body"},F=["id"],j={DEFAULT_ICON:Z,ACTIVE_ICON:k,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},m=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],D=["name","fv","object_id","max"],q=["mosaic","statistics","calculate"],R={useAlias:!1,multiObject:!1,source:"mosaic"},I={DEFAULT:j,OPTIONS:B,DATA:m,PARAMS:D,SOURCE:q,COMMON:R},P=t.defineComponent(h(g({},I),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){c.use([V.install,N.install,c.install,c.install$1,T.install]);const e=l,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),borderColor:this.getOptionValue("borderColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","none"),points:this.getOptionValue("points",10)}}getChartOption(){const i=this.Style.value,{data:r,name:a}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:i.type,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:r.map(n=>({name:n.name,max:n.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:i.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:i.borderColor}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:i.textSize,color:i.textColor}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return m}setHistoryData(i){if(!i)return;const r=this.chartObj.getOption();r.series[0].data[0].value=[],i.forEach(a=>{var n;r.series[0].data[0].value.push((n=a.data[0])!=null?n:0)}),this.chartObj.setOption(r)}setSocketData(i){if(!i||!this.chartObj)return;const{data:r}=this.props.conf,a=this.chartObj.getOption();a.series[0].data[0].value=[],r.forEach(n=>{const L=this.extractDataValue(i,n.fv);a.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(a)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>z.generateTitleStyle(e.conf.options));return(p,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",A,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,F)]),t.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),$=M._export_sfc(P,[["__scopeId","data-v-36fbdf8b"]]);exports.default=$;
@@ -11,9 +11,9 @@ var m = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writab
11
11
  return i;
12
12
  }, g = (i, t) => O(i, w(t));
13
13
  import { defineComponent as E, computed as z, openBlock as T, createElementBlock as Z, normalizeStyle as h, unref as s, createElementVNode as c, toDisplayString as k, renderSlot as A } from "vue";
14
- import { _ as F } from "./index-C_ms8XdY.js";
14
+ import { _ as F } from "./index-CPTJIw32.js";
15
15
  import "element-plus";
16
- import { E as V } from "./EChartComponentBase-B5seB4Mc.js";
16
+ import { E as V } from "./EChartComponentBase-skupRYzl.js";
17
17
  import { g as N } from "./titleStyle-BT5GlpAb.js";
18
18
  import { i as j } from "./install-BfNaEf5I.js";
19
19
  import { u as D, i as B, a as R } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -12,8 +12,8 @@ var Ge = (R, y, M) => y in R ? Ht(R, y, { enumerable: !0, configurable: !0, writ
12
12
  }, Ke = (R, y) => Wt(R, zt(y));
13
13
  import { defineComponent as Xt, computed as B, ref as v, reactive as Ze, onMounted as Gt, nextTick as Je, onUnmounted as qt, watch as Kt, openBlock as f, createElementBlock as b, normalizeStyle as U, unref as A, createElementVNode as a, withModifiers as D, toDisplayString as F, createTextVNode as oe, normalizeClass as re, withDirectives as W, vModelText as ke, createBlock as Zt, Teleport as Jt, Fragment as z, renderList as j, createCommentVNode as ie, vShow as ae, renderSlot as Qt } from "vue";
14
14
  import "html2canvas";
15
- import { B as en } from "./BaseComponent-Bv3RJ3vA.js";
16
- import { _ as tn } from "./index-C_ms8XdY.js";
15
+ import { B as en } from "./BaseComponent-Dn65PXTp.js";
16
+ import { _ as tn } from "./index-CPTJIw32.js";
17
17
  import { A as nn, D as ln } from "./ele-lin-icon-Dax-ZiWV.js";
18
18
  const sn = { class: "map-toolbar" }, on = { class: "toolbar-left" }, rn = { class: "dropdown-wrapper" }, an = { class: "dropdown-wrapper" }, un = { class: "dropdown-wrapper" }, dn = { class: "model-btn-wrapper" }, cn = ["value", "checked", "onChange"], gn = {
19
19
  class: "dropdown-item",