mixdashboards 1.0.70 → 1.0.71

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 (342) hide show
  1. package/dist/{BaseComponent-Cco_5i96.cjs → BaseComponent-CNXUpPY1.cjs} +1 -1
  2. package/dist/{BaseComponent-DQe7HYdV.js → BaseComponent-D5tlYehc.js} +3 -3
  3. package/dist/{EChartComponentBase-dEfA3X9b.js → EChartComponentBase-CAabYXSj.js} +2 -2
  4. package/dist/{EChartComponentBase-BaBnJ8bP.cjs → EChartComponentBase-D4wMej9X.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-wz6hpU6V.cjs → EmergencyPlanPanel-D96XjhRq.cjs} +1 -1
  6. package/dist/{EmergencyPlanPanel-DSznPaVv.js → EmergencyPlanPanel-Th4ZNdCb.js} +1 -1
  7. package/dist/{HistoryPlanDialog-BTgBCdS8.js → HistoryPlanDialog-D2mQLhkO.js} +1 -1
  8. package/dist/{HistoryPlanDialog-B-LHlgcj.cjs → HistoryPlanDialog-rn2Bp0Gx.cjs} +1 -1
  9. package/dist/{MonitoringMap-C-2l_lqx.cjs → MonitoringMap-BZ98NYTJ.cjs} +1 -1
  10. package/dist/{MonitoringMap-DXBLJnDo.js → MonitoringMap-Coozb35G.js} +2 -2
  11. package/dist/{UniverSheet-C7dsXjKx.js → UniverSheet-CJCunVAM.js} +2 -2
  12. package/dist/{UniverSheet-LB-08tc-.cjs → UniverSheet-CntkzcVZ.cjs} +1 -1
  13. package/dist/{accelerationChart-D1SoP45I.cjs → accelerationChart-DLV-1mpA.cjs} +1 -1
  14. package/dist/{accelerationChart-SBxtVHbe.js → accelerationChart-DacjcSHD.js} +2 -2
  15. package/dist/{actionItem-DfIM5UH4.cjs → actionItem-CFxzHf4E.cjs} +1 -1
  16. package/dist/{actionItem-B8IcKGNl.js → actionItem-d-4p5HZK.js} +2 -2
  17. package/dist/{alarmLevelChart-H8iauEiv.cjs → alarmLevelChart-DCC6D1fH.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CQz77Q40.js → alarmLevelChart-DddN1NVy.js} +2 -2
  19. package/dist/{alertTable-Cx-fC6uh.cjs → alertTable-BREZBeS5.cjs} +1 -1
  20. package/dist/{alertTable-Cv29mm-v.js → alertTable-Q-Waa5jf.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-Bu8MwH5r.js → aliasObjectSelectorDemo-BZygQw9k.js} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-etPGYsSr.cjs → aliasObjectSelectorDemo-DunKWEkT.cjs} +1 -1
  23. package/dist/{annualRainfallChart-BGQ985hs.cjs → annualRainfallChart-BJyoUBDn.cjs} +1 -1
  24. package/dist/{annualRainfallChart-DX58eJRx.js → annualRainfallChart-CthANCvn.js} +2 -2
  25. package/dist/appendCommonDesignerWhereAnd-DwefWNOa.js +11 -0
  26. package/dist/appendCommonDesignerWhereAnd-Q-EhDJXE.cjs +1 -0
  27. package/dist/{aqi-B2fpfbL7.cjs → aqi-BFW_8xYd.cjs} +1 -1
  28. package/dist/{aqi-DeaKS-k8.js → aqi-C_HnKsjh.js} +2 -2
  29. package/dist/{aqiIndass-B7qQDf8x.cjs → aqiIndass-B441j8CT.cjs} +1 -1
  30. package/dist/{aqiIndass-DhZefO08.js → aqiIndass-NVRa3lmj.js} +2 -2
  31. package/dist/{areaDeformCurve-Ocbn3_kI.cjs → areaDeformCurve-Dj405Jil.cjs} +1 -1
  32. package/dist/{areaDeformCurve-C4hXBtGd.js → areaDeformCurve-mQiOHdtN.js} +2 -2
  33. package/dist/{arrayCard-DlsKpcwB.cjs → arrayCard-B7zb1dFi.cjs} +1 -1
  34. package/dist/{arrayCard-BpUOS-ss.js → arrayCard-DZitcjMs.js} +2 -2
  35. package/dist/{audio-DxNmXkbs.cjs → audio-BfsYRWbm.cjs} +1 -1
  36. package/dist/{audio-C6CngKS8.js → audio-CDAMVEgC.js} +2 -2
  37. package/dist/{bar-DNPkWaNw.js → bar--JrlRud9.js} +2 -2
  38. package/dist/{bar-D1M8bJyN.cjs → bar-C7uQADV1.cjs} +1 -1
  39. package/dist/{bmp-Bzs9zJnc.cjs → bmp-DIkLqzRN.cjs} +1 -1
  40. package/dist/{bmp-YmFKfLFa.js → bmp-DrVcnYxy.js} +2 -2
  41. package/dist/{box-OJmqI3Q7.cjs → box-kXjrgG2u.cjs} +1 -1
  42. package/dist/{box-Dk54UC-q.js → box-szcLhted.js} +2 -2
  43. package/dist/{chartConfigPanel-GHB5Hl5O.js → chartConfigPanel-C32o1gyJ.js} +1 -1
  44. package/dist/{chartConfigPanel-CZoaPWy_.cjs → chartConfigPanel-DN4LMy8-.cjs} +1 -1
  45. package/dist/{circleBar-K137GzFV.js → circleBar-BmTjsLHo.js} +2 -2
  46. package/dist/{circleBar-B5IZlML0.cjs → circleBar-CeL2rqMJ.cjs} +1 -1
  47. package/dist/{clock-2JczyJVw.js → clock-CuQpD76K.js} +2 -2
  48. package/dist/{clock-CBL1_q-5.cjs → clock-EbmFBRb-.cjs} +1 -1
  49. package/dist/{clt-BORPsc1B.cjs → clt-C-9xGiKs.cjs} +1 -1
  50. package/dist/{clt-ChGE4ePR.js → clt-XCswxZ6i.js} +2 -2
  51. package/dist/{cmc-DcpgTPp1.cjs → cmc-CFa8Q3tu.cjs} +1 -1
  52. package/dist/{cmc-KJdEjBLk.js → cmc-CXmAv6fz.js} +2 -2
  53. package/dist/{cmp-CcyWf3Uh.cjs → cmp-DmpxjexT.cjs} +1 -1
  54. package/dist/{cmp-sOgqvBdl.js → cmp-Duz_v-LC.js} +2 -2
  55. package/dist/{composite-Ch7011-M.js → composite-CWgy-w61.js} +2 -2
  56. package/dist/{composite-CQKIpLlE.cjs → composite-DdHASMFQ.cjs} +1 -1
  57. package/dist/{conclusionCard-DzJV5dVQ.js → conclusionCard-BtB0rARK.js} +2 -2
  58. package/dist/{conclusionCard-DAvkvrFd.cjs → conclusionCard-Dlg5GWlE.cjs} +1 -1
  59. package/dist/{controlList-VNBp52-S.js → controlList-C0AQ8Yb8.js} +119 -113
  60. package/dist/controlList-C1vhlonT.cjs +1 -0
  61. package/dist/controlRecordList-BhK7KtLR.cjs +1 -0
  62. package/dist/{controlRecordList-BwgBUDph.js → controlRecordList-CSPKG1HU.js} +113 -107
  63. package/dist/{crd-CMq-eX9E.cjs → crd-CgxqxwKV.cjs} +1 -1
  64. package/dist/{crd-BgzuVyLH.js → crd-DQruf9o3.js} +2 -2
  65. package/dist/{ctrBtn-BBpiMhLv.cjs → ctrBtn-BSJ9c7Pt.cjs} +1 -1
  66. package/dist/{ctrBtn-BEFSVeUb.js → ctrBtn-jEWTt_f2.js} +3 -3
  67. package/dist/{ctrSet-CIqM9s8f.cjs → ctrSet-B9M4yI53.cjs} +1 -1
  68. package/dist/{ctrSet-CDe4sV-6.js → ctrSet-C4wCODMY.js} +3 -3
  69. package/dist/{ctrSwitch-TZ380RwZ.js → ctrSwitch-C6dUn_qm.js} +3 -3
  70. package/dist/{ctrSwitch-BT6EXPWY.cjs → ctrSwitch-ZvMCYKvG.cjs} +1 -1
  71. package/dist/{dataManagement-Dc_cJb_I.js → dataManagement-BQVZS7Hi.js} +2 -2
  72. package/dist/{dataManagement-CIt71PpI.cjs → dataManagement-CNrEa_zB.cjs} +1 -1
  73. package/dist/{dataReport-Brb3-u9M.cjs → dataReport-DRopth3A.cjs} +1 -1
  74. package/dist/{dataReport-CqEWzKs_.js → dataReport-vP1LBJjE.js} +2 -2
  75. package/dist/{dataTable-CxNmTfCe.js → dataTable-B1FQ3XIq.js} +1 -1
  76. package/dist/{dataTable-Dumu1ipq.cjs → dataTable-C2AgSR36.cjs} +1 -1
  77. package/dist/{datetime-CiUh6ijW.cjs → datetime-CAyDWKE8.cjs} +1 -1
  78. package/dist/{datetime-DznwpQpB.js → datetime-DU3rzi1v.js} +2 -2
  79. package/dist/{deepClusterSlipSurface-BM14AV0q.js → deepClusterSlipSurface-BHwB0eu9.js} +2 -2
  80. package/dist/{deepClusterSlipSurface-DV0J99z4.cjs → deepClusterSlipSurface-DzoyF6i1.cjs} +1 -1
  81. package/dist/{deepDataMatrix-CnZamNgJ.cjs → deepDataMatrix--AstWPiL.cjs} +1 -1
  82. package/dist/{deepDataMatrix-DlHVpRsU.js → deepDataMatrix-C3uKZmon.js} +2 -2
  83. package/dist/{deepDisplacement3D-DBPZVGVq.cjs → deepDisplacement3D-BBYgB-rK.cjs} +1 -1
  84. package/dist/{deepDisplacement3D-CFQGFzKB.js → deepDisplacement3D-CDNPul6D.js} +2 -2
  85. package/dist/{deepDisplacementChart-WRoRNeUp.cjs → deepDisplacementChart-BnT1ZdfR.cjs} +1 -1
  86. package/dist/{deepDisplacementChart-BIC1BdeL.js → deepDisplacementChart-C6GQHO-J.js} +3 -3
  87. package/dist/{deepDisplacementChart-CUHtskLG.js → deepDisplacementChart-C_pwwgIC.js} +2 -2
  88. package/dist/{deepDisplacementChart-DV1CAZdr.cjs → deepDisplacementChart-DOPij7KP.cjs} +1 -1
  89. package/dist/{deepDisplacementView-CqYa0axl.js → deepDisplacementView-C837RNer.js} +1 -1
  90. package/dist/{deepDisplacementView-Cvw33ulf.cjs → deepDisplacementView-u1IPcbxN.cjs} +1 -1
  91. package/dist/{deepNodeTemperatureChart-CXdObUS6.js → deepNodeTemperatureChart-BcH3ZNi4.js} +2 -2
  92. package/dist/{deepNodeTemperatureChart-Dv_OX5B4.cjs → deepNodeTemperatureChart-CD3JbqkA.cjs} +1 -1
  93. package/dist/{deepTangentAngleChart-DswXRUYT.cjs → deepTangentAngleChart-BCAauuDY.cjs} +1 -1
  94. package/dist/{deepTangentAngleChart-Bud2CMVY.js → deepTangentAngleChart-DSpCyIdq.js} +2 -2
  95. package/dist/{deepTemperatureField-GoQvQtaO.js → deepTemperatureField-B2qIHL1-.js} +3 -3
  96. package/dist/{deepTemperatureField-ChALQ2aa.cjs → deepTemperatureField-BxuKsrtc.cjs} +1 -1
  97. package/dist/{deepTrendChart-CDrMdwWQ.cjs → deepTrendChart-6L4cCHgh.cjs} +1 -1
  98. package/dist/{deepTrendChart-ChnQuB43.js → deepTrendChart-DFGSV17a.js} +2 -2
  99. package/dist/{deviceOnlineStatus-BfNCdYOx.js → deviceOnlineStatus-CiIFdo9I.js} +2 -2
  100. package/dist/{deviceOnlineStatus-Bn3LQ4Sr.cjs → deviceOnlineStatus-WkwzGom4.cjs} +1 -1
  101. package/dist/{deviceStatus-Brj4MjDf.cjs → deviceStatus-BoIv8fbr.cjs} +1 -1
  102. package/dist/{deviceStatus-B38Ae5a2.js → deviceStatus-Dd1pqVnO.js} +2 -2
  103. package/dist/{displacementDataTable-BUNOEGGA.cjs → displacementDataTable-BwcxrsuU.cjs} +1 -1
  104. package/dist/{displacementDataTable-CcPsYHhN.js → displacementDataTable-CGIHGxye.js} +2 -2
  105. package/dist/{displacementTrajectoryChart-CigBPamm.cjs → displacementTrajectoryChart-BOPIBgi5.cjs} +1 -1
  106. package/dist/{displacementTrajectoryChart--FVjlHL3.js → displacementTrajectoryChart-RL97CTML.js} +2 -2
  107. package/dist/{displacementTrendChart-IVjBPyEn.js → displacementTrendChart-Bqnv7hiP.js} +2 -2
  108. package/dist/{displacementTrendChart-BglcCr0q.cjs → displacementTrendChart-CI8i0oQY.cjs} +1 -1
  109. package/dist/{dxf-GBy0lc-E.cjs → dxf-BQoArgPS.cjs} +1 -1
  110. package/dist/{dxf-sH3BLfYm.js → dxf-DBu1iA-r.js} +2 -2
  111. package/dist/{dzc-Bl1t-Dk2.js → dzc-7tLxe18d.js} +2 -2
  112. package/dist/{dzc-HaFIs3kj.cjs → dzc-DMVPjosV.cjs} +1 -1
  113. package/dist/{emergencyPlan-Dm3xgpLZ.cjs → emergencyPlan-BRFhMubg.cjs} +1 -1
  114. package/dist/{emergencyPlan-BBCNfl7v.js → emergencyPlan-C9Edkw51.js} +3 -3
  115. package/dist/{evn-xtk2AfOE.cjs → evn-B05d7LtF.cjs} +1 -1
  116. package/dist/{evn-oE5QPAvh.js → evn-CeLoYCUr.js} +2 -2
  117. package/dist/{evolutionChart-IQgcbpZI.js → evolutionChart-DAlncdLU.js} +3 -3
  118. package/dist/{evolutionChart-BCALB3_C.cjs → evolutionChart-y2mkLVwU.cjs} +1 -1
  119. package/dist/{fileViewer-CNUWWWrf.js → fileViewer-BFMFEN2f.js} +2 -2
  120. package/dist/{fileViewer-Bm3pBZ7F.cjs → fileViewer-Dy2fdABW.cjs} +1 -1
  121. package/dist/{filterBar-8-3I-fv2.cjs → filterBar-CcrUdD-O.cjs} +1 -1
  122. package/dist/{filterBar-D0IMAQEi.js → filterBar-qJJKdxYE.js} +2 -2
  123. package/dist/{fireCombustionCurve-q_KJLBvC.cjs → fireCombustionCurve-B-6MZLul.cjs} +1 -1
  124. package/dist/{fireCombustionCurve-DIMaL6k_.js → fireCombustionCurve-DyRikhHw.js} +3 -3
  125. package/dist/{fireFilterBar-BduYgLR_.cjs → fireFilterBar-C9b_Ohvr.cjs} +1 -1
  126. package/dist/{fireFilterBar-mh__CAEd.js → fireFilterBar-DkjBGPXa.js} +2 -2
  127. package/dist/{fireHistoryTable-V7JBdrE2.cjs → fireHistoryTable-5sG5FDCD.cjs} +1 -1
  128. package/dist/{fireHistoryTable-BGIGhRzQ.js → fireHistoryTable-ldXil5up.js} +2 -2
  129. package/dist/{gag-ClHWS-GR.cjs → gag-CDX99Ta4.cjs} +1 -1
  130. package/dist/{gag-h6YZVeKt.js → gag-KZfFHn72.js} +2 -2
  131. package/dist/{gasStationList-D8fl4Or-.js → gasStationList-Btoo_olJ.js} +61 -54
  132. package/dist/gasStationList-Dl9qawf_.cjs +1 -0
  133. package/dist/{geo3dViewer-V0VzcLih.cjs → geo3dViewer-Cif9uFqd.cjs} +1 -1
  134. package/dist/{geo3dViewer-BMXatRLz.js → geo3dViewer-iZhkCiTP.js} +3 -3
  135. package/dist/{glbModel-CXvjMqNn.cjs → glbModel-2xydaxDT.cjs} +1 -1
  136. package/dist/{glbModel-B2byj6re.js → glbModel-MJZgDSJf.js} +2 -2
  137. package/dist/{globalObjectSelector-BgZLIHmK.cjs → globalObjectSelector-Bz2XhgxT.cjs} +1 -1
  138. package/dist/{globalObjectSelector-BZ3_5CPd.js → globalObjectSelector-CHtYGpi9.js} +1 -1
  139. package/dist/{gnssFilterBar-Cf7cWGlI.cjs → gnssFilterBar-BT19n0j_.cjs} +1 -1
  140. package/dist/{gnssFilterBar-CpF9e6YM.js → gnssFilterBar-CPis6bUI.js} +2 -2
  141. package/dist/{gnssHistoryTable-rdM2a20c.cjs → gnssHistoryTable-CrS2qO6S.cjs} +1 -1
  142. package/dist/{gnssHistoryTable-MRP8Beo0.js → gnssHistoryTable-kHZY48EZ.js} +2 -2
  143. package/dist/{gnssMapView-CaUtuUpJ.cjs → gnssMapView-BNIkieqL.cjs} +2 -2
  144. package/dist/{gnssMapView-BkoTIlXN.js → gnssMapView-DXP8yz0v.js} +4 -4
  145. package/dist/{gnssSectionProfile-Dg8ItwhD.js → gnssSectionProfile-DEUDEvJ1.js} +2 -2
  146. package/dist/{gnssSectionProfile-BBr8cQ5Q.cjs → gnssSectionProfile-_KbP1NXU.cjs} +1 -1
  147. package/dist/{gnssTimeSeriesChart-nqn-schc.cjs → gnssTimeSeriesChart-BgFoXAZv.cjs} +1 -1
  148. package/dist/{gnssTimeSeriesChart-BD_By4pr.js → gnssTimeSeriesChart-C_xqd0su.js} +2 -2
  149. package/dist/{gnssXYTrajectory-BEuA8xeM.cjs → gnssXYTrajectory-C1N3RWzp.cjs} +1 -1
  150. package/dist/{gnssXYTrajectory-BJc805eq.js → gnssXYTrajectory-GqgFw_qK.js} +2 -2
  151. package/dist/grd-DtDoJOOa.cjs +1 -0
  152. package/dist/{grd-CdgF9LSJ.js → grd-QCuVN1jE.js} +31 -30
  153. package/dist/{grdIndass-BE3WXRar.js → grdIndass-BEcfZTYw.js} +2 -2
  154. package/dist/{grdIndass-BCgyoujO.cjs → grdIndass-ci3JkvGZ.cjs} +1 -1
  155. package/dist/{grg-DC1jm6BJ.cjs → grg-C2qVuXYE.cjs} +1 -1
  156. package/dist/{grg-DOWXpsOd.js → grg-CMVrF5tB.js} +2 -2
  157. package/dist/{gridview-EqB4I5wC.cjs → gridview-BLAlr5uj.cjs} +1 -1
  158. package/dist/{gridview-CVmSPr7U.js → gridview-Cd3Tqzph.js} +2 -2
  159. package/dist/{groundwaterFilterBar-CWv6BCI6.cjs → groundwaterFilterBar-1E1j67JT.cjs} +1 -1
  160. package/dist/{groundwaterFilterBar-CviSH5Qr.js → groundwaterFilterBar-D7lrbzDC.js} +2 -2
  161. package/dist/{groundwaterProfileChart-D-Egf7gH.js → groundwaterProfileChart-Bjtqz-Zv.js} +3 -3
  162. package/dist/{groundwaterProfileChart-hbl7Skoa.cjs → groundwaterProfileChart-CS9xelz8.cjs} +2 -2
  163. package/dist/{groundwaterTimeCurve-B2S9jv9c.js → groundwaterTimeCurve-Bu6vgAaC.js} +3 -3
  164. package/dist/{groundwaterTimeCurve-BSKxN3Mw.cjs → groundwaterTimeCurve-DYiDLgVY.cjs} +1 -1
  165. package/dist/{groupCard-BSYmzKXi.cjs → groupCard-CPvAsuPb.cjs} +1 -1
  166. package/dist/{groupCard-fDda5bn9.js → groupCard-DQvEe6cc.js} +2 -2
  167. package/dist/{headerBar-BNC53vaM.js → headerBar-CGOtSvFn.js} +2 -2
  168. package/dist/{headerBar-Dv7imnYo.cjs → headerBar-OwCxpc4o.cjs} +1 -1
  169. package/dist/{history-BC29QEMC.cjs → history-9ToM-rJ6.cjs} +1 -1
  170. package/dist/{history-71NIpUTt.js → history-D6C3tSut.js} +1 -1
  171. package/dist/{index-BSsB7QzO.js → index-Bdq33405.js} +2026 -2039
  172. package/dist/{index-Do1YWdUS.cjs → index-D8dh_6Qd.cjs} +12 -12
  173. package/dist/{insarDeformChart-DBj0COZA.cjs → insarDeformChart-CSQ7fc2p.cjs} +1 -1
  174. package/dist/{insarDeformChart-DagNC51a.js → insarDeformChart-Ls-cdqaP.js} +2 -2
  175. package/dist/{insarImageViewer-D8lq9Hv9.js → insarImageViewer-Dnke9JDG.js} +2 -2
  176. package/dist/{insarImageViewer-D3Z46bMc.cjs → insarImageViewer-DvaRS1zr.cjs} +1 -1
  177. package/dist/{kds-dfE3zwZ-.js → kds-B4BKGG0r.js} +2 -2
  178. package/dist/{kds-3BWXq_Zj.cjs → kds-BjX5tXhF.cjs} +1 -1
  179. package/dist/{kpiCard-C7BwYNoj.js → kpiCard-C77vHJ_E.js} +2 -2
  180. package/dist/{kpiCard-DsIkae_A.cjs → kpiCard-oLpk5d4m.cjs} +1 -1
  181. package/dist/{landslideMap-BrLLkxBj.js → landslideMap-BEkbnCqP.js} +3 -3
  182. package/dist/{landslideMap-B6KMbgUh.cjs → landslideMap-CO8o7T8J.cjs} +1 -1
  183. package/dist/{landslideWarning-HDs4IJhS.cjs → landslideWarning-BZXa5qTB.cjs} +1 -1
  184. package/dist/{landslideWarning-CCB3FuKv.js → landslideWarning-C5upI2cf.js} +5 -5
  185. package/dist/{layerTabs-CIJNyC8N.cjs → layerTabs-BxRAsklw.cjs} +1 -1
  186. package/dist/{layerTabs-DmXSaX2o.js → layerTabs-DoGw1Jfv.js} +2 -2
  187. package/dist/{leaflet-src-CFMznK-4.cjs → leaflet-src-BUWIqhPn.cjs} +1 -1
  188. package/dist/{leaflet-src-Cz3-WkcA.js → leaflet-src-DFE_g2gF.js} +1 -1
  189. package/dist/{lerc-DOm8fUIl.cjs → lerc-BBgQP785.cjs} +1 -1
  190. package/dist/{lerc-CVXsRBRF.js → lerc-CXc9KSRL.js} +2 -2
  191. package/dist/{lin-CDBqcgpY.cjs → lin-ClO2MqZl.cjs} +1 -1
  192. package/dist/{lin-Br_VXsJO.js → lin-Difz8N88.js} +2 -2
  193. package/dist/{linIndass-B9ZXCjvV.cjs → linIndass-Bb7UA-zk.cjs} +1 -1
  194. package/dist/{linIndass-Bzid42kL.js → linIndass-DqXVOBh3.js} +2 -2
  195. package/dist/{lst-DHw7jJvt.js → lst-4RMMZZkY.js} +2 -2
  196. package/dist/{lst-D1Vdrqbd.cjs → lst-Dri1MTDI.cjs} +1 -1
  197. package/dist/{manualEntry-C3d0PuIP.js → manualEntry-B3_4Z-Lj.js} +2 -2
  198. package/dist/{manualEntry-DPiWw70L.cjs → manualEntry-D74dgZv8.cjs} +1 -1
  199. package/dist/{mapBackground-BmEmh-IX.js → mapBackground-B3OHQsXZ.js} +3 -3
  200. package/dist/{mapBackground-CW9t63hH.cjs → mapBackground-Bmt-oZt6.cjs} +1 -1
  201. package/dist/mappingList-CBN7ArkQ.cjs +1 -0
  202. package/dist/{mappingList-rtj1fZta.js → mappingList-DVj7H206.js} +142 -136
  203. package/dist/{markdownViewer-mV81tsCM.cjs → markdownViewer-BAuNEWRt.cjs} +1 -1
  204. package/dist/{markdownViewer-BW9CC15r.js → markdownViewer-fheM5uV4.js} +2 -2
  205. package/dist/{mix-control-modal-R-d17GgO.js → mix-control-modal-BBiKe4MM.js} +1 -1
  206. package/dist/{mix-control-modal-C-XaUBM9.cjs → mix-control-modal-BoYynGT2.cjs} +1 -1
  207. package/dist/{mixGrid-Dh1GWlPe.js → mixGrid-BUjP1qv2.js} +233 -225
  208. package/dist/mixGrid-DTj2pmFW.cjs +1 -0
  209. package/dist/{mixMap-JeV_KU8B.cjs → mixMap-B4T4R6kA.cjs} +1 -1
  210. package/dist/{mixMap-InWuappO.js → mixMap-DPIwyKuP.js} +2 -2
  211. package/dist/{mixModel-CPu_Nnzl.cjs → mixModel-BzilRtjf.cjs} +1 -1
  212. package/dist/{mixModel-DKGYpc0t.js → mixModel-CIdQp4V9.js} +2 -2
  213. package/dist/{mixPie-DuL4kFfE.js → mixPie-C6OhdOCV.js} +2 -2
  214. package/dist/{mixPie-B8iIy6vW.cjs → mixPie-DtQm-LGp.cjs} +1 -1
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-CLn1xHqz.js → mjpegCamera-Cd1vhZ5v.js} +2 -2
  219. package/dist/{mjpegCamera-CBDFxk1W.cjs → mjpegCamera-Lu3UHJ83.cjs} +1 -1
  220. package/dist/{monitorAlert-GYcH2lWI.cjs → monitorAlert-Ctt2kCxQ.cjs} +1 -1
  221. package/dist/{monitorAlert-v3YHyJ9n.js → monitorAlert-DIJtH557.js} +2 -2
  222. package/dist/{monitorData-CfcxdZcd.js → monitorData-B6jhpzVK.js} +2 -2
  223. package/dist/{monitorData-B7ZFUGOk.cjs → monitorData-D_tMbx_Y.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-7xx0tfQ_.js → monitorSpeedChart-DF5zvxs9.js} +1 -1
  225. package/dist/{monitorSpeedChart-C7HwlTr8.cjs → monitorSpeedChart-EIcGs3NX.cjs} +1 -1
  226. package/dist/{mxa-CjPqkUmG.cjs → mxa-BfwIV49n.cjs} +1 -1
  227. package/dist/{mxa-CDGZ91O2.js → mxa-COxjxwpC.js} +2 -2
  228. package/dist/{myValue-DjPA08OX.js → myValue-Crba15Wc.js} +2 -2
  229. package/dist/{myValue-BS3GCO4s.cjs → myValue-FZPOucSS.cjs} +1 -1
  230. package/dist/{myValueList-CHkCKevc.cjs → myValueList-XIDK3ove.cjs} +1 -1
  231. package/dist/{myValueList-C7A5aAh9.js → myValueList-m2yaIcuf.js} +2 -2
  232. package/dist/objectList-BtbxHtJj.cjs +1 -0
  233. package/dist/{objectList-D0tDSws-.js → objectList-BwZJzrXs.js} +252 -229
  234. package/dist/{photo-Cu5K8SR1.cjs → photo-BITvEhKG.cjs} +1 -1
  235. package/dist/{photo-DBEKwlxs.js → photo-CjulDHTM.js} +2 -2
  236. package/dist/{pie-CNzWqzxt.js → pie-C9MU90ON.js} +2 -2
  237. package/dist/{pie-DNaiYJw-.cjs → pie-CSLVJv0Y.cjs} +1 -1
  238. package/dist/{placeholder-CmVISGcF.cjs → placeholder-3kajeeeb.cjs} +1 -1
  239. package/dist/{placeholder-sfIWt-Xp.js → placeholder-CRARTMF4.js} +1 -1
  240. package/dist/{pressBtn-DLQBhBFE.js → pressBtn-CkYcW1a8.js} +3 -3
  241. package/dist/{pressBtn-QGaltOl4.cjs → pressBtn-pUcQtd5n.cjs} +1 -1
  242. package/dist/{processTable-CgNob2sD.js → processTable-BgAhGGAq.js} +2 -2
  243. package/dist/{processTable-g9yoTp4_.cjs → processTable-CDulvQlu.cjs} +1 -1
  244. package/dist/{progressBar-Bdp-TJpQ.cjs → progressBar-BbDFps1r.cjs} +1 -1
  245. package/dist/{progressBar-BB2IqJY4.js → progressBar-CIPUVeaf.js} +2 -2
  246. package/dist/{progressCircle-F4z0eEN5.cjs → progressCircle-CgkZ1EC1.cjs} +1 -1
  247. package/dist/{progressCircle-BQ-JSIxI.js → progressCircle-DDc5zsd6.js} +2 -2
  248. package/dist/{qrcode-D0PnYT1n.js → qrcode-CCu677Ad.js} +2 -2
  249. package/dist/{qrcode-C4JX_M2R.cjs → qrcode-CQbWGVgq.cjs} +1 -1
  250. package/dist/raceBar-Cn8oPhCE.js +354 -0
  251. package/dist/raceBar-CzNGSYCt.cjs +4 -0
  252. package/dist/{rad-Bx3jcHPe.js → rad-D_cLWeMk.js} +2 -2
  253. package/dist/{rad-CpIyATZD.cjs → rad-Dk4PrnyI.cjs} +1 -1
  254. package/dist/{radarMapViewer-znDIY1Dj.js → radarMapViewer-BaAXjsWx.js} +2 -2
  255. package/dist/{radarMapViewer-CbGubI4Y.cjs → radarMapViewer-TJIPACdT.cjs} +1 -1
  256. package/dist/{rainfallFilterBar-3a9Q3HL_.js → rainfallFilterBar-Bhpadat8.js} +2 -2
  257. package/dist/{rainfallFilterBar-Du3Sgp7X.cjs → rainfallFilterBar-Myq0MBCf.cjs} +1 -1
  258. package/dist/{rainfallTimeCurve-D2w9bpwZ.cjs → rainfallTimeCurve-BUI-RlnG.cjs} +1 -1
  259. package/dist/{rainfallTimeCurve-BF2Ic5kC.js → rainfallTimeCurve-sDYapogL.js} +3 -3
  260. package/dist/{rangeLin-C32kwDdl.js → rangeLin-CdMOPwMP.js} +2 -2
  261. package/dist/{rangeLin-B_GwGg5T.cjs → rangeLin-DYCZ8wVc.cjs} +1 -1
  262. package/dist/{realtimeEvolutionMap-BYga2Sy1.cjs → realtimeEvolutionMap-BwyQdAhL.cjs} +1 -1
  263. package/dist/{realtimeEvolutionMap-CJGxgUkx.js → realtimeEvolutionMap-CIH_sZ29.js} +2 -2
  264. package/dist/{regionBar-CdddgYWu.cjs → regionBar-DsxqfirI.cjs} +1 -1
  265. package/dist/{regionBar-CZY8lddM.js → regionBar-VB-2GpR0.js} +2 -2
  266. package/dist/{request-DpwHQGd5.js → request-BHfDxLXZ.js} +1 -1
  267. package/dist/{request-C78CBVAN.cjs → request-DU8pRyvu.cjs} +1 -1
  268. package/dist/{retainer1-BuvX8Di7.cjs → retainer1-CSqjvY4k.cjs} +1 -1
  269. package/dist/{retainer1-D019fwD_.js → retainer1-C_109Weq.js} +3 -3
  270. package/dist/{retainer2-B-TexO-Y.js → retainer2-BiHUTumr.js} +3 -3
  271. package/dist/{retainer2-DCHahmfG.cjs → retainer2-Bqlwvr53.cjs} +1 -1
  272. package/dist/{retainerRecordList-BrYisw1I.js → retainerRecordList-Cgil_g8a.js} +217 -199
  273. package/dist/retainerRecordList-DWZ3WDiz.cjs +1 -0
  274. package/dist/{ringTopN-DiMEspqe.cjs → ringTopN-Bp0er_zV.cjs} +1 -1
  275. package/dist/{ringTopN-U-y_5F23.js → ringTopN-C9AH-t3T.js} +2 -2
  276. package/dist/{riskRegionTable-CBkZwBO7.cjs → riskRegionTable-B3bzMaR_.cjs} +1 -1
  277. package/dist/{riskRegionTable-aMJshw4k.js → riskRegionTable-Co1uxMzf.js} +2 -2
  278. package/dist/{sankey-B5cYZsvX.cjs → sankey-B4BJ4xIo.cjs} +1 -1
  279. package/dist/{sankey-DDfakV6y.js → sankey-Bag0ladh.js} +2 -2
  280. package/dist/{scd-Dw_bUW6m.js → scd-D9AiOiPg.js} +2 -2
  281. package/dist/{scd-DFHgvimo.cjs → scd-Dgd3KDpk.cjs} +1 -1
  282. package/dist/{sideMenu-CmpGVPM3.js → sideMenu-869HFB0p.js} +2 -2
  283. package/dist/{sideMenu-DJsAP45g.cjs → sideMenu-BQ5rrGBr.cjs} +1 -1
  284. package/dist/{slopeStability-CfzgDTeZ.cjs → slopeStability-D96aiykf.cjs} +1 -1
  285. package/dist/{slopeStability-D4eSUWT9.js → slopeStability-bZ0lHLjZ.js} +2 -2
  286. package/dist/{speedCurve-vIlHrolF.cjs → speedCurve-5nWqVAzz.cjs} +1 -1
  287. package/dist/{speedCurve-BbThyw5u.js → speedCurve-DZ52XKCk.js} +2 -2
  288. package/dist/{staticLine-uqwL7J2F.js → staticLine-CyPnmKCh.js} +2 -2
  289. package/dist/{staticLine-CFONgNJ0.cjs → staticLine-DUCg-0tI.cjs} +1 -1
  290. package/dist/{stressFilterBar-BC_6NNeh.js → stressFilterBar-BAUt2bGy.js} +2 -2
  291. package/dist/{stressFilterBar-CbK5TMGs.cjs → stressFilterBar-CorWdmpQ.cjs} +1 -1
  292. package/dist/{stressTimeCurve-DGa6Amlf.cjs → stressTimeCurve-Bci50Cwv.cjs} +1 -1
  293. package/dist/{stressTimeCurve-DL2UIABb.js → stressTimeCurve-IW4ArsyA.js} +3 -3
  294. package/dist/{swiper-D99S451G.cjs → swiper-BPS9C2GV.cjs} +1 -1
  295. package/dist/{swiper-DcI2laNu.js → swiper-RM0GoZkW.js} +2 -2
  296. package/dist/terminalConfigList-O881ke5o.cjs +1 -0
  297. package/dist/{terminalConfigList-CHP04a15.js → terminalConfigList-n7NE5NdJ.js} +217 -207
  298. package/dist/{terminalList-B4GdtArc.js → terminalList-Byb4eLcD.js} +245 -233
  299. package/dist/terminalList-C9TB2cJH.cjs +1 -0
  300. package/dist/{textbox-DWkIbuKy.cjs → textbox-BMWnbPvz.cjs} +1 -1
  301. package/dist/{textbox-DM7EtQFC.js → textbox-DM1AUWw8.js} +2 -2
  302. package/dist/{timeQueryBar-B6dhhKsw.cjs → timeQueryBar-C6ZheMvD.cjs} +1 -1
  303. package/dist/{timeQueryBar-4eYHDx7k.js → timeQueryBar-Tbd9M8UT.js} +1 -1
  304. package/dist/{timeSeries-D8S_d2lD.js → timeSeries-CdpEx6bf.js} +3 -3
  305. package/dist/{timeSeries-SKsJlO9O.cjs → timeSeries-DCV2YjC2.cjs} +1 -1
  306. package/dist/{timeSeriesCurve-HqTd55Tr.js → timeSeriesCurve-C1AmF6TP.js} +3 -3
  307. package/dist/{timeSeriesCurve-D_oEL3m7.cjs → timeSeriesCurve-DRlr5n3U.cjs} +1 -1
  308. package/dist/{toggleBtn-BOQw1iDG.cjs → toggleBtn-BGjXjIuK.cjs} +1 -1
  309. package/dist/{toggleBtn-D7cHFqWb.js → toggleBtn-XS9MjfKM.js} +2 -2
  310. package/dist/{trajectoryConfigPanel-CfDPGItH.js → trajectoryConfigPanel-BC90nD1T.js} +1 -1
  311. package/dist/{trajectoryConfigPanel-yZcJkv1P.cjs → trajectoryConfigPanel-DJ6fOeb1.cjs} +1 -1
  312. package/dist/{trajectoryScatter-aRV9sebu.cjs → trajectoryScatter-C7kfSkyS.cjs} +1 -1
  313. package/dist/{trajectoryScatter-CPFvxmxe.js → trajectoryScatter-DF_ESBn8.js} +2 -2
  314. package/dist/{universalConfigPanel-Drfltp0O.js → universalConfigPanel-DjNTwJkz.js} +1 -1
  315. package/dist/{universalConfigPanel-COMoO1kb.cjs → universalConfigPanel-PO1hdgjw.cjs} +1 -1
  316. package/dist/{universalTable-GfZa1yH9.js → universalTable-BY9vRraC.js} +2 -2
  317. package/dist/{universalTable-BwSUhV4N.cjs → universalTable-QAb6UKCq.cjs} +1 -1
  318. package/dist/{video-kK74GALx.cjs → video-8_Sf1uz0.cjs} +1 -1
  319. package/dist/{video-Dyp2zhVq.js → video-DDvDGDql.js} +2 -2
  320. package/dist/{videoMonitor-PXczYaaJ.cjs → videoMonitor-BKLD_aQs.cjs} +1 -1
  321. package/dist/{videoMonitor-BkelK0u9.js → videoMonitor-sce5N4Q5.js} +2 -2
  322. package/dist/{vlu-BBvampip.js → vlu-BKeYJtOO.js} +2 -2
  323. package/dist/{vlu-fvmCrEzu.cjs → vlu-C0XLDKKk.cjs} +1 -1
  324. package/dist/{warningOverview-CKMdru1u.cjs → warningOverview--n7crFnZ.cjs} +1 -1
  325. package/dist/{warningOverview-CH-TMirz.js → warningOverview-CG5mwtaO.js} +3 -3
  326. package/dist/{weather-dQzojon4.js → weather-BrX2a1an.js} +2 -2
  327. package/dist/{weather-BCLGeV-Q.cjs → weather-CWvAqxgX.cjs} +1 -1
  328. package/dist/{windLin-Bby_6ueU.cjs → windLin-BbbsSwuF.cjs} +1 -1
  329. package/dist/{windLin-9DCax9Ze.js → windLin-P4Gs2aBB.js} +2 -2
  330. package/package.json +120 -120
  331. package/dist/controlList-C9P4g5xx.cjs +0 -1
  332. package/dist/controlRecordList-a-h5hoBa.cjs +0 -1
  333. package/dist/gasStationList-BPa4_DUz.cjs +0 -1
  334. package/dist/grd-aUyI_B6g.cjs +0 -1
  335. package/dist/mappingList-B9PdmcFg.cjs +0 -1
  336. package/dist/mixGrid-DrmqVYse.cjs +0 -1
  337. package/dist/objectList-DxnLRd33.cjs +0 -1
  338. package/dist/raceBar-DYG9jwPy.js +0 -244
  339. package/dist/raceBar-GXOy9QCR.cjs +0 -3
  340. package/dist/retainerRecordList-DRZ-jXXI.cjs +0 -1
  341. package/dist/terminalConfigList-7DiStuBl.cjs +0 -1
  342. package/dist/terminalList-CjEIRV3W.cjs +0 -1
