mixdashboards 1.0.71 → 1.0.73

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 (470) hide show
  1. package/dist/{BaseComponent-D5tlYehc.js → BaseComponent-CBagahPU.js} +138 -109
  2. package/dist/BaseComponent-Chnv4fBT.cjs +1 -0
  3. package/dist/{EChartComponentBase-CAabYXSj.js → EChartComponentBase-cFfawl6h.js} +2 -2
  4. package/dist/{EChartComponentBase-D4wMej9X.cjs → EChartComponentBase-dLE5F7Tt.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel-Th4ZNdCb.js → EmergencyPlanPanel--jTGG89o.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-D96XjhRq.cjs → EmergencyPlanPanel-BJb-Bbxh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-rn2Bp0Gx.cjs → HistoryPlanDialog-C-QPdV4V.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-D2mQLhkO.js → HistoryPlanDialog-DerClU2U.js} +1 -1
  9. package/dist/{MonitoringMap-BZ98NYTJ.cjs → MonitoringMap-B6RMbiIS.cjs} +1 -1
  10. package/dist/{MonitoringMap-Coozb35G.js → MonitoringMap-CNaGsq83.js} +2 -2
  11. package/dist/UniverSheet-CM-vvc23.cjs +1 -0
  12. package/dist/{UniverSheet-CJCunVAM.js → UniverSheet-KI09RqKm.js} +16 -15
  13. package/dist/{accelerationChart-DacjcSHD.js → accelerationChart-D7KNk5fI.js} +61 -59
  14. package/dist/accelerationChart-HBCb2bRW.cjs +6 -0
  15. package/dist/{actionItem-d-4p5HZK.js → actionItem-BmNYzAXu.js} +48 -41
  16. package/dist/actionItem-Bx4mW0jP.cjs +1 -0
  17. package/dist/alarmLevelChart-Cvnw4z1w.cjs +2 -0
  18. package/dist/{alarmLevelChart-DddN1NVy.js → alarmLevelChart-DdSw2s7W.js} +91 -46
  19. package/dist/{alertTable-Q-Waa5jf.js → alertTable-CC3c8DFb.js} +40 -39
  20. package/dist/alertTable-hH6HA9pY.cjs +1 -0
  21. package/dist/aliasObjectSelectorDemo-C7E_fnCf.cjs +1 -0
  22. package/dist/{aliasObjectSelectorDemo-BZygQw9k.js → aliasObjectSelectorDemo-yDiavTpG.js} +11 -10
  23. package/dist/{annualRainfallChart-CthANCvn.js → annualRainfallChart-B9ar8vo8.js} +32 -30
  24. package/dist/annualRainfallChart-C6JLSPIf.cjs +1 -0
  25. package/dist/{aqi-C_HnKsjh.js → aqi-BNc5QCM3.js} +21 -19
  26. package/dist/{aqi-BFW_8xYd.cjs → aqi-DEiCVIVa.cjs} +3 -3
  27. package/dist/aqiIndass-Bowic_Pc.cjs +3 -0
  28. package/dist/{aqiIndass-NVRa3lmj.js → aqiIndass-CAGV8_Uf.js} +41 -40
  29. package/dist/{areaDeformCurve-mQiOHdtN.js → areaDeformCurve-CSpR060t.js} +51 -49
  30. package/dist/areaDeformCurve-CVy23kV2.cjs +1 -0
  31. package/dist/arrayCard-NqoQKcE9.cjs +1 -0
  32. package/dist/{arrayCard-DZitcjMs.js → arrayCard-PPDb7U6X.js} +29 -28
  33. package/dist/{audio-CDAMVEgC.js → audio-BJPFIQIr.js} +42 -41
  34. package/dist/audio-Bw-GaYe1.cjs +1 -0
  35. package/dist/{bar--JrlRud9.js → bar-C38h_mUA.js} +72 -70
  36. package/dist/{bar-C7uQADV1.cjs → bar-Cru6WosS.cjs} +2 -2
  37. package/dist/bmp-BXaEkkpa.cjs +1 -0
  38. package/dist/{bmp-DrVcnYxy.js → bmp-BnSOaFEr.js} +15 -14
  39. package/dist/box-CKuGsh2k.cjs +1 -0
  40. package/dist/{box-szcLhted.js → box-DIHVOqrV.js} +58 -57
  41. package/dist/chartConfigPanel-BVdVXbs6.cjs +1 -0
  42. package/dist/{chartConfigPanel-C32o1gyJ.js → chartConfigPanel-D1rO6SGh.js} +86 -79
  43. package/dist/{circleBar-CeL2rqMJ.cjs → circleBar-BzXqA-Cz.cjs} +3 -3
  44. package/dist/{circleBar-BmTjsLHo.js → circleBar-CBLcp4Xi.js} +27 -25
  45. package/dist/{clock-CuQpD76K.js → clock-4AMfFDGC.js} +35 -34
  46. package/dist/clock-DmWyBpo-.cjs +1 -0
  47. package/dist/clt-CmPPtp9c.cjs +1 -0
  48. package/dist/{clt-XCswxZ6i.js → clt-D5i_8-pq.js} +60 -59
  49. package/dist/cmc-8jH3DGv9.cjs +1 -0
  50. package/dist/{cmc-CXmAv6fz.js → cmc-Cjb5w3om.js} +23 -22
  51. package/dist/{cmp-Duz_v-LC.js → cmp-COJzlQPa.js} +19 -18
  52. package/dist/{cmp-DmpxjexT.cjs → cmp-CpmGtNal.cjs} +2 -2
  53. package/dist/{composite-CWgy-w61.js → composite-CsFgfxih.js} +37 -36
  54. package/dist/{composite-DdHASMFQ.cjs → composite-DLmzZNIj.cjs} +3 -3
  55. package/dist/{conclusionCard-BtB0rARK.js → conclusionCard-BQUlLFde.js} +15 -14
  56. package/dist/conclusionCard-C-TT6znN.cjs +1 -0
  57. package/dist/{controlList-C0AQ8Yb8.js → controlList-5D5UIDQL.js} +40 -38
  58. package/dist/controlList-CIwzKylK.cjs +1 -0
  59. package/dist/{controlRecordList-CSPKG1HU.js → controlRecordList-Cp5mmEQ1.js} +55 -53
  60. package/dist/controlRecordList-uEQ3ohmB.cjs +1 -0
  61. package/dist/controlRecordListAPP-B5d4x_xH.cjs +1 -0
  62. package/dist/controlRecordListAPP-p_skbQVD.js +502 -0
  63. package/dist/{crd-DQruf9o3.js → crd-8gRWMf2Y.js} +14 -13
  64. package/dist/crd-Dfl2XKAx.cjs +1 -0
  65. package/dist/{ctrBtn-jEWTt_f2.js → ctrBtn-BzmFxucy.js} +106 -107
  66. package/dist/ctrBtn-OOgL9esv.cjs +1 -0
  67. package/dist/{ctrSet-C4wCODMY.js → ctrSet-Btg2T9w6.js} +24 -23
  68. package/dist/ctrSet-CifyJt05.cjs +1 -0
  69. package/dist/ctrSwitch-6nMHbIE7.js +206 -0
  70. package/dist/ctrSwitch-C8mwxLPe.cjs +1 -0
  71. package/dist/{dataManagement-BQVZS7Hi.js → dataManagement-BZiSmktM.js} +52 -45
  72. package/dist/dataManagement-sQpuBaDz.cjs +1 -0
  73. package/dist/{dataReport-vP1LBJjE.js → dataReport-CbJzXeCE.js} +25 -24
  74. package/dist/{dataReport-DRopth3A.cjs → dataReport-D9Q9c43B.cjs} +2 -2
  75. package/dist/{dataTable-C2AgSR36.cjs → dataTable-BJ4SVFbu.cjs} +1 -1
  76. package/dist/{dataTable-B1FQ3XIq.js → dataTable-BuBB0b-A.js} +1 -1
  77. package/dist/datetime-B66VgJL1.cjs +1 -0
  78. package/dist/{datetime-DU3rzi1v.js → datetime-DO03QrXz.js} +25 -24
  79. package/dist/deepClusterSlipSurface-BqT55vkY.cjs +1 -0
  80. package/dist/{deepClusterSlipSurface-BHwB0eu9.js → deepClusterSlipSurface-DpSAXgFf.js} +45 -43
  81. package/dist/{deepDataMatrix-C3uKZmon.js → deepDataMatrix-CPrIOv5r.js} +46 -45
  82. package/dist/deepDataMatrix-DZZaTMbD.cjs +1 -0
  83. package/dist/{deepDisplacement3D-BBYgB-rK.cjs → deepDisplacement3D-Cd9nwwPt.cjs} +3 -3
  84. package/dist/{deepDisplacement3D-CDNPul6D.js → deepDisplacement3D-JlMej7-5.js} +9 -7
  85. package/dist/{deepDisplacementChart-C_pwwgIC.js → deepDisplacementChart-BiDt60xI.js} +89 -88
  86. package/dist/deepDisplacementChart-CALM3gna.cjs +5 -0
  87. package/dist/deepDisplacementChart-CEaj2bUV.cjs +6 -0
  88. package/dist/{deepDisplacementChart-C6GQHO-J.js → deepDisplacementChart-CjlGpeHj.js} +54 -52
  89. package/dist/{deepDisplacementView-C837RNer.js → deepDisplacementView-BpUw-b-i.js} +37 -36
  90. package/dist/deepDisplacementView-CoSNzN1q.cjs +8 -0
  91. package/dist/deepNodeTemperatureChart-DPN0rYir.cjs +1 -0
  92. package/dist/{deepNodeTemperatureChart-BcH3ZNi4.js → deepNodeTemperatureChart-DfZq7kLx.js} +50 -48
  93. package/dist/{deepTangentAngleChart-DSpCyIdq.js → deepTangentAngleChart-Ca01hah9.js} +92 -90
  94. package/dist/deepTangentAngleChart-Dg9PJspK.cjs +1 -0
  95. package/dist/deepTemperatureField-BqDB97SW.cjs +1 -0
  96. package/dist/{deepTemperatureField-B2qIHL1-.js → deepTemperatureField-CYBTjhEp.js} +95 -93
  97. package/dist/deepTrendChart-B5BAHTeY.cjs +1 -0
  98. package/dist/{deepTrendChart-DFGSV17a.js → deepTrendChart-DBjxV7_A.js} +56 -54
  99. package/dist/{deviceOnlineStatus-CiIFdo9I.js → deviceOnlineStatus-1eoHCl_-.js} +58 -50
  100. package/dist/deviceOnlineStatus-DHzaAzCp.cjs +2 -0
  101. package/dist/deviceStatus-4BMy4qBD.cjs +1 -0
  102. package/dist/{deviceStatus-Dd1pqVnO.js → deviceStatus-90rQa1uj.js} +61 -60
  103. package/dist/{displacementDataTable-CGIHGxye.js → displacementDataTable-BArwj-xp.js} +52 -51
  104. package/dist/displacementDataTable-BLWjiaRQ.cjs +1 -0
  105. package/dist/{displacementTrajectoryChart-RL97CTML.js → displacementTrajectoryChart-CxOPJVlD.js} +34 -32
  106. package/dist/displacementTrajectoryChart-DfJMOCFJ.cjs +22 -0
  107. package/dist/{displacementTrendChart-Bqnv7hiP.js → displacementTrendChart-4E6cDsX8.js} +49 -48
  108. package/dist/displacementTrendChart-Cuxa5iTp.cjs +5 -0
  109. package/dist/{dxf-BQoArgPS.cjs → dxf-BgklkksV.cjs} +1 -1
  110. package/dist/{dxf-DBu1iA-r.js → dxf-BogwbJID.js} +5 -4
  111. package/dist/{dzc-DMVPjosV.cjs → dzc-CApfzriC.cjs} +2 -2
  112. package/dist/{dzc-7tLxe18d.js → dzc-D7tTBLaA.js} +24 -22
  113. package/dist/emergencyPlan-BuFz4XFc.cjs +1 -0
  114. package/dist/{emergencyPlan-C9Edkw51.js → emergencyPlan-CjbuX-N5.js} +19 -18
  115. package/dist/evn-BcSenXF3.cjs +1 -0
  116. package/dist/{evn-CeLoYCUr.js → evn-DTPm72ZM.js} +23 -22
  117. package/dist/evolutionChart-CrwR8i40.cjs +1 -0
  118. package/dist/{evolutionChart-DAlncdLU.js → evolutionChart-D1dVKWOt.js} +25 -23
  119. package/dist/{fileViewer-BFMFEN2f.js → fileViewer-BNHwlZRa.js} +57 -56
  120. package/dist/fileViewer-BUuST3Rp.cjs +1 -0
  121. package/dist/filterBar-BJzjPFFg.cjs +1 -0
  122. package/dist/{filterBar-qJJKdxYE.js → filterBar-CRJinh5K.js} +44 -43
  123. package/dist/fireCombustionCurve-BGdJ1ybj.cjs +1 -0
  124. package/dist/{fireCombustionCurve-DyRikhHw.js → fireCombustionCurve-BZ6qJ1kq.js} +69 -67
  125. package/dist/fireFilterBar-DZejT0oL.cjs +1 -0
  126. package/dist/{fireFilterBar-DkjBGPXa.js → fireFilterBar-KvvbsCsZ.js} +25 -24
  127. package/dist/{fireHistoryTable-ldXil5up.js → fireHistoryTable-80ygqnOG.js} +73 -65
  128. package/dist/fireHistoryTable-CMSGKb3w.cjs +3 -0
  129. package/dist/gag-1bvAZ5m6.cjs +1 -0
  130. package/dist/{gag-KZfFHn72.js → gag-D2obj7AF.js} +30 -28
  131. package/dist/{gasStationList-Btoo_olJ.js → gasStationList-DM-laJsi.js} +527 -526
  132. package/dist/gasStationList-DjJtXnqL.cjs +1 -0
  133. package/dist/{geo3dViewer-Cif9uFqd.cjs → geo3dViewer-CL_89mQf.cjs} +1 -1
  134. package/dist/{geo3dViewer-iZhkCiTP.js → geo3dViewer-FhmMIvMJ.js} +12 -5
  135. package/dist/{glbModel-MJZgDSJf.js → glbModel-B0nWYYJQ.js} +19 -18
  136. package/dist/{glbModel-2xydaxDT.cjs → glbModel-DakMJal6.cjs} +3 -3
  137. package/dist/{globalObjectSelector-CHtYGpi9.js → globalObjectSelector-Gv4srHhp.js} +79 -78
  138. package/dist/globalObjectSelector-jNzZxdnL.cjs +1 -0
  139. package/dist/{gnssFilterBar-CPis6bUI.js → gnssFilterBar-C4rpyNw3.js} +70 -63
  140. package/dist/gnssFilterBar-kEIW7Tjs.cjs +1 -0
  141. package/dist/{gnssHistoryTable-kHZY48EZ.js → gnssHistoryTable-CyMwQJ7_.js} +58 -50
  142. package/dist/gnssHistoryTable-DRKlP8-b.cjs +3 -0
  143. package/dist/{gnssMapView-BNIkieqL.cjs → gnssMapView-DpExCi0x.cjs} +4 -4
  144. package/dist/{gnssMapView-DXP8yz0v.js → gnssMapView-EVufCGrW.js} +174 -167
  145. package/dist/{gnssSectionProfile-DEUDEvJ1.js → gnssSectionProfile-CaJwF9wp.js} +41 -34
  146. package/dist/gnssSectionProfile-DdcOMdNC.cjs +1 -0
  147. package/dist/{gnssTimeSeriesChart-C_xqd0su.js → gnssTimeSeriesChart-iffDvMNx.js} +57 -49
  148. package/dist/gnssTimeSeriesChart-y11Y8k2-.cjs +1 -0
  149. package/dist/{gnssXYTrajectory-GqgFw_qK.js → gnssXYTrajectory-C_1fuLWn.js} +53 -45
  150. package/dist/gnssXYTrajectory-DGBGGDwi.cjs +5 -0
  151. package/dist/grd-C4hCrpvH.cjs +1 -0
  152. package/dist/{grd-QCuVN1jE.js → grd-FfuMQJb7.js} +43 -42
  153. package/dist/{grdIndass-BEcfZTYw.js → grdIndass-BTbZmPLZ.js} +30 -29
  154. package/dist/grdIndass-CyuRKD5H.cjs +1 -0
  155. package/dist/{grg-CMVrF5tB.js → grg-CcnI5kRY.js} +27 -26
  156. package/dist/grg-Cuxa17d6.cjs +1 -0
  157. package/dist/gridview-CKjBuTRq.cjs +1 -0
  158. package/dist/{gridview-Cd3Tqzph.js → gridview-ffVc5Wvg.js} +32 -31
  159. package/dist/groundwaterFilterBar-D3l7GLVY.cjs +1 -0
  160. package/dist/{groundwaterFilterBar-D7lrbzDC.js → groundwaterFilterBar-DaPR-kbl.js} +13 -12
  161. package/dist/groundwaterProfileChart-BxJKIPXF.cjs +11 -0
  162. package/dist/{groundwaterProfileChart-Bjtqz-Zv.js → groundwaterProfileChart-DoSx7WWp.js} +42 -40
  163. package/dist/groundwaterTimeCurve-Bp5MxM9k.cjs +1 -0
  164. package/dist/{groundwaterTimeCurve-Bu6vgAaC.js → groundwaterTimeCurve-D-SdVYeq.js} +57 -55
  165. package/dist/{groupCard-CPvAsuPb.cjs → groupCard-BzUQ8xY0.cjs} +1 -1
  166. package/dist/{groupCard-DQvEe6cc.js → groupCard-COMEkzIb.js} +29 -28
  167. package/dist/headerBar-iFe0YQKE.cjs +1 -0
  168. package/dist/{headerBar-CGOtSvFn.js → headerBar-ouXO8bzC.js} +48 -47
  169. package/dist/{history-D6C3tSut.js → history-BZ869y2d.js} +18 -18
  170. package/dist/{history-9ToM-rJ6.cjs → history-MxYUUwkm.cjs} +1 -1
  171. package/dist/index-DVqMfQVc.cjs +612 -0
  172. package/dist/{index-Bdq33405.js → index-DwPJu6XM.js} +1159 -1128
  173. package/dist/{insarDeformChart-Ls-cdqaP.js → insarDeformChart-5BhCUq8L.js} +24 -17
  174. package/dist/insarDeformChart-Ca3AMsBk.cjs +1 -0
  175. package/dist/{insarImageViewer-Dnke9JDG.js → insarImageViewer-DHNxmLpa.js} +41 -34
  176. package/dist/insarImageViewer-DWPsoHz6.cjs +1 -0
  177. package/dist/{kds-B4BKGG0r.js → kds-BYZC4pIM.js} +57 -50
  178. package/dist/{kds-BjX5tXhF.cjs → kds-Dpf_3WWj.cjs} +2 -2
  179. package/dist/{kpiCard-C77vHJ_E.js → kpiCard-CStPtl-c.js} +5 -4
  180. package/dist/kpiCard-OLJgA48-.cjs +2 -0
  181. package/dist/{landslideMap-BEkbnCqP.js → landslideMap-BUq0x7rd.js} +34 -33
  182. package/dist/landslideMap-JTdoQjW-.cjs +1 -0
  183. package/dist/{landslideWarning-C5upI2cf.js → landslideWarning-VAn9XGUj.js} +55 -54
  184. package/dist/landslideWarning-ZA5LCsIr.cjs +1 -0
  185. package/dist/{layerTabs-DoGw1Jfv.js → layerTabs-CAJ6f-2W.js} +40 -38
  186. package/dist/layerTabs-CdhowHB1.cjs +1 -0
  187. package/dist/{leaflet-src-BUWIqhPn.cjs → leaflet-src-CxFQ_Cn7.cjs} +1 -1
  188. package/dist/{leaflet-src-DFE_g2gF.js → leaflet-src-DNO2-OsP.js} +1 -1
  189. package/dist/{lerc-CXc9KSRL.js → lerc-bF2jqjoV.js} +2 -2
  190. package/dist/{lerc-BBgQP785.cjs → lerc-qU4WKXeS.cjs} +1 -1
  191. package/dist/{lin-ClO2MqZl.cjs → lin-BHI2KgyW.cjs} +2 -2
  192. package/dist/{lin-Difz8N88.js → lin-DbQw7wZw.js} +20 -18
  193. package/dist/linIndass-CIrObeZT.cjs +2 -0
  194. package/dist/{linIndass-DqXVOBh3.js → linIndass-Cd9Hjzs_.js} +31 -30
  195. package/dist/lst-BRsEe-Hq.cjs +1 -0
  196. package/dist/{lst-4RMMZZkY.js → lst-C3C2m1v_.js} +40 -39
  197. package/dist/{manualEntry-B3_4Z-Lj.js → manualEntry-B8TDMcDg.js} +29 -22
  198. package/dist/manualEntry-C3_WtYz8.cjs +1 -0
  199. package/dist/{mapBackground-B3OHQsXZ.js → mapBackground-BrVIQUcT.js} +21 -20
  200. package/dist/{mapBackground-Bmt-oZt6.cjs → mapBackground-Du7R_ICY.cjs} +2 -2
  201. package/dist/{mappingList-DVj7H206.js → mappingList-BpJUawmv.js} +22 -20
  202. package/dist/mappingList-C5OZ8oUx.cjs +1 -0
  203. package/dist/{markdownViewer-fheM5uV4.js → markdownViewer-CoRrvdY7.js} +16 -15
  204. package/dist/{markdownViewer-BAuNEWRt.cjs → markdownViewer-D96bwxEt.cjs} +2 -2
  205. package/dist/materialFileUrl-CubtnHeq.js +108 -0
  206. package/dist/materialFileUrl-DfPNm265.cjs +1 -0
  207. package/dist/{mix-control-modal-BoYynGT2.cjs → mix-control-modal-DwxwW65v.cjs} +1 -1
  208. package/dist/{mix-control-modal-BBiKe4MM.js → mix-control-modal-Qg_mzyT_.js} +1 -1
  209. package/dist/{mixGrid-BUjP1qv2.js → mixGrid-CtJWul6c.js} +44 -43
  210. package/dist/mixGrid-Hj0OJjkg.cjs +1 -0
  211. package/dist/mixMap-CJzmC0IR.cjs +1 -0
  212. package/dist/{mixMap-DPIwyKuP.js → mixMap-E36SDnEa.js} +36 -35
  213. package/dist/mixModel-BMRxhvWn.cjs +3 -0
  214. package/dist/{mixModel-CIdQp4V9.js → mixModel-_McJ6OuH.js} +30 -29
  215. package/dist/{mixPie-C6OhdOCV.js → mixPie-CMOkAe9p.js} +31 -30
  216. package/dist/mixPie-MAKXeYVp.cjs +2 -0
  217. package/dist/mixdashboards.cjs +1 -1
  218. package/dist/mixdashboards.css +1 -1
  219. package/dist/mixdashboards.js +1 -1
  220. package/dist/mixiotObjectListApi-BaeBL318.js +82 -0
  221. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +1 -0
  222. package/dist/mjpegCamera-BY7pmbDc.cjs +1 -0
  223. package/dist/{mjpegCamera-Cd1vhZ5v.js → mjpegCamera-Dc4IsJA6.js} +12 -11
  224. package/dist/monitorAlert-DVNvJyTy.cjs +1 -0
  225. package/dist/{monitorAlert-DIJtH557.js → monitorAlert-F8QFOchR.js} +45 -44
  226. package/dist/monitorData-AkPbhJ9q.cjs +1 -0
  227. package/dist/{monitorData-B6jhpzVK.js → monitorData-BzqNIdrW.js} +61 -59
  228. package/dist/{monitorSpeedChart-DF5zvxs9.js → monitorSpeedChart-348U37LW.js} +22 -21
  229. package/dist/{monitorSpeedChart-EIcGs3NX.cjs → monitorSpeedChart-DVH1xihw.cjs} +2 -2
  230. package/dist/{mxa-COxjxwpC.js → mxa-CkJjCHA-.js} +29 -27
  231. package/dist/{mxa-BfwIV49n.cjs → mxa-DShU528J.cjs} +2 -2
  232. package/dist/myValue-BCeycpdO.cjs +1 -0
  233. package/dist/{myValue-Crba15Wc.js → myValue-CEfp19i2.js} +17 -16
  234. package/dist/myValueList-CAPOW8TK.cjs +1 -0
  235. package/dist/{myValueList-m2yaIcuf.js → myValueList-y3GR4AX2.js} +41 -40
  236. package/dist/objectList-4rYQk5uq.cjs +1 -0
  237. package/dist/{objectList-BwZJzrXs.js → objectList-D16yLbzD.js} +538 -599
  238. package/dist/objectListAPP-DCwTyqFp.js +1864 -0
  239. package/dist/objectListAPP-Db5beOAM.cjs +1 -0
  240. package/dist/photo-BV6rkbWO.js +811 -0
  241. package/dist/photo-D67wLRkY.cjs +1 -0
  242. package/dist/{pie-CSLVJv0Y.cjs → pie-BeRwVkTk.cjs} +2 -2
  243. package/dist/{pie-C9MU90ON.js → pie-bNKhq6ak.js} +16 -14
  244. package/dist/{placeholder-CRARTMF4.js → placeholder-_iK4rVyU.js} +26 -25
  245. package/dist/placeholder-zByzfWaH.cjs +1 -0
  246. package/dist/{pressBtn-CkYcW1a8.js → pressBtn-B-rZPXK2.js} +124 -124
  247. package/dist/pressBtn-BjqYIPC-.cjs +1 -0
  248. package/dist/processTable-ByPlSKRJ.cjs +3 -0
  249. package/dist/{processTable-BgAhGGAq.js → processTable-s_y8uups.js} +12 -11
  250. package/dist/{progressBar-BbDFps1r.cjs → progressBar-CRdA7oJT.cjs} +1 -1
  251. package/dist/{progressBar-CIPUVeaf.js → progressBar-DskxZk1P.js} +19 -18
  252. package/dist/{progressCircle-DDc5zsd6.js → progressCircle-BE_Am-AP.js} +13 -12
  253. package/dist/{progressCircle-CgkZ1EC1.cjs → progressCircle-CHe-12Hb.cjs} +1 -1
  254. package/dist/{qrcode-CQbWGVgq.cjs → qrcode-D8cFyUpL.cjs} +1 -1
  255. package/dist/{qrcode-CCu677Ad.js → qrcode-Dgth6KwU.js} +39 -38
  256. package/dist/{raceBar-CzNGSYCt.cjs → raceBar-CeybrpCB.cjs} +3 -3
  257. package/dist/{raceBar-Cn8oPhCE.js → raceBar-DV-3KFg2.js} +18 -16
  258. package/dist/rad-BerkC70H.cjs +1 -0
  259. package/dist/{rad-D_cLWeMk.js → rad-BhsfF0XI.js} +22 -20
  260. package/dist/{radarMapViewer-BaAXjsWx.js → radarMapViewer-C2dde8EN.js} +82 -81
  261. package/dist/radarMapViewer-HWzvBTzT.cjs +1 -0
  262. package/dist/{rainfallFilterBar-Bhpadat8.js → rainfallFilterBar-CiT1mvYh.js} +22 -21
  263. package/dist/rainfallFilterBar-kuAQO0M-.cjs +1 -0
  264. package/dist/rainfallTimeCurve-7uHaSkuE.cjs +1 -0
  265. package/dist/{rainfallTimeCurve-sDYapogL.js → rainfallTimeCurve-BlOnCq2M.js} +58 -56
  266. package/dist/rangeLin-BQeWFL_E.cjs +3 -0
  267. package/dist/{rangeLin-CdMOPwMP.js → rangeLin-BvKd8kEv.js} +32 -31
  268. package/dist/realtimeEvolutionMap-BUnD3JjE.cjs +1 -0
  269. package/dist/{realtimeEvolutionMap-CIH_sZ29.js → realtimeEvolutionMap-DZ6yniwl.js} +46 -44
  270. package/dist/regionBar-mMaN5NEc.cjs +3 -0
  271. package/dist/{regionBar-VB-2GpR0.js → regionBar-vp5D52Jd.js} +14 -13
  272. package/dist/{request-BHfDxLXZ.js → request-CMbwWTDF.js} +9 -9
  273. package/dist/{request-DU8pRyvu.cjs → request-DegEaaCG.cjs} +1 -1
  274. package/dist/retainer1-CF2Tr7Zt.cjs +1 -0
  275. package/dist/{retainer1-C_109Weq.js → retainer1-Xvdlh-B_.js} +17 -16
  276. package/dist/retainer2-BQVUhgcH.cjs +1 -0
  277. package/dist/{retainer2-BiHUTumr.js → retainer2-D3a-c_BA.js} +43 -42
  278. package/dist/{retainerRecordList-Cgil_g8a.js → retainerRecordList-BJbPsJ4D.js} +47 -45
  279. package/dist/retainerRecordList-Rqnoz6_6.cjs +1 -0
  280. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +1 -0
  281. package/dist/retainerRecordListAPP-CNntGyA-.js +1068 -0
  282. package/dist/{ringTopN-C9AH-t3T.js → ringTopN-BFKlXqGX.js} +18 -16
  283. package/dist/ringTopN-CsouIsk1.cjs +1 -0
  284. package/dist/{riskRegionTable-Co1uxMzf.js → riskRegionTable-B6k4uM0_.js} +26 -19
  285. package/dist/riskRegionTable-DttMvHe5.cjs +1 -0
  286. package/dist/sankey-CAuBQaYh.cjs +1 -0
  287. package/dist/{sankey-Bag0ladh.js → sankey-DEQK7uU6.js} +17 -15
  288. package/dist/{scd-D9AiOiPg.js → scd-D5TicpCZ.js} +1282 -1062
  289. package/dist/scd-qaap6hGW.cjs +1 -0
  290. package/dist/{sideMenu-869HFB0p.js → sideMenu-ByyrOOYh.js} +28 -27
  291. package/dist/sideMenu-D-73DoYb.cjs +1 -0
  292. package/dist/{slopeStability-bZ0lHLjZ.js → slopeStability-BtgMH3oW.js} +44 -42
  293. package/dist/slopeStability-CTN6Kpva.cjs +1 -0
  294. package/dist/speedCurve-C5NoQCjK.cjs +1 -0
  295. package/dist/{speedCurve-DZ52XKCk.js → speedCurve-CInn7NAC.js} +43 -41
  296. package/dist/staticLine-BC-zj5yZ.cjs +1 -0
  297. package/dist/{staticLine-CyPnmKCh.js → staticLine-CLqN4lpU.js} +51 -50
  298. package/dist/stressFilterBar-Cpfbmllu.cjs +1 -0
  299. package/dist/{stressFilterBar-BAUt2bGy.js → stressFilterBar-D_QqOHna.js} +46 -45
  300. package/dist/{stressTimeCurve-IW4ArsyA.js → stressTimeCurve-1HXHUj-F.js} +64 -62
  301. package/dist/stressTimeCurve-Bp6Cevk1.cjs +1 -0
  302. package/dist/{swiper-BPS9C2GV.cjs → swiper-B8YZ2VQ2.cjs} +1 -1
  303. package/dist/{swiper-RM0GoZkW.js → swiper-D_y4Fj_D.js} +25 -24
  304. package/dist/terminalConfigList-B39cEptG.cjs +1 -0
  305. package/dist/{terminalConfigList-n7NE5NdJ.js → terminalConfigList-CHbA4y-S.js} +38 -36
  306. package/dist/terminalList-Vf-Dbybr.cjs +1 -0
  307. package/dist/{terminalList-Byb4eLcD.js → terminalList-oJFrGVtT.js} +38 -36
  308. package/dist/terminalListAPP-CdBG8krw.cjs +1 -0
  309. package/dist/terminalListAPP-DWArp2D4.js +1366 -0
  310. package/dist/{textbox-DM1AUWw8.js → textbox-D8nmoGjG.js} +13 -12
  311. package/dist/textbox-DPoyxB4u.cjs +1 -0
  312. package/dist/{timeQueryBar-Tbd9M8UT.js → timeQueryBar-DyC0iHq9.js} +21 -20
  313. package/dist/timeQueryBar-uUGotoTx.cjs +1 -0
  314. package/dist/{timeSeries-DCV2YjC2.cjs → timeSeries-BhlqgEOq.cjs} +2 -2
  315. package/dist/{timeSeries-CdpEx6bf.js → timeSeries-U91gMDDQ.js} +66 -64
  316. package/dist/timeSeriesCurve-CiRMnZRD.cjs +1 -0
  317. package/dist/{timeSeriesCurve-C1AmF6TP.js → timeSeriesCurve-DOhIS88N.js} +68 -66
  318. package/dist/{toggleBtn-BGjXjIuK.cjs → toggleBtn-CuWwHFjD.cjs} +1 -1
  319. package/dist/{toggleBtn-XS9MjfKM.js → toggleBtn-DE35dkxx.js} +46 -44
  320. package/dist/trajectoryConfigPanel-DAbF8oE9.cjs +1 -0
  321. package/dist/{trajectoryConfigPanel-BC90nD1T.js → trajectoryConfigPanel-Ye7NY6rd.js} +35 -34
  322. package/dist/{trajectoryScatter-DF_ESBn8.js → trajectoryScatter-DL7HUNJI.js} +47 -45
  323. package/dist/trajectoryScatter-Dg99HzM3.cjs +1 -0
  324. package/dist/universalConfigPanel-1svBCvD9.cjs +1 -0
  325. package/dist/{universalConfigPanel-DjNTwJkz.js → universalConfigPanel-CkyIDl_x.js} +50 -49
  326. package/dist/{universalTable-BY9vRraC.js → universalTable--dpnyNO2.js} +56 -54
  327. package/dist/universalTable-D8w7FQbl.cjs +2 -0
  328. package/dist/useMixiotPanelSurface-CAZgexY5.cjs +1 -0
  329. package/dist/useMixiotPanelSurface-DRl3cZvc.js +22 -0
  330. package/dist/useTableBodyHeight-CwrQvi7M.js +21 -0
  331. package/dist/useTableBodyHeight-pf87uGjw.cjs +1 -0
  332. package/dist/{video-DDvDGDql.js → video-BmMSRRa_.js} +5 -4
  333. package/dist/{video-8_Sf1uz0.cjs → video-RGIZoUn6.cjs} +2 -2
  334. package/dist/videoMonitor-Bo5T0MT_.cjs +1 -0
  335. package/dist/{videoMonitor-sce5N4Q5.js → videoMonitor-uf6tt2E6.js} +34 -33
  336. package/dist/{vlu-BKeYJtOO.js → vlu-D8l5zE_P.js} +24 -23
  337. package/dist/vlu-DEo_h1qN.cjs +1 -0
  338. package/dist/warningOverview-A5AA_vCc.cjs +1 -0
  339. package/dist/{warningOverview-CG5mwtaO.js → warningOverview-CA0PikjV.js} +31 -30
  340. package/dist/{weather-CWvAqxgX.cjs → weather-D20MGzuJ.cjs} +1 -1
  341. package/dist/{weather-BrX2a1an.js → weather-DuseqeNF.js} +19 -18
  342. package/dist/{windLin-BbbsSwuF.cjs → windLin-BU6Q87dE.cjs} +1 -1
  343. package/dist/{windLin-P4Gs2aBB.js → windLin-D8AUL_dV.js} +58 -57
  344. package/package.json +120 -120
  345. package/dist/BaseComponent-CNXUpPY1.cjs +0 -1
  346. package/dist/UniverSheet-CntkzcVZ.cjs +0 -1
  347. package/dist/accelerationChart-DLV-1mpA.cjs +0 -6
  348. package/dist/actionItem-CFxzHf4E.cjs +0 -1
  349. package/dist/alarmLevelChart-DCC6D1fH.cjs +0 -2
  350. package/dist/alertTable-BREZBeS5.cjs +0 -1
  351. package/dist/aliasObjectSelectorDemo-DunKWEkT.cjs +0 -1
  352. package/dist/annualRainfallChart-BJyoUBDn.cjs +0 -1
  353. package/dist/aqiIndass-B441j8CT.cjs +0 -3
  354. package/dist/areaDeformCurve-Dj405Jil.cjs +0 -1
  355. package/dist/arrayCard-B7zb1dFi.cjs +0 -1
  356. package/dist/audio-BfsYRWbm.cjs +0 -1
  357. package/dist/bmp-DIkLqzRN.cjs +0 -1
  358. package/dist/box-kXjrgG2u.cjs +0 -1
  359. package/dist/chartConfigPanel-DN4LMy8-.cjs +0 -1
  360. package/dist/clock-EbmFBRb-.cjs +0 -1
  361. package/dist/clt-C-9xGiKs.cjs +0 -1
  362. package/dist/cmc-CFa8Q3tu.cjs +0 -1
  363. package/dist/conclusionCard-Dlg5GWlE.cjs +0 -1
  364. package/dist/controlList-C1vhlonT.cjs +0 -1
  365. package/dist/controlRecordList-BhK7KtLR.cjs +0 -1
  366. package/dist/crd-CgxqxwKV.cjs +0 -1
  367. package/dist/ctrBtn-BSJ9c7Pt.cjs +0 -1
  368. package/dist/ctrSet-B9M4yI53.cjs +0 -1
  369. package/dist/ctrSwitch-C6dUn_qm.js +0 -206
  370. package/dist/ctrSwitch-ZvMCYKvG.cjs +0 -1
  371. package/dist/dataManagement-CNrEa_zB.cjs +0 -1
  372. package/dist/datetime-CAyDWKE8.cjs +0 -1
  373. package/dist/deepClusterSlipSurface-DzoyF6i1.cjs +0 -1
  374. package/dist/deepDataMatrix--AstWPiL.cjs +0 -1
  375. package/dist/deepDisplacementChart-BnT1ZdfR.cjs +0 -6
  376. package/dist/deepDisplacementChart-DOPij7KP.cjs +0 -5
  377. package/dist/deepDisplacementView-u1IPcbxN.cjs +0 -8
  378. package/dist/deepNodeTemperatureChart-CD3JbqkA.cjs +0 -1
  379. package/dist/deepTangentAngleChart-BCAauuDY.cjs +0 -1
  380. package/dist/deepTemperatureField-BxuKsrtc.cjs +0 -1
  381. package/dist/deepTrendChart-6L4cCHgh.cjs +0 -1
  382. package/dist/deviceOnlineStatus-WkwzGom4.cjs +0 -2
  383. package/dist/deviceStatus-BoIv8fbr.cjs +0 -1
  384. package/dist/displacementDataTable-BwcxrsuU.cjs +0 -1
  385. package/dist/displacementTrajectoryChart-BOPIBgi5.cjs +0 -22
  386. package/dist/displacementTrendChart-CI8i0oQY.cjs +0 -5
  387. package/dist/emergencyPlan-BRFhMubg.cjs +0 -1
  388. package/dist/evn-B05d7LtF.cjs +0 -1
  389. package/dist/evolutionChart-y2mkLVwU.cjs +0 -1
  390. package/dist/fileViewer-Dy2fdABW.cjs +0 -1
  391. package/dist/filterBar-CcrUdD-O.cjs +0 -1
  392. package/dist/fireCombustionCurve-B-6MZLul.cjs +0 -1
  393. package/dist/fireFilterBar-C9b_Ohvr.cjs +0 -1
  394. package/dist/fireHistoryTable-5sG5FDCD.cjs +0 -3
  395. package/dist/gag-CDX99Ta4.cjs +0 -1
  396. package/dist/gasStationList-Dl9qawf_.cjs +0 -1
  397. package/dist/globalObjectSelector-Bz2XhgxT.cjs +0 -1
  398. package/dist/gnssFilterBar-BT19n0j_.cjs +0 -1
  399. package/dist/gnssHistoryTable-CrS2qO6S.cjs +0 -3
  400. package/dist/gnssSectionProfile-_KbP1NXU.cjs +0 -1
  401. package/dist/gnssTimeSeriesChart-BgFoXAZv.cjs +0 -1
  402. package/dist/gnssXYTrajectory-C1N3RWzp.cjs +0 -5
  403. package/dist/grd-DtDoJOOa.cjs +0 -1
  404. package/dist/grdIndass-ci3JkvGZ.cjs +0 -1
  405. package/dist/grg-C2qVuXYE.cjs +0 -1
  406. package/dist/gridview-BLAlr5uj.cjs +0 -1
  407. package/dist/groundwaterFilterBar-1E1j67JT.cjs +0 -1
  408. package/dist/groundwaterProfileChart-CS9xelz8.cjs +0 -11
  409. package/dist/groundwaterTimeCurve-DYiDLgVY.cjs +0 -1
  410. package/dist/headerBar-OwCxpc4o.cjs +0 -1
  411. package/dist/index-D8dh_6Qd.cjs +0 -612
  412. package/dist/insarDeformChart-CSQ7fc2p.cjs +0 -1
  413. package/dist/insarImageViewer-DvaRS1zr.cjs +0 -1
  414. package/dist/kpiCard-oLpk5d4m.cjs +0 -2
  415. package/dist/landslideMap-CO8o7T8J.cjs +0 -1
  416. package/dist/landslideWarning-BZXa5qTB.cjs +0 -1
  417. package/dist/layerTabs-BxRAsklw.cjs +0 -1
  418. package/dist/linIndass-Bb7UA-zk.cjs +0 -2
  419. package/dist/lst-Dri1MTDI.cjs +0 -1
  420. package/dist/manualEntry-D74dgZv8.cjs +0 -1
  421. package/dist/mappingList-CBN7ArkQ.cjs +0 -1
  422. package/dist/mixGrid-DTj2pmFW.cjs +0 -1
  423. package/dist/mixMap-B4T4R6kA.cjs +0 -1
  424. package/dist/mixModel-BzilRtjf.cjs +0 -3
  425. package/dist/mixPie-DtQm-LGp.cjs +0 -2
  426. package/dist/mjpegCamera-Lu3UHJ83.cjs +0 -1
  427. package/dist/monitorAlert-Ctt2kCxQ.cjs +0 -1
  428. package/dist/monitorData-D_tMbx_Y.cjs +0 -1
  429. package/dist/myValue-FZPOucSS.cjs +0 -1
  430. package/dist/myValueList-XIDK3ove.cjs +0 -1
  431. package/dist/objectList-BtbxHtJj.cjs +0 -1
  432. package/dist/photo-BITvEhKG.cjs +0 -1
  433. package/dist/photo-CjulDHTM.js +0 -873
  434. package/dist/placeholder-3kajeeeb.cjs +0 -1
  435. package/dist/pressBtn-pUcQtd5n.cjs +0 -1
  436. package/dist/processTable-CDulvQlu.cjs +0 -3
  437. package/dist/rad-Dk4PrnyI.cjs +0 -1
  438. package/dist/radarMapViewer-TJIPACdT.cjs +0 -1
  439. package/dist/rainfallFilterBar-Myq0MBCf.cjs +0 -1
  440. package/dist/rainfallTimeCurve-BUI-RlnG.cjs +0 -1
  441. package/dist/rangeLin-DYCZ8wVc.cjs +0 -3
  442. package/dist/realtimeEvolutionMap-BwyQdAhL.cjs +0 -1
  443. package/dist/regionBar-DsxqfirI.cjs +0 -3
  444. package/dist/retainer1-CSqjvY4k.cjs +0 -1
  445. package/dist/retainer2-Bqlwvr53.cjs +0 -1
  446. package/dist/retainerRecordList-DWZ3WDiz.cjs +0 -1
  447. package/dist/ringTopN-Bp0er_zV.cjs +0 -1
  448. package/dist/riskRegionTable-B3bzMaR_.cjs +0 -1
  449. package/dist/sankey-B4BJ4xIo.cjs +0 -1
  450. package/dist/scd-Dgd3KDpk.cjs +0 -1
  451. package/dist/sideMenu-BQ5rrGBr.cjs +0 -1
  452. package/dist/slopeStability-D96aiykf.cjs +0 -1
  453. package/dist/speedCurve-5nWqVAzz.cjs +0 -1
  454. package/dist/staticLine-DUCg-0tI.cjs +0 -1
  455. package/dist/stressFilterBar-CorWdmpQ.cjs +0 -1
  456. package/dist/stressTimeCurve-Bci50Cwv.cjs +0 -1
  457. package/dist/terminalConfigList-O881ke5o.cjs +0 -1
  458. package/dist/terminalList-C9TB2cJH.cjs +0 -1
  459. package/dist/textbox-BMWnbPvz.cjs +0 -1
  460. package/dist/timeQueryBar-C6ZheMvD.cjs +0 -1
  461. package/dist/timeSeriesCurve-DRlr5n3U.cjs +0 -1
  462. package/dist/trajectoryConfigPanel-DJ6fOeb1.cjs +0 -1
  463. package/dist/trajectoryScatter-C7kfSkyS.cjs +0 -1
  464. package/dist/universalConfigPanel-PO1hdgjw.cjs +0 -1
  465. package/dist/universalTable-QAb6UKCq.cjs +0 -2
  466. package/dist/useMixiotPanelSurface-BMNrWBMF.cjs +0 -1
  467. package/dist/useMixiotPanelSurface-DlVkLttU.js +0 -40
  468. package/dist/videoMonitor-BKLD_aQs.cjs +0 -1
  469. package/dist/vlu-C0XLDKKk.cjs +0 -1
  470. package/dist/warningOverview--n7crFnZ.cjs +0 -1
