mixdashboards 1.1.13 → 1.1.14

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 (360) hide show
  1. package/dist/{AgGridTable-BjGMC3qC.js → AgGridTable-Cr7AVD7d.js} +1 -1
  2. package/dist/{AgGridTable-Bi7O66-r.cjs → AgGridTable-DU6yvOpb.cjs} +1 -1
  3. package/dist/{BaseComponent-9njJjeix.cjs → BaseComponent-CPat9pFl.cjs} +1 -1
  4. package/dist/{BaseComponent-B38Blgw3.js → BaseComponent-DMJmgFIo.js} +3 -3
  5. package/dist/{EChartComponentBase-BwbycwwW.cjs → EChartComponentBase-Cj_dO_ES.cjs} +1 -1
  6. package/dist/{EChartComponentBase-DJScukmS.js → EChartComponentBase-DrDdGF1C.js} +2 -2
  7. package/dist/{EmergencyPlanPanel-BxzP1xYW.cjs → EmergencyPlanPanel-B_zAk2e3.cjs} +1 -1
  8. package/dist/{EmergencyPlanPanel-D3GF-xQQ.js → EmergencyPlanPanel-TBKoqIa0.js} +1 -1
  9. package/dist/{HistoryPlanDialog-DQXCUsy4.cjs → HistoryPlanDialog-92_V1nQB.cjs} +1 -1
  10. package/dist/{HistoryPlanDialog-DpaiRZgi.js → HistoryPlanDialog-HKCYJnCh.js} +1 -1
  11. package/dist/{MixiotAppDetailPage-BGfF3qrm.js → MixiotAppDetailPage-BQZhhM3Q.js} +1 -1
  12. package/dist/{MixiotAppDetailPage-CL1Sd9HJ.cjs → MixiotAppDetailPage-wddBsvgj.cjs} +1 -1
  13. package/dist/{MonitoringMap-Wzsw3hVH.cjs → MonitoringMap-Dh9TWEoX.cjs} +1 -1
  14. package/dist/{MonitoringMap-DQkO116Z.js → MonitoringMap-wOD2eWiY.js} +2 -2
  15. package/dist/{UniverSheet-Bne7JZyr.cjs → UniverSheet-B76C9C3z.cjs} +1 -1
  16. package/dist/{UniverSheet-Cd2a9LPx.js → UniverSheet-BxGZmiAP.js} +2 -2
  17. package/dist/{accelerationChart-BJhVC_l5.cjs → accelerationChart-BHspqWCw.cjs} +1 -1
  18. package/dist/{accelerationChart-BUsbSkwA.js → accelerationChart-T-LB2UqH.js} +2 -2
  19. package/dist/{actionItem-DxB7IvtW.cjs → actionItem-CD6E8s6n.cjs} +1 -1
  20. package/dist/{actionItem-B3B4MFcW.js → actionItem-Ch9jL-8V.js} +2 -2
  21. package/dist/{alarmLevelChart-DC_hx4Pn.cjs → alarmLevelChart-Chh-SGw4.cjs} +1 -1
  22. package/dist/{alarmLevelChart-DC-q2AgI.js → alarmLevelChart-DuQtzr0i.js} +2 -2
  23. package/dist/{alertTable-CHfA0TR-.cjs → alertTable-CnZCtID1.cjs} +1 -1
  24. package/dist/{alertTable-CGRDnNPw.js → alertTable-DoE1UTWF.js} +2 -2
  25. package/dist/{aliasObjectSelectorDemo-DGoLPE4i.cjs → aliasObjectSelectorDemo-BKLLJY3E.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-DuGQCEcG.js → aliasObjectSelectorDemo-CAKTzbqy.js} +1 -1
  27. package/dist/{annualRainfallChart-Dr8KKYOG.js → annualRainfallChart-C06ujiLk.js} +2 -2
  28. package/dist/{annualRainfallChart-CLxVqN5Z.cjs → annualRainfallChart-CjaFNTTM.cjs} +1 -1
  29. package/dist/{aqi-BmYGSf2e.cjs → aqi-B6CEx8sE.cjs} +1 -1
  30. package/dist/{aqi-rBhSWA_m.js → aqi-CZ2gjTXo.js} +2 -2
  31. package/dist/{aqiIndass-Cpqau5M0.cjs → aqiIndass-CUuczycJ.cjs} +1 -1
  32. package/dist/{aqiIndass-DqJBc799.js → aqiIndass-CV6JefRZ.js} +2 -2
  33. package/dist/{areaDeformCurve-B924KVWX.cjs → areaDeformCurve-C60FahWu.cjs} +1 -1
  34. package/dist/{areaDeformCurve-DpHWg6pf.js → areaDeformCurve-CyG8zh6J.js} +2 -2
  35. package/dist/{arrayCard-C7anoYI-.js → arrayCard-BSI7KqPn.js} +2 -2
  36. package/dist/{arrayCard-Bzjg3HKN.cjs → arrayCard-CLu8UfQy.cjs} +1 -1
  37. package/dist/{audio-DTiS2piX.js → audio-Q13sznt_.js} +2 -2
  38. package/dist/{audio-aADcgdZP.cjs → audio-zKQ44FKN.cjs} +1 -1
  39. package/dist/{bar-D32xICYZ.js → bar-BISEWCfM.js} +2 -2
  40. package/dist/{bar-DqY55XnC.cjs → bar-CNb34Izd.cjs} +1 -1
  41. package/dist/{basicShapeToolbox-D8q86CzB.js → basicShapeToolbox--WQ0UXKa.js} +2 -2
  42. package/dist/{basicShapeToolbox-BvJjH4fV.cjs → basicShapeToolbox-BkPIElK7.cjs} +1 -1
  43. package/dist/{bmp-DU3vm7yj.js → bmp-Ohs2XiTO.js} +2 -2
  44. package/dist/{bmp-DIFGLoNl.cjs → bmp-fBe7llKN.cjs} +1 -1
  45. package/dist/{box-C8pOZXek.cjs → box-BZGYB00G.cjs} +1 -1
  46. package/dist/{box-DTQKGR9g.js → box-UAgHgnGs.js} +2 -2
  47. package/dist/{chartConfigPanel-Bz82sVyH.js → chartConfigPanel-Bw8uepae.js} +1 -1
  48. package/dist/{chartConfigPanel-D4vk7zWs.cjs → chartConfigPanel-WLvSpg3a.cjs} +1 -1
  49. package/dist/{circleBar-B48h_-uK.cjs → circleBar-B1JVQluC.cjs} +1 -1
  50. package/dist/{circleBar-ClO05bgq.js → circleBar-BUtmqZym.js} +2 -2
  51. package/dist/{clock-DB94wQje.cjs → clock-BNJFjC85.cjs} +1 -1
  52. package/dist/{clock-D8ZXhy53.js → clock-DhNe_L29.js} +2 -2
  53. package/dist/{clt-cxeCTOaA.cjs → clt-DS09EYqd.cjs} +1 -1
  54. package/dist/{clt-BX0SNGZr.js → clt-DgElAJo_.js} +2 -2
  55. package/dist/{cmc-BvnYrQrR.cjs → cmc-YYd7u-QY.cjs} +1 -1
  56. package/dist/{cmc-Co13D559.js → cmc-uYTH_bql.js} +2 -2
  57. package/dist/{cmp-B4cYCR4p.js → cmp-DwNUtgiD.js} +2 -2
  58. package/dist/{cmp-Dd56EQ09.cjs → cmp-_LIlSPJ1.cjs} +1 -1
  59. package/dist/{conclusionCard-Bla25-qd.js → conclusionCard-2e7U38q9.js} +2 -2
  60. package/dist/{conclusionCard-Cd3DoD1l.cjs → conclusionCard-BJCT66AX.cjs} +1 -1
  61. package/dist/{controlList-CyT_LYgr.cjs → controlList-Cm7vrNpm.cjs} +1 -1
  62. package/dist/{controlList-Dx4wSpA7.js → controlList-J_DItB3R.js} +3 -3
  63. package/dist/{controlRecordList-DsxYHRrs.cjs → controlRecordList-DwH-MkK_.cjs} +1 -1
  64. package/dist/{controlRecordList-BAI_15ZN.js → controlRecordList-GGUGUMMv.js} +3 -3
  65. package/dist/{controlRecordListAPP-BQlABx3f.js → controlRecordListAPP-C4LPtUXx.js} +2 -2
  66. package/dist/{controlRecordListAPP-Zfiwcrmq.cjs → controlRecordListAPP-CWJlq6Q4.cjs} +1 -1
  67. package/dist/{crd-IsqkYOAy.js → crd-DqDMG-hx.js} +56 -57
  68. package/dist/crd-W0OZyu6Q.cjs +1 -0
  69. package/dist/{ctrBtn-C3OqkyNS.cjs → ctrBtn-CWT3PVMG.cjs} +1 -1
  70. package/dist/{ctrBtn-LwuY-nVR.js → ctrBtn-DSqCP9tA.js} +3 -3
  71. package/dist/{ctrSet-B0nYCdwh.cjs → ctrSet-BKppFnu1.cjs} +1 -1
  72. package/dist/{ctrSet-Qb5XEdD4.js → ctrSet-D-bAunly.js} +3 -3
  73. package/dist/{ctrSwitch-Bps4Ak15.cjs → ctrSwitch-BFJ-KrvY.cjs} +1 -1
  74. package/dist/{ctrSwitch-B3jo3Gx0.js → ctrSwitch-CvuXs2UU.js} +3 -3
  75. package/dist/{dataManagement-CVHalRKp.js → dataManagement-BorUl90l.js} +2 -2
  76. package/dist/{dataManagement-BFxVtU33.cjs → dataManagement-C13-RFUx.cjs} +1 -1
  77. package/dist/{dataReport-Bk79cBkV.cjs → dataReport-Bur1aIJL.cjs} +1 -1
  78. package/dist/{dataReport-B2AiDMdM.js → dataReport-F8EPUK0m.js} +2 -2
  79. package/dist/{dataTable-Dh7s14jM.cjs → dataTable-B1uLxNVm.cjs} +1 -1
  80. package/dist/{dataTable-D9sSJRQn.js → dataTable-Digc4UYG.js} +1 -1
  81. package/dist/{datetime-CEKzNAlD.js → datetime-B2HzR4oW.js} +2 -2
  82. package/dist/{datetime-C25d1bAc.cjs → datetime-JquezhC4.cjs} +1 -1
  83. package/dist/{deepClusterSlipSurface-DODVh-Qw.js → deepClusterSlipSurface-C5KWD61Q.js} +2 -2
  84. package/dist/{deepClusterSlipSurface-BLZL2xX6.cjs → deepClusterSlipSurface-LiAhIFTL.cjs} +1 -1
  85. package/dist/{deepDataMatrix-D_NPV2sQ.cjs → deepDataMatrix-Cf_RcM6k.cjs} +1 -1
  86. package/dist/{deepDataMatrix-9iClruS0.js → deepDataMatrix-CrVKo32h.js} +2 -2
  87. package/dist/{deepDisplacement3D-C6puNK1m.cjs → deepDisplacement3D-CFGsM61z.cjs} +1 -1
  88. package/dist/{deepDisplacement3D-C5YMqHiD.js → deepDisplacement3D-CqpBMdR9.js} +2 -2
  89. package/dist/{deepDisplacementChart-DEn2yqGO.js → deepDisplacementChart-BltwfhE1.js} +3 -3
  90. package/dist/{deepDisplacementChart-DhQO428W.cjs → deepDisplacementChart-Df3FUPCh.cjs} +1 -1
  91. package/dist/{deepDisplacementChart-D-dqPlzq.cjs → deepDisplacementChart-DkjQ4fkv.cjs} +1 -1
  92. package/dist/{deepDisplacementChart-9sQF6tFO.js → deepDisplacementChart-qEVHkptV.js} +2 -2
  93. package/dist/{deepDisplacementView-tzX-vzxO.cjs → deepDisplacementView-CiqJXRCI.cjs} +1 -1
  94. package/dist/{deepDisplacementView-Cux6lFtG.js → deepDisplacementView-a9DN060j.js} +1 -1
  95. package/dist/{deepNodeTemperatureChart-Cyfnw2BR.cjs → deepNodeTemperatureChart-BtcEmexL.cjs} +1 -1
  96. package/dist/{deepNodeTemperatureChart--GH8-4O7.js → deepNodeTemperatureChart-t6-mnDzl.js} +2 -2
  97. package/dist/{deepTangentAngleChart-Dae_3j30.js → deepTangentAngleChart-ZzdLeEzC.js} +2 -2
  98. package/dist/{deepTangentAngleChart-DPMDFXiA.cjs → deepTangentAngleChart-gewuzLOU.cjs} +1 -1
  99. package/dist/{deepTemperatureField-B3Eu4zqv.cjs → deepTemperatureField-BxIxt-TJ.cjs} +1 -1
  100. package/dist/{deepTemperatureField-Cr2e_Ytp.js → deepTemperatureField-yLmp7ory.js} +3 -3
  101. package/dist/{deepTrendChart-8fniZ16K.js → deepTrendChart-BiPoTZsv.js} +2 -2
  102. package/dist/{deepTrendChart-BPYqojQ2.cjs → deepTrendChart-Crqx6O9C.cjs} +1 -1
  103. package/dist/{deviceOnlineStatus-mJ0KVMo4.cjs → deviceOnlineStatus-DiK6L6te.cjs} +1 -1
  104. package/dist/{deviceOnlineStatus-DP7-u5lC.js → deviceOnlineStatus-vMr4Ttoe.js} +2 -2
  105. package/dist/{deviceStatus-B0AxN-cY.cjs → deviceStatus-BWr8xMGE.cjs} +1 -1
  106. package/dist/{deviceStatus-Ih0jQNYO.js → deviceStatus-DQ1mH-tr.js} +2 -2
  107. package/dist/{displacementDataTable-BbZjdMtX.js → displacementDataTable-C1YNWIwQ.js} +2 -2
  108. package/dist/{displacementDataTable-Dkka_jGJ.cjs → displacementDataTable-CX9Hk2mo.cjs} +1 -1
  109. package/dist/{displacementTrajectoryChart-DDwm-jr2.cjs → displacementTrajectoryChart-Bxiam7z3.cjs} +1 -1
  110. package/dist/{displacementTrajectoryChart-BZDSkYoZ.js → displacementTrajectoryChart-DSPVm9mn.js} +2 -2
  111. package/dist/{displacementTrendChart-CUeVa58Q.cjs → displacementTrendChart-4z9j3til.cjs} +1 -1
  112. package/dist/{displacementTrendChart-DZZaVi86.js → displacementTrendChart-DM18rfxN.js} +2 -2
  113. package/dist/{dxf-BOfmTSO8.cjs → dxf-BIvGNyQr.cjs} +1 -1
  114. package/dist/{dxf-DYC74yWV.js → dxf-CZdTRr3-.js} +2 -2
  115. package/dist/{dzc-DUFiz7a_.cjs → dzc-BrR_-vKI.cjs} +1 -1
  116. package/dist/{dzc-BU7yYW4I.js → dzc-b6JbaxSz.js} +2 -2
  117. package/dist/{emergencyPlan-DDb6j7YU.cjs → emergencyPlan-CIHoGe6V.cjs} +1 -1
  118. package/dist/{emergencyPlan-DabL46QK.js → emergencyPlan-Gi2_uHgX.js} +3 -3
  119. package/dist/{evn-DhdColcF.js → evn-B0lZlMO4.js} +2 -2
  120. package/dist/{evn-DrreVqnm.cjs → evn-_5PRwXFL.cjs} +1 -1
  121. package/dist/{evolutionChart-aedDj0mQ.js → evolutionChart-Cg14O4jy.js} +3 -3
  122. package/dist/{evolutionChart-QuGAgjXo.cjs → evolutionChart-xsho6XVP.cjs} +1 -1
  123. package/dist/{fileViewer-oBpWIjGb.js → fileViewer-Cyrv561L.js} +2 -2
  124. package/dist/{fileViewer-CvNnUxUK.cjs → fileViewer-z1v9eLyT.cjs} +1 -1
  125. package/dist/{filterBar-CwHODFoy.cjs → filterBar-BUNhPZd2.cjs} +1 -1
  126. package/dist/{filterBar-DYpEssxC.js → filterBar-DB4bnLZ0.js} +2 -2
  127. package/dist/{fireCombustionCurve-lu2qH6_b.cjs → fireCombustionCurve-Dej-lndv.cjs} +1 -1
  128. package/dist/{fireCombustionCurve-wbKsWk4E.js → fireCombustionCurve-S5aOdnbU.js} +3 -3
  129. package/dist/{fireFilterBar-9_fqGo2q.js → fireFilterBar-CtBV9WL_.js} +2 -2
  130. package/dist/{fireFilterBar-B8su74tt.cjs → fireFilterBar-cB6h_XQy.cjs} +1 -1
  131. package/dist/{fireHistoryTable-pOJz1_Rp.cjs → fireHistoryTable-DOCuy-HR.cjs} +1 -1
  132. package/dist/{fireHistoryTable-C1C95uYN.js → fireHistoryTable-DZZOy0kR.js} +2 -2
  133. package/dist/{gag-BGUeQKJJ.js → gag-B9dx9otC.js} +2 -2
  134. package/dist/{gag-LSkHPD7f.cjs → gag-DkKmJPZ1.cjs} +1 -1
  135. package/dist/{gasStationList-DJTrXjkv.cjs → gasStationList-DisLh5Uj.cjs} +1 -1
  136. package/dist/{gasStationList-4TtBLsqC.js → gasStationList-X2Asa789.js} +2 -2
  137. package/dist/{geo3dViewer-CK89hYK7.cjs → geo3dViewer-CBt6ecb8.cjs} +1 -1
  138. package/dist/{geo3dViewer-DIjv75YP.js → geo3dViewer-CiKzVKzd.js} +3 -3
  139. package/dist/{glbModel-IOIVpCjq.js → glbModel-BnnNfJu8.js} +2 -2
  140. package/dist/{glbModel-BDgY9S4f.cjs → glbModel-vxOxcBfY.cjs} +1 -1
  141. package/dist/{globalObjectSelector-B2dkzNyk.js → globalObjectSelector-BuY_B24m.js} +1 -1
  142. package/dist/{globalObjectSelector-N7s0yyOp.cjs → globalObjectSelector-CGjUMfxb.cjs} +1 -1
  143. package/dist/{gnssFilterBar-BF_tbN4_.js → gnssFilterBar-BAjtjr4i.js} +2 -2
  144. package/dist/{gnssFilterBar-8eSkGWMH.cjs → gnssFilterBar-BFA38iLP.cjs} +1 -1
  145. package/dist/{gnssHistoryTable-DUjRjXoS.js → gnssHistoryTable-Djvc6Jdb.js} +2 -2
  146. package/dist/{gnssHistoryTable-X_cgOa6r.cjs → gnssHistoryTable-WkPj3f6N.cjs} +1 -1
  147. package/dist/{gnssMapView-DnF2bYAD.cjs → gnssMapView-BH3RBHEQ.cjs} +2 -2
  148. package/dist/{gnssMapView-BnwPDey9.js → gnssMapView-DeJLZEJb.js} +4 -4
  149. package/dist/{gnssSectionProfile-D0sbRu3A.js → gnssSectionProfile-CU_czVAF.js} +2 -2
  150. package/dist/{gnssSectionProfile-DoEXHKTy.cjs → gnssSectionProfile-xaVKtgrn.cjs} +1 -1
  151. package/dist/{gnssTimeSeriesChart-glTixABx.js → gnssTimeSeriesChart-BvSyllnp.js} +2 -2
  152. package/dist/{gnssTimeSeriesChart-Csm6PwRv.cjs → gnssTimeSeriesChart-hpXlRHme.cjs} +1 -1
  153. package/dist/{gnssXYTrajectory-4c8JDd_b.cjs → gnssXYTrajectory-CIC6gn9B.cjs} +1 -1
  154. package/dist/{gnssXYTrajectory-BMCO0sb0.js → gnssXYTrajectory-Dmdq-PnT.js} +2 -2
  155. package/dist/{grd-BTGTCp0z.js → grd-B3_37W5r.js} +2 -2
  156. package/dist/{grd-D1enzYOI.cjs → grd-BNh82cJv.cjs} +1 -1
  157. package/dist/{grdIndass-Dn62HL6y.js → grdIndass-C2_cKlqo.js} +2 -2
  158. package/dist/{grdIndass-B6fwa_k8.cjs → grdIndass-UL5YpOVN.cjs} +1 -1
  159. package/dist/{grg-B5128EcW.cjs → grg-RBfTeprb.cjs} +1 -1
  160. package/dist/{grg-DMOF8h8j.js → grg-l-LZiFIi.js} +2 -2
  161. package/dist/{gridview-Ddin99YO.cjs → gridview-DQ3UYvRc.cjs} +1 -1
  162. package/dist/{gridview-Dewc5Eax.js → gridview-DdVcRQDa.js} +2 -2
  163. package/dist/{groundwaterFilterBar-2uj_Hf_Q.cjs → groundwaterFilterBar-CNt_-xoQ.cjs} +1 -1
  164. package/dist/{groundwaterFilterBar-mukvYHDm.js → groundwaterFilterBar-DBMk3gox.js} +2 -2
  165. package/dist/{groundwaterProfileChart-BPTP8WBi.js → groundwaterProfileChart-CJeACUDa.js} +3 -3
  166. package/dist/{groundwaterProfileChart-DDVsfzyr.cjs → groundwaterProfileChart-DPgBwHGo.cjs} +2 -2
  167. package/dist/{groundwaterTimeCurve-Zzn-sEsW.cjs → groundwaterTimeCurve-BJ2-dRCa.cjs} +1 -1
  168. package/dist/{groundwaterTimeCurve-jtQFr0hU.js → groundwaterTimeCurve-DPQlZknH.js} +3 -3
  169. package/dist/{groupCard-B3fp05QD.js → groupCard-CaoCu7P5.js} +2 -2
  170. package/dist/{groupCard-DWjFdiH0.cjs → groupCard-yyzjr8U4.cjs} +1 -1
  171. package/dist/{headerBar-B6lX3WST.cjs → headerBar-B_XVnPEY.cjs} +1 -1
  172. package/dist/{headerBar-BkpSQMNy.js → headerBar-UZR69ix4.js} +2 -2
  173. package/dist/{history-DqPjJP_E.cjs → history-DHsGJFOf.cjs} +1 -1
  174. package/dist/{history-DgSlSTUD.js → history-DptcYt8k.js} +1 -1
  175. package/dist/{index-Bo49zvKb.cjs → index-D9ehIVda.cjs} +8 -8
  176. package/dist/{index-BbXEpgom.js → index-nru6zK5E.js} +1560 -1549
  177. package/dist/{insarDeformChart-8UyVWXTx.cjs → insarDeformChart-D5y2pi6R.cjs} +1 -1
  178. package/dist/{insarDeformChart-DNBHbVuk.js → insarDeformChart-DYrt3aNq.js} +2 -2
  179. package/dist/{insarImageViewer-B8PhDcuG.cjs → insarImageViewer-BGP-ktoS.cjs} +1 -1
  180. package/dist/{insarImageViewer-BeykgIJy.js → insarImageViewer-DuXOrFV0.js} +2 -2
  181. package/dist/{kds-CS473Sia.js → kds-DQW17H8R.js} +2 -2
  182. package/dist/{kds-BJwYrjV_.cjs → kds-Dp4hx0W6.cjs} +1 -1
  183. package/dist/{kpiCard-OMuCQe7O.cjs → kpiCard-0aUt2U5z.cjs} +1 -1
  184. package/dist/{kpiCard-CNgj9P9s.js → kpiCard-DyO-3YLf.js} +2 -2
  185. package/dist/{landslideMap-NaGM5jJE.cjs → landslideMap-2yF_d4_7.cjs} +1 -1
  186. package/dist/{landslideMap-DMNcfDYF.js → landslideMap-D5U5hSkY.js} +3 -3
  187. package/dist/{landslideWarning-V1wB3aWq.cjs → landslideWarning-C2BZY-at.cjs} +1 -1
  188. package/dist/{landslideWarning-DU-dDiiS.js → landslideWarning-bIAgVIIX.js} +5 -5
  189. package/dist/{layerTabs-Bgi7pfof.js → layerTabs-C26xKIu6.js} +2 -2
  190. package/dist/{layerTabs-VfYlv6Ks.cjs → layerTabs-iEkQSuRJ.cjs} +1 -1
  191. package/dist/{leaflet-src-WG2ob5HA.cjs → leaflet-src-DGU8KhZD.cjs} +1 -1
  192. package/dist/{leaflet-src-4AJHN6it.js → leaflet-src-xderqfOz.js} +1 -1
  193. package/dist/{lerc-BDiJ3I_S.js → lerc-CCL-0sUH.js} +2 -2
  194. package/dist/{lerc-CEea2nO1.cjs → lerc-nnW6QG9P.cjs} +1 -1
  195. package/dist/{lin-B_rN6QBj.cjs → lin-psrIdmWq.cjs} +1 -1
  196. package/dist/{lin-BO1pGlXr.js → lin-qPc-DZV1.js} +2 -2
  197. package/dist/{linIndass-B7XnW5XO.cjs → linIndass-C3h0p0ok.cjs} +1 -1
  198. package/dist/{linIndass-BGpoCQ4j.js → linIndass-DHJqj7k0.js} +2 -2
  199. package/dist/{lst-BBl9nn63.js → lst-CI_bABXS.js} +2 -2
  200. package/dist/{lst-BeB_Gi9l.cjs → lst-D3Qmo7He.cjs} +1 -1
  201. package/dist/{manualEntry-C3qifAlP.js → manualEntry-C3A9qrDX.js} +2 -2
  202. package/dist/{manualEntry-BQVUqtm7.cjs → manualEntry-D7SZvGOp.cjs} +1 -1
  203. package/dist/{mapBackground-CDS60ZJC.js → mapBackground-BugTUIga.js} +3 -3
  204. package/dist/{mapBackground-D3-V7S-d.cjs → mapBackground-CYvUGNV6.cjs} +1 -1
  205. package/dist/{mappingList-B0jG2LlO.js → mappingList-70-e0OmS.js} +3 -3
  206. package/dist/{mappingList-DnoAuivo.cjs → mappingList-BJ-loWWS.cjs} +1 -1
  207. package/dist/{markdownViewer-BlXaqjhL.js → markdownViewer-BxSVHMco.js} +2 -2
  208. package/dist/{markdownViewer-BMkbW1Cl.cjs → markdownViewer-D_j1zaJM.cjs} +1 -1
  209. package/dist/materialFileUrl-DkrGz5LQ.cjs +1 -0
  210. package/dist/{materialFileUrl-hKqW_JAq.js → materialFileUrl-SyvwFB5E.js} +5 -4
  211. package/dist/{mix-control-modal-aUWGjwZP.cjs → mix-control-modal-CS-lOybT.cjs} +1 -1
  212. package/dist/{mix-control-modal-BEXucxt5.js → mix-control-modal-DvWbmJn_.js} +1 -1
  213. package/dist/{mixGrid-B5pKpGT3.cjs → mixGrid-BmZ5Qqa9.cjs} +1 -1
  214. package/dist/{mixGrid-DQf7U1_8.js → mixGrid-XI6dlQNw.js} +2 -2
  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-C6pxWuEr.js → mjpegCamera-BXrFeGm3.js} +2 -2
  219. package/dist/{mjpegCamera-CJgiIk0q.cjs → mjpegCamera-D2-Uc2EO.cjs} +1 -1
  220. package/dist/{monitorAlert-BPd1b_Cx.cjs → monitorAlert-CnP_gjvI.cjs} +1 -1
  221. package/dist/{monitorAlert-ZNF5siqY.js → monitorAlert-TjkxV9nx.js} +2 -2
  222. package/dist/{monitorData-slk6ogNe.cjs → monitorData-BpyzcuzE.cjs} +1 -1
  223. package/dist/{monitorData-DIxZYNVr.js → monitorData-CkD6tz8x.js} +2 -2
  224. package/dist/{monitorSpeedChart-BRwbLD8B.cjs → monitorSpeedChart-BE9wJ8LA.cjs} +1 -1
  225. package/dist/{monitorSpeedChart-DCO39Aka.js → monitorSpeedChart-LMAvdp1a.js} +1 -1
  226. package/dist/{mxa-DFq19ply.js → mxa-BGm4E2oj.js} +2 -2
  227. package/dist/{mxa-Bp4RH0w3.cjs → mxa-CzskPPvU.cjs} +1 -1
  228. package/dist/{myValue-g8shJQA9.cjs → myValue-BeTEf6SX.cjs} +1 -1
  229. package/dist/{myValue-BvItzUMv.js → myValue-BnlcjDSq.js} +2 -2
  230. package/dist/{myValueList-A_UGyNxN.js → myValueList-B5swLYff.js} +2 -2
  231. package/dist/{myValueList-DnZBoJXp.cjs → myValueList-zVkTLQrP.cjs} +1 -1
  232. package/dist/{objectList-DgVJlA1o.js → objectList-BHKtuK_E.js} +225 -213
  233. package/dist/objectList-CVz7jUhV.cjs +1 -0
  234. package/dist/{objectListAPP-CdewSo8l.js → objectListAPP-0Iuanvz-.js} +3 -3
  235. package/dist/{objectListAPP-DxRImk8W.cjs → objectListAPP-BAXwRH73.cjs} +1 -1
  236. package/dist/{percentBar-Cq5ACj9c.cjs → percentBar-Dy_RZ-16.cjs} +1 -1
  237. package/dist/{percentBar-BvmYW_u6.js → percentBar-UaUBa8pT.js} +2 -2
  238. package/dist/{photo-t11P9WKh.js → photo-BN8MzHVR.js} +3 -3
  239. package/dist/{photo-B-kxNdb5.cjs → photo-C7eoToJB.cjs} +1 -1
  240. package/dist/{pie-yTahcSl_.js → pie-C0gZTNM3.js} +2 -2
  241. package/dist/{pie-0s6FwVBt.cjs → pie-CPyctjgS.cjs} +1 -1
  242. package/dist/{placeholder-DBmyvwFn.cjs → placeholder-BHJQm9H3.cjs} +1 -1
  243. package/dist/{placeholder-D_CaQ-hg.js → placeholder-tSU5fQxu.js} +1 -1
  244. package/dist/{pressBtn-CP4kJr-P.js → pressBtn-D4vNvwB7.js} +3 -3
  245. package/dist/{pressBtn-JFezb7Yx.cjs → pressBtn-DmprQWtp.cjs} +1 -1
  246. package/dist/{processTable-BXswsnmt.js → processTable-BfbVj9Rv.js} +2 -2
  247. package/dist/{processTable-DRdI9ExW.cjs → processTable-CItb59hD.cjs} +1 -1
  248. package/dist/{progressBar-Sn6tAxTY.cjs → progressBar-BNArO298.cjs} +1 -1
  249. package/dist/{progressBar-D1Xh5APg.js → progressBar-CeWq1Q8-.js} +2 -2
  250. package/dist/{progressCircle-BMpJVwIE.js → progressCircle-BshtPibr.js} +2 -2
  251. package/dist/{progressCircle-DLk9v_Os.cjs → progressCircle-CFPbq8WS.cjs} +1 -1
  252. package/dist/{qrcode-BDtn3Ql7.cjs → qrcode-DVtk1b5F.cjs} +1 -1
  253. package/dist/{qrcode-BqlqV7Jf.js → qrcode-UsFuP8-Y.js} +2 -2
  254. package/dist/{raceBar-BpvWNCV7.cjs → raceBar-BYLfgaFz.cjs} +1 -1
  255. package/dist/{raceBar-zSL-J18j.js → raceBar-COvS_R8D.js} +2 -2
  256. package/dist/{rad-DSfVfaMa.cjs → rad-CkB-n_ms.cjs} +1 -1
  257. package/dist/{rad-CZhY-L-z.js → rad-D33c2RGY.js} +2 -2
  258. package/dist/{radarMapViewer-B4tTLLyl.js → radarMapViewer-BODSZl1u.js} +2 -2
  259. package/dist/{radarMapViewer-GmzS18dJ.cjs → radarMapViewer-DlFWHDQy.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-ijVmoglb.js → rainfallFilterBar-BFMnGW2A.js} +2 -2
  261. package/dist/{rainfallFilterBar-DHaVjXt5.cjs → rainfallFilterBar-DquisAn6.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-B3_bl5L6.js → rainfallTimeCurve-C7AGPuwX.js} +3 -3
  263. package/dist/{rainfallTimeCurve-Crz3Adzh.cjs → rainfallTimeCurve-DXFH_dGt.cjs} +1 -1
  264. package/dist/{rangeLin-BOEsEaV1.js → rangeLin-Cda_LTSF.js} +2 -2
  265. package/dist/{rangeLin-DpEbvxsg.cjs → rangeLin-s-_gmKS0.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-C2u4a2JL.js → realtimeEvolutionMap-BZGG9sn0.js} +2 -2
  267. package/dist/{realtimeEvolutionMap-BwQJkus6.cjs → realtimeEvolutionMap-DZAGkUNu.cjs} +1 -1
  268. package/dist/{regionBar-BQr-kq-M.js → regionBar-BJL96Emk.js} +2 -2
  269. package/dist/{regionBar-P1fqv7Vb.cjs → regionBar-LMJvgf0X.cjs} +1 -1
  270. package/dist/{request-Bn2gQLgM.js → request-DegJhVlL.js} +1 -1
  271. package/dist/{request-D9N74QdZ.cjs → request-DkP7M6Af.cjs} +1 -1
  272. package/dist/{retainer1-BCh8WSOq.cjs → retainer1-B0ZegRdn.cjs} +1 -1
  273. package/dist/{retainer1-Fnw0-Jvy.js → retainer1-CkOgZNh9.js} +3 -3
  274. package/dist/{retainer2-_3NOOefF.cjs → retainer2-D28sge-m.cjs} +1 -1
  275. package/dist/{retainer2-nPyFv6Hs.js → retainer2-npgiiskx.js} +3 -3
  276. package/dist/{retainerRecordList-BaOTTQQN.cjs → retainerRecordList-B8nyu28l.cjs} +1 -1
  277. package/dist/{retainerRecordList-C_UsUKsQ.js → retainerRecordList-hv5QyWME.js} +3 -3
  278. package/dist/{retainerRecordListAPP-BgKyfAMh.js → retainerRecordListAPP-DkXvtq9K.js} +3 -3
  279. package/dist/{retainerRecordListAPP-CE3l6WrB.cjs → retainerRecordListAPP-WALqHGbm.cjs} +1 -1
  280. package/dist/{ringTopN-Dz0EoM-A.js → ringTopN-Becl3FRO.js} +2 -2
  281. package/dist/{ringTopN-DEv30Ms2.cjs → ringTopN-BknMVZLZ.cjs} +1 -1
  282. package/dist/{riskRegionTable-Dot8zD_6.js → riskRegionTable-Cd_0Rd-M.js} +2 -2
  283. package/dist/{riskRegionTable-BODT2UTF.cjs → riskRegionTable-CyJIOy57.cjs} +1 -1
  284. package/dist/{sankey-CbEUEE5B.js → sankey-DcdzfDDI.js} +2 -2
  285. package/dist/{sankey-CYTyQB-L.cjs → sankey-wr0x7tfw.cjs} +1 -1
  286. package/dist/scd-B7RWxgVJ.cjs +1 -0
  287. package/dist/{scd-Btsiastw.js → scd-vg1A8R5X.js} +344 -348
  288. package/dist/{sideMenu-dnpq3qTF.cjs → sideMenu-BQmUk_pp.cjs} +1 -1
  289. package/dist/{sideMenu-BxJRAAdM.js → sideMenu-r-paLSMO.js} +2 -2
  290. package/dist/{slopeStability-DX7WP5ZW.cjs → slopeStability-C9dfB2fF.cjs} +1 -1
  291. package/dist/{slopeStability-DrooNf1g.js → slopeStability-CCGImuom.js} +2 -2
  292. package/dist/{speedCurve-BT8wnfZI.cjs → speedCurve-BVeqdClI.cjs} +1 -1
  293. package/dist/{speedCurve-CNUJ5ScK.js → speedCurve-Dwf-w3GL.js} +2 -2
  294. package/dist/{stackedBar-X8Y4lVgT.cjs → stackedBar-C0M7bOpV.cjs} +1 -1
  295. package/dist/{stackedBar-nIfO6Aa3.js → stackedBar-lXH6oJX4.js} +2 -2
  296. package/dist/{stationList-D7lGCblu.js → stationList-34Qu34hq.js} +2 -2
  297. package/dist/{stationList-DVzvGGHI.cjs → stationList-DB-Hn4KT.cjs} +1 -1
  298. package/dist/{stressFilterBar-D5xktTRI.cjs → stressFilterBar-BfmLl6RK.cjs} +1 -1
  299. package/dist/{stressFilterBar-DqeqFHm7.js → stressFilterBar-e1E4tOup.js} +2 -2
  300. package/dist/{stressTimeCurve-DfjNQ0rU.js → stressTimeCurve-BUo51IkU.js} +3 -3
  301. package/dist/{stressTimeCurve-Bhhb-eqB.cjs → stressTimeCurve-D_lNCKx9.cjs} +1 -1
  302. package/dist/{swiper-DuNuvT_N.js → swiper-43PBhQqD.js} +2 -2
  303. package/dist/{swiper-XCpwFkWS.cjs → swiper-CrFwcs3m.cjs} +1 -1
  304. package/dist/{tablemanCreate-Cp5DaYUd.cjs → tablemanCreate-1S_EcSDm.cjs} +1 -1
  305. package/dist/{tablemanCreate-Cp9nOGg2.js → tablemanCreate-CpbZDLF6.js} +3 -3
  306. package/dist/{tablemanDetail-3ZMWkdpz.cjs → tablemanDetail-DlTYZCx5.cjs} +1 -1
  307. package/dist/{tablemanDetail-DvZdgdHD.js → tablemanDetail-DyCQ7DyB.js} +4 -4
  308. package/dist/{tablemanList-OLxgUmAi.cjs → tablemanList-BbjUecnu.cjs} +1 -1
  309. package/dist/{tablemanList-DZdb1FUR.js → tablemanList-C6Gtfx1o.js} +4 -4
  310. package/dist/{tablemanTableList-BN6QjYEV.cjs → tablemanTableList-DR_KxUuu.cjs} +1 -1
  311. package/dist/{tablemanTableList-CqsnRIHS.js → tablemanTableList-Dj71HRDW.js} +3 -3
  312. package/dist/{tablemanUpdate-CHs5OgAG.js → tablemanUpdate-BtnIRkBn.js} +3 -3
  313. package/dist/{tablemanUpdate-E3d7A3WM.cjs → tablemanUpdate-CA7JRGBh.cjs} +1 -1
  314. package/dist/{terminalConfigList-BlgcWy40.cjs → terminalConfigList-BDaYrefd.cjs} +1 -1
  315. package/dist/{terminalConfigList-BEBNi1Nl.js → terminalConfigList-Brd1oIU1.js} +3 -3
  316. package/dist/{terminalList-CJpH2Z-r.js → terminalList-B5R-5IYH.js} +3 -3
  317. package/dist/{terminalList-Bl5BPmF9.cjs → terminalList-DyYTp_7j.cjs} +1 -1
  318. package/dist/{terminalListAPP-BpONJQOA.js → terminalListAPP-Cz9-XSy9.js} +3 -3
  319. package/dist/{terminalListAPP-Dgvz8I3j.cjs → terminalListAPP-DQyeShOh.cjs} +1 -1
  320. package/dist/{textbox-CJnSDwg7.js → textbox-AofzoSoM.js} +2 -2
  321. package/dist/{textbox-DR0bQEX7.cjs → textbox-DQg0UmXD.cjs} +1 -1
  322. package/dist/{timeQueryBar-FJDQv-gp.js → timeQueryBar-B62qxOHn.js} +1 -1
  323. package/dist/{timeQueryBar-Cmyan_30.cjs → timeQueryBar-BPKD7Elj.cjs} +1 -1
  324. package/dist/{timeSeries-_RLSUPmg.cjs → timeSeries-Bp_iMD22.cjs} +1 -1
  325. package/dist/{timeSeries-t4uZvXRF.js → timeSeries-Vl1W6ELZ.js} +3 -3
  326. package/dist/{timeSeriesCurve-BxWiI6w-.js → timeSeriesCurve-D8iElxyO.js} +3 -3
  327. package/dist/{timeSeriesCurve-BUuLFQ8A.cjs → timeSeriesCurve-DNYyUKj1.cjs} +1 -1
  328. package/dist/{toggleBtn-Cx44qVci.js → toggleBtn-CizAxinC.js} +2 -2
  329. package/dist/{toggleBtn-BcpJcxpU.cjs → toggleBtn-DOXzintk.cjs} +1 -1
  330. package/dist/{trajectoryConfigPanel-dyo30nx9.js → trajectoryConfigPanel-BYMdJKNX.js} +1 -1
  331. package/dist/{trajectoryConfigPanel-BTUv5OVS.cjs → trajectoryConfigPanel-Bw_l7pKo.cjs} +1 -1
  332. package/dist/{trajectoryScatter-CK4_Z1iU.cjs → trajectoryScatter-DP56FRFE.cjs} +1 -1
  333. package/dist/{trajectoryScatter-BghFGqxH.js → trajectoryScatter-DPbgYMS8.js} +2 -2
  334. package/dist/{universalConfigPanel-yJFrQDBa.js → universalConfigPanel-B3BIF8L5.js} +1 -1
  335. package/dist/{universalConfigPanel-Cvlpgn-j.cjs → universalConfigPanel-DV9h6sMj.cjs} +1 -1
  336. package/dist/{universalTable-CvBC-L9Z.js → universalTable-CQ3B2I-G.js} +2 -2
  337. package/dist/{universalTable-CRJ7Rx0P.cjs → universalTable-Jxfp2RkG.cjs} +1 -1
  338. package/dist/{useTablemanApi-BAt370b-.js → useTablemanApi-Bh5_NFWe.js} +1 -1
  339. package/dist/{useTablemanApi-fqoMpRxe.cjs → useTablemanApi-Df1q1aWI.cjs} +1 -1
  340. package/dist/{useTablemanFormPanel-Cxo0WsI1.cjs → useTablemanFormPanel-Byr9usXu.cjs} +1 -1
  341. package/dist/{useTablemanFormPanel-BKbM39_H.js → useTablemanFormPanel-DRv-m4UQ.js} +2 -2
  342. package/dist/{useTablemanListActions-DRXW-WTa.cjs → useTablemanListActions-DWDKR-3Y.cjs} +1 -1
  343. package/dist/{useTablemanListActions-CYauYy6z.js → useTablemanListActions-DX-_BfWk.js} +3 -3
  344. package/dist/{video-C1N8Ikkh.js → video-C6XgnAxj.js} +2 -2
  345. package/dist/{video-BN19nKK_.cjs → video-D_eGQjE9.cjs} +1 -1
  346. package/dist/{videoMonitor-fkEuZ25x.js → videoMonitor-Cez3ENoV.js} +2 -2
  347. package/dist/{videoMonitor-PKypdwRl.cjs → videoMonitor-_F66e2Ol.cjs} +1 -1
  348. package/dist/{vlu-B8tqM9md.js → vlu-8CrS8YvY.js} +2 -2
  349. package/dist/{vlu-DrABl6SW.cjs → vlu-Cz0gMSym.cjs} +1 -1
  350. package/dist/{warningOverview-_rp_SbLs.js → warningOverview-DfDN7kF-.js} +3 -3
  351. package/dist/{warningOverview-DaTHPveq.cjs → warningOverview-YWMdtsgL.cjs} +1 -1
  352. package/dist/{weather-qvsptrt0.js → weather-BDi6MTCV.js} +2 -2
  353. package/dist/{weather-B_XCWwDa.cjs → weather-p1VDVqeB.cjs} +1 -1
  354. package/dist/{windLin-BDtJUYBu.js → windLin-BpS0UWbr.js} +2 -2
  355. package/dist/{windLin-P84T5W3o.cjs → windLin-CCfJT1_-.cjs} +1 -1
  356. package/package.json +1 -1
  357. package/dist/crd-C6iegy7d.cjs +0 -1
  358. package/dist/materialFileUrl-8YHw7z1T.cjs +0 -1
  359. package/dist/objectList-BcSCvy54.cjs +0 -1
  360. package/dist/scd-DwdWl6Wz.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-9njJjeix.cjs"),ae=require("./index-Bo49zvKb.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;