@@ -30,8 +30,8 @@ import { ElProgress as A } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/progress/style/css";
32
32
  import { defineComponent as F, computed as b, openBlock as C, createElementBlock as g, normalizeStyle as u, unref as s, createElementVNode as x, toDisplayString as v, Fragment as D, renderList as L, createVNode as Z, withCtx as j, createCommentVNode as T, renderSlot as B } from "vue";
33
- import { B as I } from "./BaseComponent-DQe7HYdV.js";
34
- import { _ as P } from "./index-BSsB7QzO.js";
33
+ import { B as I } from "./BaseComponent-D5tlYehc.js";
34
+ import { _ as P } from "./index-Bdq33405.js";
35
35
  import { g as R } from "./titleStyle-BT5GlpAb.js";
36
36
  const U = "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", W = "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", H = { class: "mix-body flex flex-wrap" }, $ = {
37
37
  DEFAULT_ICON: U,
@@ -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 q, 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 B, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
14
- import { B as me } from "./BaseComponent-DQe7HYdV.js";
15
- import { _ as Ce } from "./index-BSsB7QzO.js";
14
+ import { B as me } from "./BaseComponent-D5tlYehc.js";
15
+ import { _ as Ce } from "./index-Bdq33405.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=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,q=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},D=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-Cco_5i96.cjs"),ae=require("./index-Do1YWdUS.cjs"),ne=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 z;(function(o){var d=(function(){function a(e,t,r,n){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(n<-1||n>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),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=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>=n)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 B=a.getNumDataCodewords(g,t)*8;c(v.length<=B),s(0,Math.min(4,B-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<B;N^=253)s(N,8,v);for(var _=[];_.length*8<v.length;)_.push(0);return v.forEach(function(I,O){return _[O>>>3]|=I<<7-(O&7)}),new a(g,t,_,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 n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));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 n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,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 n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),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 n=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=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;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 n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!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 n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(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,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,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],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);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 n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=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];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&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})();o.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,n=e;r<n.length;r++){var i=n[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 n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}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 n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,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,n=0,i=e;n<i.length;n++){var l=i[n],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})();o.QrSegment=h})(z||(z={}));(function(o){(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})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(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})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var T=z,V="L",oe=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(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.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(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,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(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return T.QrCode.encodeText(o.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(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.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(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.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:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},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(o){return["linear","radial"].indexOf(o)>-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(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=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:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.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:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.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:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.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,O){I.forEach(function(x,L){x&&v.fillRect(L+u.value,O+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var B=function(I,O,x,L,Q,X){I.beginPath(),I.roundRect?I.roundRect(O,x,L,Q,X):I.rect(O,x,L,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,B(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var _=a.value.borderRadius;_>0?(v.save(),B(v,a.value.x,a.value.y,a.value.width,a.value.height,_),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(n),f.watchEffect(n);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(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.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:n,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},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,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(o){const d=o;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(()=>ne.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(n,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(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-8d1e58f4"]]);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=(o,d,s)=>d in o?Z(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,q=(o,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(o,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(o,s,d[s]);return o},D=(o,d)=>J(o,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-CNXUpPY1.cjs"),ae=require("./index-D8dh_6Qd.cjs"),ne=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 z;(function(o){var d=(function(){function a(e,t,r,n){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(n<-1||n>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),n==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(n=l,m=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=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>=n)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 B=a.getNumDataCodewords(g,t)*8;c(v.length<=B),s(0,Math.min(4,B-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<B;N^=253)s(N,8,v);for(var _=[];_.length*8<v.length;)_.push(0);return v.forEach(function(I,O){return _[O>>>3]|=I<<7-(O&7)}),new a(g,t,_,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 n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));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 n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,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 n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),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 n=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=n-l%n,m=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<n;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 n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-n:n;!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 n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(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,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,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],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);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 n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),n=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];n(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&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})();o.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,n=e;r<n.length;r++){var i=n[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 n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}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 n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,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,n=0,i=e;n<i.length;n++){var l=i[n],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})();o.QrSegment=h})(z||(z={}));(function(o){(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})(o.QrCode||(o.QrCode={}))})(z||(z={}));(function(o){(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})(o.QrSegment||(o.QrSegment={}))})(z||(z={}));var T=z,V="L",oe=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(o){return!1}return!0})();function Y(o){return o in W}function $(o,d){d===void 0&&(d=0);var s="";return o.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(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ie),n=t/d,i=(c||r)*n,l=(h||r)*n,g=a==null?o.length/2-i/2:a*n,m=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,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(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(o.level)?o.level:V;return T.QrCode.encodeText(o.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(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,o.size,d.value,o.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(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=le/(o.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:oe},level:{type:String,default:V,validator:function(o){return Y(o)}},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(o){return["linear","radial"].indexOf(o)>-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(o){return["canvas","svg"].indexOf(o)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(o){var d=K(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!o.gradient)return null;var n=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},n),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var n=c.value.borderRadius;return!o.imageSettings.src||n<=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:n,ry:n})])};return function(){return f.h("svg",{width:o.size,height:o.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:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(a,")"):o.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:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",R(R({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(o,d){var s=K(o),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),n=function(){var l=o.size,g=o.background,m=o.foreground,p=o.gradient,E=o.gradientType,C=o.gradientStartColor,y=o.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,O){I.forEach(function(x,L){x&&v.fillRect(L+u.value,O+u.value,1,1)})});var k=o.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var B=function(I,O,x,L,Q,X){I.beginPath(),I.roundRect?I.roundRect(O,x,L,Q,X):I.rect(O,x,L,Q)};if(e.value){var N=e.value;v.fillStyle=o.background,B(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var _=a.value.borderRadius;_>0?(v.save(),B(v,a.value.x,a.value.y,a.value.width,a.value.height,_),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(n),f.watchEffect(n);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(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:r,src:o.imageSettings.src,style:{display:"none"},onLoad:n})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var o=this.$props,d=o.renderAs,s=o.value,u=o.size,c=o.margin,h=o.level,a=o.background,e=o.foreground,t=o.imageSettings,r=o.gradient,n=o.gradientType,i=o.gradientStartColor,l=o.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:n,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},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,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(o){const d=o;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(()=>ne.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(n,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(n.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-8d1e58f4"]]);exports.default=be;
@@ -0,0 +1,354 @@
1
+ var Z = Object.defineProperty, q = Object.defineProperties;
2
+ var X = Object.getOwnPropertyDescriptors;
3
+ var z = Object.getOwnPropertySymbols;
4
+ var G = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
5
+ var P = (m, a, l) => a in m ? Z(m, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : m[a] = l, T = (m, a) => {
6
+ for (var l in a || (a = {}))
7
+ G.call(a, l) && P(m, l, a[l]);
8
+ if (z)
9
+ for (var l of z(a))
10
+ J.call(a, l) && P(m, l, a[l]);
11
+ return m;
12
+ }, O = (m, a) => q(m, X(a));
13
+ var V = (m, a, l) => new Promise((v, R) => {
14
+ var S = (f) => {
15
+ try {
16
+ y(l.next(f));
17
+ } catch (b) {
18
+ R(b);
19
+ }
20
+ }, A = (f) => {
21
+ try {
22
+ y(l.throw(f));
23
+ } catch (b) {
24
+ R(b);
25
+ }
26
+ }, y = (f) => f.done ? v(f.value) : Promise.resolve(f.value).then(S, A);
27
+ y((l = l.apply(m, a)).next());
28
+ });
29
+ import { defineComponent as K, computed as U, openBlock as H, createElementBlock as I, normalizeStyle as $, unref as L, createElementVNode as _, toDisplayString as N, createCommentVNode as Q, renderSlot as Y, nextTick as tt } from "vue";
30
+ import { u as et } from "./vue-i18n-5Nahpzrm.js";
31
+ import { n as it, C as ot, _ as nt } from "./index-Bdq33405.js";
32
+ import { E as st } from "./EChartComponentBase-CAabYXSj.js";
33
+ import { g as at } from "./titleStyle-BT5GlpAb.js";
34
+ import { u as lt, i as rt, a as ct } from "./installCanvasRenderer-CLT2hquJ.js";
35
+ import { i as ut } from "./install-CBde4hAM.js";
36
+ import { i as mt } from "./install-hfre7yvV.js";
37
+ import { i as ht } from "./install-BBrAry2m.js";
38
+ import { i as pt } from "./install-MS3ZY7fF.js";
39
+ const dt = "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", ft = "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", gt = {
40
+ key: 0,
41
+ class: "mix-title-unit"
42
+ }, xt = { class: "mix-body" }, Ct = ["id"], wt = {
43
+ DEFAULT_ICON: dt,
44
+ ACTIVE_ICON: ft,
45
+ NAME_CN: "排行",
46
+ NAME_EN: "Ranking",
47
+ ORDER: 1
48
+ }, vt = {
49
+ titleColor: "#111",
50
+ textColor: "#111",
51
+ bgColor: "#fff",
52
+ top: 30,
53
+ bottom: 40,
54
+ left: 50,
55
+ right: 30,
56
+ radiusSize: 8,
57
+ textSize: 12,
58
+ barWidth: 50,
59
+ direction: {
60
+ value: "x",
61
+ type: "radio",
62
+ option: [
63
+ { value: "x", label: "component.options.x" },
64
+ { value: "y", label: "component.options.y" }
65
+ ],
66
+ label: "component.options.direction"
67
+ },
68
+ realSort: !1,
69
+ sortType: {
70
+ value: "desc",
71
+ type: "radio",
72
+ option: [
73
+ { value: "desc", label: "component.options.desc" },
74
+ { value: "asc", label: "component.options.asc" }
75
+ ],
76
+ label: "component.options.sortType",
77
+ dependent: "realSort"
78
+ },
79
+ isHideTitle: !1
80
+ }, St = [{ name: "参数一", fv: "", object_id: "", color: "#4162ff" }], yt = ["name", "fv", "object_id", "color"], bt = ["mosaic"], Lt = {
81
+ useAlias: !1,
82
+ multiObject: !1,
83
+ source: "mosaic",
84
+ valueUnit: "",
85
+ showPlanCompletionRate: !1
86
+ }, Rt = {
87
+ DEFAULT: wt,
88
+ OPTIONS: vt,
89
+ DATA: St,
90
+ PARAMS: yt,
91
+ SOURCE: bt,
92
+ COMMON: Lt
93
+ }, At = /* @__PURE__ */ K(O(T({}, Rt), {
94
+ __name: "raceBar",
95
+ props: {
96
+ conf: { type: Object, default: () => ({ data: [] }) },
97
+ uid: { type: String, default: "" },
98
+ mode: { type: String, default: "edit" },
99
+ theme: { type: String, default: "light" }
100
+ },
101
+ setup(m) {
102
+ lt([ut, mt, rt, ht, ct, pt]);
103
+ const a = m;
104
+ function l(r, e, t) {
105
+ const i = r == null ? void 0 : r[e];
106
+ return i == null ? t : typeof i == "object" && "value" in i ? i.value : i;
107
+ }
108
+ function v(r) {
109
+ return String(r).replace(/[|{}]/g, (e) => ({ "|": "|", "{": "﹛", "}": "﹜" })[e] || e);
110
+ }
111
+ class R extends st {
112
+ constructor() {
113
+ super(...arguments), this.CHART = { rawValues: [], items: [], colors: [], times: [] };
114
+ }
115
+ parseNumericRaw(e) {
116
+ if (e === "--" || e === null || e === void 0 || e === "") return null;
117
+ const t = typeof e == "number" ? e : Number(e);
118
+ return Number.isFinite(t) ? t : null;
119
+ }
120
+ ensureCommonFields() {
121
+ const e = this.props.conf;
122
+ (!e.common || typeof e.common != "object") && (e.common = { useAlias: !1, multiObject: !1, source: "mosaic" });
123
+ const t = e.common;
124
+ t.valueUnit === void 0 && (t.valueUnit = ""), t.showPlanCompletionRate === void 0 && (t.showPlanCompletionRate = !1);
125
+ }
126
+ migrateLegacyDisplayOptions() {
127
+ var h, d, x;
128
+ this.ensureCommonFields();
129
+ const e = this.props.conf.common, t = (h = this.props.conf.data) == null ? void 0 : h[0];
130
+ 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);
131
+ const i = (d = this.props.conf.options) == null ? void 0 : d.valueUnit, o = i != null && typeof i == "object" && "value" in i ? i.value : i;
132
+ (!e.valueUnit || String(e.valueUnit).trim() === "") && o !== void 0 && o !== null && String(o).trim() !== "" && (e.valueUnit = String(o));
133
+ const s = (x = this.props.conf.options) == null ? void 0 : x.showPlanCompletionRate, c = s != null && typeof s == "object" && "value" in s ? s.value : s;
134
+ e.showPlanCompletionRate === !1 && c === !0 && (e.showPlanCompletionRate = !0);
135
+ }
136
+ isPlanCompletionRateEnabled() {
137
+ return this.ensureCommonFields(), !!this.props.conf.common.showPlanCompletionRate;
138
+ }
139
+ /**
140
+ * realtimeSort 开启时柱条会重排,param.dataIndex 可能与类目顺序不一致;
141
+ * 优先用坐标类目(axisValue)再退回 name,对齐 conf 中的数据行。
142
+ */
143
+ resolveBarItemIndex(e) {
144
+ const t = this.CHART.items, i = [e == null ? void 0 : e.axisValue, e == null ? void 0 : e.name];
145
+ for (const s of i) {
146
+ if (s == null || s === "") continue;
147
+ const c = t.indexOf(String(s));
148
+ if (c !== -1) return c;
149
+ }
150
+ const o = e == null ? void 0 : e.dataIndex;
151
+ 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));
152
+ }
153
+ extractStyles() {
154
+ return O(T({}, super.extractStyles()), {
155
+ barWidth: this.getOptionValue("barWidth", 50),
156
+ direction: this.getOptionValue("direction", "x"),
157
+ realSort: this.getOptionValue("realSort", !1),
158
+ sortType: this.getOptionValue("sortType", "desc")
159
+ });
160
+ }
161
+ init() {
162
+ return V(this, null, function* () {
163
+ this.Style.value = this.extractStyles(), this.applyTheme(), this.ensureData(), this.migrateLegacyDisplayOptions(), this.initChartData(), yield tt(), this.initChart();
164
+ });
165
+ }
166
+ initChart() {
167
+ super.initChart(), requestAnimationFrame(() => {
168
+ this.chartObj && this.chartObj.setOption(this.getChartOption(), !1);
169
+ });
170
+ }
171
+ initChartData() {
172
+ var s, c;
173
+ const e = this.props.conf, t = this.CHART.rawValues, i = this.CHART.items, o = t.length === ((s = e.data) == null ? void 0 : s.length) && i.length === ((c = e.data) == null ? void 0 : c.length) && i.every((h, d) => {
174
+ var x;
175
+ return h === ((x = e.data[d]) == null ? void 0 : x.name);
176
+ });
177
+ this.CHART = { rawValues: [], items: [], colors: [], times: [] }, e.data.forEach((h, d) => {
178
+ const x = it({ num: 1, mode: this.props.mode, hasDataSource: this.hasData() });
179
+ this.CHART.colors.push(h.color || ot[d]), h.value !== void 0 && h.value !== "" ? this.CHART.rawValues.push(h.value) : o && t[d] !== void 0 && t[d] !== "" ? this.CHART.rawValues.push(t[d]) : this.CHART.rawValues.push(x[0]), this.CHART.items.push(h.name);
180
+ });
181
+ }
182
+ buildSeriesAndMax() {
183
+ const e = this.isPlanCompletionRateEnabled(), t = this.CHART.rawValues.map((s) => this.parseNumericRaw(s)).filter((s) => s !== null), i = t.length ? Math.max(...t) : 0;
184
+ return { seriesData: this.CHART.rawValues.map((s) => {
185
+ const c = this.parseNumericRaw(s);
186
+ return c === null ? null : e ? i <= 0 ? 0 : c / i * 100 : c;
187
+ }), maxNumeric: i };
188
+ }
189
+ getChartOption() {
190
+ const e = this, t = this.Style.value, i = this.CHART, o = this.isPlanCompletionRateEnabled(), { seriesData: s, maxNumeric: c } = this.buildSeriesAndMax(), h = {
191
+ pct: {
192
+ color: "#000000",
193
+ fontSize: t.textSize,
194
+ align: "right",
195
+ padding: [0, 0, 0, 10]
196
+ },
197
+ tim: {
198
+ color: t.textColor,
199
+ fontSize: Math.max(10, t.textSize - 1),
200
+ align: "right",
201
+ lineHeight: t.textSize * 1.2
202
+ }
203
+ };
204
+ i.colors.forEach((n, p) => {
205
+ h[`raw${p}`] = {
206
+ color: n || "#5470c6",
207
+ fontSize: t.textSize,
208
+ align: "right",
209
+ fontWeight: 500
210
+ };
211
+ });
212
+ const d = (n) => {
213
+ const p = this.resolveBarItemIndex(n), C = i.rawValues[p], w = i.times[p], g = w ? `
214
+ {tim|${v(w)}}` : "";
215
+ if (o && c > 0) {
216
+ const M = this.parseNumericRaw(C), B = v(String(C)), W = M !== null && c > 0 ? `${Math.round(M / c * 100)}%` : "";
217
+ return `{raw${p}|${B}}{pct|${v(W)}}${g}`;
218
+ }
219
+ return `{raw${p}|${v(String(C))}}${g}`;
220
+ }, x = 108, E = (n) => {
221
+ var w, g;
222
+ const p = (g = (w = e.chartObj) == null ? void 0 : w.getWidth()) != null ? g : 0;
223
+ return !p || !n.labelRect ? {} : {
224
+ x: p - 12,
225
+ y: n.labelRect.y + n.labelRect.height / 2,
226
+ verticalAlign: "middle",
227
+ align: "right"
228
+ };
229
+ }, k = t.direction === "x" ? t.right + x : t.right;
230
+ let u = {
231
+ grid: { top: t.top, bottom: t.bottom, left: t.left, right: k, containLabel: !1 },
232
+ tooltip: {
233
+ show: !0,
234
+ formatter: (n) => {
235
+ const p = this.resolveBarItemIndex(n), C = i.rawValues[p], w = this.parseNumericRaw(C);
236
+ let g = `${n.name}:`;
237
+ return o && c > 0 && w !== null ? g += `${C}(${Math.round(w / c * 100)}%)` : g += String(C), i.times[p] ? `${i.times[p]}
238
+ ${g}` : g;
239
+ }
240
+ },
241
+ xAxis: {
242
+ max: "dataMax",
243
+ axisLine: { show: !0, color: t.textColor },
244
+ axisTick: { show: !0 },
245
+ splitLine: { lineStyle: {} },
246
+ axisLabel: {
247
+ color: t.textColor,
248
+ fontSize: t.textSize,
249
+ formatter: (n) => n.length > 4 ? n.substr(0, 4) : n
250
+ }
251
+ },
252
+ yAxis: {
253
+ axisLabel: {
254
+ formatter: (n) => n.length > 5 ? n.substr(0, 5) + `
255
+ ` + n.substr(5) : n,
256
+ color: t.textColor,
257
+ fontSize: t.textSize
258
+ },
259
+ axisLine: { lineStyle: { color: t.textColor } },
260
+ splitLine: { lineStyle: {} },
261
+ animationDuration: 300,
262
+ animationDurationUpdate: 300
263
+ },
264
+ series: [{
265
+ realtimeSort: t.realSort,
266
+ type: "bar",
267
+ barWidth: t.barWidth + "%",
268
+ data: s,
269
+ labelLayout: E,
270
+ label: {
271
+ show: !0,
272
+ position: "right",
273
+ align: "right",
274
+ verticalAlign: "middle",
275
+ valueAnimation: !0,
276
+ color: t.textColor,
277
+ fontSize: t.textSize,
278
+ rich: h,
279
+ formatter: d
280
+ },
281
+ itemStyle: { color: (n) => i.colors[this.resolveBarItemIndex(n)] || "#5470c6" }
282
+ }],
283
+ animationDuration: 0,
284
+ animationDurationUpdate: 500,
285
+ animationEasing: "linear",
286
+ animationEasingUpdate: "linear"
287
+ };
288
+ return t.direction === "x" ? (u.yAxis.data = i.items, t.realSort && (u.yAxis.inverse = t.sortType === "desc"), u.series[0].label.position = "right", u.series[0].label.align = "right", u.xAxis.splitLine.lineStyle.type = "dashed", o && c > 0 && (u.xAxis.max = 100, u.xAxis.axisLabel.formatter = (n) => `${n}%`)) : (u.xAxis.data = i.items, t.realSort && (u.xAxis.inverse = t.sortType === "asc"), u.series[0].label.position = "top", u.series[0].label.align = "right", u.yAxis.splitLine.lineStyle.type = "dashed", delete u.yAxis.type, o && c > 0 && (u.yAxis.max = 100, u.yAxis.axisLabel.formatter = (n) => `${n}%`)), u;
289
+ }
290
+ setSocketData(e) {
291
+ if (!this.hasData() || !e || !this.chartObj) return;
292
+ const { data: t } = this.props.conf;
293
+ this.CHART.rawValues = [], this.CHART.times = [], t.forEach((i) => {
294
+ const o = this.extractDataValue(e, i.fv), s = e.datetime || "";
295
+ this.CHART.rawValues.push(o != null ? o : "--"), this.CHART.times.push(s);
296
+ }), this.chartObj.setOption(this.getChartOption(), !0);
297
+ }
298
+ }
299
+ const S = new R(a, "raceBar");
300
+ S.setupLifecycle();
301
+ const A = S.getStyle(), y = S.getEchartId(), f = a.conf, { t: b } = et(), D = U(() => {
302
+ var o;
303
+ const r = ((o = a.conf) == null ? void 0 : o.common) || {}, e = String(r.valueUnit || "").trim(), t = !!r.showPlanCompletionRate, i = [];
304
+ return e && i.push(e), t && i.push(b("component.options.showPlanCompletionRate")), i.join(" / ");
305
+ }), F = U(() => {
306
+ const r = at(a.conf.options);
307
+ return r.display === "none" ? r : O(T({}, r), {
308
+ display: "flex",
309
+ alignItems: "center",
310
+ gap: "8px",
311
+ textAlign: "initial"
312
+ });
313
+ }), j = U(() => {
314
+ var e;
315
+ const r = ((e = a.conf) == null ? void 0 : e.options) || {};
316
+ return {
317
+ flex: "1",
318
+ minWidth: 0,
319
+ overflow: "hidden",
320
+ textOverflow: "ellipsis",
321
+ whiteSpace: "nowrap",
322
+ color: l(r, "titleColor", "#111"),
323
+ fontSize: `${l(r, "titleSize", 14)}px`,
324
+ fontWeight: l(r, "titleWeight", "bold"),
325
+ textAlign: l(r, "titleAlign", "left")
326
+ };
327
+ });
328
+ return (r, e) => (H(), I("div", {
329
+ class: "mix-component",
330
+ style: $({ background: L(A).bgColor, borderRadius: `${L(A).radiusSize}px` })
331
+ }, [
332
+ _("div", {
333
+ class: "mix-title",
334
+ style: $(F.value)
335
+ }, [
336
+ _("span", {
337
+ class: "mix-title-caption",
338
+ style: $(j.value)
339
+ }, N(L(f).caption || L(f).name), 5),
340
+ D.value ? (H(), I("span", gt, N(D.value), 1)) : Q("", !0)
341
+ ], 4),
342
+ _("div", xt, [
343
+ _("div", {
344
+ class: "w-full h-full",
345
+ id: L(y)
346
+ }, null, 8, Ct)
347
+ ]),
348
+ Y(r.$slots, "default", {}, void 0, !0)
349
+ ], 4));
350
+ }
351
+ })), Ht = /* @__PURE__ */ nt(At, [["__scopeId", "data-v-e8e32419"]]);
352
+ export {
353
+ Ht as default
354
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";var B=Object.defineProperty,F=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var q=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var $=(m,a,r)=>a in m?B(m,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):m[a]=r,T=(m,a)=>{for(var r in a||(a={}))q.call(a,r)&&$(m,r,a[r]);if(V)for(var r of V(a))W.call(a,r)&&$(m,r,a[r]);return m},O=(m,a)=>F(m,j(a));var z=(m,a,r)=>new Promise((w,R)=>{var y=g=>{try{b(r.next(g))}catch(L){R(L)}},A=g=>{try{b(r.throw(g))}catch(L){R(L)}},b=g=>g.done?w(g.value):Promise.resolve(g.value).then(y,A);b((r=r.apply(m,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),Z=require("./vue-i18n-BvHMBi_b.cjs"),_=require("./index-D8dh_6Qd.cjs"),X=require("./EChartComponentBase-D4wMej9X.cjs"),G=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),J=require("./install-DV5cEgNV.cjs"),K=require("./install-CltTFs4e.cjs"),Q=require("./install-C8buXQPI.cjs"),Y=require("./install-Ch5d8i37.cjs"),tt="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",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='基础规范'%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",it={key:0,class:"mix-title-unit"},nt={class:"mix-body"},ot=["id"],st={DEFAULT_ICON:tt,ACTIVE_ICON:et,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1},lt={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:50,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},at=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],rt=["name","fv","object_id","color"],ct=["mosaic"],ut={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},ht={DEFAULT:st,OPTIONS:lt,DATA:at,PARAMS:rt,SOURCE:ct,COMMON:ut},mt=s.defineComponent(O(T({},ht),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(m){E.use([J.install,K.install,E.install,Q.install,E.install$1,Y.install]);const a=m;function r(c,e,t){const i=c==null?void 0:c[e];return i==null?t:typeof i=="object"&&"value"in i?i.value:i}function w(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class R extends X.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 p,f,C;this.ensureCommonFields();const e=this.props.conf.common,t=(p=this.props.conf.data)==null?void 0:p[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=(f=this.props.conf.options)==null?void 0:f.valueUnit,n=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&n!==void 0&&n!==null&&String(n).trim()!==""&&(e.valueUnit=String(n));const l=(C=this.props.conf.options)==null?void 0:C.showPlanCompletionRate,u=l!=null&&typeof l=="object"&&"value"in l?l.value:l;e.showPlanCompletionRate===!1&&u===!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 l of i){if(l==null||l==="")continue;const u=t.indexOf(String(l));if(u!==-1)return u}const n=e==null?void 0:e.dataIndex;return typeof n=="number"&&n>=0&&n<t.length?n:Math.min(Math.max(0,n!=null?n:0),Math.max(0,t.length-1))}extractStyles(){return O(T({},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 s.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var l,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,n=t.length===((l=e.data)==null?void 0:l.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((p,f)=>{var C;return p===((C=e.data[f])==null?void 0:C.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((p,f)=>{const C=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(p.color||_.COLORS[f]),p.value!==void 0&&p.value!==""?this.CHART.rawValues.push(p.value):n&&t[f]!==void 0&&t[f]!==""?this.CHART.rawValues.push(t[f]):this.CHART.rawValues.push(C[0]),this.CHART.items.push(p.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(l=>this.parseNumericRaw(l)).filter(l=>l!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(l=>{const u=this.parseNumericRaw(l);return u===null?null:e?i<=0?0:u/i*100:u}),maxNumeric:i}}getChartOption(){const e=this,t=this.Style.value,i=this.CHART,n=this.isPlanCompletionRateEnabled(),{seriesData:l,maxNumeric:u}=this.buildSeriesAndMax(),p={pct:{color:"#000000",fontSize:t.textSize,align:"right",padding:[0,0,0,10]},tim:{color:t.textColor,fontSize:Math.max(10,t.textSize-1),align:"right",lineHeight:t.textSize*1.2}};i.colors.forEach((o,d)=>{p[`raw${d}`]={color:o||"#5470c6",fontSize:t.textSize,align:"right",fontWeight:500}});const f=o=>{const d=this.resolveBarItemIndex(o),v=i.rawValues[d],S=i.times[d],x=S?`
2
+ {tim|${w(S)}}`:"";if(n&&u>0){const M=this.parseNumericRaw(v),H=w(String(v)),k=M!==null&&u>0?`${Math.round(M/u*100)}%`:"";return`{raw${d}|${H}}{pct|${w(k)}}${x}`}return`{raw${d}|${w(String(v))}}${x}`},C=108,U=o=>{var S,x;const d=(x=(S=e.chartObj)==null?void 0:S.getWidth())!=null?x:0;return!d||!o.labelRect?{}:{x:d-12,y:o.labelRect.y+o.labelRect.height/2,verticalAlign:"middle",align:"right"}},I=t.direction==="x"?t.right+C:t.right;let h={grid:{top:t.top,bottom:t.bottom,left:t.left,right:I,containLabel:!1},tooltip:{show:!0,formatter:o=>{const d=this.resolveBarItemIndex(o),v=i.rawValues[d],S=this.parseNumericRaw(v);let x=`${o.name}:`;return n&&u>0&&S!==null?x+=`${v}(${Math.round(S/u*100)}%)`:x+=String(v),i.times[d]?`${i.times[d]}
3
+ ${x}`:x}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,formatter:o=>o.length>4?o.substr(0,4):o}},yAxis:{axisLabel:{formatter:o=>o.length>5?o.substr(0,5)+`
4
+ `+o.substr(5):o,color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[{realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:l,labelLayout:U,label:{show:!0,position:"right",align:"right",verticalAlign:"middle",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:p,formatter:f},itemStyle:{color:o=>i.colors[this.resolveBarItemIndex(o)]||"#5470c6"}}],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return t.direction==="x"?(h.yAxis.data=i.items,t.realSort&&(h.yAxis.inverse=t.sortType==="desc"),h.series[0].label.position="right",h.series[0].label.align="right",h.xAxis.splitLine.lineStyle.type="dashed",n&&u>0&&(h.xAxis.max=100,h.xAxis.axisLabel.formatter=o=>`${o}%`)):(h.xAxis.data=i.items,t.realSort&&(h.xAxis.inverse=t.sortType==="asc"),h.series[0].label.position="top",h.series[0].label.align="right",h.yAxis.splitLine.lineStyle.type="dashed",delete h.yAxis.type,n&&u>0&&(h.yAxis.max=100,h.yAxis.axisLabel.formatter=o=>`${o}%`)),h}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],this.CHART.times=[],t.forEach(i=>{const n=this.extractDataValue(e,i.fv),l=e.datetime||"";this.CHART.rawValues.push(n!=null?n:"--"),this.CHART.times.push(l)}),this.chartObj.setOption(this.getChartOption(),!0)}}const y=new R(a,"raceBar");y.setupLifecycle();const A=y.getStyle(),b=y.getEchartId(),g=a.conf,{t:L}=Z.useI18n(),D=s.computed(()=>{var n;const c=((n=a.conf)==null?void 0:n.common)||{},e=String(c.valueUnit||"").trim(),t=!!c.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),N=s.computed(()=>{const c=G.generateTitleStyle(a.conf.options);return c.display==="none"?c:O(T({},c),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),P=s.computed(()=>{var e;const c=((e=a.conf)==null?void 0:e.options)||{};return{flex:"1",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:r(c,"titleColor","#111"),fontSize:`${r(c,"titleSize",14)}px`,fontWeight:r(c,"titleWeight","bold"),textAlign:r(c,"titleAlign","left")}});return(c,e)=>(s.openBlock(),s.createElementBlock("div",{class:"mix-component",style:s.normalizeStyle({background:s.unref(A).bgColor,borderRadius:`${s.unref(A).radiusSize}px`})},[s.createElementVNode("div",{class:"mix-title",style:s.normalizeStyle(N.value)},[s.createElementVNode("span",{class:"mix-title-caption",style:s.normalizeStyle(P.value)},s.toDisplayString(s.unref(g).caption||s.unref(g).name),5),D.value?(s.openBlock(),s.createElementBlock("span",it,s.toDisplayString(D.value),1)):s.createCommentVNode("",!0)],4),s.createElementVNode("div",nt,[s.createElementVNode("div",{class:"w-full h-full",id:s.unref(b)},null,8,ot)]),s.renderSlot(c.$slots,"default",{},void 0,!0)],4))}})),pt=_._export_sfc(mt,[["__scopeId","data-v-e8e32419"]]);exports.default=pt;
@@ -11,8 +11,8 @@ var m = (o, t, e) => t in o ? y(o, t, { enumerable: !0, configurable: !0, writab
11
11
  return o;
12
12
  }, h = (o, t) => O(o, _(t));
13
13
  import { defineComponent as E, computed as Z, openBlock as k, createElementBlock as z, normalizeStyle as g, unref as r, createElementVNode as c, toDisplayString as F, renderSlot as N } from "vue";
14
- import { _ as T } from "./index-BSsB7QzO.js";
15
- import { E as j } from "./EChartComponentBase-dEfA3X9b.js";
14
+ import { _ as T } from "./index-Bdq33405.js";
15
+ import { E as j } from "./EChartComponentBase-CAabYXSj.js";
16
16
  import { g as A } from "./titleStyle-BT5GlpAb.js";
17
17
  import { i as D } from "./install-9_V0b6vf.js";
18
18
  import { u as V, i as I, a as R } from "./installCanvasRenderer-CLT2hquJ.js";