@@ -12,9 +12,9 @@ var H = (p, i, d) => i in p ? c2(p, i, { enumerable: !0, configurable: !0, writa
12
12
  }, K = (p, i) => i2(p, s2(i));
13
13
  import { defineComponent as d2, useCssVars as v2, unref as z, ref as f, computed as B, watch as M, onMounted as p2, onBeforeUnmount as m2, openBlock as I, createElementBlock as j, normalizeStyle as g2, createElementVNode as u, createCommentVNode as Q, toDisplayString as N, renderSlot as C2 } from "vue";
14
14
  import "html2canvas";
15
- import { B as f2 } from "./BaseComponent-D5tlYehc.js";
16
- import { k as h2, _ as L2 } from "./index-Bdq33405.js";
17
- import { L as C } from "./leaflet-src-DFE_g2gF.js";
15
+ import { B as f2 } from "./BaseComponent-CBagahPU.js";
16
+ import { k as h2, _ as L2 } from "./index-DwPJu6XM.js";
17
+ import { L as C } from "./leaflet-src-DNO2-OsP.js";
18
18
  /* empty css */
19
19
  const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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-541.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", y2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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-541.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", x2 = {
20
20
  key: 0,
@@ -27,7 +27,8 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
27
27
  ACTIVE_ICON: y2,
28
28
  NAME_CN: "地图背景",
29
29
  NAME_EN: "Map Background",
30
- ORDER: 12
30
+ ORDER: 12,
31
+ PLATFORM: ["pc", "screen"]
31
32
  }, S2 = {
32
33
  lng: { value: 113.933782, type: "number", label: "component.map.lng", step: 1e-3 },
33
34
  lat: { value: 22.582649, type: "number", label: "component.map.lat", step: 1e-3 },
@@ -74,18 +75,18 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
74
75
  },
75
76
  setup(p) {
76
77
  v2((e) => ({
77
- v0f0c8f8d: z(c).accentColor
78
+ v02e6b00a: z(c).accentColor
78
79
  }));
79
80
  const i = p;
80
81
  class d extends f2 {
81
82
  extractStyles() {
82
- var o, r, v, m, h, L, b, g, T, $, U, D, P, R, G, W;
83
+ var o, r, v, m, h, L, b, g, E, $, U, D, P, R, G, W;
83
84
  const { options: t } = this.props.conf, l = ((o = t == null ? void 0 : t.linkChannel) == null ? void 0 : o.value) || "slope", a = ((r = t == null ? void 0 : t.customChannel) == null ? void 0 : r.value) || "", s = l === "custom" && a ? a : l;
84
85
  return {
85
86
  lng: (m = (v = t == null ? void 0 : t.lng) == null ? void 0 : v.value) != null ? m : 113.933782,
86
87
  lat: (L = (h = t == null ? void 0 : t.lat) == null ? void 0 : h.value) != null ? L : 22.582649,
87
88
  zoom: (g = (b = t == null ? void 0 : t.zoom) == null ? void 0 : b.value) != null ? g : 12,
88
- mapStyle: ((T = t == null ? void 0 : t.mapStyle) == null ? void 0 : T.value) || "dark",
89
+ mapStyle: ((E = t == null ? void 0 : t.mapStyle) == null ? void 0 : E.value) || "dark",
89
90
  showControls: (U = ($ = t == null ? void 0 : t.showControls) == null ? void 0 : $.value) != null ? U : !0,
90
91
  showInfo: (P = (D = t == null ? void 0 : t.showInfo) == null ? void 0 : D.value) != null ? P : !0,
91
92
  fullScreen: (G = (R = t == null ? void 0 : t.fullScreen) == null ? void 0 : R.value) != null ? G : !0,
@@ -94,11 +95,11 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
94
95
  };
95
96
  }
96
97
  }
97
- const V = new d(i, "mapBackground");
98
- V.setupLifecycle();
99
- const c = V.getStyle(), Z = h2(), F = f(null);
98
+ const O = new d(i, "mapBackground");
99
+ O.setupLifecycle();
100
+ const c = O.getStyle(), V = h2(), F = f(null);
100
101
  let n = null;
101
- const y = C.layerGroup(), x = f(113.933782), w = f(22.582649), _ = f(12), k = f([]), O = f(null), S = {
102
+ const y = C.layerGroup(), x = f(113.933782), w = f(22.582649), _ = f(12), k = f([]), Z = f(null), S = {
102
103
  light: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
103
104
  dark: "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
104
105
  satellite: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"
@@ -172,8 +173,8 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
172
173
  n && (_.value = n.getZoom());
173
174
  }), n.on("mousemove", (g) => {
174
175
  x.value = g.latlng.lng, w.value = g.latlng.lat;
175
- }), x.value = e, w.value = t, _.value = l, E();
176
- }, E = () => {
176
+ }), x.value = e, w.value = t, _.value = l, T();
177
+ }, T = () => {
177
178
  n && (y.clearLayers(), k.value.forEach((e, t) => {
178
179
  const l = t2(t), a = C.marker([e.lat, e.lng], { icon: l }), s = `
179
180
  <div style="padding: 4px; min-width: 120px;">
@@ -187,9 +188,9 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
187
188
  </div>
188
189
  `;
189
190
  a.bindPopup(s), a.on("click", () => {
190
- if (O.value = e, i.mode !== "edit") {
191
+ if (Z.value = e, i.mode !== "edit") {
191
192
  const o = c.value.linkChannel, r = e.object_id || String(t + 1);
192
- Z.publish(o, "mapBackground", {
193
+ V.publish(o, "mapBackground", {
193
194
  objectId: r,
194
195
  deviceId: e.name,
195
196
  name: e.name,
@@ -240,14 +241,14 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
240
241
  var e;
241
242
  return (e = i.conf) == null ? void 0 : e.data;
242
243
  }, () => {
243
- A(), E();
244
+ A(), T();
244
245
  }, { deep: !0 }), p2(() => {
245
246
  A(), setTimeout(() => l2(), 100);
246
247
  }), m2(() => {
247
248
  n && (n.remove(), n = null);
248
249
  }), M(() => {
249
250
  const e = c.value.linkChannel;
250
- return e ? Z.channels[e] : null;
251
+ return e ? V.channels[e] : null;
251
252
  }, (e) => {
252
253
  if (!e || i.mode === "edit" || e.topic.source === "mapBackground") return;
253
254
  const { payload: t } = e, { objectId: l, deviceId: a } = t;
@@ -257,7 +258,7 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
257
258
  l && o.object_id && String(o.object_id) === String(l) && (s = o), !s && a && o.name === a && (s = o);
258
259
  }), s && n) {
259
260
  const o = s;
260
- O.value = o, n.setView([o.lat, o.lng], n.getZoom()), y.eachLayer((r) => {
261
+ Z.value = o, n.setView([o.lat, o.lng], n.getZoom()), y.eachLayer((r) => {
261
262
  if (r instanceof C.Marker) {
262
263
  const v = r.getLatLng();
263
264
  v.lat === o.lat && v.lng === o.lng && r.openPopup();
@@ -342,7 +343,7 @@ const b2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c
342
343
  C2(e.$slots, "default", {}, void 0, !0)
343
344
  ], 4));
344
345
  }
345
- })), T2 = /* @__PURE__ */ L2(I2, [["__scopeId", "data-v-cb267bf1"]]);
346
+ })), E2 = /* @__PURE__ */ L2(I2, [["__scopeId", "data-v-acda77eb"]]);
346
347
  export {
347
- T2 as default
348
+ E2 as default
348
349
  };
@@ -1,4 +1,4 @@
1
- "use strict";var Y=Object.defineProperty,e2=Object.defineProperties;var t2=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var l2=Object.prototype.hasOwnProperty,n2=Object.prototype.propertyIsEnumerable;var D=(m,i,d)=>i in m?Y(m,i,{enumerable:!0,configurable:!0,writable:!0,value:d}):m[i]=d,U=(m,i)=>{for(var d in i||(i={}))l2.call(i,d)&&D(m,d,i[d]);if($)for(var d of $(i))n2.call(i,d)&&D(m,d,i[d]);return m},q=(m,i)=>e2(m,t2(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const o2=require("./BaseComponent-CNXUpPY1.cjs"),P=require("./index-D8dh_6Qd.cjs"),C=require("./leaflet-src-BUWIqhPn.cjs");;/* empty css */const a2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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-541.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",c2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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-541.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",r2={key:0,class:"map-controls"},i2={key:1,class:"map-info"},s2={DEFAULT_ICON:a2,ACTIVE_ICON:c2,NAME_CN:"地图背景",NAME_EN:"Map Background",ORDER:12},u2={lng:{value:113.933782,type:"number",label:"component.map.lng",step:.001},lat:{value:22.582649,type:"number",label:"component.map.lat",step:.001},zoom:{value:12,type:"number",label:"component.map.zoom",min:1,max:18},mapStyle:{value:"dark",type:"select",label:"component.mapBackground.mapStyle",options:[{label:"深色",value:"dark"},{label:"浅色",value:"light"},{label:"卫星",value:"satellite"}]},showControls:{value:!0,type:"checkbox",label:"component.mapBackground.showControls"},showInfo:{value:!0,type:"checkbox",label:"component.mapBackground.showInfo"},fullScreen:{value:!0,type:"checkbox",label:"component.mapBackground.fullScreen"},accentColor:{value:"#00d4ff",type:"color",label:"component.mapBackground.accentColor"},linkChannel:{value:"slope",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},d2=[{name:"监测点1",object_id:"1",lng:113.933782,lat:22.582649,elevation:100,bindFv:""},{name:"监测点2",object_id:"2",lng:113.943782,lat:22.592649,elevation:150,bindFv:""},{name:"监测点3",object_id:"3",lng:113.923782,lat:22.572649,elevation:80,bindFv:""}],v2=["name","object_id","lng","lat","elevation","bindFv"],m2=["mosaic"],p2={useAlias:!1,multiObject:!0,source:"mosaic"},g2={DEFAULT:s2,OPTIONS:u2,DATA:d2,PARAMS:v2,SOURCE:m2,COMMON:p2},C2=l.defineComponent(q(U({},g2),{__name:"mapBackground",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){l.useCssVars(e=>({v0f0c8f8d:l.unref(r).accentColor}));const i=m;class d extends o2.BaseComponent{extractStyles(){var a,u,v,p,f,h,L,g,z,E,I,j,O,Z,A,T;const{options:t}=this.props.conf,n=((a=t==null?void 0:t.linkChannel)==null?void 0:a.value)||"slope",c=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=n==="custom"&&c?c:n;return{lng:(p=(v=t==null?void 0:t.lng)==null?void 0:v.value)!=null?p:113.933782,lat:(h=(f=t==null?void 0:t.lat)==null?void 0:f.value)!=null?h:22.582649,zoom:(g=(L=t==null?void 0:t.zoom)==null?void 0:L.value)!=null?g:12,mapStyle:((z=t==null?void 0:t.mapStyle)==null?void 0:z.value)||"dark",showControls:(I=(E=t==null?void 0:t.showControls)==null?void 0:E.value)!=null?I:!0,showInfo:(O=(j=t==null?void 0:t.showInfo)==null?void 0:j.value)!=null?O:!0,fullScreen:(A=(Z=t==null?void 0:t.fullScreen)==null?void 0:Z.value)!=null?A:!0,accentColor:((T=t==null?void 0:t.accentColor)==null?void 0:T.value)||"#00d4ff",linkChannel:s}}}const F=new d(i,"mapBackground");F.setupLifecycle();const r=F.getStyle(),N=P.useLinkStore(),S=l.ref(null);let o=null;const b=C.L.layerGroup(),y=l.ref(113.933782),w=l.ref(22.582649),M=l.ref(12),x=l.ref([]),_=l.ref(null),k={light:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",dark:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",satellite:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"},R=l.computed(()=>{const e=y.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),G=l.computed(()=>{const e=w.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),W=l.computed(()=>{var e;return(e=r.value)!=null&&e.fullScreen?{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"0"}:{}}),H=e=>{var c;const t=((c=r.value)==null?void 0:c.accentColor)||"#00d4ff",n=`
1
+ "use strict";var Y=Object.defineProperty,e2=Object.defineProperties;var t2=Object.getOwnPropertyDescriptors;var $=Object.getOwnPropertySymbols;var l2=Object.prototype.hasOwnProperty,n2=Object.prototype.propertyIsEnumerable;var D=(m,i,d)=>i in m?Y(m,i,{enumerable:!0,configurable:!0,writable:!0,value:d}):m[i]=d,U=(m,i)=>{for(var d in i||(i={}))l2.call(i,d)&&D(m,d,i[d]);if($)for(var d of $(i))n2.call(i,d)&&D(m,d,i[d]);return m},q=(m,i)=>e2(m,t2(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");require("html2canvas");const o2=require("./BaseComponent-Chnv4fBT.cjs"),P=require("./index-DVqMfQVc.cjs"),C=require("./leaflet-src-CxFQ_Cn7.cjs");;/* empty css */const a2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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-541.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",c2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='17px'%20viewBox='0%200%2016%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-541.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M206.649699,546.054215%20C208.165988,546.054215%20209.395183,547.28341%20209.395183,548.799699%20C209.395183,550.261835%20208.25222,551.457018%20206.811017,551.540523%20L206.649699,551.545183%20L201.745484,551.545183%20C200.940182,551.545183%20200.287356,552.19801%20200.287356,553.003311%20C200.287356,553.763874%20200.869661,554.388433%20201.612765,554.455481%20L201.745484,554.46144%20L210.853311,554.46144%20C211.208805,554.46144%20211.49699,554.749624%20211.49699,555.105118%20C211.49699,555.430987%20211.254835,555.700298%20210.940655,555.74292%20L210.853311,555.748796%20L201.745484,555.748796%20C200.229195,555.748796%20199,554.519601%20199,553.003311%20C199,551.541175%20200.142963,550.345993%20201.584166,550.262488%20L201.745484,550.257827%20L206.649699,550.257827%20C207.455001,550.257827%20208.107827,549.605001%20208.107827,548.799699%20C208.107827,548.039136%20207.525522,547.414578%20206.782418,547.34753%20L206.649699,547.341571%20L203.847291,547.341571%20C203.491797,547.341571%20203.203612,547.053386%20203.203612,546.697893%20C203.203612,546.372024%20203.445768,546.102713%20203.759947,546.060091%20L203.847291,546.054215%20L206.649699,546.054215%20Z%20M212.923248,550.97951%20C213.859155,550.97951%20214.617829,551.738184%20214.617829,552.674091%20C214.617829,553.240686%20214.229423,554.017499%20213.452861,555.141728%20C213.196963,555.512192%20212.649533,555.512192%20212.393635,555.141728%20C211.617073,554.017499%20211.228667,553.240686%20211.228667,552.674091%20C211.228667,551.738184%20211.987341,550.97951%20212.923248,550.97951%20Z%20M212.923248,552.266866%20C212.698328,552.266866%20212.516023,552.449171%20212.516023,552.674091%20C212.516023,552.798465%20212.628414,553.072996%20212.853249,553.468048%20L212.853249,553.468048%20L212.923117,553.588377%20L212.993247,553.468048%20L213.12648,553.22286%20C213.243054,552.996178%20213.309659,552.825988%20213.32631,552.72107%20L213.32631,552.72107%20L213.330473,552.674091%20C213.330473,552.449171%20213.148168,552.266866%20212.923248,552.266866%20Z%20M201.694581,542.551204%20C202.630489,542.551204%20203.389163,543.309878%20203.389163,544.245785%20C203.389163,544.661288%20203.180286,545.189842%20202.762633,545.885553%20L202.762633,545.885553%20L202.514117,546.281934%20C202.424377,546.419804%20202.327736,546.563525%20202.224194,546.713422%20C201.968296,547.083886%20201.420867,547.083886%20201.164969,546.713422%20C200.388406,545.589193%20200,544.81238%20200,544.245785%20C200,543.309878%20200.758674,542.551204%20201.694581,542.551204%20Z%20M201.694581,543.83856%20C201.469661,543.83856%20201.287356,544.020865%20201.287356,544.245785%20C201.287356,544.370159%20201.399747,544.64469%20201.624582,545.039742%20L201.624582,545.039742%20L201.693793,545.15994%20L201.764581,545.039742%20L201.897813,544.794554%20C202.014388,544.567872%20202.080993,544.397682%20202.097644,544.292764%20L202.097644,544.292764%20L202.101806,544.245785%20C202.101806,544.020865%20201.919501,543.83856%20201.694581,543.83856%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",r2={key:0,class:"map-controls"},i2={key:1,class:"map-info"},s2={DEFAULT_ICON:a2,ACTIVE_ICON:c2,NAME_CN:"地图背景",NAME_EN:"Map Background",ORDER:12,PLATFORM:["pc","screen"]},u2={lng:{value:113.933782,type:"number",label:"component.map.lng",step:.001},lat:{value:22.582649,type:"number",label:"component.map.lat",step:.001},zoom:{value:12,type:"number",label:"component.map.zoom",min:1,max:18},mapStyle:{value:"dark",type:"select",label:"component.mapBackground.mapStyle",options:[{label:"深色",value:"dark"},{label:"浅色",value:"light"},{label:"卫星",value:"satellite"}]},showControls:{value:!0,type:"checkbox",label:"component.mapBackground.showControls"},showInfo:{value:!0,type:"checkbox",label:"component.mapBackground.showInfo"},fullScreen:{value:!0,type:"checkbox",label:"component.mapBackground.fullScreen"},accentColor:{value:"#00d4ff",type:"color",label:"component.mapBackground.accentColor"},linkChannel:{value:"slope",type:"select",label:"联动频道",options:[{label:"GNSS监测",value:"gnss"},{label:"边坡监测",value:"slope"},{label:"设备联动",value:"device"},{label:"告警联动",value:"alarm"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道名",showWhen:{linkChannel:"custom"}}},d2=[{name:"监测点1",object_id:"1",lng:113.933782,lat:22.582649,elevation:100,bindFv:""},{name:"监测点2",object_id:"2",lng:113.943782,lat:22.592649,elevation:150,bindFv:""},{name:"监测点3",object_id:"3",lng:113.923782,lat:22.572649,elevation:80,bindFv:""}],v2=["name","object_id","lng","lat","elevation","bindFv"],m2=["mosaic"],p2={useAlias:!1,multiObject:!0,source:"mosaic"},g2={DEFAULT:s2,OPTIONS:u2,DATA:d2,PARAMS:v2,SOURCE:m2,COMMON:p2},C2=l.defineComponent(q(U({},g2),{__name:"mapBackground",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(m){l.useCssVars(e=>({v02e6b00a:l.unref(r).accentColor}));const i=m;class d extends o2.BaseComponent{extractStyles(){var a,u,v,p,f,h,L,g,z,E,I,j,O,Z,A,T;const{options:t}=this.props.conf,n=((a=t==null?void 0:t.linkChannel)==null?void 0:a.value)||"slope",c=((u=t==null?void 0:t.customChannel)==null?void 0:u.value)||"",s=n==="custom"&&c?c:n;return{lng:(p=(v=t==null?void 0:t.lng)==null?void 0:v.value)!=null?p:113.933782,lat:(h=(f=t==null?void 0:t.lat)==null?void 0:f.value)!=null?h:22.582649,zoom:(g=(L=t==null?void 0:t.zoom)==null?void 0:L.value)!=null?g:12,mapStyle:((z=t==null?void 0:t.mapStyle)==null?void 0:z.value)||"dark",showControls:(I=(E=t==null?void 0:t.showControls)==null?void 0:E.value)!=null?I:!0,showInfo:(O=(j=t==null?void 0:t.showInfo)==null?void 0:j.value)!=null?O:!0,fullScreen:(A=(Z=t==null?void 0:t.fullScreen)==null?void 0:Z.value)!=null?A:!0,accentColor:((T=t==null?void 0:t.accentColor)==null?void 0:T.value)||"#00d4ff",linkChannel:s}}}const F=new d(i,"mapBackground");F.setupLifecycle();const r=F.getStyle(),N=P.useLinkStore(),S=l.ref(null);let o=null;const b=C.L.layerGroup(),y=l.ref(113.933782),w=l.ref(22.582649),M=l.ref(12),x=l.ref([]),_=l.ref(null),k={light:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",dark:"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",satellite:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"},R=l.computed(()=>{const e=y.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),G=l.computed(()=>{const e=w.value;return e==null||isNaN(e)?"0.0000":e.toFixed(4)}),W=l.computed(()=>{var e;return(e=r.value)!=null&&e.fullScreen?{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"0"}:{}}),H=e=>{var c;const t=((c=r.value)==null?void 0:c.accentColor)||"#00d4ff",n=`
2
2
  <svg xmlns="http://www.w3.org/2000/svg" width="32" height="40" viewBox="0 0 32 40">
3
3
  <path d="M16 0C7.163 0 0 7.163 0 16c0 12 16 24 16 24s16-12 16-24C32 7.163 24.837 0 16 0z" fill="${t}"/>
4
4
  <circle cx="16" cy="16" r="8" fill="#fff"/>
@@ -14,4 +14,4 @@
14
14
  ${e.bindFv?`<div>绑定FV: ${e.bindFv}</div>`:""}
15
15
  </div>
16
16
  </div>
17
- `;c.bindPopup(s),c.on("click",()=>{if(_.value=e,i.mode!=="edit"){const a=r.value.linkChannel,u=e.object_id||String(t+1);N.publish(a,"mapBackground",{objectId:u,deviceId:e.name,name:e.name,lng:e.lng,lat:e.lat,elevation:e.elevation,bindFv:e.bindFv,fvValue:e.fvValue}),console.log(`[mapBackground] 发布到频道 "${a}":`,{objectId:u,name:e.name})}}),b.addLayer(c)}))},K=()=>{o&&o.zoomIn()},Q=()=>{o&&o.zoomOut()},X=()=>{var e,t,n,c,s,a;if(o){const u=(t=(e=r.value)==null?void 0:e.lng)!=null?t:113.933782,v=(c=(n=r.value)==null?void 0:n.lat)!=null?c:22.582649,p=(a=(s=r.value)==null?void 0:s.zoom)!=null?a:12;o.setView([v,u],p)}};return l.watch(()=>{var e,t,n;return[(e=r.value)==null?void 0:e.lng,(t=r.value)==null?void 0:t.lat,(n=r.value)==null?void 0:n.zoom]},()=>{var e,t,n,c,s,a;if(o){const u=(t=(e=r.value)==null?void 0:e.lng)!=null?t:113.933782,v=(c=(n=r.value)==null?void 0:n.lat)!=null?c:22.582649,p=(a=(s=r.value)==null?void 0:s.zoom)!=null?a:12;o.setView([v,u],p)}}),l.watch(()=>{var e;return(e=r.value)==null?void 0:e.mapStyle},e=>{if(o&&e){o.eachLayer(n=>{n instanceof C.L.TileLayer&&o.removeLayer(n)});const t=k[e]||k.dark;C.L.tileLayer(t,{attribution:"© OpenStreetMap contributors",maxZoom:18}).addTo(o)}}),l.watch(()=>{var e;return(e=i.conf)==null?void 0:e.data},()=>{B(),V()},{deep:!0}),l.onMounted(()=>{B(),setTimeout(()=>J(),100)}),l.onBeforeUnmount(()=>{o&&(o.remove(),o=null)}),l.watch(()=>{const e=r.value.linkChannel;return e?N.channels[e]:null},e=>{if(!e||i.mode==="edit"||e.topic.source==="mapBackground")return;const{payload:t}=e,{objectId:n,deviceId:c}=t;console.log(`[mapBackground] 收到频道 "${r.value.linkChannel}" 事件:`,{objectId:n,deviceId:c});let s=null;if(x.value.forEach(a=>{n&&a.object_id&&String(a.object_id)===String(n)&&(s=a),!s&&c&&a.name===c&&(s=a)}),s&&o){const a=s;_.value=a,o.setView([a.lat,a.lng],o.getZoom()),b.eachLayer(u=>{if(u instanceof C.L.Marker){const v=u.getLatLng();v.lat===a.lat&&v.lng===a.lng&&u.openPopup()}})}},{deep:!0}),(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:"map-background-wrapper",style:l.normalizeStyle(W.value)},[l.createElementVNode("div",{ref_key:"mapContainer",ref:S,class:"map-container"},null,512),l.unref(r).showControls?(l.openBlock(),l.createElementBlock("div",r2,[l.createElementVNode("button",{class:"control-btn",onClick:K,title:"放大"},[...t[0]||(t[0]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),l.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])]),l.createElementVNode("button",{class:"control-btn",onClick:Q,title:"缩小"},[...t[1]||(t[1]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])]),l.createElementVNode("button",{class:"control-btn",onClick:X,title:"重置视图"},[...t[2]||(t[2]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})],-1)])])])):l.createCommentVNode("",!0),l.unref(r).showInfo?(l.openBlock(),l.createElementBlock("div",i2,[l.createElementVNode("span",null,"经度: "+l.toDisplayString(R.value),1),l.createElementVNode("span",null,"纬度: "+l.toDisplayString(G.value),1),l.createElementVNode("span",null,"缩放: "+l.toDisplayString(M.value),1)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),f2=P._export_sfc(C2,[["__scopeId","data-v-cb267bf1"]]);exports.default=f2;
17
+ `;c.bindPopup(s),c.on("click",()=>{if(_.value=e,i.mode!=="edit"){const a=r.value.linkChannel,u=e.object_id||String(t+1);N.publish(a,"mapBackground",{objectId:u,deviceId:e.name,name:e.name,lng:e.lng,lat:e.lat,elevation:e.elevation,bindFv:e.bindFv,fvValue:e.fvValue}),console.log(`[mapBackground] 发布到频道 "${a}":`,{objectId:u,name:e.name})}}),b.addLayer(c)}))},K=()=>{o&&o.zoomIn()},Q=()=>{o&&o.zoomOut()},X=()=>{var e,t,n,c,s,a;if(o){const u=(t=(e=r.value)==null?void 0:e.lng)!=null?t:113.933782,v=(c=(n=r.value)==null?void 0:n.lat)!=null?c:22.582649,p=(a=(s=r.value)==null?void 0:s.zoom)!=null?a:12;o.setView([v,u],p)}};return l.watch(()=>{var e,t,n;return[(e=r.value)==null?void 0:e.lng,(t=r.value)==null?void 0:t.lat,(n=r.value)==null?void 0:n.zoom]},()=>{var e,t,n,c,s,a;if(o){const u=(t=(e=r.value)==null?void 0:e.lng)!=null?t:113.933782,v=(c=(n=r.value)==null?void 0:n.lat)!=null?c:22.582649,p=(a=(s=r.value)==null?void 0:s.zoom)!=null?a:12;o.setView([v,u],p)}}),l.watch(()=>{var e;return(e=r.value)==null?void 0:e.mapStyle},e=>{if(o&&e){o.eachLayer(n=>{n instanceof C.L.TileLayer&&o.removeLayer(n)});const t=k[e]||k.dark;C.L.tileLayer(t,{attribution:"© OpenStreetMap contributors",maxZoom:18}).addTo(o)}}),l.watch(()=>{var e;return(e=i.conf)==null?void 0:e.data},()=>{B(),V()},{deep:!0}),l.onMounted(()=>{B(),setTimeout(()=>J(),100)}),l.onBeforeUnmount(()=>{o&&(o.remove(),o=null)}),l.watch(()=>{const e=r.value.linkChannel;return e?N.channels[e]:null},e=>{if(!e||i.mode==="edit"||e.topic.source==="mapBackground")return;const{payload:t}=e,{objectId:n,deviceId:c}=t;console.log(`[mapBackground] 收到频道 "${r.value.linkChannel}" 事件:`,{objectId:n,deviceId:c});let s=null;if(x.value.forEach(a=>{n&&a.object_id&&String(a.object_id)===String(n)&&(s=a),!s&&c&&a.name===c&&(s=a)}),s&&o){const a=s;_.value=a,o.setView([a.lat,a.lng],o.getZoom()),b.eachLayer(u=>{if(u instanceof C.L.Marker){const v=u.getLatLng();v.lat===a.lat&&v.lng===a.lng&&u.openPopup()}})}},{deep:!0}),(e,t)=>(l.openBlock(),l.createElementBlock("div",{class:"map-background-wrapper",style:l.normalizeStyle(W.value)},[l.createElementVNode("div",{ref_key:"mapContainer",ref:S,class:"map-container"},null,512),l.unref(r).showControls?(l.openBlock(),l.createElementBlock("div",r2,[l.createElementVNode("button",{class:"control-btn",onClick:K,title:"放大"},[...t[0]||(t[0]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),l.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])]),l.createElementVNode("button",{class:"control-btn",onClick:Q,title:"缩小"},[...t[1]||(t[1]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"})],-1)])]),l.createElementVNode("button",{class:"control-btn",onClick:X,title:"重置视图"},[...t[2]||(t[2]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[l.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),l.createElementVNode("path",{d:"M3 3v5h5"})],-1)])])])):l.createCommentVNode("",!0),l.unref(r).showInfo?(l.openBlock(),l.createElementBlock("div",i2,[l.createElementVNode("span",null,"经度: "+l.toDisplayString(R.value),1),l.createElementVNode("span",null,"纬度: "+l.toDisplayString(G.value),1),l.createElementVNode("span",null,"缩放: "+l.toDisplayString(M.value),1)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default",{},void 0,!0)],4))}})),f2=P._export_sfc(C2,[["__scopeId","data-v-acda77eb"]]);exports.default=f2;
@@ -14,19 +14,19 @@ var L = (g, d, c) => new Promise((W, _) => {
14
14
  var te = (B) => {
15
15
  try {
16
16
  R(c.next(B));
17
- } catch ($) {
18
- _($);
17
+ } catch (M) {
18
+ _(M);
19
19
  }
20
20
  }, le = (B) => {
21
21
  try {
22
22
  R(c.throw(B));
23
- } catch ($) {
24
- _($);
23
+ } catch (M) {
24
+ _(M);
25
25
  }
26
26
  }, R = (B) => B.done ? W(B.value) : Promise.resolve(B.value).then(te, le);
27
27
  R((c = c.apply(g, d)).next());
28
28
  });
29
- import { ElInput as Je, ElIcon as Pe, ElSelect as Re, ElOption as $e, ElButton as Me, ElTable as Ie, ElTableColumn as je, ElTag as Ke, ElPagination as We, ElLoadingDirective as He, ElDialog as qe, ElForm as Qe, ElFormItem as Ge, ElDescriptions as Xe, ElDescriptionsItem as Ye } from "element-plus/es";
29
+ import { ElInput as Je, ElIcon as Pe, ElSelect as Re, ElOption as Me, ElButton as $e, ElTable as Ie, ElTableColumn as je, ElTag as Ke, ElPagination as We, ElLoadingDirective as He, ElDialog as qe, ElForm as Qe, ElFormItem as Ge, ElDescriptions as Xe, ElDescriptionsItem as Ye } from "element-plus/es";
30
30
  import "element-plus/es/components/base/style/css";
31
31
  import "element-plus/es/components/loading/style/css";
32
32
  import "element-plus/es/components/descriptions/style/css";
@@ -44,9 +44,10 @@ import "element-plus/es/components/option/style/css";
44
44
  import "element-plus/es/components/input/style/css";
45
45
  import "element-plus/es/components/icon/style/css";
46
46
  import { defineComponent as Ze, computed as K, reactive as me, ref as k, watch as et, onMounted as tt, openBlock as v, createElementBlock as N, Fragment as ee, withDirectives as ce, normalizeStyle as fe, unref as S, normalizeClass as lt, toDisplayString as C, createCommentVNode as E, createElementVNode as J, createVNode as a, withKeys as it, withCtx as o, createTextVNode as p, createBlock as U, renderList as at, renderSlot as ot } from "vue";
47
- import { u as nt, a as st } from "./useMixiotPanelSurface-DlVkLttU.js";
48
- import { B as rt } from "./BaseComponent-D5tlYehc.js";
49
- import { a as P, _ as dt } from "./index-Bdq33405.js";
47
+ import { u as nt } from "./useTableBodyHeight-CwrQvi7M.js";
48
+ import { u as st } from "./useMixiotPanelSurface-DRl3cZvc.js";
49
+ import { B as rt } from "./BaseComponent-CBagahPU.js";
50
+ import { a as P, _ as dt } from "./index-DwPJu6XM.js";
50
51
  import { g as ut } from "./titleStyle-BT5GlpAb.js";
51
52
  import { ElMessage as h, ElMessageBox as ve } from "element-plus";
52
53
  import { Search as pt } from "@element-plus/icons-vue";
@@ -57,7 +58,8 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
57
58
  ACTIVE_ICON: ct,
58
59
  NAME_CN: "映射表列表",
59
60
  NAME_EN: "MappingList",
60
- ORDER: 2
61
+ ORDER: 2,
62
+ PLATFORM: ["pc", "screen"]
61
63
  }, _t = {
62
64
  panelBgTone: {
63
65
  value: "light",
@@ -190,7 +192,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
190
192
  }
191
193
  const W = new c(d, "mappingList");
192
194
  W.setupLifecycle();
193
- const _ = W.getStyle(), { mixiotPanelClass: te, mixiotPanelRootStyle: le } = nt(_), { tableWrapRef: R, tableBodyHeight: B } = st(), $ = K(() => ut(d.conf.options)), ye = K(() => {
195
+ const _ = W.getStyle(), { mixiotPanelClass: te, mixiotPanelRootStyle: le } = st(_), { tableWrapRef: R, tableBodyHeight: B } = nt(), M = K(() => ut(d.conf.options)), ye = K(() => {
194
196
  var n, s, u, y;
195
197
  const i = ((s = (n = d.conf) == null ? void 0 : n.options) == null ? void 0 : s.columns) || [], e = ((y = (u = d.conf) == null ? void 0 : u.data) == null ? void 0 : y[0]) || {};
196
198
  return (Array.isArray(i) ? i : []).map((r) => {
@@ -262,7 +264,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
262
264
  w.current = 1, x();
263
265
  }
264
266
  );
265
- const M = k(!1), I = k(!1), A = k(!1), l = me({
267
+ const $ = k(!1), I = k(!1), A = k(!1), l = me({
266
268
  id: 0,
267
269
  uid: "",
268
270
  name: "",
@@ -284,7 +286,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
284
286
  }
285
287
  }
286
288
  function Se() {
287
- q(), M.value = !0;
289
+ q(), $.value = !0;
288
290
  }
289
291
  function Ce(i) {
290
292
  return L(this, null, function* () {
@@ -328,7 +330,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
328
330
  script: i,
329
331
  addition: e
330
332
  };
331
- yield P.post("mapping_create", s, !0), h.success("添加成功"), M.value = !1, yield x();
333
+ yield P.post("mapping_create", s, !0), h.success("添加成功"), $.value = !1, yield x();
332
334
  } catch (s) {
333
335
  h.error("添加失败");
334
336
  } finally {
@@ -415,7 +417,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
415
417
  return tt(() => {
416
418
  x();
417
419
  }), (i, e) => {
418
- const n = Pe, s = Je, u = $e, y = Re, r = Me, V = Ke, D = je, X = Ie, Y = We, b = Ge, j = Qe, O = qe, f = Ye, F = Xe, T = He;
420
+ const n = Pe, s = Je, u = Me, y = Re, r = $e, V = Ke, D = je, X = Ie, Y = We, b = Ge, j = Qe, O = qe, f = Ye, F = Xe, T = He;
419
421
  return v(), N(ee, null, [
420
422
  ce((v(), N("div", {
421
423
  class: lt(["mapping-list mix-component", S(te)]),
@@ -424,7 +426,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
424
426
  S(_).isHideTitle ? E("", !0) : (v(), N("div", {
425
427
  key: 0,
426
428
  class: "mix-title",
427
- style: fe($.value)
429
+ style: fe(M.value)
428
430
  }, C(g.conf.caption || g.conf.name), 5)),
429
431
  J("div", vt, [
430
432
  J("div", gt, [
@@ -611,8 +613,8 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
611
613
  [T, oe.value]
612
614
  ]),
613
615
  a(O, {
614
- modelValue: M.value,
615
- "onUpdate:modelValue": e[10] || (e[10] = (t) => M.value = t),
616
+ modelValue: $.value,
617
+ "onUpdate:modelValue": e[10] || (e[10] = (t) => $.value = t),
616
618
  title: "添加映射表",
617
619
  width: "640px",
618
620
  "destroy-on-close": "",
@@ -620,7 +622,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
620
622
  }, {
621
623
  footer: o(() => [
622
624
  a(r, {
623
- onClick: e[9] || (e[9] = (t) => M.value = !1)
625
+ onClick: e[9] || (e[9] = (t) => $.value = !1)
624
626
  }, {
625
627
  default: o(() => [...e[28] || (e[28] = [
626
628
  p("取消", -1)
@@ -932,7 +934,7 @@ const vt = { class: "mix-body" }, gt = { class: "toolbar" }, yt = { key: 1 }, bt
932
934
  ], 64);
933
935
  };
934
936
  }
935
- })), el = /* @__PURE__ */ dt(Bt, [["__scopeId", "data-v-013a9563"]]);
937
+ })), tl = /* @__PURE__ */ dt(Bt, [["__scopeId", "data-v-f233080b"]]);
936
938
  export {
937
- el as default
939
+ tl as default
938
940
  };
@@ -0,0 +1 @@
1
+ "use strict";var he=Object.defineProperty,be=Object.defineProperties;var we=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var Z=(f,s,c)=>s in f?he(f,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):f[s]=c,R=(f,s)=>{for(var c in s||(s={}))xe.call(s,c)&&Z(f,c,s[c]);if(Y)for(var c of Y(s))Ne.call(s,c)&&Z(f,c,s[c]);return f},ee=(f,s)=>be(f,we(s));var S=(f,s,c)=>new Promise((M,h)=>{var $=w=>{try{O(c.next(w))}catch(D){h(D)}},j=w=>{try{O(c.throw(w))}catch(D){h(D)}},O=w=>w.done?M(w.value):Promise.resolve(w.value).then($,j);O((c=c.apply(f,s)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/form/style/css");require("element-plus/es/components/form-item/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),Ce=require("./useTableBodyHeight-pf87uGjw.cjs"),ke=require("./useMixiotPanelSurface-CAZgexY5.cjs"),_e=require("./BaseComponent-Chnv4fBT.cjs"),E=require("./index-DVqMfQVc.cjs"),Be=require("./titleStyle-NSnz6cUg.cjs"),m=require("element-plus"),Se=require("@element-plus/icons-vue"),Ee=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),te=require("./ele-lst-icon-CrxnHZ-A.cjs"),Te={class:"mix-body"},Oe={class:"toolbar"},De={key:1},ze={class:"pagination"},Ae={class:"view-body"},qe={DEFAULT_ICON:te.DEFAULT_ICON,ACTIVE_ICON:te.ACTIVE_ICON,NAME_CN:"映射表列表",NAME_EN:"MappingList",ORDER:2,PLATFORM:["pc","screen"]},Me={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"映射表编号",width:160,visible:!0},{key:"alias",label:"映射表别名",width:140,visible:!0},{key:"name",label:"映射表名称",width:160,visible:!0},{key:"description",label:"描述",minWidth:160,visible:!0},{key:"is_active",label:"是否开启",width:100,visible:!0},{key:"created",label:"创建时间",width:170,visible:!0},{key:"last_modified",label:"更新时间",width:170,visible:!0}]},le=[{name:"映射表名称",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0,uid:"映射表编号",uid_visible:!0,alias:"映射表别名",alias_visible:!0,description:"描述",description_visible:!0,is_active:"是否开启",is_active_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0}],Ue=[{key:"showAddBtn",label:"添加映射表",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组"},{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"uid",label:"映射表编号",checkable:!0,checkboxKey:"uid_visible"},{key:"alias",label:"映射表别名",checkable:!0,checkboxKey:"alias_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"is_active",label:"是否开启",checkable:!0,checkboxKey:"is_active_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Le=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Fe={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.name"},{value:"uid",label:"setting.gridFields.uid"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"description",label:"setting.gridFields.description"}]},Pe={DEFAULT:qe,OPTIONS:Me,DATA:le,PARAMS:Ue,SOURCE:Le,COMMON:Fe},Je=e.defineComponent(ee(R({},Pe),{__name:"mappingList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""},mappingUidList:{default:()=>[]}},setup(f){const s=f;class c extends _e.BaseComponent{getDataBool(t,o){var d,g;const n=(g=(d=this.props.conf)==null?void 0:d.data)==null?void 0:g[0];return n&&Object.prototype.hasOwnProperty.call(n,t)&&n[t]!==void 0?!!n[t]:this.getOptionValue(t,o)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length))this.props.conf.data=JSON.parse(JSON.stringify(le));else{const o=this.props.conf.data[0],n={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[d,g]of Object.entries(n))o[d]===void 0&&(o[d]=g)}}}const M=new c(s,"mappingList");M.setupLifecycle();const h=M.getStyle(),{mixiotPanelClass:$,mixiotPanelRootStyle:j}=ke.useMixiotPanelSurface(h),{tableWrapRef:O,tableBodyHeight:w}=Ce.useTableBodyHeight(),D=e.computed(()=>Be.generateTitleStyle(s.conf.options)),ie=e.computed(()=>{var o,n,d,g;const a=((n=(o=s.conf)==null?void 0:o.options)==null?void 0:n.columns)||[],t=((g=(d=s.conf)==null?void 0:d.data)==null?void 0:g[0])||{};return(Array.isArray(a)?a:[]).map(r=>{const b=t[r.key],_=t[`${r.key}_visible`];return{prop:r.key,label:b!==void 0&&b!==""?String(b):r.label,width:r.width,minWidth:r.minWidth,visible:_!==void 0?!!_:r.visible!==!1}})}),y=e.reactive({current:1,pageSize:10,total:0}),U=e.ref(""),K=e.ref("name"),W=e.ref([]),H=e.ref(!1);function ae(){const a={page_index:y.current,page_size:y.pageSize},t=[],o=U.value.trim();return o&&t.push([K.value,"like",`%${o}%`]),Ee.appendCommonDesignerWhereAnd(s.conf.common,t),t.length&&(a.where_and=JSON.stringify(t)),a}function x(){return S(this,null,function*(){var a,t;H.value=!0;try{const o=yield E.api.post("mapping_list",ae(),!0),n=(a=o==null?void 0:o.result)!=null?a:o;let d=Array.isArray(n==null?void 0:n.data)?[...n.data]:[];if((t=s.mappingUidList)!=null&&t.length){const r=new Set(s.mappingUidList.map(String));d=d.filter(b=>r.has(String(b.uid)))}W.value=d;const g=n==null?void 0:n.total_records;y.total=typeof g=="number"?g:d.length,o&&o.code!==void 0&&o.code!==200&&console.warn("[mappingList] 列表接口非成功",o.msg||o.info,o)}catch(o){console.error(o),W.value=[],y.total=0}finally{H.value=!1}})}const oe=e.computed(()=>W.value);function ne(a,t){const o=a[t];return o==null?"":String(o)}function G(){y.current=1,x()}function re(){U.value="",y.current=1,x()}function se(){y.current=1,x()}function de(){x()}e.watch(()=>{var a;return(a=s.mappingUidList)==null?void 0:a.join(",")},()=>{y.current=1,x()});const z=e.ref(!1),A=e.ref(!1),k=e.ref(!1),i=e.reactive({id:0,uid:"",name:"",alias:"",description:"",script:"[]",addition:"[]"});function L(){i.id=0,i.uid="",i.name="",i.alias="",i.description="",i.script="[]",i.addition="[]"}function F(a,t){const o=(a==null?void 0:a.trim())||"";if(!o)return t;try{return JSON.stringify(JSON.parse(o))}catch(n){return null}}function ue(){L(),z.value=!0}function ce(a){return S(this,null,function*(){var t,o,n,d,g,r,b,_,J,I,V,q;L(),A.value=!0,k.value=!0;try{const N=yield E.api.post("mapping_item",{uid:a.uid},!0),p=(t=N==null?void 0:N.result)!=null?t:N;if(p&&typeof p=="object"){i.id=Number(p.id)||0,i.uid=String((n=(o=p.uid)!=null?o:a.uid)!=null?n:""),i.name=String((d=p.name)!=null?d:""),i.alias=String((g=p.alias)!=null?g:""),i.description=String((r=p.description)!=null?r:"");const T=p.script;i.script=typeof T=="string"?T:T!=null?JSON.stringify(T):"[]";const B=p.addition;i.addition=typeof B=="string"?B:B!=null?JSON.stringify(B):"[]"}else i.uid=String(a.uid),i.name=String((b=a.name)!=null?b:""),i.alias=String((_=a.alias)!=null?_:""),i.description=String((J=a.description)!=null?J:"")}catch(N){i.uid=String(a.uid),i.name=String((I=a.name)!=null?I:""),i.alias=String((V=a.alias)!=null?V:""),i.description=String((q=a.description)!=null?q:""),m.ElMessage.warning("拉取映射表详情失败,已使用列表行数据编辑")}finally{k.value=!1}})}function pe(){return S(this,null,function*(){var o;if(!((o=i.name)!=null&&o.trim())){m.ElMessage.warning("请填写映射表名称");return}const a=F(i.script,"[]"),t=F(i.addition,"[]");if(a===null||t===null){m.ElMessage.error("脚本或扩展信息不是合法 JSON");return}k.value=!0;try{const n={name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:a,addition:t};yield E.api.post("mapping_create",n,!0),m.ElMessage.success("添加成功"),z.value=!1,yield x()}catch(n){m.ElMessage.error("添加失败")}finally{k.value=!1}})}function me(){return S(this,null,function*(){var o;if(!((o=i.name)!=null&&o.trim())){m.ElMessage.warning("请填写映射表名称");return}const a=F(i.script,"[]"),t=F(i.addition,"[]");if(a===null||t===null){m.ElMessage.error("脚本或扩展信息不是合法 JSON");return}k.value=!0;try{const n={id:i.id,uid:i.uid,name:i.name.trim(),alias:i.alias.trim(),description:i.description,script:a,addition:t};yield E.api.post("mapping_update",n,!0),m.ElMessage.success("保存成功"),A.value=!1,yield x()}catch(n){m.ElMessage.error("保存失败")}finally{k.value=!1}})}const P=e.ref(!1),Q=e.ref(!1),u=e.ref(null);function X(a){if(a==null)return"";if(typeof a=="string")try{return JSON.stringify(JSON.parse(a),null,2)}catch(t){return a}try{return JSON.stringify(a,null,2)}catch(t){return String(a)}}const fe=e.computed(()=>u.value?X(u.value.script):""),ge=e.computed(()=>u.value?X(u.value.addition):"");function ve(a){return S(this,null,function*(){u.value=null,P.value=!0,Q.value=!0;try{const t=yield E.api.post("mapping_item",{uid:a.uid},!0),o=t==null?void 0:t.result;o&&typeof o=="object"?u.value=o:(u.value=R({},a),m.ElMessage.warning("未返回详情,已显示列表行数据"))}catch(t){u.value=R({},a),m.ElMessage.warning("加载详情失败,已显示列表行数据")}finally{Q.value=!1}})}function Ve(a){m.ElMessageBox.confirm(`确认对映射表「${a.name||a.uid}」进行资料备档吗?`,"提示",{type:"info"}).then(()=>{m.ElMessage.success("已提交备档(完整流程请在 mixui 映射表管理中操作)")}).catch(()=>{})}function ye(a){m.ElMessageBox.confirm(`确认删除映射表「${a.name||a.uid}」吗?`,"警告",{type:"warning"}).then(()=>S(null,null,function*(){try{yield E.api.post("mapping_delete",{uid:a.uid,id:a.id},!0),m.ElMessage.success("删除成功"),yield x()}catch(t){m.ElMessage.error("删除失败")}})).catch(()=>{})}return e.onMounted(()=>{x()}),(a,t)=>{const o=v.ElIcon,n=v.ElInput,d=v.ElOption,g=v.ElSelect,r=v.ElButton,b=v.ElTag,_=v.ElTableColumn,J=v.ElTable,I=v.ElPagination,V=v.ElFormItem,q=v.ElForm,N=v.ElDialog,p=v.ElDescriptionsItem,T=v.ElDescriptions,B=v.ElLoadingDirective;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["mapping-list mix-component",e.unref($)]),style:e.normalizeStyle(e.unref(j))},[e.unref(h).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(D.value)},e.toDisplayString(f.conf.caption||f.conf.name),5)),e.createElementVNode("div",Te,[e.createElementVNode("div",Oe,[e.createVNode(n,{modelValue:U.value,"onUpdate:modelValue":t[0]||(t[0]=l=>U.value=l),placeholder:"搜索映射表",size:"small",class:"toolbar-search",onKeyup:e.withKeys(G,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(o,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Se.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(g,{modelValue:K.value,"onUpdate:modelValue":t[1]||(t[1]=l=>K.value=l),size:"small",class:"toolbar-field-select"},{default:e.withCtx(()=>[e.createVNode(d,{label:"映射表名称",value:"name"}),e.createVNode(d,{label:"映射表编号",value:"uid"}),e.createVNode(d,{label:"映射表别名",value:"alias"}),e.createVNode(d,{label:"描述",value:"description"})]),_:1},8,["modelValue"]),e.createVNode(r,{type:"primary",onClick:G},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(r,{onClick:re},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(h).showAddBtn?(e.openBlock(),e.createBlock(r,{key:0,type:"success",onClick:ue},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("添加映射表",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:O,class:"table-wrapper"},[e.createVNode(J,{data:oe.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},height:e.unref(w)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ie.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.prop},[l.visible?(e.openBlock(),e.createBlock(_,{key:0,prop:l.prop,label:l.label,width:l.width,"min-width":l.minWidth},{default:e.withCtx(C=>[l.prop==="is_active"?(e.openBlock(),e.createBlock(b,{key:0,type:C.row.is_active===1||C.row.is_active===!0?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.row.is_active===1||C.row.is_active===!0?"开启":"停用"),1)]),_:2},1032,["type"])):(e.openBlock(),e.createElementBlock("span",De,e.toDisplayString(ne(C.row,l.prop)),1))]),_:2},1032,["prop","label","width","min-width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(_,{label:"操作","min-width":"220",fixed:"right"},{default:e.withCtx(l=>[e.unref(h).showViewBtn?(e.openBlock(),e.createBlock(r,{key:0,size:"small",onClick:C=>ve(l.row)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showEditBtn?(e.openBlock(),e.createBlock(r,{key:1,size:"small",type:"primary",onClick:C=>ce(l.row)},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showArchiveBtn?(e.openBlock(),e.createBlock(r,{key:2,size:"small",type:"info",onClick:C=>Ve(l.row)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(h).showDeleteBtn?(e.openBlock(),e.createBlock(r,{key:3,size:"small",type:"danger",onClick:C=>ye(l.row)},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data","height"])],512),e.createElementVNode("div",ze,[e.createVNode(I,{"current-page":y.current,"onUpdate:currentPage":t[2]||(t[2]=l=>y.current=l),"page-size":y.pageSize,"onUpdate:pageSize":t[3]||(t[3]=l=>y.pageSize=l),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper",total:y.total,onSizeChange:se,onCurrentChange:de},null,8,["current-page","page-size","total"])])]),e.renderSlot(a.$slots,"default",{},void 0,!0)],6)),[[B,H.value]]),e.createVNode(N,{modelValue:z.value,"onUpdate:modelValue":t[10]||(t[10]=l=>z.value=l),title:"添加映射表",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[9]||(t[9]=l=>z.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:k.value,onClick:pe},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"映射表名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[4]||(t[4]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[5]||(t[5]=l=>i.alias=l),placeholder:"可选"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[6]||(t[6]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[7]||(t[7]=l=>i.script=l),type:"textarea",rows:6,placeholder:"JSON 数组,默认 []"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.addition,"onUpdate:modelValue":t[8]||(t[8]=l=>i.addition=l),type:"textarea",rows:4,placeholder:"JSON,默认 []"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:A.value,"onUpdate:modelValue":t[18]||(t[18]=l=>A.value=l),title:"编辑映射表",width:"640px","destroy-on-close":"",onClosed:L},{footer:e.withCtx(()=>[e.createVNode(r,{onClick:t[17]||(t[17]=l=>A.value=!1)},{default:e.withCtx(()=>[...t[30]||(t[30]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(r,{type:"primary",loading:k.value,onClick:me},{default:e.withCtx(()=>[...t[31]||(t[31]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(q,{model:i,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(V,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.uid,"onUpdate:modelValue":t[11]||(t[11]=l=>i.uid=l),disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表名称",required:""},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.name,"onUpdate:modelValue":t[12]||(t[12]=l=>i.name=l),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.alias,"onUpdate:modelValue":t[13]||(t[13]=l=>i.alias=l)},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.description,"onUpdate:modelValue":t[14]||(t[14]=l=>i.description=l),type:"textarea",rows:3},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"映射表脚本"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.script,"onUpdate:modelValue":t[15]||(t[15]=l=>i.script=l),type:"textarea",rows:6},null,8,["modelValue"])]),_:1}),e.createVNode(V,{label:"扩展信息"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:i.addition,"onUpdate:modelValue":t[16]||(t[16]=l=>i.addition=l),type:"textarea",rows:4},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(N,{modelValue:P.value,"onUpdate:modelValue":t[20]||(t[20]=l=>P.value=l),title:"映射表详情",width:"720px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createVNode(r,{type:"primary",onClick:t[19]||(t[19]=l=>P.value=!1)},{default:e.withCtx(()=>[...t[34]||(t[34]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",Ae,[u.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{column:2,border:""},{default:e.withCtx(()=>[e.createVNode(p,{label:"映射表编号"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.uid)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"映射表名称"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.name)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"映射表别名"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.alias)!=null?l:""),1)]}),_:1}),u.value.is_active!==void 0&&u.value.is_active!==null?(e.openBlock(),e.createBlock(p,{key:0,label:"是否开启"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.value.is_active===1||u.value.is_active===!0?"开启":"停用"),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(p,{label:"创建时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.created)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"更新时间"},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.last_modified)!=null?l:""),1)]}),_:1}),e.createVNode(p,{label:"描述",span:2},{default:e.withCtx(()=>{var l;return[e.createTextVNode(e.toDisplayString((l=u.value.description)!=null?l:""),1)]}),_:1})]),_:1}),t[32]||(t[32]=e.createElementVNode("div",{class:"view-block-title"},"映射表脚本",-1)),e.createVNode(n,{"model-value":fe.value,type:"textarea",rows:8,readonly:""},null,8,["model-value"]),t[33]||(t[33]=e.createElementVNode("div",{class:"view-block-title"},"扩展信息",-1)),e.createVNode(n,{"model-value":ge.value,type:"textarea",rows:6,readonly:""},null,8,["model-value"])],64)):e.createCommentVNode("",!0)])),[[B,Q.value]])]),_:1},8,["modelValue"])],64)}}})),Ie=E._export_sfc(Je,[["__scopeId","data-v-f233080b"]]);exports.default=Ie;
@@ -27,8 +27,8 @@ var w = (r, s, o) => new Promise((M, k) => {
27
27
  d((o = o.apply(r, s)).next());
28
28
  });
29
29
  import { defineComponent as ee, ref as b, computed as te, watch as oe, onMounted as ne, onBeforeUnmount as ae, openBlock as f, createElementBlock as v, normalizeStyle as le, unref as re, createElementVNode as l, normalizeClass as se, toDisplayString as R, createCommentVNode as h, renderSlot as ie } from "vue";
30
- import { B as ce } from "./BaseComponent-D5tlYehc.js";
31
- import { u as de, h as ue, i as pe, a as me, F as fe, _ as ve } from "./index-Bdq33405.js";
30
+ import { B as ce } from "./BaseComponent-CBagahPU.js";
31
+ import { u as de, h as ue, i as pe, a as me, F as fe, _ as ve } from "./index-DwPJu6XM.js";
32
32
  import { ElMessage as S } from "element-plus";
33
33
  import { A as we, D as he } from "./ele-vdo-icon-DcWebTR5.js";
34
34
  const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class: "upload-title" }, Ce = {
@@ -43,17 +43,18 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
43
43
  }, $e = {
44
44
  key: 0,
45
45
  class: "file-controls"
46
- }, Me = { class: "file-info" }, Ue = { class: "file-details" }, _e = { class: "file-name" }, Re = { class: "control-buttons" }, Se = { class: "viewer-content" }, Ve = ["innerHTML"], Ee = {
46
+ }, Me = { class: "file-info" }, Ue = { class: "file-details" }, _e = { class: "file-name" }, Re = { class: "control-buttons" }, Se = { class: "viewer-content" }, Ve = ["innerHTML"], Oe = {
47
47
  DEFAULT_ICON: he,
48
48
  ACTIVE_ICON: we,
49
49
  NAME_CN: "Markdown查看器",
50
50
  NAME_EN: "Markdown Viewer",
51
- ORDER: 4
52
- }, He = {
51
+ ORDER: 4,
52
+ PLATFORM: ["pc", "screen", "mobile"]
53
+ }, Ae = {
53
54
  fileUrl: { value: "", type: "string", label: "component.markdown.fileUrl", placeholder: "component.markdown.uploadPlaceholder" },
54
55
  fileName: { value: "", type: "string", label: "component.markdown.fileName", placeholder: "component.markdown.uploadPlaceholder" },
55
56
  mdContent: { value: "", type: "textarea", label: "component.markdown.mdContent", placeholder: "component.markdown.contentPlaceholder" }
56
- }, Oe = [], Ae = [], Ne = [], xe = null, Te = { DEFAULT: Ee, OPTIONS: He, DATA: Oe, PARAMS: Ae, SOURCE: Ne, COMMON: xe }, Fe = /* @__PURE__ */ ee(F(T({}, Te), {
57
+ }, Ee = [], He = [], Ne = [], xe = null, Te = { DEFAULT: Oe, OPTIONS: Ae, DATA: Ee, PARAMS: He, SOURCE: Ne, COMMON: xe }, Fe = /* @__PURE__ */ ee(F(T({}, Te), {
57
58
  __name: "markdownViewer",
58
59
  props: {
59
60
  conf: { type: Object, required: !0 },
@@ -77,7 +78,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
77
78
  k.setupLifecycle();
78
79
  const U = k.getStyle(), i = b(""), d = b(""), a = b(""), p = b(null), V = b(!1);
79
80
  let u = "", _ = null;
80
- const D = te(() => a.value ? _ ? _.render(a.value) : I(a.value) : ""), I = (e) => `<p>${e.replace(/```(\w*)\n([\s\S]*?)```/g, '<pre><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g, "<code>$1</code>").replace(/^### (.*$)/gm, "<h3>$1</h3>").replace(/^## (.*$)/gm, "<h2>$1</h2>").replace(/^# (.*$)/gm, "<h1>$1</h1>").replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/\*([^*]+)\*/g, "<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(/!\[([^\]]*)\]\(([^)]+)\)/g, '<img src="$2" alt="$1" />').replace(/^\s*[-*+]\s+(.*)$/gm, "<li>$1</li>").replace(/^\s*\d+\.\s+(.*)$/gm, "<li>$1</li>").replace(/^>\s+(.*)$/gm, "<blockquote>$1</blockquote>").replace(/^---$/gm, "<hr />").replace(/\n\n/g, "</p><p>").replace(/\n/g, "<br />")}</p>`, E = () => w(null, null, function* () {
81
+ const D = te(() => a.value ? _ ? _.render(a.value) : I(a.value) : ""), I = (e) => `<p>${e.replace(/```(\w*)\n([\s\S]*?)```/g, '<pre><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g, "<code>$1</code>").replace(/^### (.*$)/gm, "<h3>$1</h3>").replace(/^## (.*$)/gm, "<h2>$1</h2>").replace(/^# (.*$)/gm, "<h1>$1</h1>").replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>").replace(/\*([^*]+)\*/g, "<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" target="_blank">$1</a>').replace(/!\[([^\]]*)\]\(([^)]+)\)/g, '<img src="$2" alt="$1" />').replace(/^\s*[-*+]\s+(.*)$/gm, "<li>$1</li>").replace(/^\s*\d+\.\s+(.*)$/gm, "<li>$1</li>").replace(/^>\s+(.*)$/gm, "<blockquote>$1</blockquote>").replace(/^---$/gm, "<hr />").replace(/\n\n/g, "</p><p>").replace(/\n/g, "<br />")}</p>`, O = () => w(null, null, function* () {
81
82
  try {
82
83
  yield B("https://cdn.jsdelivr.net/npm/markdown-it@14.0.0/dist/markdown-it.min.js"), window.markdownit && (_ = window.markdownit({
83
84
  html: !0,
@@ -97,7 +98,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
97
98
  c.src = e, c.onload = () => t(), c.onerror = () => n(new Error(`Failed to load script: ${e}`)), document.head.appendChild(c);
98
99
  }), j = () => w(null, null, function* () {
99
100
  var e, t, n, c, g, y, C;
100
- yield E(), (n = (t = (e = o.conf) == null ? void 0 : e.options) == null ? void 0 : t.mdContent) != null && n.value && (a.value = o.conf.options.mdContent.value), (y = (g = (c = o.conf) == null ? void 0 : c.options) == null ? void 0 : g.fileUrl) != null && y.value && (i.value = o.conf.options.fileUrl.value, d.value = ((C = o.conf.options.fileName) == null ? void 0 : C.value) || "", yield P());
101
+ yield O(), (n = (t = (e = o.conf) == null ? void 0 : e.options) == null ? void 0 : t.mdContent) != null && n.value && (a.value = o.conf.options.mdContent.value), (y = (g = (c = o.conf) == null ? void 0 : c.options) == null ? void 0 : g.fileUrl) != null && y.value && (i.value = o.conf.options.fileUrl.value, d.value = ((C = o.conf.options.fileName) == null ? void 0 : C.value) || "", yield P());
101
102
  }), P = () => w(null, null, function* () {
102
103
  if (i.value)
103
104
  try {
@@ -112,7 +113,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
112
113
  var e;
113
114
  (e = p.value) == null || e.click();
114
115
  }, q = (e) => w(null, null, function* () {
115
- var y, C, O, A;
116
+ var y, C, E, H;
116
117
  const t = e.target, n = (y = t == null ? void 0 : t.files) == null ? void 0 : y[0];
117
118
  if (!n) return;
118
119
  const c = (C = n.name.split(".").pop()) == null ? void 0 : C.toLowerCase();
@@ -132,11 +133,11 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
132
133
  dashboard_uid: s.pageData.id,
133
134
  file_data: m,
134
135
  file_type: $,
135
- user_id: ((O = s.session.userInfo) == null ? void 0 : O.id) || ""
136
+ user_id: ((E = s.session.userInfo) == null ? void 0 : E.id) || ""
136
137
  }, !0);
137
- if (L.code === 200 && ((A = L.result) != null && A.relative_path)) {
138
+ if (L.code === 200 && ((H = L.result) != null && H.relative_path)) {
138
139
  const W = fe + L.result.relative_path;
139
- H("fileUrl", W), H("fileName", L.result.file_name || n.name), S.success("文件上传成功");
140
+ A("fileUrl", W), A("fileName", L.result.file_name || n.name), S.success("文件上传成功");
140
141
  } else
141
142
  throw new Error(L.msg || "上传失败");
142
143
  } catch (m) {
@@ -144,7 +145,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
144
145
  } finally {
145
146
  V.value = !1, p.value && (p.value.value = "");
146
147
  }
147
- }), H = (e, t) => {
148
+ }), A = (e, t) => {
148
149
  var n;
149
150
  (n = o.conf) != null && n.options && (o.conf.options[e] || (o.conf.options[e] = { value: "", type: "string", label: "" }), o.conf.options[e].value = t);
150
151
  }, Z = () => {
@@ -161,7 +162,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
161
162
  }, (e) => {
162
163
  e && e !== a.value && (a.value = e);
163
164
  }), ne(() => w(null, null, function* () {
164
- yield E();
165
+ yield O();
165
166
  })), ae(() => {
166
167
  u && URL.revokeObjectURL(u);
167
168
  }), (e, t) => (f(), v("div", {
@@ -252,7 +253,7 @@ const ke = { class: "mix-body" }, ge = { class: "upload-content" }, ye = { class
252
253
  ie(e.$slots, "default", {}, void 0, !0)
253
254
  ], 4));
254
255
  }
255
- })), qe = /* @__PURE__ */ ve(Fe, [["__scopeId", "data-v-f452117a"]]);
256
+ })), qe = /* @__PURE__ */ ve(Fe, [["__scopeId", "data-v-4984acea"]]);
256
257
  export {
257
258
  qe as default
258
259
  };
@@ -1,3 +1,3 @@
1
- "use strict";var Z=Object.defineProperty,K=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var R=(r,c,n)=>c in r?Z(r,c,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[c]=n,B=(r,c)=>{for(var n in c||(c={}))G.call(c,n)&&R(r,n,c[n]);if(_)for(var n of _(c))J.call(c,n)&&R(r,n,c[n]);return r},O=(r,c)=>K(r,W(c));var f=(r,c,n)=>new Promise((C,w)=>{var E=a=>{try{d(n.next(a))}catch(u){w(u)}},s=a=>{try{d(n.throw(a))}catch(u){w(u)}},d=a=>a.done?C(a.value):Promise.resolve(a.value).then(E,s);d((n=n.apply(r,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Q=require("./BaseComponent-CNXUpPY1.cjs"),v=require("./index-D8dh_6Qd.cjs"),L=require("element-plus"),A=require("./ele-vdo-icon-Bgp9gaT6.cjs"),X={class:"mix-body"},Y={class:"upload-content"},ee={class:"upload-title"},te={key:0,class:"upload-hint"},oe={key:1,class:"upload-formats"},ne={key:1,class:"viewer-container"},le={key:0,class:"file-controls"},ae={class:"file-info"},re={class:"file-details"},ce={class:"file-name"},se={class:"control-buttons"},ie={class:"viewer-content"},de=["innerHTML"],me={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"Markdown查看器",NAME_EN:"Markdown Viewer",ORDER:4},ue={fileUrl:{value:"",type:"string",label:"component.markdown.fileUrl",placeholder:"component.markdown.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.markdown.fileName",placeholder:"component.markdown.uploadPlaceholder"},mdContent:{value:"",type:"textarea",label:"component.markdown.mdContent",placeholder:"component.markdown.contentPlaceholder"}},pe=[],fe=[],ve=[],we=null,ke={DEFAULT:me,OPTIONS:ue,DATA:pe,PARAMS:fe,SOURCE:ve,COMMON:we},ge=e.defineComponent(O(B({},ke),{__name:"markdownViewer",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const c=v.useCounterStore(),n=r;class C extends Q.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),x()}}const w=new C(n,"markdownViewer");w.setupLifecycle();const E=w.getStyle(),s=e.ref(""),d=e.ref(""),a=e.ref(""),u=e.ref(null),b=e.ref(!1);let m="",N=null;const H=e.computed(()=>a.value?N?N.render(a.value):T(a.value):""),T=t=>`<p>${t.replace(/```(\w*)\n([\s\S]*?)```/g,'<pre><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g,"<code>$1</code>").replace(/^### (.*$)/gm,"<h3>$1</h3>").replace(/^## (.*$)/gm,"<h2>$1</h2>").replace(/^# (.*$)/gm,"<h1>$1</h1>").replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/\*([^*]+)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank">$1</a>').replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<img src="$2" alt="$1" />').replace(/^\s*[-*+]\s+(.*)$/gm,"<li>$1</li>").replace(/^\s*\d+\.\s+(.*)$/gm,"<li>$1</li>").replace(/^>\s+(.*)$/gm,"<blockquote>$1</blockquote>").replace(/^---$/gm,"<hr />").replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br />")}</p>`,M=()=>f(null,null,function*(){try{yield I("https://cdn.jsdelivr.net/npm/markdown-it@14.0.0/dist/markdown-it.min.js"),window.markdownit&&(N=window.markdownit({html:!0,linkify:!0,typographer:!0,breaks:!0}))}catch(t){console.warn("加载 markdown-it 失败,使用简单渲染:",t)}}),I=t=>new Promise((o,l)=>{if(document.querySelector(`script[src="${t}"]`)){o();return}const i=document.createElement("script");i.src=t,i.onload=()=>o(),i.onerror=()=>l(new Error(`Failed to load script: ${t}`)),document.head.appendChild(i)}),x=()=>f(null,null,function*(){var t,o,l,i,k,g,h;yield M(),(l=(o=(t=n.conf)==null?void 0:t.options)==null?void 0:o.mdContent)!=null&&l.value&&(a.value=n.conf.options.mdContent.value),(g=(k=(i=n.conf)==null?void 0:i.options)==null?void 0:k.fileUrl)!=null&&g.value&&(s.value=n.conf.options.fileUrl.value,d.value=((h=n.conf.options.fileName)==null?void 0:h.value)||"",yield D())}),D=()=>f(null,null,function*(){if(s.value)try{const t=yield fetch(s.value);a.value=yield t.text()}catch(t){console.error("加载 Markdown 内容失败:",t),a.value=`# 加载失败
1
+ "use strict";var Z=Object.defineProperty,K=Object.defineProperties;var W=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var R=(r,c,n)=>c in r?Z(r,c,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[c]=n,B=(r,c)=>{for(var n in c||(c={}))G.call(c,n)&&R(r,n,c[n]);if(_)for(var n of _(c))J.call(c,n)&&R(r,n,c[n]);return r},O=(r,c)=>K(r,W(c));var f=(r,c,n)=>new Promise((C,w)=>{var E=a=>{try{d(n.next(a))}catch(u){w(u)}},s=a=>{try{d(n.throw(a))}catch(u){w(u)}},d=a=>a.done?C(a.value):Promise.resolve(a.value).then(E,s);d((n=n.apply(r,c)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Q=require("./BaseComponent-Chnv4fBT.cjs"),v=require("./index-DVqMfQVc.cjs"),L=require("element-plus"),A=require("./ele-vdo-icon-Bgp9gaT6.cjs"),X={class:"mix-body"},Y={class:"upload-content"},ee={class:"upload-title"},te={key:0,class:"upload-hint"},oe={key:1,class:"upload-formats"},ne={key:1,class:"viewer-container"},le={key:0,class:"file-controls"},ae={class:"file-info"},re={class:"file-details"},ce={class:"file-name"},se={class:"control-buttons"},ie={class:"viewer-content"},de=["innerHTML"],me={DEFAULT_ICON:A.DEFAULT_ICON,ACTIVE_ICON:A.ACTIVE_ICON,NAME_CN:"Markdown查看器",NAME_EN:"Markdown Viewer",ORDER:4,PLATFORM:["pc","screen","mobile"]},ue={fileUrl:{value:"",type:"string",label:"component.markdown.fileUrl",placeholder:"component.markdown.uploadPlaceholder"},fileName:{value:"",type:"string",label:"component.markdown.fileName",placeholder:"component.markdown.uploadPlaceholder"},mdContent:{value:"",type:"textarea",label:"component.markdown.mdContent",placeholder:"component.markdown.contentPlaceholder"}},pe=[],fe=[],ve=[],we=null,ke={DEFAULT:me,OPTIONS:ue,DATA:pe,PARAMS:fe,SOURCE:ve,COMMON:we},ge=e.defineComponent(O(B({},ke),{__name:"markdownViewer",props:{conf:{type:Object,required:!0},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(r){const c=v.useCounterStore(),n=r;class C extends Q.BaseComponent{extractStyles(){return{radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),x()}}const w=new C(n,"markdownViewer");w.setupLifecycle();const E=w.getStyle(),s=e.ref(""),d=e.ref(""),a=e.ref(""),u=e.ref(null),b=e.ref(!1);let m="",N=null;const T=e.computed(()=>a.value?N?N.render(a.value):H(a.value):""),H=t=>`<p>${t.replace(/```(\w*)\n([\s\S]*?)```/g,'<pre><code class="language-$1">$2</code></pre>').replace(/`([^`]+)`/g,"<code>$1</code>").replace(/^### (.*$)/gm,"<h3>$1</h3>").replace(/^## (.*$)/gm,"<h2>$1</h2>").replace(/^# (.*$)/gm,"<h1>$1</h1>").replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/\*([^*]+)\*/g,"<em>$1</em>").replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank">$1</a>').replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<img src="$2" alt="$1" />').replace(/^\s*[-*+]\s+(.*)$/gm,"<li>$1</li>").replace(/^\s*\d+\.\s+(.*)$/gm,"<li>$1</li>").replace(/^>\s+(.*)$/gm,"<blockquote>$1</blockquote>").replace(/^---$/gm,"<hr />").replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br />")}</p>`,M=()=>f(null,null,function*(){try{yield I("https://cdn.jsdelivr.net/npm/markdown-it@14.0.0/dist/markdown-it.min.js"),window.markdownit&&(N=window.markdownit({html:!0,linkify:!0,typographer:!0,breaks:!0}))}catch(t){console.warn("加载 markdown-it 失败,使用简单渲染:",t)}}),I=t=>new Promise((o,l)=>{if(document.querySelector(`script[src="${t}"]`)){o();return}const i=document.createElement("script");i.src=t,i.onload=()=>o(),i.onerror=()=>l(new Error(`Failed to load script: ${t}`)),document.head.appendChild(i)}),x=()=>f(null,null,function*(){var t,o,l,i,k,g,h;yield M(),(l=(o=(t=n.conf)==null?void 0:t.options)==null?void 0:o.mdContent)!=null&&l.value&&(a.value=n.conf.options.mdContent.value),(g=(k=(i=n.conf)==null?void 0:i.options)==null?void 0:k.fileUrl)!=null&&g.value&&(s.value=n.conf.options.fileUrl.value,d.value=((h=n.conf.options.fileName)==null?void 0:h.value)||"",yield D())}),D=()=>f(null,null,function*(){if(s.value)try{const t=yield fetch(s.value);a.value=yield t.text()}catch(t){console.error("加载 Markdown 内容失败:",t),a.value=`# 加载失败
2
2
 
3
- 无法加载 Markdown 内容`}}),F=()=>{var t;(t=u.value)==null||t.click()},j=t=>f(null,null,function*(){var g,h,U,S;const o=t.target,l=(g=o==null?void 0:o.files)==null?void 0:g[0];if(!l)return;const i=(h=l.name.split(".").pop())==null?void 0:h.toLowerCase();if(i!=="md"&&i!=="markdown"){L.ElMessage.warning("请选择 Markdown 文件 (.md 或 .markdown)");return}d.value=l.name;const k=new FileReader;k.onload=p=>{var y;a.value=((y=p.target)==null?void 0:y.result)||""},k.readAsText(l,"UTF-8"),m&&URL.revokeObjectURL(m),m=URL.createObjectURL(l),s.value=m;try{b.value=!0;const p=yield v.fileToDataUrl(l),y=v.getFileExtension(l.name),V=yield v.api.post("upload",{dashboard_uid:c.pageData.id,file_data:p,file_type:y,user_id:((U=c.session.userInfo)==null?void 0:U.id)||""},!0);if(V.code===200&&((S=V.result)!=null&&S.relative_path)){const z=v.FILE_URL+V.result.relative_path;$("fileUrl",z),$("fileName",V.result.file_name||l.name),L.ElMessage.success("文件上传成功")}else throw new Error(V.msg||"上传失败")}catch(p){console.error("文件上传失败:",p),L.ElMessage.error("文件上传失败: "+((p==null?void 0:p.message)||"未知错误"))}finally{b.value=!1,u.value&&(u.value.value="")}}),$=(t,o)=>{var l;(l=n.conf)!=null&&l.options&&(n.conf.options[t]||(n.conf.options[t]={value:"",type:"string",label:""}),n.conf.options[t].value=o)},q=()=>{m&&URL.revokeObjectURL(m),s.value="",d.value="",a.value="",m=""},P=()=>{if(a.value){const t=new Blob([a.value],{type:"text/markdown"}),o=URL.createObjectURL(t),l=document.createElement("a");l.href=o,l.download=d.value||"document.md",document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)}};return e.watch(()=>{var t,o,l;return(l=(o=(t=n.conf)==null?void 0:t.options)==null?void 0:o.mdContent)==null?void 0:l.value},t=>{t&&t!==a.value&&(a.value=t)}),e.onMounted(()=>f(null,null,function*(){yield M()})),e.onBeforeUnmount(()=>{m&&URL.revokeObjectURL(m)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(E).radiusSize}px`})},[e.createElementVNode("div",X,[!a.value&&!s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":r.mode==="preview"}]),onClick:o[0]||(o[0]=l=>r.mode!=="preview"&&F())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:u,type:"file",accept:".md,.markdown",onChange:j,style:{display:"none"}},null,544),e.createElementVNode("div",Y,[o[2]||(o[2]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6H20.56C21.35 6 22 6.63 22 7.41V16.59C22 17.37 21.35 18 20.56 18M6.81 15.19V11.53L8.73 13.88L10.65 11.53V15.19H12.58V8.81H10.65L8.73 11.16L6.81 8.81H4.89V15.19H6.81M19.69 12H17.77V8.81H15.85V12H13.92L16.81 15.28L19.69 12Z"})])],-1)),e.createElementVNode("h3",ee,e.toDisplayString(r.mode==="preview"?t.$t("component.markdown.noFile"):t.$t("component.markdown.uploadText")),1),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",te,e.toDisplayString(t.$t("component.markdown.uploadHint")),1)):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",oe,[...o[1]||(o[1]=[e.createElementVNode("span",{class:"format-tag"},"MD",-1),e.createElementVNode("span",{class:"format-tag"},"MARKDOWN",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),a.value||s.value?(e.openBlock(),e.createElementBlock("div",ne,[r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("span",ce,e.toDisplayString(d.value||"Markdown 文档"),1),o[3]||(o[3]=e.createElementVNode("span",{class:"file-type"},"MD",-1))]),e.createElementVNode("div",se,[s.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"control-btn",onClick:P,title:"下载文件"},[...o[4]||(o[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"control-btn",onClick:q,title:"更换文件"},[...o[5]||(o[5]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ie,[e.createElementVNode("div",{class:"markdown-content",innerHTML:H.value},null,8,de)])])):e.createCommentVNode("",!0)]),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),he=v._export_sfc(ge,[["__scopeId","data-v-f452117a"]]);exports.default=he;
3
+ 无法加载 Markdown 内容`}}),F=()=>{var t;(t=u.value)==null||t.click()},j=t=>f(null,null,function*(){var g,h,U,S;const o=t.target,l=(g=o==null?void 0:o.files)==null?void 0:g[0];if(!l)return;const i=(h=l.name.split(".").pop())==null?void 0:h.toLowerCase();if(i!=="md"&&i!=="markdown"){L.ElMessage.warning("请选择 Markdown 文件 (.md 或 .markdown)");return}d.value=l.name;const k=new FileReader;k.onload=p=>{var y;a.value=((y=p.target)==null?void 0:y.result)||""},k.readAsText(l,"UTF-8"),m&&URL.revokeObjectURL(m),m=URL.createObjectURL(l),s.value=m;try{b.value=!0;const p=yield v.fileToDataUrl(l),y=v.getFileExtension(l.name),V=yield v.api.post("upload",{dashboard_uid:c.pageData.id,file_data:p,file_type:y,user_id:((U=c.session.userInfo)==null?void 0:U.id)||""},!0);if(V.code===200&&((S=V.result)!=null&&S.relative_path)){const z=v.FILE_URL+V.result.relative_path;$("fileUrl",z),$("fileName",V.result.file_name||l.name),L.ElMessage.success("文件上传成功")}else throw new Error(V.msg||"上传失败")}catch(p){console.error("文件上传失败:",p),L.ElMessage.error("文件上传失败: "+((p==null?void 0:p.message)||"未知错误"))}finally{b.value=!1,u.value&&(u.value.value="")}}),$=(t,o)=>{var l;(l=n.conf)!=null&&l.options&&(n.conf.options[t]||(n.conf.options[t]={value:"",type:"string",label:""}),n.conf.options[t].value=o)},q=()=>{m&&URL.revokeObjectURL(m),s.value="",d.value="",a.value="",m=""},P=()=>{if(a.value){const t=new Blob([a.value],{type:"text/markdown"}),o=URL.createObjectURL(t),l=document.createElement("a");l.href=o,l.download=d.value||"document.md",document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(o)}};return e.watch(()=>{var t,o,l;return(l=(o=(t=n.conf)==null?void 0:t.options)==null?void 0:o.mdContent)==null?void 0:l.value},t=>{t&&t!==a.value&&(a.value=t)}),e.onMounted(()=>f(null,null,function*(){yield M()})),e.onBeforeUnmount(()=>{m&&URL.revokeObjectURL(m)}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(E).radiusSize}px`})},[e.createElementVNode("div",X,[!a.value&&!s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":r.mode==="preview"}]),onClick:o[0]||(o[0]=l=>r.mode!=="preview"&&F())},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:u,type:"file",accept:".md,.markdown",onChange:j,style:{display:"none"}},null,544),e.createElementVNode("div",Y,[o[2]||(o[2]=e.createElementVNode("div",{class:"upload-icon"},[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"currentColor"},[e.createElementVNode("path",{d:"M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6H20.56C21.35 6 22 6.63 22 7.41V16.59C22 17.37 21.35 18 20.56 18M6.81 15.19V11.53L8.73 13.88L10.65 11.53V15.19H12.58V8.81H10.65L8.73 11.16L6.81 8.81H4.89V15.19H6.81M19.69 12H17.77V8.81H15.85V12H13.92L16.81 15.28L19.69 12Z"})])],-1)),e.createElementVNode("h3",ee,e.toDisplayString(r.mode==="preview"?t.$t("component.markdown.noFile"):t.$t("component.markdown.uploadText")),1),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",te,e.toDisplayString(t.$t("component.markdown.uploadHint")),1)):e.createCommentVNode("",!0),r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",oe,[...o[1]||(o[1]=[e.createElementVNode("span",{class:"format-tag"},"MD",-1),e.createElementVNode("span",{class:"format-tag"},"MARKDOWN",-1)])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0),a.value||s.value?(e.openBlock(),e.createElementBlock("div",ne,[r.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("span",ce,e.toDisplayString(d.value||"Markdown 文档"),1),o[3]||(o[3]=e.createElementVNode("span",{class:"file-type"},"MD",-1))]),e.createElementVNode("div",se,[s.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"control-btn",onClick:P,title:"下载文件"},[...o[4]||(o[4]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:"control-btn",onClick:q,title:"更换文件"},[...o[5]||(o[5]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])])])])])):e.createCommentVNode("",!0),e.createElementVNode("div",ie,[e.createElementVNode("div",{class:"markdown-content",innerHTML:T.value},null,8,de)])])):e.createCommentVNode("",!0)]),e.renderSlot(t.$slots,"default",{},void 0,!0)],4))}})),he=v._export_sfc(ge,[["__scopeId","data-v-4984acea"]]);exports.default=he;