1
+ "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-CPat9pFl.cjs"),ae=require("./index-D9ehIVda.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;
@@ -11,8 +11,8 @@ var K = (n, d, s) => d in n ? ae(n, d, { enumerable: !0, configurable: !0, writa
11
11
  return n;
12
12
  }, U = (n, d) => oe(n, ne(d));
13
13
  import { defineComponent as F, h as E, ref as $, onMounted as ue, watchEffect as se, Fragment as de, computed as A, openBlock as he, createElementBlock as ce, normalizeStyle as H, unref as z, createElementVNode as V, toDisplayString as fe, createVNode as ve, renderSlot as ge } from "vue";
14
- import { B as me } from "./BaseComponent-B38Blgw3.js";
15
- import { _ as Ce } from "./index-BbXEpgom.js";
14
+ import { B as me } from "./BaseComponent-DMJmgFIo.js";
15
+ import { _ as Ce } from "./index-nru6zK5E.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,2 +1,2 @@
1
- "use strict";var k=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(p,a,r)=>a in p?k(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,R=(p,a)=>{for(var r in a||(a={}))W.call(a,r)&&U(p,r,a[r]);if(M)for(var r of M(a))Z.call(a,r)&&U(p,r,a[r]);return p},A=(p,a)=>j(p,q(a));var V=(p,a,r)=>new Promise((y,T)=>{var S=f=>{try{b(r.next(f))}catch(L){T(L)}},O=f=>{try{b(r.throw(f))}catch(L){T(L)}},b=f=>f.done?y(f.value):Promise.resolve(f.value).then(S,O);b((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),X=require("vue-i18n"),_=require("./index-Bo49zvKb.cjs");require("element-plus");const G=require("./EChartComponentBase-BwbycwwW.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ot={key:0,class:"mix-title-unit"},nt={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=l.defineComponent(A(R({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([K.install,Q.install,E.install,Y.install,E.install$1,tt.install]);const a=p;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 y(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class T extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var h,d,g;this.ensureCommonFields();const e=this.props.conf.common,t=(h=this.props.conf.data)==null?void 0:h[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=(d=this.props.conf.options)==null?void 0:d.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(g=this.props.conf.options)==null?void 0:g.showPlanCompletionRate,u=n!=null&&typeof n=="object"&&"value"in n?n.value:n;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 n of i){if(n==null||n==="")continue;const u=t.indexOf(String(n));if(u!==-1)return u}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return A(R({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield l.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((h,d)=>{var g;return h===((g=e.data[d])==null?void 0:g.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((h,d)=>{const g=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(h.color||_.COLORS[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(g[0]),this.CHART.items.push(h.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const u=this.parseNumericRaw(n);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,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:u}=this.buildSeriesAndMax(),h=t.direction==="x",d=h?"right":"center",g={pct:{color:"#000000",fontSize:t.textSize,align:d,padding:h?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((s,x)=>{g[`raw${x}`]={color:s||"#5470c6",fontSize:t.textSize,align:d,fontWeight:500}});const D=s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x];if(o&&u>0){const v=this.parseNumericRaw(C),w=y(String(C)),$=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${x}|${w}}{pct|${y($)}}`}return`{raw${x}|${y(String(C))}}`},N=28,I=108,F=s=>{var v,w;const x=(w=(v=e.chartObj)==null?void 0:v.getWidth())!=null?w:0;return!x||!s.labelRect?{}:{x:x-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},H=h?t.right+I:t.right;let m={grid:{top:h?t.top:t.top+N,bottom:t.bottom,left:t.left,right:H,containLabel:!0},tooltip:{show:!0,formatter:s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x],v=this.parseNumericRaw(C);let w=`${s.name}:`;return o&&u>0&&v!==null?w+=`${C}(${Math.round(v/u*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
1
+ "use strict";var k=Object.defineProperty,j=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var U=(p,a,r)=>a in p?k(p,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):p[a]=r,R=(p,a)=>{for(var r in a||(a={}))W.call(a,r)&&U(p,r,a[r]);if(M)for(var r of M(a))Z.call(a,r)&&U(p,r,a[r]);return p},A=(p,a)=>j(p,q(a));var V=(p,a,r)=>new Promise((y,T)=>{var S=f=>{try{b(r.next(f))}catch(L){T(L)}},O=f=>{try{b(r.throw(f))}catch(L){T(L)}},b=f=>f.done?y(f.value):Promise.resolve(f.value).then(S,O);b((r=r.apply(p,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),X=require("vue-i18n"),_=require("./index-D9ehIVda.cjs");require("element-plus");const G=require("./EChartComponentBase-Cj_dO_ES.cjs"),J=require("./titleStyle-NSnz6cUg.cjs"),E=require("./installCanvasRenderer-CyhM1Qpl.cjs"),K=require("./install-DV5cEgNV.cjs"),Q=require("./install-CltTFs4e.cjs"),Y=require("./install-C8buXQPI.cjs"),tt=require("./install-Ch5d8i37.cjs"),et="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",it="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e排行%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-199.000000,%20-376.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M200.293678,376.279562%20C200.619547,376.279562%20200.888858,376.521717%20200.93148,376.835897%20L200.937356,376.92324%20L200.937356,390.992205%20L215.006322,390.992205%20C215.332191,390.992205%20215.601502,391.23436%20215.644124,391.54854%20L215.65,391.635883%20C215.65,391.961753%20215.407845,392.231063%20215.093665,392.273686%20L215.006322,392.279562%20L200.293678,392.279562%20C199.967809,392.279562%20199.698498,392.037407%20199.655876,391.723227%20L199.65,391.635883%20L199.65,376.92324%20C199.65,376.567746%20199.938185,376.279562%20200.293678,376.279562%20Z%20M206.65,386.731669%20C207.202285,386.731669%20207.65,387.179384%20207.65,387.731669%20L207.65,388.183776%20C207.65,388.736061%20207.202285,389.183776%20206.65,389.183776%20L203.563155,389.183776%20L203.563155,386.731669%20L206.65,386.731669%20Z%20M209.919476,382.644823%20C210.471761,382.644823%20210.919476,383.092539%20210.919476,383.644823%20L210.919476,384.096931%20C210.919476,384.649216%20210.471761,385.096931%20209.919476,385.096931%20L203.563155,385.096931%20L203.563155,382.644823%20L209.919476,382.644823%20Z%20M212.371584,378.557978%20C212.923868,378.557978%20213.371584,379.005693%20213.371584,379.557978%20L213.371584,380.010085%20C213.371584,380.56237%20212.923868,381.010085%20212.371584,381.010085%20L203.563155,381.010085%20L203.563155,378.557978%20L212.371584,378.557978%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ot={key:0,class:"mix-title-unit"},nt={class:"mix-body"},st=["id"],lt={DEFAULT_ICON:et,ACTIVE_ICON:it,NAME_CN:"排行",NAME_EN:"Ranking",ORDER:1,PLATFORM:["pc","screen","mobile"]},at={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:64,right:30,radiusSize:8,textSize:12,barWidth:50,direction:{value:"x",type:"radio",option:[{value:"x",label:"component.options.x"},{value:"y",label:"component.options.y"}],label:"component.options.direction"},realSort:!1,sortType:{value:"desc",type:"radio",option:[{value:"desc",label:"component.options.desc"},{value:"asc",label:"component.options.asc"}],label:"component.options.sortType",dependent:"realSort"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},rt=[{name:"参数一",fv:"",object_id:"",color:"#4162ff"}],ct=["name","fv","object_id","color"],ut=["mosaic"],ht={useAlias:!1,multiObject:!1,source:"mosaic",valueUnit:"",showPlanCompletionRate:!1},pt={DEFAULT:lt,OPTIONS:at,DATA:rt,PARAMS:ct,SOURCE:ut,COMMON:ht},dt=l.defineComponent(A(R({},pt),{__name:"raceBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){E.use([K.install,Q.install,E.install,Y.install,E.install$1,tt.install]);const a=p;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 y(c){return String(c).replace(/[|{}]/g,e=>({"|":"|","{":"﹛","}":"﹜"})[e]||e)}class T extends G.EChartComponentBase{constructor(){super(...arguments),this.CHART={rawValues:[],items:[],colors:[],times:[]}}parseNumericRaw(e){if(e==="--"||e===null||e===void 0||e==="")return null;const t=typeof e=="number"?e:Number(e);return Number.isFinite(t)?t:null}ensureCommonFields(){const e=this.props.conf;(!e.common||typeof e.common!="object")&&(e.common={useAlias:!1,multiObject:!1,source:"mosaic"});const t=e.common;t.valueUnit===void 0&&(t.valueUnit=""),t.showPlanCompletionRate===void 0&&(t.showPlanCompletionRate=!1)}migrateLegacyDisplayOptions(){var h,d,g;this.ensureCommonFields();const e=this.props.conf.common,t=(h=this.props.conf.data)==null?void 0:h[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=(d=this.props.conf.options)==null?void 0:d.valueUnit,o=i!=null&&typeof i=="object"&&"value"in i?i.value:i;(!e.valueUnit||String(e.valueUnit).trim()==="")&&o!==void 0&&o!==null&&String(o).trim()!==""&&(e.valueUnit=String(o));const n=(g=this.props.conf.options)==null?void 0:g.showPlanCompletionRate,u=n!=null&&typeof n=="object"&&"value"in n?n.value:n;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 n of i){if(n==null||n==="")continue;const u=t.indexOf(String(n));if(u!==-1)return u}const o=e==null?void 0:e.dataIndex;return typeof o=="number"&&o>=0&&o<t.length?o:Math.min(Math.max(0,o!=null?o:0),Math.max(0,t.length-1))}extractStyles(){return A(R({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",50),direction:this.getOptionValue("direction","x"),realSort:this.getOptionValue("realSort",!1),sortType:this.getOptionValue("sortType","desc")})}init(){return V(this,null,function*(){this.Style.value=this.extractStyles(),this.applyTheme(),this.ensureData(),this.migrateLegacyDisplayOptions(),this.initChartData(),yield l.nextTick(),this.initChart()})}initChart(){super.initChart(),requestAnimationFrame(()=>{this.chartObj&&this.chartObj.setOption(this.getChartOption(),!1)})}initChartData(){var n,u;const e=this.props.conf,t=this.CHART.rawValues,i=this.CHART.items,o=t.length===((n=e.data)==null?void 0:n.length)&&i.length===((u=e.data)==null?void 0:u.length)&&i.every((h,d)=>{var g;return h===((g=e.data[d])==null?void 0:g.name)});this.CHART={rawValues:[],items:[],colors:[],times:[]},e.data.forEach((h,d)=>{const g=_.getRandomArr({num:1,mode:this.props.mode,hasDataSource:this.hasData()});this.CHART.colors.push(h.color||_.COLORS[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(g[0]),this.CHART.items.push(h.name)})}buildSeriesAndMax(){const e=this.isPlanCompletionRateEnabled(),t=this.CHART.rawValues.map(n=>this.parseNumericRaw(n)).filter(n=>n!==null),i=t.length?Math.max(...t):0;return{seriesData:this.CHART.rawValues.map(n=>{const u=this.parseNumericRaw(n);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,o=this.isPlanCompletionRateEnabled(),{seriesData:n,maxNumeric:u}=this.buildSeriesAndMax(),h=t.direction==="x",d=h?"right":"center",g={pct:{color:"#000000",fontSize:t.textSize,align:d,padding:h?[0,0,0,10]:[4,0,0,0]}};i.colors.forEach((s,x)=>{g[`raw${x}`]={color:s||"#5470c6",fontSize:t.textSize,align:d,fontWeight:500}});const D=s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x];if(o&&u>0){const v=this.parseNumericRaw(C),w=y(String(C)),$=v!==null&&u>0?`${Math.round(v/u*100)}%`:"";return`{raw${x}|${w}}{pct|${y($)}}`}return`{raw${x}|${y(String(C))}}`},N=28,I=108,F=s=>{var v,w;const x=(w=(v=e.chartObj)==null?void 0:v.getWidth())!=null?w:0;return!x||!s.labelRect?{}:{x:x-12,y:s.labelRect.y+s.labelRect.height/2,verticalAlign:"middle",align:"right"}},H=h?t.right+I:t.right;let m={grid:{top:h?t.top:t.top+N,bottom:t.bottom,left:t.left,right:H,containLabel:!0},tooltip:{show:!0,formatter:s=>{const x=this.resolveBarItemIndex(s),C=i.rawValues[x],v=this.parseNumericRaw(C);let w=`${s.name}:`;return o&&u>0&&v!==null?w+=`${C}(${Math.round(v/u*100)}%)`:w+=String(C),w}},xAxis:{max:"dataMax",axisLine:{show:!0,color:t.textColor},axisTick:{show:!0},splitLine:{lineStyle:{}},axisLabel:{color:t.textColor,fontSize:t.textSize,overflow:"none",interval:0,formatter:s=>s.length>4?s.substr(0,4):s}},yAxis:{axisLabel:{formatter:s=>s.length>5?s.substr(0,5)+`
2
2
  `+s.substr(5):s,color:t.textColor,fontSize:t.textSize,overflow:"none"},axisLine:{lineStyle:{color:t.textColor}},splitLine:{lineStyle:{}},animationDuration:300,animationDurationUpdate:300},series:[A(R({realtimeSort:t.realSort,type:"bar",barWidth:t.barWidth+"%",data:n},h?{labelLayout:F}:{}),{label:{show:!0,position:h?"right":"top",align:d,verticalAlign:h?"middle":"bottom",valueAnimation:!0,color:t.textColor,fontSize:t.textSize,rich:g,formatter:D},itemStyle:{color:s=>i.colors[this.resolveBarItemIndex(s)]||"#5470c6"}})],animationDuration:0,animationDurationUpdate:500,animationEasing:"linear",animationEasingUpdate:"linear"};return h?(m.yAxis.data=i.items,t.realSort&&(m.yAxis.inverse=t.sortType==="desc"),m.xAxis.splitLine.lineStyle.type="dashed",o&&u>0&&(m.xAxis.max=100,m.xAxis.axisLabel.formatter=s=>`${s}%`)):(m.xAxis.data=i.items,delete m.xAxis.max,t.realSort&&(m.xAxis.inverse=t.sortType==="asc"),m.yAxis.splitLine.lineStyle.type="dashed",delete m.yAxis.type,o&&u>0&&(m.yAxis.max=100,m.yAxis.axisLabel.formatter=s=>`${s}%`)),m}setSocketData(e){if(!this.hasData()||!e||!this.chartObj)return;const{data:t}=this.props.conf;this.CHART.rawValues=[],t.forEach(o=>{const n=this.extractDataValue(e,o.fv);this.CHART.rawValues.push(n!=null?n:"--")});const{seriesData:i}=this.buildSeriesAndMax();this.chartObj.setOption({series:[{data:i}]})}}const S=new T(a,"raceBar");S.setupLifecycle();const O=S.getStyle(),b=S.getEchartId(),f=a.conf,{t:L}=X.useI18n(),P=l.computed(()=>{var o;const c=((o=a.conf)==null?void 0:o.common)||{},e=String(c.valueUnit||"").trim(),t=!!c.showPlanCompletionRate,i=[];return e&&i.push(e),t&&i.push(L("component.options.showPlanCompletionRate")),i.join(" / ")}),z=l.computed(()=>{const c=J.generateTitleStyle(a.conf.options);return c.display==="none"?c:A(R({},c),{display:"flex",alignItems:"center",gap:"8px",textAlign:"initial"})}),B=l.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)=>(l.openBlock(),l.createElementBlock("div",{class:"mix-component",style:l.normalizeStyle({background:l.unref(O).bgColor,borderRadius:`${l.unref(O).radiusSize}px`})},[l.createElementVNode("div",{class:"mix-title",style:l.normalizeStyle(z.value)},[l.createElementVNode("span",{class:"mix-title-caption",style:l.normalizeStyle(B.value)},l.toDisplayString(l.unref(f).caption||l.unref(f).name),5),P.value?(l.openBlock(),l.createElementBlock("span",ot,l.toDisplayString(P.value),1)):l.createCommentVNode("",!0)],4),l.createElementVNode("div",nt,[l.createElementVNode("div",{class:"w-full h-full",id:l.unref(b)},null,8,st)]),l.renderSlot(c.$slots,"default",{},void 0,!0)],4))}})),mt=_._export_sfc(dt,[["__scopeId","data-v-5cb0f127"]]);exports.default=mt;
@@ -28,9 +28,9 @@ var z = (p, a, l) => new Promise((w, T) => {
28
28
  });
29
29
  import { defineComponent as Q, computed as P, openBlock as B, createElementBlock as I, normalizeStyle as D, unref as A, createElementVNode as _, toDisplayString as $, createCommentVNode as Y, renderSlot as tt, nextTick as et } from "vue";
30
30
  import { useI18n as it } from "vue-i18n";
31
- import { n as ot, C as nt, _ as st } from "./index-BbXEpgom.js";
31
+ import { n as ot, C as nt, _ as st } from "./index-nru6zK5E.js";
32
32
  import "element-plus";
33
- import { E as at } from "./EChartComponentBase-DJScukmS.js";
33
+ import { E as at } from "./EChartComponentBase-DrDdGF1C.js";
34
34
  import { g as lt } from "./titleStyle-BT5GlpAb.js";
35
35
  import { u as rt, i as ct, a as ut } from "./installCanvasRenderer-oDYkyVFy.js";
36
36
  import { i as pt } from "./install-DdM8j5Ll.js";
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,b=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(l,e,o)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o,g=(l,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(l,o,e[o]);if(u)for(var o of u(e))_.call(e,o)&&f(l,o,e[o]);return l},h=(l,e)=>b(l,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-Bo49zvKb.cjs");require("element-plus");const E=require("./EChartComponentBase-BwbycwwW.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),N=require("./install-CltTFs4e.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A={class:"mix-body"},F=["id"],j={DEFAULT_ICON:Z,ACTIVE_ICON:k,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},m=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],D=["name","fv","object_id","max"],q=["mosaic","statistics","calculate"],R={useAlias:!1,multiObject:!1,source:"mosaic"},I={DEFAULT:j,OPTIONS:B,DATA:m,PARAMS:D,SOURCE:q,COMMON:R},P=t.defineComponent(h(g({},I),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){c.use([V.install,N.install,c.install,c.install$1,T.install]);const e=l,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),borderColor:this.getOptionValue("borderColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","none"),points:this.getOptionValue("points",10)}}getChartOption(){const i=this.Style.value,{data:r,name:a}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:i.type,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:r.map(n=>({name:n.name,max:n.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:i.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:i.borderColor}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:i.textSize,color:i.textColor}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return m}setHistoryData(i){if(!i)return;const r=this.chartObj.getOption();r.series[0].data[0].value=[],i.forEach(a=>{var n;r.series[0].data[0].value.push((n=a.data[0])!=null?n:0)}),this.chartObj.setOption(r)}setSocketData(i){if(!i||!this.chartObj)return;const{data:r}=this.props.conf,a=this.chartObj.getOption();a.series[0].data[0].value=[],r.forEach(n=>{const L=this.extractDataValue(i,n.fv);a.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(a)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>z.generateTitleStyle(e.conf.options));return(p,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",A,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,F)]),t.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),$=M._export_sfc(P,[["__scopeId","data-v-36fbdf8b"]]);exports.default=$;
1
+ "use strict";var y=Object.defineProperty,b=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var u=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var f=(l,e,o)=>e in l?y(l,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[e]=o,g=(l,e)=>{for(var o in e||(e={}))w.call(e,o)&&f(l,o,e[o]);if(u)for(var o of u(e))_.call(e,o)&&f(l,o,e[o]);return l},h=(l,e)=>b(l,O(e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),M=require("./index-D9ehIVda.cjs");require("element-plus");const E=require("./EChartComponentBase-Cj_dO_ES.cjs"),z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./install-B1IEhhn3.cjs"),c=require("./installCanvasRenderer-CyhM1Qpl.cjs"),V=require("./install-DV5cEgNV.cjs"),N=require("./install-CltTFs4e.cjs"),Z="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='页面-2'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='轮廓化'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='17px'%20viewBox='0%200%2017%2017'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e雷达图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='显示板图标-轮廓化备份'%20transform='translate(-103.000000,%20-964.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M111.149908,964.634541%20L111.169754,964.634848%20C111.196298,964.635668%20111.222802,964.638126%20111.249106,964.642224%20L111.337277,964.662238%20L111.337277,964.662238%20C111.351596,964.666908%20111.356677,964.668607%20111.361742,964.670373%20C111.387669,964.679251%20111.412711,964.689837%20111.436888,964.701899%20L111.436262,964.70174%20L111.440145,964.703688%20L111.471513,964.72052%20C111.485059,964.728349%20111.498293,964.736657%20111.511193,964.745421%20L111.528177,964.75747%20L118.842313,970.071497%20C118.863531,970.086913%20118.883592,970.103452%20118.902454,970.12099%20C119.003814,970.199918%20119.082739,970.310344%20119.122593,970.443188%20C119.186289,970.65551%20119.135136,970.874962%20119.00504,971.034861%20L118.421913,972.960468%20L116.44735,979.507657%20C116.444419,979.517377%20116.441272,979.526987%20116.437916,979.536482%20C116.433791,979.548489%20116.42928,979.560172%20116.424419,979.571735%20C116.415786,979.591944%20116.40622,979.611753%20116.395731,979.630921%20C116.390897,979.640024%20116.385698,979.649%20116.380268,979.657868%20C116.369584,979.675103%20116.358151,979.691929%20116.345989,979.70813%20C116.338126,979.718739%20116.329693,979.72926%20116.320888,979.739557%20C116.307021,979.755723%20116.292455,979.771164%20116.277186,979.785833%20C116.270449,979.79232%20116.262808,979.799335%20116.25496,979.806202%20L116.251165,979.809502%20C116.225612,979.831409%20116.199576,979.850541%20116.172222,979.867642%20L116.25496,979.806202%20C116.223451,979.833772%20116.190012,979.85772%20116.155153,979.878077%20C116.136711,979.888691%20116.118008,979.898392%20116.098831,979.907171%20L116.080242,979.915478%20C116.071738,979.919048%20116.063177,979.922425%20116.054565,979.92561%20L116.05501,979.925307%20L116.013923,979.939003%20C116.008417,979.940634%20116.002884,979.942193%20115.997323,979.943679%20C115.993189,979.944877%20115.989117,979.945918%20115.985038,979.946919%20L115.96265,979.95192%20C115.949986,979.954561%20115.937202,979.956827%20115.924311,979.958708%20L115.900179,979.961797%20C115.887525,979.963152%20115.874844,979.964131%20115.862153,979.964735%20L115.831104,979.965459%20L106.468711,979.965459%20L106.468711,979.965459%20L106.437663,979.964735%20C106.429342,979.964339%20106.421026,979.963782%20106.412719,979.963063%20L106.398908,979.960541%20L106.375466,979.958708%20C106.362576,979.956827%20106.349791,979.954561%20106.337128,979.951921%20C106.329962,979.950498%20106.322358,979.948779%20106.314778,979.946919%20L106.302455,979.94368%20C106.296894,979.942194%20106.291361,979.940635%20106.285855,979.939004%20L106.245251,979.92561%20C106.236638,979.922425%20106.228077,979.919048%20106.219574,979.915478%20L106.200987,979.907172%20C106.18181,979.898394%20106.163108,979.888692%20106.144944,979.878115%20C106.139401,979.875005%20106.134171,979.87185%20106.128976,979.868613%20C106.100205,979.850544%20106.074169,979.831412%20106.04968,979.810422%20C106.047376,979.808399%20106.046114,979.807303%20106.044855,979.806202%20L106.022633,979.785837%20C106.007365,979.771168%20105.992799,979.755727%20105.979,979.739563%20L106.044855,979.806202%20C106.010458,979.776105%20105.980036,979.743155%20105.953632,979.708015%20C105.941669,979.691935%20105.930236,979.675109%20105.919588,979.6577%20C105.914117,979.649%20105.908919,979.640024%20105.903952,979.630949%20C105.882952,979.592302%20105.865562,979.551078%20105.852468,979.507666%20L105.875397,979.571735%20C105.870536,979.560172%20105.866024,979.548489%20105.861863,979.536705%20L105.852468,979.507666%20L103.633908,972.151541%20L103.297337,971.03799%20C103.165353,970.877832%20103.11311,970.656898%20103.177223,970.443188%20C103.218981,970.303997%20103.303633,970.189417%20103.412393,970.109565%20L103.457366,970.071497%20L110.771505,964.757469%20L110.771505,964.757469%20L110.786922,964.74658%20C110.80581,964.733659%20110.825422,964.721718%20110.845684,964.710831%20C110.85186,964.707598%20110.857623,964.704623%20110.86342,964.70174%20C110.868155,964.699292%20110.873336,964.696794%20110.878555,964.694364%20L110.9228,964.675863%20C110.935132,964.671215%20110.947575,964.666959%20110.96011,964.663095%20C110.990619,964.653569%20111.02231,964.646331%20111.054792,964.64152%20L111.108624,964.635858%20C111.122348,964.63498%20111.136095,964.634541%20111.149841,964.634541%20L111.149908,964.634541%20Z%20M113.197908,977.289541%20L109.100908,977.289541%20L107.887908,978.676541%20L114.410908,978.676541%20L113.197908,977.289541%20Z%20M104.812908,971.605541%20L106.748908,978.022541%20L108.080908,976.499541%20L106.631908,972.151541%20L104.812908,971.605541%20Z%20M117.484908,971.606541%20L115.666908,972.151541%20L114.217908,976.499541%20L115.548908,978.022541%20L117.484908,971.606541%20Z%20M111.148988,969.429841%20L109.523829,970.667813%20L107.895724,971.871169%20L109.272246,976.002576%20L113.02665,976.002576%20L114.403172,971.871169%20L112.768832,970.662448%20L111.148988,969.429841%20Z%20M110.505908,966.540541%20L105.216908,970.383541%20L107.012908,970.921541%20L108.751496,969.63794%20L110.505908,968.302541%20L110.505908,966.540541%20Z%20M111.792908,966.541541%20L111.792908,968.302541%20L113.541165,969.632575%20L115.285908,970.921541%20L117.080908,970.383541%20L111.792908,966.541541%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A={class:"mix-body"},F=["id"],j={DEFAULT_ICON:Z,ACTIVE_ICON:k,NAME_CN:"雷达图",NAME_EN:"Radar",ORDER:1,PLATFORM:["pc","screen","mobile"]},B={titleColor:"#111",titleSize:14,textColor:"#111",bgColor:"#fff",borderColor:"#666",radiusSize:8,textSize:12,type:{value:"none",type:"radio",option:[{value:"none",label:"component.radar.diamond"},{value:"circle",label:"component.radar.circle"}],label:"component.radar.shapeSelect"},isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},m=[{name:"参数一",fv:"",object_id:"",max:200},{name:"参数二",fv:"",object_id:"",max:200},{name:"参数三",fv:"",object_id:"",max:200}],D=["name","fv","object_id","max"],q=["mosaic","statistics","calculate"],R={useAlias:!1,multiObject:!1,source:"mosaic"},I={DEFAULT:j,OPTIONS:B,DATA:m,PARAMS:D,SOURCE:q,COMMON:R},P=t.defineComponent(h(g({},I),{__name:"rad",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){c.use([V.install,N.install,c.install,c.install$1,T.install]);const e=l,o=["#ffffff","#e5e5e5"];class x extends E.EChartComponentBase{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),borderColor:this.getOptionValue("borderColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),type:this.getOptionValue("type","none"),points:this.getOptionValue("points",10)}}getChartOption(){const i=this.Style.value,{data:r,name:a}=this.props.conf;return{title:{show:!1,text:a,x:"center",top:"50%",textStyle:{color:"#fff",fontWeight:"normal",fontSize:28}},tooltip:{trigger:"axis",confine:!0},radar:{shape:i.type,axisNameGap:10,alignTicks:!1,splitNumber:4,indicator:r.map(n=>({name:n.name,max:n.max})),center:["50%","50%"],axisLine:{lineStyle:{type:"dashed",color:i.borderColor}},splitLine:{show:!0,lineStyle:{width:1,color:i.borderColor}},splitArea:{show:!0,areaStyle:{color:o}},axisName:{fontSize:i.textSize,color:i.textColor}},series:[{name:a!=null?a:"",type:"radar",tooltip:{trigger:"item"},data:[{name:a,value:[]}],itemStyle:{color:"#3F5FE3"},areaStyle:{color:"#4162ff"}}]}}getDefaultData(){return m}setHistoryData(i){if(!i)return;const r=this.chartObj.getOption();r.series[0].data[0].value=[],i.forEach(a=>{var n;r.series[0].data[0].value.push((n=a.data[0])!=null?n:0)}),this.chartObj.setOption(r)}setSocketData(i){if(!i||!this.chartObj)return;const{data:r}=this.props.conf,a=this.chartObj.getOption();a.series[0].data[0].value=[],r.forEach(n=>{const L=this.extractDataValue(i,n.fv);a.series[0].data[0].value.push(L!=null?L:0)}),this.chartObj.setOption(a)}}const s=new x(e,"radar");s.setupLifecycle();const C=s.getStyle(),v=s.getEchartId(),d=e.conf,S=t.computed(()=>z.generateTitleStyle(e.conf.options));return(p,i)=>(t.openBlock(),t.createElementBlock("div",{class:"mix-component",style:t.normalizeStyle({background:t.unref(C).bgColor,borderRadius:`${t.unref(C).radiusSize}px`})},[t.createElementVNode("div",{class:"mix-title",style:t.normalizeStyle(S.value)},t.toDisplayString(t.unref(d).caption||t.unref(d).name),5),t.createElementVNode("div",A,[t.createElementVNode("div",{class:"w-full h-full",id:t.unref(v)},null,8,F)]),t.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),$=M._export_sfc(P,[["__scopeId","data-v-36fbdf8b"]]);exports.default=$;
@@ -11,9 +11,9 @@ var m = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writab
11
11
  return i;
12
12
  }, g = (i, t) => O(i, w(t));
13
13
  import { defineComponent as E, computed as z, openBlock as T, createElementBlock as Z, normalizeStyle as h, unref as s, createElementVNode as c, toDisplayString as k, renderSlot as A } from "vue";
14
- import { _ as F } from "./index-BbXEpgom.js";
14
+ import { _ as F } from "./index-nru6zK5E.js";
15
15
  import "element-plus";
16
- import { E as V } from "./EChartComponentBase-DJScukmS.js";
16
+ import { E as V } from "./EChartComponentBase-DrDdGF1C.js";
17
17
  import { g as N } from "./titleStyle-BT5GlpAb.js";
18
18
  import { i as j } from "./install-BfNaEf5I.js";
19
19
  import { u as D, i as B, a as R } from "./installCanvasRenderer-oDYkyVFy.js";
@@ -12,8 +12,8 @@ var Ge = (R, y, M) => y in R ? Ht(R, y, { enumerable: !0, configurable: !0, writ
12
12
  }, Ke = (R, y) => Wt(R, zt(y));
13
13
  import { defineComponent as Xt, computed as B, ref as v, reactive as Ze, onMounted as Gt, nextTick as Je, onUnmounted as qt, watch as Kt, openBlock as f, createElementBlock as b, normalizeStyle as U, unref as A, createElementVNode as a, withModifiers as D, toDisplayString as F, createTextVNode as oe, normalizeClass as re, withDirectives as W, vModelText as ke, createBlock as Zt, Teleport as Jt, Fragment as z, renderList as j, createCommentVNode as ie, vShow as ae, renderSlot as Qt } from "vue";
14
14
  import "html2canvas";
15
- import { B as en } from "./BaseComponent-B38Blgw3.js";
16
- import { _ as tn } from "./index-BbXEpgom.js";
15
+ import { B as en } from "./BaseComponent-DMJmgFIo.js";
16
+ import { _ as tn } from "./index-nru6zK5E.js";
17
17
  import { A as nn, D as ln } from "./ele-lin-icon-Dax-ZiWV.js";
18
18
  const sn = { class: "map-toolbar" }, on = { class: "toolbar-left" }, rn = { class: "dropdown-wrapper" }, an = { class: "dropdown-wrapper" }, un = { class: "dropdown-wrapper" }, dn = { class: "model-btn-wrapper" }, cn = ["value", "checked", "onChange"], gn = {
19
19
  class: "dropdown-item",
@@ -1 +1 @@
1
- "use strict";var Ct=Object.defineProperty,At=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var $e=(k,p,x)=>p in k?Ct(k,p,{enumerable:!0,configurable:!0,writable:!0,value:x}):k[p]=x,De=(k,p)=>{for(var x in p||(p={}))Vt.call(p,x)&&$e(k,x,p[x]);if(Be)for(var x of Be(p))Mt.call(p,x)&&$e(k,x,p[x]);return k},Le=(k,p)=>At(k,Nt(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const Rt=require("./BaseComponent-9njJjeix.cjs"),Bt=require("./index-Bo49zvKb.cjs"),Te=require("./ele-lin-icon-Dke_1AmT.cjs"),$t={class:"map-toolbar"},Dt={class:"toolbar-left"},Lt={class:"dropdown-wrapper"},Tt={class:"dropdown-wrapper"},Pt={class:"dropdown-wrapper"},It={class:"model-btn-wrapper"},Ot=["value","checked","onChange"],_t={class:"dropdown-item",style:{"border-bottom":"1px solid #eee","font-weight":"bold"}},Ft=["checked"],zt=["value","checked","onChange"],Ut={style:{padding:"8px","border-bottom":"1px solid #eee",background:"#f8fbff"}},Ht={style:{"max-height":"300px","overflow-y":"auto"}},Wt={class:"dropdown-item",style:{background:"#fafafa"}},jt=["checked"],Yt=["checked","onChange"],qt={class:"dropdown-item",style:{background:"#fafafa"}},Xt=["checked"],Gt=["checked","onChange"],Kt=["checked","onChange"],Zt=["width","height","viewBox"],Jt=["width","height","viewBox"],Qt=["width","height","viewBox"],en=["title","onClick"],tn=["title","onClick"],nn={key:0,class:"draw-toolbar"},ln={class:"draw-tip"},on={DEFAULT_ICON:Te.DEFAULT_ICON,ACTIVE_ICON:Te.ACTIVE_ICON,NAME_CN:"雷达地图查看器",NAME_EN:"Radar Map Viewer",ORDER:2,PLATFORM:["pc","screen"]},rn={bgColor:{value:"#0b1a31",type:"color",label:"背景色"},canvasWidth:{value:3e3,type:"number",label:"画布宽度"},canvasHeight:{value:2500,type:"number",label:"画布高度"},geologyModelUrl:{value:"",type:"string",label:"地质模型图片URL"},dtmModelUrl:{value:"",type:"string",label:"DTM面图片URL"},uavModelUrl:{value:"",type:"string",label:"无人机地图URL"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},an=[{name:"雷达1(北)",fv:"",object_id:"",color:"#409EFF",lng:"106.7120",lat:"26.5790",elevation:"1520",region:"南帮",x:1500,y:200,angle:180,targetSide:"bottom"},{name:"雷达2(东)",fv:"",object_id:"",color:"#E6A23C",lng:"106.7180",lat:"26.5810",elevation:"1480",region:"西帮",x:2650,y:1250,angle:270,targetSide:"left"},{name:"雷达3(南)",fv:"",object_id:"",color:"#67C23A",lng:"106.7120",lat:"26.5840",elevation:"1500",region:"北帮",x:1500,y:2300,angle:0,targetSide:"top"},{name:"雷达4(西)",fv:"",object_id:"",color:"#909399",lng:"106.7060",lat:"26.5810",elevation:"1460",region:"东帮",x:350,y:1250,angle:90,targetSide:"right"}],sn=["name","fv","object_id","color","lng","lat","elevation","region","x","y","angle","targetSide"],cn=["mosaic"],un={source:"mosaic"},dn={DEFAULT:on,OPTIONS:rn,DATA:an,PARAMS:sn,SOURCE:cn,COMMON:un},gn=e.defineComponent(Le(De({},dn),{__name:"radarMapViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){const p=k;class x extends Rt.BaseComponent{extractStyles(){var i,r,a,v,f,g,d,h;const{options:t}=this.props.conf,l=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||"radarMonitor",o=((r=t==null?void 0:t.customChannel)==null?void 0:r.value)||"";return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#0b1a31",canvasWidth:((v=t==null?void 0:t.canvasWidth)==null?void 0:v.value)||3e3,canvasHeight:((f=t==null?void 0:t.canvasHeight)==null?void 0:f.value)||2500,geologyModelUrl:((g=t==null?void 0:t.geologyModelUrl)==null?void 0:g.value)||"",dtmModelUrl:((d=t==null?void 0:t.dtmModelUrl)==null?void 0:d.value)||"",uavModelUrl:((h=t==null?void 0:t.uavModelUrl)==null?void 0:h.value)||"",linkChannel:l==="custom"&&o?o:l}}onLinkEvent(t){Et(t)}}const E=new x(p,"radarMapViewer");E.setupLifecycle();const m=E.getStyle(),c=1500,u=1250,Pe=["#F57676","#FFA500","#E6A23C","#66B1FF","#71C446"],D=[{w:2200,h:1600},{w:1900,h:1400},{w:1600,h:1200},{w:1300,h:1e3},{w:1e3,h:800}],Ie=[{id:"R1",name:"雷达1(北)",region:"南帮",x:c,y:u-1050,angle:180,targetSide:"bottom",isOnline:!0},{id:"R2",name:"雷达2(东)",region:"西帮",x:c+1150,y:u,angle:270,targetSide:"left",isOnline:!0},{id:"R3",name:"雷达3(南)",region:"北帮",x:c,y:u+1050,angle:0,targetSide:"top",isOnline:!0},{id:"R4",name:"雷达4(西)",region:"东帮",x:c-1150,y:u,angle:90,targetSide:"right",isOnline:!1}],Oe=()=>{var t;const n=(t=p.conf)==null?void 0:t.data;return!Array.isArray(n)||n.length===0?Ie:n.map((l,o)=>({id:l.object_id||`R${o+1}`,name:l.name||`雷达${o+1}`,region:l.region||"",x:Number(l.x)||c,y:Number(l.y)||u,angle:Number(l.angle)||0,targetSide:l.targetSide||"bottom",isOnline:l.value!==void 0?!!l.value:!0}))},C=e.computed(()=>Oe()),y=e.ref(null),F=e.ref(null),ce=e.ref(null),W=e.ref(null),X=e.ref(null),ue=e.ref(null),de=e.ref(null),ge=e.ref(null),ve=e.ref(null),z=e.ref({top:"0px",left:"0px",minWidth:"0px"}),S=e.ref(.6),w=e.reactive({x:-300,y:-200}),G=e.ref([]),fe=e.ref([]),T=e.ref(new Set),B=e.ref(null),s=e.reactive({isDrawing:!1,mode:"surface",surfacePoints:[],mixedShapes:[],cursorPos:null,dragStart:null,isDragging:!1});let te=!1,me=0,he=0;const ne=e.computed(()=>["全部",...[...new Set(C.value.map(t=>t.region).filter(Boolean))]]),le=["区域1","区域2","区域3"],oe=["监测线1","监测线2","监测线3"],_e=[{id:"geology",label:"地质模型"},{id:"dtm",label:"DTM面"},{id:"uav",label:"无人机地图"}],L=e.ref(null),b=e.ref([]),A=e.ref([]),P=e.ref([]),I=e.ref([]),N=e.ref(["geology"]),$=e.ref(""),j=e.ref(1),K=e.ref("2025-10-10T13:22"),Z=e.ref("2026-01-18T00:00"),Fe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return n.length?b.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择区域"}),pe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return!n.length||b.value.includes("全部")?C.value:C.value.filter(t=>n.includes(t.region))}),ze=e.computed(()=>{const n=pe.value.map(t=>t.name);return n.length>0&&n.every(t=>A.value.includes(t))}),Ue=e.computed(()=>{const n=A.value.filter(t=>t!=="全部");return n.length?A.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择设备"}),He=e.computed(()=>{const n=P.value.length+I.value.length;return n===0?"选择/搜索虚拟位置":`已选(${n})`}),We=e.computed(()=>{if(!N.value.length)return"请选择模型";const t={geology:"地质模型",dtm:"DTM面",uav:"无人机地图"}[N.value[0]];return N.value.length>1?t+"...":t}),je={region:ue,radar:de,virt:ge,model:ve},J=n=>{var l;if(L.value===n){L.value=null;return}const t=(l=je[n])==null?void 0:l.value;if(t){const o=t.getBoundingClientRect();n==="model"?z.value={top:o.bottom+2+"px",left:"auto",right:window.innerWidth-o.right+"px",minWidth:o.width+"px"}:z.value={top:o.bottom+2+"px",left:o.left+"px",right:"auto",minWidth:o.width+"px"}}L.value=n},be=n=>{const t=n.target;t!=null&&t.closest(".tp-dropdown")||t!=null&&t.closest(".dropdown-wrapper")||t!=null&&t.closest(".model-btn-wrapper")||(L.value=null)},Ye=(n,t)=>{const l=ne.value.filter(o=>o!=="全部");if(n==="全部")b.value=t?[...ne.value]:[];else{let o=b.value.filter(i=>i!=="全部");t?o.includes(n)||o.push(n):o=o.filter(i=>i!==n),l.every(i=>o.includes(i))&&(o=["全部",...l]),b.value=o}U()},we=(n,t)=>{const l=C.value.map(o=>o.name);if(n==="全部")A.value=t?["全部",...l]:[];else{let o=A.value.filter(i=>i!=="全部");if(t){o.includes(n)||o.push(n);const i=C.value.find(r=>r.name===n);i&&!b.value.includes(i.region)&&(b.value=[...b.value,i.region])}else o=o.filter(i=>i!==n);l.every(i=>o.includes(i))&&(o=["全部",...l]),A.value=o}U()},qe=n=>{P.value=n?[...le]:[],U()},Xe=(n,t)=>{let l=[...P.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),P.value=l,U()},Ge=n=>{I.value=n?[...oe]:[],U()},Ke=(n,t)=>{let l=[...I.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),I.value=l,U()},Ze=(n,t)=>{t?N.value.includes(n)||N.value.push(n):N.value=N.value.filter(l=>l!==n),Je()},Je=()=>{const n=F.value;if(!n)return;n.querySelectorAll(".model-overlay").forEach(o=>o.remove());const t={geology:m.value.geologyModelUrl,dtm:m.value.dtmModelUrl,uav:m.value.uavModelUrl};let l=!1;if(N.value.forEach(o=>{const i=t[o];if(i){l=!0;const r=document.createElement("img");r.className="model-overlay",r.src=i,r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:2;opacity:0.6;",n.insertBefore(r,n.firstChild)}}),l)n.style.filter="none";else{let o="";N.value.includes("uav")&&(o+="saturate(1.5) contrast(1.2) "),N.value.includes("dtm")&&(o+="brightness(1.1) "),n.style.filter=o.trim()||"none"}},re=n=>{j.value=n,E.publish({type:"timeRangeChange",days:n,start:K.value,end:Z.value})},ye=()=>{j.value=0,E.publish({type:"timeRangeChange",days:0,start:K.value,end:Z.value})},Qe=()=>{Ce("point")},Se=n=>{const t=b.value.filter(o=>o!=="全部"),l=A.value.filter(o=>o!=="全部");return!(t.length>0&&!t.includes(n.region)||l.length>0&&!l.includes(n.name))},U=()=>{const n=b.value.filter(l=>l!=="全部"),t=A.value.filter(l=>l!=="全部");if(T.value.clear(),C.value.forEach(l=>{if(!l.isOnline)return;let o=!0;n.length>0&&!n.includes(l.region)&&(o=!1),t.length>0&&!t.includes(l.name)&&(o=!1),o&&T.value.add(l.id)}),et(n),n.length===1){const l=C.value.find(o=>o.region===n[0]);l&&Ee(l)}t.length===1?E.publish({type:"regionFilter",regions:[],radars:[t[0]]}):n.length===1?E.publish({type:"regionFilter",regions:[n[0]],radars:[]}):E.publish({type:"regionFilter",regions:[],radars:[]})},et=n=>{const t=W.value;if(!t||(t.querySelectorAll(".region-highlight").forEach(i=>i.remove()),n.length===0||n.includes("全部")))return;const l="http://www.w3.org/2000/svg",o={北帮:{x:600,y:0,w:1800,h:600},南帮:{x:600,y:1900,w:1800,h:600},东帮:{x:2400,y:600,w:600,h:1300},西帮:{x:0,y:600,w:600,h:1300}};n.forEach(i=>{const r=o[i];if(!r)return;const a=document.createElementNS(l,"rect");a.setAttribute("x",String(r.x)),a.setAttribute("y",String(r.y)),a.setAttribute("width",String(r.w)),a.setAttribute("height",String(r.h)),a.setAttribute("fill","rgba(255, 255, 0, 0.15)"),a.setAttribute("stroke","rgba(255, 255, 0, 0.7)"),a.setAttribute("stroke-width","3"),a.setAttribute("class","region-highlight"),t.appendChild(a)})},tt=e.computed(()=>{const n=b.value.filter(a=>a!=="全部"),t=A.value.filter(a=>a!=="全部"),l=P.value.map(a=>a.replace("区域","")),o=I.value.map(a=>a.replace("监测线","")),i=[...new Set([...l,...o])];let r=fe.value;return B.value?r.filter(a=>a.radarId===B.value):r.filter(a=>!(n.length>0&&!n.includes(a.region)||t.length>0&&!t.includes(a.radarName)||i.length>0&&!i.includes(a.surfaceId)))}),nt=e.computed(()=>s.mode==="surface"?"【面模式】左键点击添加节点,右键闭合区域":"【点模式】左键点击选点,左键拖拽画线,右键结束"),lt=n=>n>=8?0:n>=5?1:n>=3?2:n>=2?3:4,ot=n=>({left:n.x-20+"px",top:n.y-20+"px"}),rt=n=>({left:n.x-1200+"px",top:n.y-2e3+"px",transform:`rotate(${n.angle}deg)`}),at=n=>T.value.has(n),it=n=>{const t=!B.value||n.radarId===B.value;return{left:n.x+"px",top:n.y+"px",backgroundColor:Pe[n.alarmIdx],opacity:t?1:.05,transform:t&&B.value?"scale(1.5)":"scale(1)",zIndex:t?100:1}},ke=()=>{const n=ce.value;if(!n)return;n.innerHTML="";const t="http://www.w3.org/2000/svg",l=["#409EFF","#E6A23C","#F56C6C","#67C23A","#909399"],o=[4,2,2,2,2],i=[.3,.5,.5,.5,.3];D.forEach((f,g)=>{const d=document.createElementNS(t,"rect");d.setAttribute("x",String(c-f.w/2)),d.setAttribute("y",String(u-f.h/2)),d.setAttribute("width",String(f.w)),d.setAttribute("height",String(f.h)),d.setAttribute("fill","none"),d.setAttribute("stroke",l[g]),d.setAttribute("stroke-width",String(o[g])),d.setAttribute("opacity",String(i[g])),n.appendChild(d)});const r=D[0],a=D[4];[[c-r.w/2,u-r.h/2,c-a.w/2,u-a.h/2],[c+r.w/2,u-r.h/2,c+a.w/2,u-a.h/2],[c+r.w/2,u+r.h/2,c+a.w/2,u+a.h/2],[c-r.w/2,u+r.h/2,c-a.w/2,u+a.h/2]].forEach(([f,g,d,h])=>{const V=document.createElementNS(t,"line");V.setAttribute("x1",String(f)),V.setAttribute("y1",String(g)),V.setAttribute("x2",String(d)),V.setAttribute("y2",String(h)),V.setAttribute("stroke","#409EFF"),V.setAttribute("stroke-width","1"),V.setAttribute("opacity","0.2"),n.appendChild(V)})},xe=()=>{const n=[],t=[D[0],D[1],D[2],D[3]];C.value.forEach(l=>{for(let o=0;o<3;o++){const i=t[o],r=t[o+1],a=String(o+1),v=3+Math.floor(Math.random()*2);for(let f=1;f<=v;f++){const g=`${l.id}-S${a}-P${f}`,d=Math.random(),h=i.w+(r.w-i.w)*d,V=i.h+(r.h-i.h)*d;let Y,q;if(l.targetSide==="bottom"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u+i.h/2,_=u+r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="top"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u-i.h/2,_=u-r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="left"){const M=V*.8;q=u-M/2+Math.random()*M;const R=c-i.w/2,_=c-r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}else{const M=V*.8;q=u-M/2+Math.random()*M;const R=c+i.w/2,_=c+r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}const ee=Math.random();let O;ee<.05?O=8+Math.random()*4:ee<.15?O=5+Math.random()*3:ee<.35?O=3+Math.random()*2:ee<.6?O=2+Math.random()*1:O=.1+Math.random()*1.9,n.push({id:g,x:Y,y:q,radarId:l.id,radarName:l.name,region:l.region,surfaceId:a,alarmIdx:lt(O),speed:O.toFixed(2),deviceId:`${l.name}-点${f}`,isOnline:l.isOnline})}}}),fe.value=n},H=()=>{const n=F.value;n&&(n.style.width=m.value.canvasWidth+"px",n.style.height=m.value.canvasHeight+"px",n.style.transform=`translate(${w.x}px, ${w.y}px) scale(${S.value})`)},st=n=>{if(n.button===0){if(s.isDrawing){bt(n);return}te=!0,me=n.clientX-w.x,he=n.clientY-w.y,y.value&&(y.value.style.cursor="grabbing")}},ct=n=>{if(s.isDrawing){s.cursorPos=ae(n),Q();return}te&&(w.x=n.clientX-me,w.y=n.clientY-he,H())},ut=n=>{if(s.isDrawing&&s.mode!=="surface"){wt(n);return}te=!1,y.value&&(y.value.style.cursor=s.isDrawing?"crosshair":"grab")},dt=n=>{s.isDrawing&&Ne()},gt=n=>{const t=y.value;if(!t)return;const l=Math.min(Math.max(.2,S.value+n.deltaY*-.0012),3.5),o=t.getBoundingClientRect(),i=n.clientX-o.left,r=n.clientY-o.top,a=l/S.value;w.x=i-(i-w.x)*a,w.y=r-(r-w.y)*a,S.value=l,H()},ae=n=>{const t=F.value.getBoundingClientRect();return{x:(n.clientX-t.left)/S.value,y:(n.clientY-t.top)/S.value}},vt=n=>{B.value=B.value===n.id?null:n.id,T.value.clear(),B.value?(T.value.add(n.id),Ee(n),ht(n)):(C.value.filter(t=>t.isOnline).forEach(t=>T.value.add(t.id)),mt(),ft()),E.publish({type:"regionFilter",regions:B.value?[n.region]:[],radars:B.value?[n.name]:[]})},Ee=n=>{const t=y.value,l=F.value;if(!t||!l)return;let o=n.x,i=n.y;n.targetSide==="bottom"?i+=600:n.targetSide==="top"?i-=600:n.targetSide==="left"?o-=600:n.targetSide==="right"&&(o+=600),S.value=.9,w.x=t.clientWidth/2-o*S.value,w.y=t.clientHeight/2-i*S.value,l.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{l&&(l.style.transition="none")},650)},ft=()=>{const n=F.value;S.value=.6,w.x=-300,w.y=-200,n?(n.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{n&&(n.style.transition="none")},650)):H()},mt=()=>{W.value&&(W.value.innerHTML="")},ht=n=>{const t=W.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg",o=D.slice(0,4);for(let i=0;i<3;i++){const r=o[i],a=o[i+1];let v="",f=0,g=0;n.targetSide==="bottom"?(v=[`${c-r.w/2},${u+r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c-a.w/2},${u+a.h/2}`].join(" "),f=c,g=u+a.h/2+(r.h/2-a.h/2)/2):n.targetSide==="top"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c+r.w/2},${u-r.h/2}`,`${c+a.w/2},${u-a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c,g=u-a.h/2-(r.h/2-a.h/2)/2):n.targetSide==="left"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c-r.w/2},${u+r.h/2}`,`${c-a.w/2},${u+a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c-a.w/2-(r.w/2-a.w/2)/2,g=u):(v=[`${c+r.w/2},${u-r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c+a.w/2},${u-a.h/2}`].join(" "),f=c+a.w/2+(r.w/2-a.w/2)/2,g=u);const d=document.createElementNS(l,"polygon");d.setAttribute("points",v),d.setAttribute("fill","rgba(64,158,255,0.25)"),d.setAttribute("stroke","rgba(64,158,255,0.8)"),d.setAttribute("stroke-width","2"),t.appendChild(d);const h=document.createElementNS(l,"text");h.setAttribute("x",String(f)),h.setAttribute("y",String(g)),h.setAttribute("text-anchor","middle"),h.setAttribute("dominant-baseline","middle"),h.setAttribute("fill","#fff"),h.setAttribute("font-size","24"),h.setAttribute("font-weight","bold"),h.style.pointerEvents="none",h.textContent=`区域 ${i+1}`,t.appendChild(h)}},Ce=n=>{s.isDrawing=!0,s.mode=n,s.surfacePoints=[],s.mixedShapes=[],s.cursorPos=null,s.dragStart=null,s.isDragging=!1,y.value&&(y.value.style.cursor="crosshair"),Ae()},pt=()=>{s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.dragStart=null},Ae=()=>{X.value&&(X.value.innerHTML="")},bt=n=>{const t=ae(n);s.mode==="surface"?(s.surfacePoints.push(t),Q()):(s.dragStart=t,s.isDragging=!0)},wt=n=>{if(s.mode==="surface"||!s.dragStart)return;const t=ae(n),l=t.x-s.dragStart.x,o=t.y-s.dragStart.y;Math.sqrt(l*l+o*o)<5?s.mixedShapes.push({type:"point",x:s.dragStart.x,y:s.dragStart.y}):s.mixedShapes.push({type:"line",x1:s.dragStart.x,y1:s.dragStart.y,x2:t.x,y2:t.y}),s.isDragging=!1,s.dragStart=null,Q()},Ne=()=>{if(!s.isDrawing)return;const n=s.mode==="surface"&&s.surfacePoints.length>=3,t=s.mode!=="surface"&&s.mixedShapes.length>0;if(!n&&!t){ie();return}s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.cursorPos=null,Q(!0),E.publish({type:"customAreaComplete"})},yt=()=>Ne(),ie=()=>{pt(),Ae(),E.publish({type:"customAreaCancel"})},Q=(n=!1)=>{const t=X.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg";if(s.mode==="surface"){if(s.surfacePoints.length>0){let o=`M ${s.surfacePoints[0].x} ${s.surfacePoints[0].y}`;for(let r=1;r<s.surfacePoints.length;r++)o+=` L ${s.surfacePoints[r].x} ${s.surfacePoints[r].y}`;!n&&s.cursorPos&&(o+=` L ${s.cursorPos.x} ${s.cursorPos.y}`),n&&(o+=" Z");const i=document.createElementNS(l,"path");i.setAttribute("d",o),i.setAttribute("fill","rgba(152,251,152,0.4)"),i.setAttribute("stroke","#333"),i.setAttribute("stroke-width","1.5"),i.setAttribute("stroke-dasharray","5,5"),t.appendChild(i),s.surfacePoints.forEach(r=>se(t,r.x,r.y,"#333"))}!n&&s.cursorPos&&St(t,s.cursorPos.x,s.cursorPos.y)}else s.mixedShapes.forEach(o=>{o.type==="point"?kt(t,o.x,o.y):Ve(t,o.x1,o.y1,o.x2,o.y2,!1)}),s.isDragging&&s.dragStart&&s.cursorPos&&Ve(t,s.dragStart.x,s.dragStart.y,s.cursorPos.x,s.cursorPos.y,!0)},se=(n,t,l,o)=>{const i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttribute("cx",String(t)),i.setAttribute("cy",String(l)),i.setAttribute("r",String(4/S.value)),i.setAttribute("fill","#fff"),i.setAttribute("stroke",o),n.appendChild(i)},St=(n,t,l)=>{const o="http://www.w3.org/2000/svg";[[t,l-5e3,t,l+5e3],[t-5e3,l,t+5e3,l]].forEach(([r,a,v,f])=>{const g=document.createElementNS(o,"line");g.setAttribute("x1",String(r)),g.setAttribute("y1",String(a)),g.setAttribute("x2",String(v)),g.setAttribute("y2",String(f)),g.setAttribute("stroke","#ffffff"),g.setAttribute("stroke-width","2"),g.setAttribute("stroke-dasharray","8,4"),g.style.filter="drop-shadow(0 0 2px rgba(0,0,0,0.8))",n.appendChild(g)})},kt=(n,t,l)=>{const o="http://www.w3.org/2000/svg",i=10/S.value,r=document.createElementNS(o,"circle");r.setAttribute("cx",String(t)),r.setAttribute("cy",String(l)),r.setAttribute("r",String(i)),r.setAttribute("fill","rgba(230,162,60,0.3)"),r.setAttribute("stroke","#E6A23C"),n.appendChild(r);const a=document.createElementNS(o,"circle");a.setAttribute("cx",String(t)),a.setAttribute("cy",String(l)),a.setAttribute("r",String(4/S.value)),a.setAttribute("fill","#E6A23C"),n.appendChild(a)},Ve=(n,t,l,o,i,r)=>{const v=document.createElementNS("http://www.w3.org/2000/svg","line");v.setAttribute("x1",String(t)),v.setAttribute("y1",String(l)),v.setAttribute("x2",String(o)),v.setAttribute("y2",String(i)),v.setAttribute("stroke","#E6A23C"),v.setAttribute("stroke-width","3"),r&&v.setAttribute("stroke-dasharray","5,5"),n.appendChild(v),se(n,t,l,"#E6A23C"),se(n,o,i,"#E6A23C")},xt=n=>{E.publish({type:"openAnalysis",deviceId:n.id,region:n.region})},Et=n=>{const{payload:t}=n;if(t.type==="customArea"){t.action==="start"?Ce(t.mode||"surface"):t.action==="stop"&&ie();return}},Me=n=>ct(n),Re=n=>ut(n);return e.onMounted(()=>{window.addEventListener("mousemove",Me),window.addEventListener("mouseup",Re),window.addEventListener("click",be),G.value=C.value;const n=C.value.filter(l=>l.isOnline);A.value=n.map(l=>l.name);const t=new Set(n.map(l=>l.region));b.value=Array.from(t),n.forEach(l=>T.value.add(l.id)),e.nextTick(()=>{ke(),xe(),H()})}),e.onUnmounted(()=>{window.removeEventListener("mousemove",Me),window.removeEventListener("mouseup",Re),window.removeEventListener("click",be)}),e.watch(()=>p.conf,()=>{E.init(),G.value=C.value,e.nextTick(()=>{ke(),xe()})},{deep:!0}),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"radar-map-wrapper",style:e.normalizeStyle({background:e.unref(m).bgColor})},[e.createElementVNode("div",$t,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Lt,[e.createElementVNode("button",{ref_key:"regionBtnRef",ref:ue,class:"tb-btn",onClick:t[0]||(t[0]=e.withModifiers(l=>J("region"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Fe.value),1),t[17]||(t[17]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Tt,[e.createElementVNode("button",{ref_key:"radarBtnRef",ref:de,class:"tb-btn",onClick:t[1]||(t[1]=e.withModifiers(l=>J("radar"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Ue.value),1),t[18]||(t[18]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Pt,[e.createElementVNode("button",{ref_key:"virtBtnRef",ref:ge,class:"tb-btn",onClick:t[2]||(t[2]=e.withModifiers(l=>J("virt"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(He.value),1),t[19]||(t[19]=e.createTextVNode(" ▼ ",-1))],512)]),t[20]||(t[20]=e.createElementVNode("div",{class:"divider-v"},null,-1)),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===1}]),onClick:t[3]||(t[3]=l=>re(1))},"一天内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===7}]),onClick:t[4]||(t[4]=l=>re(7))},"一周内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===30}]),onClick:t[5]||(t[5]=l=>re(30))},"一个月内",2),t[21]||(t[21]=e.createElementVNode("span",{class:"time-label"},"时间:",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[6]||(t[6]=l=>K.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,K.value]]),t[22]||(t[22]=e.createElementVNode("span",{class:"time-label"},"至",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[7]||(t[7]=l=>Z.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,Z.value]])]),e.createElementVNode("div",{class:"toolbar-right"},[e.createElementVNode("button",{class:"btn-profile",onClick:Qe},"剖面图绘制")])]),e.createElementVNode("div",It,[e.createElementVNode("button",{ref_key:"modelBtnRef",ref:ve,class:"tb-btn model-btn",onClick:t[8]||(t[8]=e.withModifiers(l=>J("model"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(We.value),1),t[23]||(t[23]=e.createTextVNode(" ▼ ",-1))],512)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[L.value==="region"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[9]||(t[9]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l,checked:b.value.includes(l),onChange:o=>Ye(l,o.target.checked)},null,40,Ot),e.createElementVNode("span",{style:e.normalizeStyle(l==="全部"?"font-weight:bold;color:#1c3d90":"")},e.toDisplayString(l),5)]))),128))],4)):e.createCommentVNode("",!0),L.value==="radar"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[11]||(t[11]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",_t,[e.createElementVNode("input",{type:"checkbox",value:"全部",checked:ze.value,onChange:t[10]||(t[10]=l=>we("全部",l.target.checked))},null,40,Ft),t[24]||(t[24]=e.createElementVNode("span",null,"全部雷达",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l.name,checked:A.value.includes(l.name),onChange:o=>we(l.name,o.target.checked)},null,40,zt),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:l.isOnline?"#71C446":"#999",fontSize:"12px"})},"●",4)])]))),128))],4)):e.createCommentVNode("",!0),L.value==="virt"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[15]||(t[15]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ut,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[12]||(t[12]=l=>$.value=l),placeholder:"搜索区域或监测线...",style:{width:"100%",padding:"4px 8px",border:"1px solid #ddd","border-radius":"4px","font-size":"12px"}},null,512),[[e.vModelText,$.value]])]),e.createElementVNode("div",Ht,[t[27]||(t[27]=e.createElementVNode("div",{class:"dropdown-group-title"},"虚拟区域",-1)),e.withDirectives(e.createElementVNode("label",Wt,[e.createElementVNode("input",{type:"checkbox",checked:le.every(l=>P.value.includes(l)),onChange:t[13]||(t[13]=l=>qe(l.target.checked))},null,40,jt),t[25]||(t[25]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(le,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:P.value.includes(l),onChange:o=>Xe(l,o.target.checked)},null,40,Yt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64)),t[28]||(t[28]=e.createElementVNode("div",{class:"dropdown-group-title",style:{"margin-top":"5px"}},"监测线",-1)),e.withDirectives(e.createElementVNode("label",qt,[e.createElementVNode("input",{type:"checkbox",checked:oe.every(l=>I.value.includes(l)),onChange:t[14]||(t[14]=l=>Ge(l.target.checked))},null,40,Xt),t[26]||(t[26]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(oe,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:I.value.includes(l),onChange:o=>Ke(l,o.target.checked)},null,40,Gt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64))])],4)):e.createCommentVNode("",!0),L.value==="model"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[16]||(t[16]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_e,l=>e.createElementVNode("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:N.value.includes(l.id),onChange:o=>Ze(l.id,o.target.checked)},null,40,Kt),e.createElementVNode("span",null,e.toDisplayString(l.label),1)])),64))],4)):e.createCommentVNode("",!0)])),e.createElementVNode("div",{ref_key:"viewerRef",ref:y,class:"map-viewer",onMousedown:st,onContextmenu:e.withModifiers(dt,["prevent"]),onWheel:e.withModifiers(gt,["prevent"])},[e.createElementVNode("div",{ref_key:"canvasRef",ref:F,class:"map-canvas"},[(e.openBlock(),e.createElementBlock("svg",{ref_key:"baseSvgRef",ref:ce,class:"base-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Zt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"highlightSvgRef",ref:W,class:"highlight-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Jt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"customSvgRef",ref:X,class:"custom-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Qt)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["radar-station",{offline:!l.isOnline}]),style:e.normalizeStyle(ot(l)),title:`${l.name}(${l.isOnline?"在线":"离线"})`,onClick:e.withModifiers(o=>vt(l),["stop"])},"📡",14,en)),[[e.vShow,Se(l)]])),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>(e.openBlock(),e.createElementBlock("div",{key:"cloud-"+l.id,class:e.normalizeClass(["radar-cloud",{visible:at(l.id)&&Se(l),"no-anim":k.mode==="edit"}]),style:e.normalizeStyle(rt(l))},null,6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"virtual-point",style:e.normalizeStyle(it(l)),title:`${l.deviceId} | ${l.speed} mm/h`,onClick:e.withModifiers(o=>xt(l),["stop"])},null,12,tn))),128))],512)],544),s.isDrawing?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("span",ln,e.toDisplayString(nt.value),1),e.createElementVNode("button",{class:"toolbar-btn confirm",onClick:yt},"确定生成"),e.createElementVNode("button",{class:"toolbar-btn",onClick:ie},"取消")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),vn=Bt._export_sfc(gn,[["__scopeId","data-v-cc924deb"]]);exports.default=vn;
1
+ "use strict";var Ct=Object.defineProperty,At=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable;var $e=(k,p,x)=>p in k?Ct(k,p,{enumerable:!0,configurable:!0,writable:!0,value:x}):k[p]=x,De=(k,p)=>{for(var x in p||(p={}))Vt.call(p,x)&&$e(k,x,p[x]);if(Be)for(var x of Be(p))Mt.call(p,x)&&$e(k,x,p[x]);return k},Le=(k,p)=>At(k,Nt(p));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("html2canvas");const Rt=require("./BaseComponent-CPat9pFl.cjs"),Bt=require("./index-D9ehIVda.cjs"),Te=require("./ele-lin-icon-Dke_1AmT.cjs"),$t={class:"map-toolbar"},Dt={class:"toolbar-left"},Lt={class:"dropdown-wrapper"},Tt={class:"dropdown-wrapper"},Pt={class:"dropdown-wrapper"},It={class:"model-btn-wrapper"},Ot=["value","checked","onChange"],_t={class:"dropdown-item",style:{"border-bottom":"1px solid #eee","font-weight":"bold"}},Ft=["checked"],zt=["value","checked","onChange"],Ut={style:{padding:"8px","border-bottom":"1px solid #eee",background:"#f8fbff"}},Ht={style:{"max-height":"300px","overflow-y":"auto"}},Wt={class:"dropdown-item",style:{background:"#fafafa"}},jt=["checked"],Yt=["checked","onChange"],qt={class:"dropdown-item",style:{background:"#fafafa"}},Xt=["checked"],Gt=["checked","onChange"],Kt=["checked","onChange"],Zt=["width","height","viewBox"],Jt=["width","height","viewBox"],Qt=["width","height","viewBox"],en=["title","onClick"],tn=["title","onClick"],nn={key:0,class:"draw-toolbar"},ln={class:"draw-tip"},on={DEFAULT_ICON:Te.DEFAULT_ICON,ACTIVE_ICON:Te.ACTIVE_ICON,NAME_CN:"雷达地图查看器",NAME_EN:"Radar Map Viewer",ORDER:2,PLATFORM:["pc","screen"]},rn={bgColor:{value:"#0b1a31",type:"color",label:"背景色"},canvasWidth:{value:3e3,type:"number",label:"画布宽度"},canvasHeight:{value:2500,type:"number",label:"画布高度"},geologyModelUrl:{value:"",type:"string",label:"地质模型图片URL"},dtmModelUrl:{value:"",type:"string",label:"DTM面图片URL"},uavModelUrl:{value:"",type:"string",label:"无人机地图URL"},linkChannel:{value:"radarMonitor",type:"select",label:"联动频道",options:[{label:"雷达监测",value:"radarMonitor"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},an=[{name:"雷达1(北)",fv:"",object_id:"",color:"#409EFF",lng:"106.7120",lat:"26.5790",elevation:"1520",region:"南帮",x:1500,y:200,angle:180,targetSide:"bottom"},{name:"雷达2(东)",fv:"",object_id:"",color:"#E6A23C",lng:"106.7180",lat:"26.5810",elevation:"1480",region:"西帮",x:2650,y:1250,angle:270,targetSide:"left"},{name:"雷达3(南)",fv:"",object_id:"",color:"#67C23A",lng:"106.7120",lat:"26.5840",elevation:"1500",region:"北帮",x:1500,y:2300,angle:0,targetSide:"top"},{name:"雷达4(西)",fv:"",object_id:"",color:"#909399",lng:"106.7060",lat:"26.5810",elevation:"1460",region:"东帮",x:350,y:1250,angle:90,targetSide:"right"}],sn=["name","fv","object_id","color","lng","lat","elevation","region","x","y","angle","targetSide"],cn=["mosaic"],un={source:"mosaic"},dn={DEFAULT:on,OPTIONS:rn,DATA:an,PARAMS:sn,SOURCE:cn,COMMON:un},gn=e.defineComponent(Le(De({},dn),{__name:"radarMapViewer",props:{conf:{type:Object,default:()=>({})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(k){const p=k;class x extends Rt.BaseComponent{extractStyles(){var i,r,a,v,f,g,d,h;const{options:t}=this.props.conf,l=((i=t==null?void 0:t.linkChannel)==null?void 0:i.value)||"radarMonitor",o=((r=t==null?void 0:t.customChannel)==null?void 0:r.value)||"";return{bgColor:((a=t==null?void 0:t.bgColor)==null?void 0:a.value)||"#0b1a31",canvasWidth:((v=t==null?void 0:t.canvasWidth)==null?void 0:v.value)||3e3,canvasHeight:((f=t==null?void 0:t.canvasHeight)==null?void 0:f.value)||2500,geologyModelUrl:((g=t==null?void 0:t.geologyModelUrl)==null?void 0:g.value)||"",dtmModelUrl:((d=t==null?void 0:t.dtmModelUrl)==null?void 0:d.value)||"",uavModelUrl:((h=t==null?void 0:t.uavModelUrl)==null?void 0:h.value)||"",linkChannel:l==="custom"&&o?o:l}}onLinkEvent(t){Et(t)}}const E=new x(p,"radarMapViewer");E.setupLifecycle();const m=E.getStyle(),c=1500,u=1250,Pe=["#F57676","#FFA500","#E6A23C","#66B1FF","#71C446"],D=[{w:2200,h:1600},{w:1900,h:1400},{w:1600,h:1200},{w:1300,h:1e3},{w:1e3,h:800}],Ie=[{id:"R1",name:"雷达1(北)",region:"南帮",x:c,y:u-1050,angle:180,targetSide:"bottom",isOnline:!0},{id:"R2",name:"雷达2(东)",region:"西帮",x:c+1150,y:u,angle:270,targetSide:"left",isOnline:!0},{id:"R3",name:"雷达3(南)",region:"北帮",x:c,y:u+1050,angle:0,targetSide:"top",isOnline:!0},{id:"R4",name:"雷达4(西)",region:"东帮",x:c-1150,y:u,angle:90,targetSide:"right",isOnline:!1}],Oe=()=>{var t;const n=(t=p.conf)==null?void 0:t.data;return!Array.isArray(n)||n.length===0?Ie:n.map((l,o)=>({id:l.object_id||`R${o+1}`,name:l.name||`雷达${o+1}`,region:l.region||"",x:Number(l.x)||c,y:Number(l.y)||u,angle:Number(l.angle)||0,targetSide:l.targetSide||"bottom",isOnline:l.value!==void 0?!!l.value:!0}))},C=e.computed(()=>Oe()),y=e.ref(null),F=e.ref(null),ce=e.ref(null),W=e.ref(null),X=e.ref(null),ue=e.ref(null),de=e.ref(null),ge=e.ref(null),ve=e.ref(null),z=e.ref({top:"0px",left:"0px",minWidth:"0px"}),S=e.ref(.6),w=e.reactive({x:-300,y:-200}),G=e.ref([]),fe=e.ref([]),T=e.ref(new Set),B=e.ref(null),s=e.reactive({isDrawing:!1,mode:"surface",surfacePoints:[],mixedShapes:[],cursorPos:null,dragStart:null,isDragging:!1});let te=!1,me=0,he=0;const ne=e.computed(()=>["全部",...[...new Set(C.value.map(t=>t.region).filter(Boolean))]]),le=["区域1","区域2","区域3"],oe=["监测线1","监测线2","监测线3"],_e=[{id:"geology",label:"地质模型"},{id:"dtm",label:"DTM面"},{id:"uav",label:"无人机地图"}],L=e.ref(null),b=e.ref([]),A=e.ref([]),P=e.ref([]),I=e.ref([]),N=e.ref(["geology"]),$=e.ref(""),j=e.ref(1),K=e.ref("2025-10-10T13:22"),Z=e.ref("2026-01-18T00:00"),Fe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return n.length?b.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择区域"}),pe=e.computed(()=>{const n=b.value.filter(t=>t!=="全部");return!n.length||b.value.includes("全部")?C.value:C.value.filter(t=>n.includes(t.region))}),ze=e.computed(()=>{const n=pe.value.map(t=>t.name);return n.length>0&&n.every(t=>A.value.includes(t))}),Ue=e.computed(()=>{const n=A.value.filter(t=>t!=="全部");return n.length?A.value.includes("全部")?"已选全部":n.length<=1?n[0]:`已选(${n.length})`:"选择设备"}),He=e.computed(()=>{const n=P.value.length+I.value.length;return n===0?"选择/搜索虚拟位置":`已选(${n})`}),We=e.computed(()=>{if(!N.value.length)return"请选择模型";const t={geology:"地质模型",dtm:"DTM面",uav:"无人机地图"}[N.value[0]];return N.value.length>1?t+"...":t}),je={region:ue,radar:de,virt:ge,model:ve},J=n=>{var l;if(L.value===n){L.value=null;return}const t=(l=je[n])==null?void 0:l.value;if(t){const o=t.getBoundingClientRect();n==="model"?z.value={top:o.bottom+2+"px",left:"auto",right:window.innerWidth-o.right+"px",minWidth:o.width+"px"}:z.value={top:o.bottom+2+"px",left:o.left+"px",right:"auto",minWidth:o.width+"px"}}L.value=n},be=n=>{const t=n.target;t!=null&&t.closest(".tp-dropdown")||t!=null&&t.closest(".dropdown-wrapper")||t!=null&&t.closest(".model-btn-wrapper")||(L.value=null)},Ye=(n,t)=>{const l=ne.value.filter(o=>o!=="全部");if(n==="全部")b.value=t?[...ne.value]:[];else{let o=b.value.filter(i=>i!=="全部");t?o.includes(n)||o.push(n):o=o.filter(i=>i!==n),l.every(i=>o.includes(i))&&(o=["全部",...l]),b.value=o}U()},we=(n,t)=>{const l=C.value.map(o=>o.name);if(n==="全部")A.value=t?["全部",...l]:[];else{let o=A.value.filter(i=>i!=="全部");if(t){o.includes(n)||o.push(n);const i=C.value.find(r=>r.name===n);i&&!b.value.includes(i.region)&&(b.value=[...b.value,i.region])}else o=o.filter(i=>i!==n);l.every(i=>o.includes(i))&&(o=["全部",...l]),A.value=o}U()},qe=n=>{P.value=n?[...le]:[],U()},Xe=(n,t)=>{let l=[...P.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),P.value=l,U()},Ge=n=>{I.value=n?[...oe]:[],U()},Ke=(n,t)=>{let l=[...I.value];t?l.includes(n)||l.push(n):l=l.filter(o=>o!==n),I.value=l,U()},Ze=(n,t)=>{t?N.value.includes(n)||N.value.push(n):N.value=N.value.filter(l=>l!==n),Je()},Je=()=>{const n=F.value;if(!n)return;n.querySelectorAll(".model-overlay").forEach(o=>o.remove());const t={geology:m.value.geologyModelUrl,dtm:m.value.dtmModelUrl,uav:m.value.uavModelUrl};let l=!1;if(N.value.forEach(o=>{const i=t[o];if(i){l=!0;const r=document.createElement("img");r.className="model-overlay",r.src=i,r.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:2;opacity:0.6;",n.insertBefore(r,n.firstChild)}}),l)n.style.filter="none";else{let o="";N.value.includes("uav")&&(o+="saturate(1.5) contrast(1.2) "),N.value.includes("dtm")&&(o+="brightness(1.1) "),n.style.filter=o.trim()||"none"}},re=n=>{j.value=n,E.publish({type:"timeRangeChange",days:n,start:K.value,end:Z.value})},ye=()=>{j.value=0,E.publish({type:"timeRangeChange",days:0,start:K.value,end:Z.value})},Qe=()=>{Ce("point")},Se=n=>{const t=b.value.filter(o=>o!=="全部"),l=A.value.filter(o=>o!=="全部");return!(t.length>0&&!t.includes(n.region)||l.length>0&&!l.includes(n.name))},U=()=>{const n=b.value.filter(l=>l!=="全部"),t=A.value.filter(l=>l!=="全部");if(T.value.clear(),C.value.forEach(l=>{if(!l.isOnline)return;let o=!0;n.length>0&&!n.includes(l.region)&&(o=!1),t.length>0&&!t.includes(l.name)&&(o=!1),o&&T.value.add(l.id)}),et(n),n.length===1){const l=C.value.find(o=>o.region===n[0]);l&&Ee(l)}t.length===1?E.publish({type:"regionFilter",regions:[],radars:[t[0]]}):n.length===1?E.publish({type:"regionFilter",regions:[n[0]],radars:[]}):E.publish({type:"regionFilter",regions:[],radars:[]})},et=n=>{const t=W.value;if(!t||(t.querySelectorAll(".region-highlight").forEach(i=>i.remove()),n.length===0||n.includes("全部")))return;const l="http://www.w3.org/2000/svg",o={北帮:{x:600,y:0,w:1800,h:600},南帮:{x:600,y:1900,w:1800,h:600},东帮:{x:2400,y:600,w:600,h:1300},西帮:{x:0,y:600,w:600,h:1300}};n.forEach(i=>{const r=o[i];if(!r)return;const a=document.createElementNS(l,"rect");a.setAttribute("x",String(r.x)),a.setAttribute("y",String(r.y)),a.setAttribute("width",String(r.w)),a.setAttribute("height",String(r.h)),a.setAttribute("fill","rgba(255, 255, 0, 0.15)"),a.setAttribute("stroke","rgba(255, 255, 0, 0.7)"),a.setAttribute("stroke-width","3"),a.setAttribute("class","region-highlight"),t.appendChild(a)})},tt=e.computed(()=>{const n=b.value.filter(a=>a!=="全部"),t=A.value.filter(a=>a!=="全部"),l=P.value.map(a=>a.replace("区域","")),o=I.value.map(a=>a.replace("监测线","")),i=[...new Set([...l,...o])];let r=fe.value;return B.value?r.filter(a=>a.radarId===B.value):r.filter(a=>!(n.length>0&&!n.includes(a.region)||t.length>0&&!t.includes(a.radarName)||i.length>0&&!i.includes(a.surfaceId)))}),nt=e.computed(()=>s.mode==="surface"?"【面模式】左键点击添加节点,右键闭合区域":"【点模式】左键点击选点,左键拖拽画线,右键结束"),lt=n=>n>=8?0:n>=5?1:n>=3?2:n>=2?3:4,ot=n=>({left:n.x-20+"px",top:n.y-20+"px"}),rt=n=>({left:n.x-1200+"px",top:n.y-2e3+"px",transform:`rotate(${n.angle}deg)`}),at=n=>T.value.has(n),it=n=>{const t=!B.value||n.radarId===B.value;return{left:n.x+"px",top:n.y+"px",backgroundColor:Pe[n.alarmIdx],opacity:t?1:.05,transform:t&&B.value?"scale(1.5)":"scale(1)",zIndex:t?100:1}},ke=()=>{const n=ce.value;if(!n)return;n.innerHTML="";const t="http://www.w3.org/2000/svg",l=["#409EFF","#E6A23C","#F56C6C","#67C23A","#909399"],o=[4,2,2,2,2],i=[.3,.5,.5,.5,.3];D.forEach((f,g)=>{const d=document.createElementNS(t,"rect");d.setAttribute("x",String(c-f.w/2)),d.setAttribute("y",String(u-f.h/2)),d.setAttribute("width",String(f.w)),d.setAttribute("height",String(f.h)),d.setAttribute("fill","none"),d.setAttribute("stroke",l[g]),d.setAttribute("stroke-width",String(o[g])),d.setAttribute("opacity",String(i[g])),n.appendChild(d)});const r=D[0],a=D[4];[[c-r.w/2,u-r.h/2,c-a.w/2,u-a.h/2],[c+r.w/2,u-r.h/2,c+a.w/2,u-a.h/2],[c+r.w/2,u+r.h/2,c+a.w/2,u+a.h/2],[c-r.w/2,u+r.h/2,c-a.w/2,u+a.h/2]].forEach(([f,g,d,h])=>{const V=document.createElementNS(t,"line");V.setAttribute("x1",String(f)),V.setAttribute("y1",String(g)),V.setAttribute("x2",String(d)),V.setAttribute("y2",String(h)),V.setAttribute("stroke","#409EFF"),V.setAttribute("stroke-width","1"),V.setAttribute("opacity","0.2"),n.appendChild(V)})},xe=()=>{const n=[],t=[D[0],D[1],D[2],D[3]];C.value.forEach(l=>{for(let o=0;o<3;o++){const i=t[o],r=t[o+1],a=String(o+1),v=3+Math.floor(Math.random()*2);for(let f=1;f<=v;f++){const g=`${l.id}-S${a}-P${f}`,d=Math.random(),h=i.w+(r.w-i.w)*d,V=i.h+(r.h-i.h)*d;let Y,q;if(l.targetSide==="bottom"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u+i.h/2,_=u+r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="top"){const M=h*.8;Y=c-M/2+Math.random()*M;const R=u-i.h/2,_=u-r.h/2;q=R+(_-R)*d+(Math.random()-.5)*15}else if(l.targetSide==="left"){const M=V*.8;q=u-M/2+Math.random()*M;const R=c-i.w/2,_=c-r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}else{const M=V*.8;q=u-M/2+Math.random()*M;const R=c+i.w/2,_=c+r.w/2;Y=R+(_-R)*d+(Math.random()-.5)*15}const ee=Math.random();let O;ee<.05?O=8+Math.random()*4:ee<.15?O=5+Math.random()*3:ee<.35?O=3+Math.random()*2:ee<.6?O=2+Math.random()*1:O=.1+Math.random()*1.9,n.push({id:g,x:Y,y:q,radarId:l.id,radarName:l.name,region:l.region,surfaceId:a,alarmIdx:lt(O),speed:O.toFixed(2),deviceId:`${l.name}-点${f}`,isOnline:l.isOnline})}}}),fe.value=n},H=()=>{const n=F.value;n&&(n.style.width=m.value.canvasWidth+"px",n.style.height=m.value.canvasHeight+"px",n.style.transform=`translate(${w.x}px, ${w.y}px) scale(${S.value})`)},st=n=>{if(n.button===0){if(s.isDrawing){bt(n);return}te=!0,me=n.clientX-w.x,he=n.clientY-w.y,y.value&&(y.value.style.cursor="grabbing")}},ct=n=>{if(s.isDrawing){s.cursorPos=ae(n),Q();return}te&&(w.x=n.clientX-me,w.y=n.clientY-he,H())},ut=n=>{if(s.isDrawing&&s.mode!=="surface"){wt(n);return}te=!1,y.value&&(y.value.style.cursor=s.isDrawing?"crosshair":"grab")},dt=n=>{s.isDrawing&&Ne()},gt=n=>{const t=y.value;if(!t)return;const l=Math.min(Math.max(.2,S.value+n.deltaY*-.0012),3.5),o=t.getBoundingClientRect(),i=n.clientX-o.left,r=n.clientY-o.top,a=l/S.value;w.x=i-(i-w.x)*a,w.y=r-(r-w.y)*a,S.value=l,H()},ae=n=>{const t=F.value.getBoundingClientRect();return{x:(n.clientX-t.left)/S.value,y:(n.clientY-t.top)/S.value}},vt=n=>{B.value=B.value===n.id?null:n.id,T.value.clear(),B.value?(T.value.add(n.id),Ee(n),ht(n)):(C.value.filter(t=>t.isOnline).forEach(t=>T.value.add(t.id)),mt(),ft()),E.publish({type:"regionFilter",regions:B.value?[n.region]:[],radars:B.value?[n.name]:[]})},Ee=n=>{const t=y.value,l=F.value;if(!t||!l)return;let o=n.x,i=n.y;n.targetSide==="bottom"?i+=600:n.targetSide==="top"?i-=600:n.targetSide==="left"?o-=600:n.targetSide==="right"&&(o+=600),S.value=.9,w.x=t.clientWidth/2-o*S.value,w.y=t.clientHeight/2-i*S.value,l.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{l&&(l.style.transition="none")},650)},ft=()=>{const n=F.value;S.value=.6,w.x=-300,w.y=-200,n?(n.style.transition="transform 0.6s cubic-bezier(0.2, 0, 0.2, 1)",H(),setTimeout(()=>{n&&(n.style.transition="none")},650)):H()},mt=()=>{W.value&&(W.value.innerHTML="")},ht=n=>{const t=W.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg",o=D.slice(0,4);for(let i=0;i<3;i++){const r=o[i],a=o[i+1];let v="",f=0,g=0;n.targetSide==="bottom"?(v=[`${c-r.w/2},${u+r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c-a.w/2},${u+a.h/2}`].join(" "),f=c,g=u+a.h/2+(r.h/2-a.h/2)/2):n.targetSide==="top"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c+r.w/2},${u-r.h/2}`,`${c+a.w/2},${u-a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c,g=u-a.h/2-(r.h/2-a.h/2)/2):n.targetSide==="left"?(v=[`${c-r.w/2},${u-r.h/2}`,`${c-r.w/2},${u+r.h/2}`,`${c-a.w/2},${u+a.h/2}`,`${c-a.w/2},${u-a.h/2}`].join(" "),f=c-a.w/2-(r.w/2-a.w/2)/2,g=u):(v=[`${c+r.w/2},${u-r.h/2}`,`${c+r.w/2},${u+r.h/2}`,`${c+a.w/2},${u+a.h/2}`,`${c+a.w/2},${u-a.h/2}`].join(" "),f=c+a.w/2+(r.w/2-a.w/2)/2,g=u);const d=document.createElementNS(l,"polygon");d.setAttribute("points",v),d.setAttribute("fill","rgba(64,158,255,0.25)"),d.setAttribute("stroke","rgba(64,158,255,0.8)"),d.setAttribute("stroke-width","2"),t.appendChild(d);const h=document.createElementNS(l,"text");h.setAttribute("x",String(f)),h.setAttribute("y",String(g)),h.setAttribute("text-anchor","middle"),h.setAttribute("dominant-baseline","middle"),h.setAttribute("fill","#fff"),h.setAttribute("font-size","24"),h.setAttribute("font-weight","bold"),h.style.pointerEvents="none",h.textContent=`区域 ${i+1}`,t.appendChild(h)}},Ce=n=>{s.isDrawing=!0,s.mode=n,s.surfacePoints=[],s.mixedShapes=[],s.cursorPos=null,s.dragStart=null,s.isDragging=!1,y.value&&(y.value.style.cursor="crosshair"),Ae()},pt=()=>{s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.dragStart=null},Ae=()=>{X.value&&(X.value.innerHTML="")},bt=n=>{const t=ae(n);s.mode==="surface"?(s.surfacePoints.push(t),Q()):(s.dragStart=t,s.isDragging=!0)},wt=n=>{if(s.mode==="surface"||!s.dragStart)return;const t=ae(n),l=t.x-s.dragStart.x,o=t.y-s.dragStart.y;Math.sqrt(l*l+o*o)<5?s.mixedShapes.push({type:"point",x:s.dragStart.x,y:s.dragStart.y}):s.mixedShapes.push({type:"line",x1:s.dragStart.x,y1:s.dragStart.y,x2:t.x,y2:t.y}),s.isDragging=!1,s.dragStart=null,Q()},Ne=()=>{if(!s.isDrawing)return;const n=s.mode==="surface"&&s.surfacePoints.length>=3,t=s.mode!=="surface"&&s.mixedShapes.length>0;if(!n&&!t){ie();return}s.isDrawing=!1,y.value&&(y.value.style.cursor="grab"),s.cursorPos=null,Q(!0),E.publish({type:"customAreaComplete"})},yt=()=>Ne(),ie=()=>{pt(),Ae(),E.publish({type:"customAreaCancel"})},Q=(n=!1)=>{const t=X.value;if(!t)return;t.innerHTML="";const l="http://www.w3.org/2000/svg";if(s.mode==="surface"){if(s.surfacePoints.length>0){let o=`M ${s.surfacePoints[0].x} ${s.surfacePoints[0].y}`;for(let r=1;r<s.surfacePoints.length;r++)o+=` L ${s.surfacePoints[r].x} ${s.surfacePoints[r].y}`;!n&&s.cursorPos&&(o+=` L ${s.cursorPos.x} ${s.cursorPos.y}`),n&&(o+=" Z");const i=document.createElementNS(l,"path");i.setAttribute("d",o),i.setAttribute("fill","rgba(152,251,152,0.4)"),i.setAttribute("stroke","#333"),i.setAttribute("stroke-width","1.5"),i.setAttribute("stroke-dasharray","5,5"),t.appendChild(i),s.surfacePoints.forEach(r=>se(t,r.x,r.y,"#333"))}!n&&s.cursorPos&&St(t,s.cursorPos.x,s.cursorPos.y)}else s.mixedShapes.forEach(o=>{o.type==="point"?kt(t,o.x,o.y):Ve(t,o.x1,o.y1,o.x2,o.y2,!1)}),s.isDragging&&s.dragStart&&s.cursorPos&&Ve(t,s.dragStart.x,s.dragStart.y,s.cursorPos.x,s.cursorPos.y,!0)},se=(n,t,l,o)=>{const i=document.createElementNS("http://www.w3.org/2000/svg","circle");i.setAttribute("cx",String(t)),i.setAttribute("cy",String(l)),i.setAttribute("r",String(4/S.value)),i.setAttribute("fill","#fff"),i.setAttribute("stroke",o),n.appendChild(i)},St=(n,t,l)=>{const o="http://www.w3.org/2000/svg";[[t,l-5e3,t,l+5e3],[t-5e3,l,t+5e3,l]].forEach(([r,a,v,f])=>{const g=document.createElementNS(o,"line");g.setAttribute("x1",String(r)),g.setAttribute("y1",String(a)),g.setAttribute("x2",String(v)),g.setAttribute("y2",String(f)),g.setAttribute("stroke","#ffffff"),g.setAttribute("stroke-width","2"),g.setAttribute("stroke-dasharray","8,4"),g.style.filter="drop-shadow(0 0 2px rgba(0,0,0,0.8))",n.appendChild(g)})},kt=(n,t,l)=>{const o="http://www.w3.org/2000/svg",i=10/S.value,r=document.createElementNS(o,"circle");r.setAttribute("cx",String(t)),r.setAttribute("cy",String(l)),r.setAttribute("r",String(i)),r.setAttribute("fill","rgba(230,162,60,0.3)"),r.setAttribute("stroke","#E6A23C"),n.appendChild(r);const a=document.createElementNS(o,"circle");a.setAttribute("cx",String(t)),a.setAttribute("cy",String(l)),a.setAttribute("r",String(4/S.value)),a.setAttribute("fill","#E6A23C"),n.appendChild(a)},Ve=(n,t,l,o,i,r)=>{const v=document.createElementNS("http://www.w3.org/2000/svg","line");v.setAttribute("x1",String(t)),v.setAttribute("y1",String(l)),v.setAttribute("x2",String(o)),v.setAttribute("y2",String(i)),v.setAttribute("stroke","#E6A23C"),v.setAttribute("stroke-width","3"),r&&v.setAttribute("stroke-dasharray","5,5"),n.appendChild(v),se(n,t,l,"#E6A23C"),se(n,o,i,"#E6A23C")},xt=n=>{E.publish({type:"openAnalysis",deviceId:n.id,region:n.region})},Et=n=>{const{payload:t}=n;if(t.type==="customArea"){t.action==="start"?Ce(t.mode||"surface"):t.action==="stop"&&ie();return}},Me=n=>ct(n),Re=n=>ut(n);return e.onMounted(()=>{window.addEventListener("mousemove",Me),window.addEventListener("mouseup",Re),window.addEventListener("click",be),G.value=C.value;const n=C.value.filter(l=>l.isOnline);A.value=n.map(l=>l.name);const t=new Set(n.map(l=>l.region));b.value=Array.from(t),n.forEach(l=>T.value.add(l.id)),e.nextTick(()=>{ke(),xe(),H()})}),e.onUnmounted(()=>{window.removeEventListener("mousemove",Me),window.removeEventListener("mouseup",Re),window.removeEventListener("click",be)}),e.watch(()=>p.conf,()=>{E.init(),G.value=C.value,e.nextTick(()=>{ke(),xe()})},{deep:!0}),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:"radar-map-wrapper",style:e.normalizeStyle({background:e.unref(m).bgColor})},[e.createElementVNode("div",$t,[e.createElementVNode("div",Dt,[e.createElementVNode("div",Lt,[e.createElementVNode("button",{ref_key:"regionBtnRef",ref:ue,class:"tb-btn",onClick:t[0]||(t[0]=e.withModifiers(l=>J("region"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Fe.value),1),t[17]||(t[17]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Tt,[e.createElementVNode("button",{ref_key:"radarBtnRef",ref:de,class:"tb-btn",onClick:t[1]||(t[1]=e.withModifiers(l=>J("radar"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(Ue.value),1),t[18]||(t[18]=e.createTextVNode(" ▼ ",-1))],512)]),e.createElementVNode("div",Pt,[e.createElementVNode("button",{ref_key:"virtBtnRef",ref:ge,class:"tb-btn",onClick:t[2]||(t[2]=e.withModifiers(l=>J("virt"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(He.value),1),t[19]||(t[19]=e.createTextVNode(" ▼ ",-1))],512)]),t[20]||(t[20]=e.createElementVNode("div",{class:"divider-v"},null,-1)),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===1}]),onClick:t[3]||(t[3]=l=>re(1))},"一天内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===7}]),onClick:t[4]||(t[4]=l=>re(7))},"一周内",2),e.createElementVNode("button",{class:e.normalizeClass(["tb-btn",{active:j.value===30}]),onClick:t[5]||(t[5]=l=>re(30))},"一个月内",2),t[21]||(t[21]=e.createElementVNode("span",{class:"time-label"},"时间:",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[6]||(t[6]=l=>K.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,K.value]]),t[22]||(t[22]=e.createElementVNode("span",{class:"time-label"},"至",-1)),e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":t[7]||(t[7]=l=>Z.value=l),class:"tb-btn time-input",onChange:ye},null,544),[[e.vModelText,Z.value]])]),e.createElementVNode("div",{class:"toolbar-right"},[e.createElementVNode("button",{class:"btn-profile",onClick:Qe},"剖面图绘制")])]),e.createElementVNode("div",It,[e.createElementVNode("button",{ref_key:"modelBtnRef",ref:ve,class:"tb-btn model-btn",onClick:t[8]||(t[8]=e.withModifiers(l=>J("model"),["stop"]))},[e.createElementVNode("span",null,e.toDisplayString(We.value),1),t[23]||(t[23]=e.createTextVNode(" ▼ ",-1))],512)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[L.value==="region"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[9]||(t[9]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l,checked:b.value.includes(l),onChange:o=>Ye(l,o.target.checked)},null,40,Ot),e.createElementVNode("span",{style:e.normalizeStyle(l==="全部"?"font-weight:bold;color:#1c3d90":"")},e.toDisplayString(l),5)]))),128))],4)):e.createCommentVNode("",!0),L.value==="radar"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[11]||(t[11]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("label",_t,[e.createElementVNode("input",{type:"checkbox",value:"全部",checked:ze.value,onChange:t[10]||(t[10]=l=>we("全部",l.target.checked))},null,40,Ft),t[24]||(t[24]=e.createElementVNode("span",null,"全部雷达",-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,l=>(e.openBlock(),e.createElementBlock("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",value:l.name,checked:A.value.includes(l.name),onChange:o=>we(l.name,o.target.checked)},null,40,zt),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:l.isOnline?"#71C446":"#999",fontSize:"12px"})},"●",4)])]))),128))],4)):e.createCommentVNode("",!0),L.value==="virt"?(e.openBlock(),e.createElementBlock("div",{key:2,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[15]||(t[15]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ut,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[12]||(t[12]=l=>$.value=l),placeholder:"搜索区域或监测线...",style:{width:"100%",padding:"4px 8px",border:"1px solid #ddd","border-radius":"4px","font-size":"12px"}},null,512),[[e.vModelText,$.value]])]),e.createElementVNode("div",Ht,[t[27]||(t[27]=e.createElementVNode("div",{class:"dropdown-group-title"},"虚拟区域",-1)),e.withDirectives(e.createElementVNode("label",Wt,[e.createElementVNode("input",{type:"checkbox",checked:le.every(l=>P.value.includes(l)),onChange:t[13]||(t[13]=l=>qe(l.target.checked))},null,40,jt),t[25]||(t[25]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(le,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:P.value.includes(l),onChange:o=>Xe(l,o.target.checked)},null,40,Yt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64)),t[28]||(t[28]=e.createElementVNode("div",{class:"dropdown-group-title",style:{"margin-top":"5px"}},"监测线",-1)),e.withDirectives(e.createElementVNode("label",qt,[e.createElementVNode("input",{type:"checkbox",checked:oe.every(l=>I.value.includes(l)),onChange:t[14]||(t[14]=l=>Ge(l.target.checked))},null,40,Xt),t[26]||(t[26]=e.createElementVNode("span",{style:{"font-weight":"bold"}},"全部",-1))],512),[[e.vShow,!$.value||"全部".includes($.value)]]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(oe,l=>e.withDirectives(e.createElementVNode("label",{key:l,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:I.value.includes(l),onChange:o=>Ke(l,o.target.checked)},null,40,Gt),e.createElementVNode("span",null,e.toDisplayString(l),1)]),[[e.vShow,!$.value||l.includes($.value)]])),64))])],4)):e.createCommentVNode("",!0),L.value==="model"?(e.openBlock(),e.createElementBlock("div",{key:3,class:"tp-dropdown",style:e.normalizeStyle(z.value),onClick:t[16]||(t[16]=e.withModifiers(()=>{},["stop"]))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(_e,l=>e.createElementVNode("label",{key:l.id,class:"dropdown-item"},[e.createElementVNode("input",{type:"checkbox",checked:N.value.includes(l.id),onChange:o=>Ze(l.id,o.target.checked)},null,40,Kt),e.createElementVNode("span",null,e.toDisplayString(l.label),1)])),64))],4)):e.createCommentVNode("",!0)])),e.createElementVNode("div",{ref_key:"viewerRef",ref:y,class:"map-viewer",onMousedown:st,onContextmenu:e.withModifiers(dt,["prevent"]),onWheel:e.withModifiers(gt,["prevent"])},[e.createElementVNode("div",{ref_key:"canvasRef",ref:F,class:"map-canvas"},[(e.openBlock(),e.createElementBlock("svg",{ref_key:"baseSvgRef",ref:ce,class:"base-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Zt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"highlightSvgRef",ref:W,class:"highlight-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Jt)),(e.openBlock(),e.createElementBlock("svg",{ref_key:"customSvgRef",ref:X,class:"custom-svg",width:e.unref(m).canvasWidth,height:e.unref(m).canvasHeight,viewBox:`0 0 ${e.unref(m).canvasWidth} ${e.unref(m).canvasHeight}`},null,8,Qt)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["radar-station",{offline:!l.isOnline}]),style:e.normalizeStyle(ot(l)),title:`${l.name}(${l.isOnline?"在线":"离线"})`,onClick:e.withModifiers(o=>vt(l),["stop"])},"📡",14,en)),[[e.vShow,Se(l)]])),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(G.value,l=>(e.openBlock(),e.createElementBlock("div",{key:"cloud-"+l.id,class:e.normalizeClass(["radar-cloud",{visible:at(l.id)&&Se(l),"no-anim":k.mode==="edit"}]),style:e.normalizeStyle(rt(l))},null,6))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(tt.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.id,class:"virtual-point",style:e.normalizeStyle(it(l)),title:`${l.deviceId} | ${l.speed} mm/h`,onClick:e.withModifiers(o=>xt(l),["stop"])},null,12,tn))),128))],512)],544),s.isDrawing?(e.openBlock(),e.createElementBlock("div",nn,[e.createElementVNode("span",ln,e.toDisplayString(nt.value),1),e.createElementVNode("button",{class:"toolbar-btn confirm",onClick:yt},"确定生成"),e.createElementVNode("button",{class:"toolbar-btn",onClick:ie},"取消")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),vn=Bt._export_sfc(gn,[["__scopeId","data-v-cc924deb"]]);exports.default=vn;
@@ -17,8 +17,8 @@ import "element-plus/es/components/date-picker/style/css";
17
17
  import "element-plus/es/components/select/style/css";
18
18
  import "element-plus/es/components/option/style/css";
19
19
  import { defineComponent as Q, computed as b, reactive as q, openBlock as c, createElementBlock as v, normalizeStyle as G, createElementVNode as i, createVNode as d, withCtx as y, Fragment as R, renderList as h, createBlock as S, normalizeClass as J, toDisplayString as K, createTextVNode as X, renderSlot as Z } from "vue";
20
- import { B as ee } from "./BaseComponent-B38Blgw3.js";
21
- import { d as Y, _ as te } from "./index-BbXEpgom.js";
20
+ import { B as ee } from "./BaseComponent-DMJmgFIo.js";
21
+ import { d as Y, _ as te } from "./index-nru6zK5E.js";
22
22
  import { A as le, D as ne } from "./ele-vlu-icon-Bg6EHZdJ.js";
23
23
  const ae = { class: "filter-bar" }, oe = { class: "filter-item" }, se = { class: "filter-item" }, re = { class: "filter-item" }, ie = { class: "time-range-btns" }, ce = ["onClick"], me = { class: "filter-item" }, ue = {
24
24
  DEFAULT_ICON: ne,
@@ -1 +1 @@
1
- "use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?S(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))T.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))O.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>j(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),I=require("./BaseComponent-9njJjeix.cjs"),g=require("./index-Bo49zvKb.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),F={class:"filter-bar"},H={class:"filter-item"},x={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},U=["onClick"],z={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const r=i;class s extends I.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,a=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:a==="custom"&&u?u:a}}}const b=new s(r,"rainfallFilterBar");b.setupLifecycle();const h=b.getStyle(),d=e.computed(()=>{var t;const l=(t=r.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(a=>a.name)}),R=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return o.region&&(l=l.filter(t=>t.region===o.region)),l.map(t=>({label:t.name,value:t.name}))}),N=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],o=e.reactive({region:(c==null?void 0:c.region)||"",points:c?[c.name]:[],timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{const l=_.value;o.points=l.length>0?[l[0].value]:[]},B=l=>{o.timeRange=l;const t=g.dayjs(),a=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");o.dateRange=[a.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},M=()=>{o.timeRange=""},A=()=>{if(r.mode==="edit"||o.points.length===0)return;const l=d.value.filter(a=>o.points.includes(a.name)),t=[...new Set(l.map(a=>a.object_id).filter(Boolean))];if(t.length===0){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:o.region,selectedMonitors:o.points,objectId:t[0]||"",objectIds:t,sensors:l.map(a=>({name:a.name,objectId:a.object_id})),timeRange:o.timeRange,dateRange:[...o.dateRange]})},D=e.computed(()=>({backgroundColor:h.value.bgColor}));return(l,t)=>{const a=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(D.value)},[e.createElementVNode("div",F,[e.createElementVNode("div",H,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:o.region,"onUpdate:modelValue":t[0]||(t[0]=n=>o.region=n),placeholder:"全部区域",size:"small",style:{width:"120px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(a,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,n=>(e.openBlock(),e.createBlock(a,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",x,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:o.points,"onUpdate:modelValue":t[1]||(t[1]=n=>o.points=n),placeholder:"请选择",size:"small",style:{width:"180px"},multiple:"","collapse-tags":"","collapse-tags-tooltip":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(a,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(N,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:o.timeRange===n.value}]),onClick:v=>B(n.value)},e.toDisplayString(n.label),11,U)),64))])]),e.createElementVNode("div",z,[e.createVNode(m,{modelValue:o.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>o.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:M},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:A},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-b151f568"]]);exports.default=ee;
1
+ "use strict";var S=Object.defineProperty,j=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var y=(i,r,s)=>r in i?S(i,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[r]=s,E=(i,r)=>{for(var s in r||(r={}))T.call(r,s)&&y(i,s,r[s]);if(C)for(var s of C(r))O.call(r,s)&&y(i,s,r[s]);return i},k=(i,r)=>j(i,w(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),I=require("./BaseComponent-CPat9pFl.cjs"),g=require("./index-D9ehIVda.cjs"),V=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),F={class:"filter-bar"},H={class:"filter-item"},x={class:"filter-item"},q={class:"filter-item"},L={class:"time-range-btns"},U=["onClick"],z={class:"filter-item"},W={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"降雨筛选栏",NAME_EN:"Rainfall Filter Bar",ORDER:1,PLATFORM:["pc","screen"]},P={bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},linkChannel:{value:"rainfall",type:"select",label:"component.linkChannel",options:[{label:"降雨监测",value:"rainfall"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.customChannel",showWhen:{linkChannel:"custom"}}},$=[{name:"WATER101",object_id:"",region:"北帮"},{name:"WATER102",object_id:"",region:"北帮"},{name:"WATER201",object_id:"",region:"南帮"},{name:"WATER305",object_id:"",region:"东帮"},{name:"WATER410",object_id:"",region:"西帮"}],Q=["name","object_id","region"],G=["mosaic"],J={useAlias:!1,multiObject:!0,source:"mosaic"},K=50,X={DEFAULT:W,OPTIONS:P,DATA:$,PARAMS:Q,SOURCE:G,ITEMS:K,COMMON:J},Z=e.defineComponent(k(E({},X),{__name:"rainfallFilterBar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(i){const r=i;class s extends I.BaseComponent{extractStyles(){var m,p,n,v;const t=(m=this.props.conf)==null?void 0:m.options,a=((p=t==null?void 0:t.linkChannel)==null?void 0:p.value)||"rainfall",u=((n=t==null?void 0:t.customChannel)==null?void 0:n.value)||"";return{bgColor:((v=t==null?void 0:t.bgColor)==null?void 0:v.value)||"#ffffff",linkChannel:a==="custom"&&u?u:a}}}const b=new s(r,"rainfallFilterBar");b.setupLifecycle();const h=b.getStyle(),d=e.computed(()=>{var t;const l=(t=r.conf)==null?void 0:t.data;return!l||!Array.isArray(l)?[]:l.filter(a=>a.name)}),R=e.computed(()=>{const l=new Set;return d.value.forEach(t=>{t.region&&l.add(t.region)}),Array.from(l)}),_=e.computed(()=>{let l=d.value;return o.region&&(l=l.filter(t=>t.region===o.region)),l.map(t=>({label:t.name,value:t.name}))}),N=[{label:"一天内",value:"1d"},{label:"一周内",value:"1w"},{label:"一个月内",value:"1m"}],c=d.value[0],o=e.reactive({region:(c==null?void 0:c.region)||"",points:c?[c.name]:[],timeRange:"1d",dateRange:[g.dayjs().subtract(1,"day").format("YYYY/MM/DD HH:mm"),g.dayjs().format("YYYY/MM/DD HH:mm")]}),Y=()=>{const l=_.value;o.points=l.length>0?[l[0].value]:[]},B=l=>{o.timeRange=l;const t=g.dayjs(),a=l==="1d"?t.subtract(1,"day"):l==="1w"?t.subtract(1,"week"):t.subtract(1,"month");o.dateRange=[a.format("YYYY/MM/DD HH:mm"),t.format("YYYY/MM/DD HH:mm")]},M=()=>{o.timeRange=""},A=()=>{if(r.mode==="edit"||o.points.length===0)return;const l=d.value.filter(a=>o.points.includes(a.name)),t=[...new Set(l.map(a=>a.object_id).filter(Boolean))];if(t.length===0){console.warn("[降雨筛选栏] 所选监测点未配置 object_id,无法发送联动");return}b.publish({type:"filter",region:o.region,selectedMonitors:o.points,objectId:t[0]||"",objectIds:t,sensors:l.map(a=>({name:a.name,objectId:a.object_id})),timeRange:o.timeRange,dateRange:[...o.dateRange]})},D=e.computed(()=>({backgroundColor:h.value.bgColor}));return(l,t)=>{const a=f.ElOption,u=f.ElSelect,m=f.ElDatePicker,p=f.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"rainfall-filter-bar-wrap",style:e.normalizeStyle(D.value)},[e.createElementVNode("div",F,[e.createElementVNode("div",H,[t[3]||(t[3]=e.createElementVNode("span",{class:"filter-label"},"区域位置:",-1)),e.createVNode(u,{modelValue:o.region,"onUpdate:modelValue":t[0]||(t[0]=n=>o.region=n),placeholder:"全部区域",size:"small",style:{width:"120px"},onChange:Y},{default:e.withCtx(()=>[e.createVNode(a,{label:"全部区域",value:""}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,n=>(e.openBlock(),e.createBlock(a,{key:n,label:n,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",x,[t[4]||(t[4]=e.createElementVNode("span",{class:"filter-label"},"监测点:",-1)),e.createVNode(u,{modelValue:o.points,"onUpdate:modelValue":t[1]||(t[1]=n=>o.points=n),placeholder:"请选择",size:"small",style:{width:"180px"},multiple:"","collapse-tags":"","collapse-tags-tooltip":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,n=>(e.openBlock(),e.createBlock(a,{key:n.value,label:n.label,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e.createElementVNode("div",q,[t[5]||(t[5]=e.createElementVNode("span",{class:"filter-label"},"时间范围:",-1)),e.createElementVNode("div",L,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(N,n=>e.createElementVNode("button",{key:n.value,class:e.normalizeClass(["range-btn",{active:o.timeRange===n.value}]),onClick:v=>B(n.value)},e.toDisplayString(n.label),11,U)),64))])]),e.createElementVNode("div",z,[e.createVNode(m,{modelValue:o.dateRange,"onUpdate:modelValue":t[2]||(t[2]=n=>o.dateRange=n),type:"datetimerange",size:"small",format:"YYYY/MM/DD HH:mm","value-format":"YYYY/MM/DD HH:mm","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",style:{width:"340px"},onChange:M},null,8,["modelValue"])]),e.createVNode(p,{type:"primary",size:"small",onClick:A},{default:e.withCtx(()=>[...t[6]||(t[6]=[e.createTextVNode("查询",-1)])]),_:1})]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)}}})),ee=g._export_sfc(Z,[["__scopeId","data-v-b151f568"]]);exports.default=ee;