mixdashboards 1.0.75 → 1.0.76

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 (331) hide show
  1. package/dist/{BaseComponent-BXAJUoaf.cjs → BaseComponent-BmhMoM4H.cjs} +1 -1
  2. package/dist/{BaseComponent-BlCsb-HW.js → BaseComponent-CQaDWNO0.js} +8 -8
  3. package/dist/{EChartComponentBase-BPiPzdtw.cjs → EChartComponentBase-D9EUh4BZ.cjs} +1 -1
  4. package/dist/{EChartComponentBase-DPWPg81w.js → EChartComponentBase-i76OGL3z.js} +2 -2
  5. package/dist/{EmergencyPlanPanel-Cv06qTDX.js → EmergencyPlanPanel-B9S3Ru5-.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-CU0gJiFM.cjs → EmergencyPlanPanel-BiAHvTfh.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-CiRVXFaZ.cjs → HistoryPlanDialog-BU4GayEm.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-BALmXGdQ.js → HistoryPlanDialog-CbbeFm-i.js} +1 -1
  9. package/dist/{MonitoringMap-BuVJ-ir-.js → MonitoringMap-B6tXBdvK.js} +2 -2
  10. package/dist/{MonitoringMap-BXxlfEQV.cjs → MonitoringMap-FGDoA0fw.cjs} +1 -1
  11. package/dist/{UniverSheet-CDug4m6W.cjs → UniverSheet-D7y2pceH.cjs} +1 -1
  12. package/dist/{UniverSheet-GnlJ56Io.js → UniverSheet-D8sflrTb.js} +2 -2
  13. package/dist/{accelerationChart-BQkfynh-.cjs → accelerationChart-DTlwSA0N.cjs} +1 -1
  14. package/dist/{accelerationChart-lWscOOUn.js → accelerationChart-bch4O3t-.js} +14 -14
  15. package/dist/{actionItem-B4nl_rf_.js → actionItem-Cw67YwsR.js} +2 -2
  16. package/dist/{actionItem-6eYNuhg3.cjs → actionItem-cdsgUvaC.cjs} +1 -1
  17. package/dist/{alarmLevelChart-Mq8iVSI0.cjs → alarmLevelChart-BMjTLxB5.cjs} +1 -1
  18. package/dist/{alarmLevelChart-CiobE56j.js → alarmLevelChart-BynSRHG2.js} +2 -2
  19. package/dist/{alertTable-f0pzyZBg.cjs → alertTable-3VhkUZSf.cjs} +1 -1
  20. package/dist/{alertTable-CMlVY_8H.js → alertTable-CiwuaydQ.js} +2 -2
  21. package/dist/{aliasObjectSelectorDemo-C1bpTa2y.cjs → aliasObjectSelectorDemo-BLoecZkV.cjs} +1 -1
  22. package/dist/{aliasObjectSelectorDemo-DqZ0EfVH.js → aliasObjectSelectorDemo-DfdRxb4I.js} +1 -1
  23. package/dist/{annualRainfallChart-_mJM58W4.js → annualRainfallChart-CHcr4-0D.js} +2 -2
  24. package/dist/{annualRainfallChart-BbYOeEs_.cjs → annualRainfallChart-DKR-A_PT.cjs} +1 -1
  25. package/dist/{aqi-yjjoBI4W.cjs → aqi-D7VqP1QE.cjs} +1 -1
  26. package/dist/{aqi-jYtMHp4c.js → aqi-Gu-pAovO.js} +4 -4
  27. package/dist/{aqiIndass-BPnJN1L7.js → aqiIndass-Bjj6n1aj.js} +18 -18
  28. package/dist/{aqiIndass-DuxFgiJF.cjs → aqiIndass-nfYUZ3UM.cjs} +1 -1
  29. package/dist/{areaDeformCurve-BM8ClfUa.cjs → areaDeformCurve-fpGWmq05.cjs} +1 -1
  30. package/dist/{areaDeformCurve-DNleJiVH.js → areaDeformCurve-nwlcUBDv.js} +2 -2
  31. package/dist/{arrayCard-jITzZi-r.js → arrayCard-TfcgLrHv.js} +2 -2
  32. package/dist/{arrayCard-BxpqdLMV.cjs → arrayCard-UoDqAGbN.cjs} +1 -1
  33. package/dist/{audio-CH5r-0gF.js → audio-BYgGYoEr.js} +2 -2
  34. package/dist/{audio-BuyKXQ0N.cjs → audio-DdUv9Ot-.cjs} +1 -1
  35. package/dist/bar-CkBXc7t1.cjs +2 -0
  36. package/dist/{bar-BtlkgC6a.js → bar-SfGiFl1r.js} +75 -67
  37. package/dist/{bmp-C2DUdhaT.js → bmp-BbtdzIrI.js} +2 -2
  38. package/dist/{bmp-DLIPXhyT.cjs → bmp-CY-Hb2x1.cjs} +1 -1
  39. package/dist/{box-CVcPOlKk.cjs → box-B4C_mirv.cjs} +1 -1
  40. package/dist/{box-BgwIB1Bl.js → box-CV41cJuX.js} +2 -2
  41. package/dist/{chartConfigPanel-ByzQkeYT.js → chartConfigPanel-D650rSn7.js} +1 -1
  42. package/dist/{chartConfigPanel-BdVphXRS.cjs → chartConfigPanel-DBlqAbbH.cjs} +1 -1
  43. package/dist/{circleBar-DBCX2g0i.cjs → circleBar-DkV7xPBl.cjs} +1 -1
  44. package/dist/{circleBar-CFV6RoS1.js → circleBar-U3iXMQr5.js} +2 -2
  45. package/dist/{clock--G7VfksN.cjs → clock-CjgMeOhp.cjs} +1 -1
  46. package/dist/{clock-ilY2WqEO.js → clock-zKVUU8pu.js} +2 -2
  47. package/dist/{clt-4fAQmG5V.js → clt-BsIA-YPQ.js} +2 -2
  48. package/dist/{clt-DOAntJi9.cjs → clt-DwI8i7zI.cjs} +1 -1
  49. package/dist/{cmc-CehLriLD.cjs → cmc-BX9ichBB.cjs} +1 -1
  50. package/dist/{cmc-Bhyw5-iw.js → cmc-CgpHejR2.js} +2 -2
  51. package/dist/{cmp-znNaGWlx.js → cmp-CS34lG7V.js} +2 -2
  52. package/dist/{cmp-BL3VD7Pn.cjs → cmp-CTqtxzo4.cjs} +1 -1
  53. package/dist/{conclusionCard-B5DhxboF.js → conclusionCard-N6pA6Q9P.js} +2 -2
  54. package/dist/{conclusionCard-K6CSG9A7.cjs → conclusionCard-wvtJmV_8.cjs} +1 -1
  55. package/dist/{controlList-CyE_bM7S.cjs → controlList-BUAMdHA3.cjs} +1 -1
  56. package/dist/{controlList-DoaSMBIh.js → controlList-Zz5ABe5b.js} +2 -2
  57. package/dist/{controlRecordList-CDKRXU47.cjs → controlRecordList-CMR4y_Ml.cjs} +1 -1
  58. package/dist/{controlRecordList-DwXUWAgm.js → controlRecordList-Dx0zj7js.js} +2 -2
  59. package/dist/{controlRecordListAPP-cODkXLeg.cjs → controlRecordListAPP-ZDCKmz_8.cjs} +1 -1
  60. package/dist/{controlRecordListAPP-CP-tQ4o_.js → controlRecordListAPP-bL9oqWzQ.js} +2 -2
  61. package/dist/{crd-D9Djs_9M.cjs → crd-8tMwNlgx.cjs} +1 -1
  62. package/dist/{crd-BJJ9sEBi.js → crd-DZPpD6XY.js} +2 -2
  63. package/dist/{ctrBtn-zECsVsC6.js → ctrBtn-6Ql9ulTr.js} +10 -10
  64. package/dist/{ctrBtn-Ci7BkiOn.cjs → ctrBtn-eCu0UDtW.cjs} +1 -1
  65. package/dist/{ctrSet-DQTACQn1.js → ctrSet-BwFVH1Mk.js} +3 -3
  66. package/dist/{ctrSet-DZrpF9pM.cjs → ctrSet-pX-zVivo.cjs} +1 -1
  67. package/dist/{ctrSwitch-BDy8B1lF.cjs → ctrSwitch-D95SI-aJ.cjs} +1 -1
  68. package/dist/{ctrSwitch-CrEAuL-v.js → ctrSwitch-b6hHf4QF.js} +11 -11
  69. package/dist/{dataManagement-D6SM8zVY.cjs → dataManagement-DubA1TV1.cjs} +1 -1
  70. package/dist/{dataManagement-ivUDfZ3f.js → dataManagement-VucRLCK4.js} +2 -2
  71. package/dist/{dataReport-CryAeh7C.js → dataReport-CALIw14D.js} +2 -2
  72. package/dist/{dataReport-CFJ5aMrb.cjs → dataReport-CkF5J7X1.cjs} +1 -1
  73. package/dist/{dataTable-BBW0i51h.js → dataTable-C1rBH_p9.js} +1 -1
  74. package/dist/{dataTable-IKk8N9i9.cjs → dataTable-C2q_CX5D.cjs} +1 -1
  75. package/dist/{datetime-BPoSIL-3.js → datetime-Cq8scz5Q.js} +2 -2
  76. package/dist/{datetime-CGUnVeRE.cjs → datetime-TBTeWqlf.cjs} +1 -1
  77. package/dist/{deepClusterSlipSurface-rZIUqLLp.cjs → deepClusterSlipSurface-CFaxRVmM.cjs} +1 -1
  78. package/dist/{deepClusterSlipSurface-jt74ODxX.js → deepClusterSlipSurface-Cm50wbjv.js} +2 -2
  79. package/dist/{deepDataMatrix-DyK--0cJ.cjs → deepDataMatrix-CAYSav3X.cjs} +1 -1
  80. package/dist/{deepDataMatrix-B1rr5lNY.js → deepDataMatrix-DyStA98d.js} +7 -7
  81. package/dist/{deepDisplacement3D-DdSfiM8c.cjs → deepDisplacement3D-B3Iju2KK.cjs} +1 -1
  82. package/dist/{deepDisplacement3D-BnWitDOk.js → deepDisplacement3D-Bat-Wc3i.js} +2 -2
  83. package/dist/{deepDisplacementChart-BxdiiuUe.cjs → deepDisplacementChart-C-Tr4DdI.cjs} +1 -1
  84. package/dist/{deepDisplacementChart-DY3PLNdf.cjs → deepDisplacementChart-CX9ALM89.cjs} +1 -1
  85. package/dist/{deepDisplacementChart-BQ3nFJLH.js → deepDisplacementChart-CYMpNu_W.js} +25 -25
  86. package/dist/{deepDisplacementChart-lIfyzMpq.js → deepDisplacementChart-D5rHoC9r.js} +26 -26
  87. package/dist/{deepDisplacementView-C0r4oIIk.cjs → deepDisplacementView-DTSsODJQ.cjs} +1 -1
  88. package/dist/{deepDisplacementView-BsddlCKN.js → deepDisplacementView-DnjwQmEW.js} +1 -1
  89. package/dist/{deepNodeTemperatureChart-DrqwFmDg.cjs → deepNodeTemperatureChart-C9NRJ49Y.cjs} +1 -1
  90. package/dist/{deepNodeTemperatureChart-C1RVbMT1.js → deepNodeTemperatureChart-CLKg72UA.js} +32 -32
  91. package/dist/{deepTangentAngleChart-Hs9wfNfb.cjs → deepTangentAngleChart-C9aFSFrD.cjs} +1 -1
  92. package/dist/{deepTangentAngleChart-BSifjEIw.js → deepTangentAngleChart-DklHYHhm.js} +13 -13
  93. package/dist/{deepTemperatureField-Bz9X6xx5.cjs → deepTemperatureField-CXBL4_LS.cjs} +1 -1
  94. package/dist/{deepTemperatureField-BSsTui64.js → deepTemperatureField-CcnVGgbf.js} +3 -3
  95. package/dist/{deepTrendChart-apQrMrj6.js → deepTrendChart-De7ebpk4.js} +14 -14
  96. package/dist/{deepTrendChart-B3q-lEJw.cjs → deepTrendChart-OGW08BX-.cjs} +1 -1
  97. package/dist/{deviceOnlineStatus-DABeXKWW.cjs → deviceOnlineStatus-DarcMtY4.cjs} +1 -1
  98. package/dist/{deviceOnlineStatus-kFsHXR6n.js → deviceOnlineStatus-_3Txb8Tg.js} +2 -2
  99. package/dist/{deviceStatus-BE2Pszt3.cjs → deviceStatus-BiJw8rnz.cjs} +1 -1
  100. package/dist/{deviceStatus-TNP-PLi-.js → deviceStatus-CL6E-pQ0.js} +10 -10
  101. package/dist/{displacementDataTable-BD45feZR.cjs → displacementDataTable-DmAqr-JK.cjs} +1 -1
  102. package/dist/{displacementDataTable-kZBxmOLa.js → displacementDataTable-tKtGe2xd.js} +11 -11
  103. package/dist/{displacementTrajectoryChart-DmuezhG8.cjs → displacementTrajectoryChart-DG2YdSqq.cjs} +1 -1
  104. package/dist/{displacementTrajectoryChart-BjbgbY-z.js → displacementTrajectoryChart-Dh6oPB0p.js} +22 -22
  105. package/dist/{displacementTrendChart-BjIXnttw.js → displacementTrendChart-BHORe0qO.js} +36 -36
  106. package/dist/{displacementTrendChart-iXH_pVRS.cjs → displacementTrendChart-CT140vXG.cjs} +1 -1
  107. package/dist/{dxf-DMZPfCEF.cjs → dxf-CVa4Vfm3.cjs} +1 -1
  108. package/dist/{dxf-Cne0HiZv.js → dxf-CjcHSJq-.js} +2 -2
  109. package/dist/{dzc-BHGWFMVE.js → dzc-DDXNSuie.js} +6 -6
  110. package/dist/{dzc-Xii4wMjP.cjs → dzc-DK16oTVj.cjs} +1 -1
  111. package/dist/{emergencyPlan-B1znDbbO.cjs → emergencyPlan-D0AMuD-3.cjs} +1 -1
  112. package/dist/{emergencyPlan-CdFHCDZY.js → emergencyPlan-Vim4E6h7.js} +3 -3
  113. package/dist/{evn-UM09m5js.js → evn-CdMN8gIC.js} +2 -2
  114. package/dist/{evn-DQIIN0A9.cjs → evn-D2mdSoFB.cjs} +1 -1
  115. package/dist/{evolutionChart-DDtDzRIE.cjs → evolutionChart-I8XVW05I.cjs} +1 -1
  116. package/dist/{evolutionChart-Dm3nLcz6.js → evolutionChart-P0l6P0Bc.js} +3 -3
  117. package/dist/{fileViewer-CoTW7CWz.cjs → fileViewer-D7sAA8-W.cjs} +1 -1
  118. package/dist/{fileViewer-C1Ky9Ydw.js → fileViewer-DvntGv0b.js} +2 -2
  119. package/dist/{filterBar-BNr5i0ab.js → filterBar-8gex5oR-.js} +2 -2
  120. package/dist/{filterBar-DPG_jFL8.cjs → filterBar-GSTji96g.cjs} +1 -1
  121. package/dist/{fireCombustionCurve-DpcQ13zK.js → fireCombustionCurve-B3jAhOft.js} +3 -3
  122. package/dist/{fireCombustionCurve-z2iMEkbd.cjs → fireCombustionCurve-DrMmHf3N.cjs} +1 -1
  123. package/dist/{fireFilterBar-BFJeB-8m.js → fireFilterBar-CH6iK0Xg.js} +2 -2
  124. package/dist/{fireFilterBar-iXGBx5Zi.cjs → fireFilterBar-Dy9DcHij.cjs} +1 -1
  125. package/dist/{fireHistoryTable-E9Gx4Gqf.js → fireHistoryTable-CHxHqPs0.js} +2 -2
  126. package/dist/{fireHistoryTable-BE79laqx.cjs → fireHistoryTable-n6L3juWp.cjs} +1 -1
  127. package/dist/{gag-naUs2e3c.js → gag-BsO4kmp1.js} +2 -2
  128. package/dist/{gag-Ce_-YYka.cjs → gag-BzjuwBvY.cjs} +1 -1
  129. package/dist/{gasStationList-Kbha10pX.js → gasStationList-7JzUcISs.js} +214 -276
  130. package/dist/gasStationList-QwqTDEAG.cjs +1 -0
  131. package/dist/{geo3dViewer-CnAgLJ_6.cjs → geo3dViewer-Cf-jHpvF.cjs} +1 -1
  132. package/dist/{geo3dViewer-CMISZOfo.js → geo3dViewer-doEpUC_J.js} +3 -3
  133. package/dist/{glbModel-Bw25mL_R.js → glbModel-BgFIj_es.js} +2 -2
  134. package/dist/{glbModel-CS8qUhON.cjs → glbModel-C6L--3dO.cjs} +1 -1
  135. package/dist/{globalObjectSelector-BcLO38lZ.js → globalObjectSelector-CdfiXRjg.js} +1 -1
  136. package/dist/{globalObjectSelector-BwoQjJGq.cjs → globalObjectSelector-P_irB0rv.cjs} +1 -1
  137. package/dist/{gnssFilterBar-CfqJBy4d.cjs → gnssFilterBar-CIwyv2yc.cjs} +1 -1
  138. package/dist/{gnssFilterBar-bS10JYoi.js → gnssFilterBar-DPNshMIx.js} +2 -2
  139. package/dist/{gnssHistoryTable-CPs_w2gf.js → gnssHistoryTable-C7x4-Tpp.js} +2 -2
  140. package/dist/{gnssHistoryTable-CyingjiU.cjs → gnssHistoryTable-j5FL6oYs.cjs} +1 -1
  141. package/dist/{gnssMapView-DD_L9jE0.js → gnssMapView-BWcS4hqj.js} +4 -4
  142. package/dist/{gnssMapView-KvzwIbK1.cjs → gnssMapView-_VaJWBcE.cjs} +2 -2
  143. package/dist/{gnssSectionProfile-DxkEsZQx.cjs → gnssSectionProfile-DGbTO7lV.cjs} +1 -1
  144. package/dist/{gnssSectionProfile-DGYWQKML.js → gnssSectionProfile-hpyiGI-6.js} +2 -2
  145. package/dist/{gnssTimeSeriesChart-KVg2GW1C.cjs → gnssTimeSeriesChart-CNT6xaNs.cjs} +1 -1
  146. package/dist/{gnssTimeSeriesChart-1bLKTD-e.js → gnssTimeSeriesChart-rL9oG1ly.js} +2 -2
  147. package/dist/{gnssXYTrajectory-B-d6rq3V.js → gnssXYTrajectory-B1LZAepw.js} +2 -2
  148. package/dist/{gnssXYTrajectory-B-0h71U8.cjs → gnssXYTrajectory-CwAjhPRc.cjs} +1 -1
  149. package/dist/{grd-CqeXHXO2.js → grd-BLab9IY0.js} +20 -20
  150. package/dist/{grd-CbvQkv0q.cjs → grd-rJXqEimt.cjs} +1 -1
  151. package/dist/{grdIndass-BaHBsp5T.js → grdIndass-gGrZ7gRV.js} +6 -6
  152. package/dist/{grdIndass-_-7wqVjL.cjs → grdIndass-niY4UOwz.cjs} +1 -1
  153. package/dist/{grg-DmN25aj-.cjs → grg-C1L5yeyY.cjs} +1 -1
  154. package/dist/{grg-Cgpfx9kR.js → grg-Dnro7bLg.js} +6 -6
  155. package/dist/{gridview-B0haH8LS.js → gridview-BhjWlD0J.js} +2 -2
  156. package/dist/{gridview-DYYpW2MH.cjs → gridview-DxUsv2ny.cjs} +1 -1
  157. package/dist/{groundwaterFilterBar-mcMEwt9B.cjs → groundwaterFilterBar-C-2e7S04.cjs} +1 -1
  158. package/dist/{groundwaterFilterBar-ClXMXCj6.js → groundwaterFilterBar-bNhTkX1C.js} +2 -2
  159. package/dist/{groundwaterProfileChart-BoRVOmen.cjs → groundwaterProfileChart-BxKGPuOe.cjs} +2 -2
  160. package/dist/{groundwaterProfileChart-Cfwfua8-.js → groundwaterProfileChart-dhzmwfwz.js} +3 -3
  161. package/dist/{groundwaterTimeCurve-BOarX2wf.js → groundwaterTimeCurve-BtzP6icm.js} +3 -3
  162. package/dist/{groundwaterTimeCurve-Czt7iLlt.cjs → groundwaterTimeCurve-CTQPlTUr.cjs} +1 -1
  163. package/dist/{groupCard-2aS7lgg2.js → groupCard-D00ElZoy.js} +63 -53
  164. package/dist/{groupCard-DjUIJShv.cjs → groupCard-D4gdaVqR.cjs} +1 -1
  165. package/dist/{headerBar-u-0s0z16.js → headerBar-DEHj8fJr.js} +2 -2
  166. package/dist/{headerBar-5nL0hMXs.cjs → headerBar-MFw1W0qa.cjs} +1 -1
  167. package/dist/{history-BtX7uNYs.js → history-BRkb914v.js} +16 -16
  168. package/dist/{history-B-Ynlm5z.cjs → history-D1R2RAZQ.cjs} +1 -1
  169. package/dist/index-77aUdspY.cjs +612 -0
  170. package/dist/{index-DomNEEyv.js → index-BZpYmpDy.js} +3569 -2983
  171. package/dist/{insarDeformChart-KECXbG_n.cjs → insarDeformChart-5EVWIkpL.cjs} +1 -1
  172. package/dist/{insarDeformChart-DVGZUwaX.js → insarDeformChart-pbOnnoN-.js} +2 -2
  173. package/dist/{insarImageViewer-BMk5v36R.js → insarImageViewer-D3bbQA6g.js} +2 -2
  174. package/dist/{insarImageViewer-CdJyowUc.cjs → insarImageViewer-DQJBN4YM.cjs} +1 -1
  175. package/dist/{kds-DU8wNnhT.cjs → kds-D5seJB3L.cjs} +1 -1
  176. package/dist/{kds-CawaHOXh.js → kds-gTJOwHbM.js} +21 -21
  177. package/dist/{kpiCard-CAuX9-zP.cjs → kpiCard-Bz-fg6sL.cjs} +1 -1
  178. package/dist/{kpiCard-B5ZueB0g.js → kpiCard-Cx6VNK6L.js} +2 -2
  179. package/dist/{landslideMap-DGkSLtbi.js → landslideMap-5erIcZo7.js} +15 -15
  180. package/dist/{landslideMap-CImGVGDr.cjs → landslideMap-D7_QpwmM.cjs} +1 -1
  181. package/dist/{landslideWarning-C8cHW-2p.cjs → landslideWarning-C3FZqrxT.cjs} +1 -1
  182. package/dist/{landslideWarning-BeQUD3uJ.js → landslideWarning-CzaddgWf.js} +14 -14
  183. package/dist/{layerTabs-DxX6yqOO.cjs → layerTabs-Dc1Xb11W.cjs} +1 -1
  184. package/dist/{layerTabs-CBr-oH28.js → layerTabs-DqbOykS2.js} +2 -2
  185. package/dist/{leaflet-src-BXugYdBe.js → leaflet-src-BY2SMh9y.js} +1 -1
  186. package/dist/{leaflet-src-VXn1CZcu.cjs → leaflet-src-Brb8KUL5.cjs} +1 -1
  187. package/dist/{lerc-td9bbpKy.js → lerc-Chm_GVte.js} +2 -2
  188. package/dist/{lerc-DJGGksD3.cjs → lerc-DGuyYCKG.cjs} +1 -1
  189. package/dist/{lin-vrv9_1Gw.cjs → lin-8x2j8aGa.cjs} +1 -1
  190. package/dist/{lin-DlD92hLY.js → lin-tqtSA5ci.js} +9 -9
  191. package/dist/{linIndass-DRZUPyVA.js → linIndass-DHFymSVI.js} +12 -12
  192. package/dist/{linIndass-BhvIJJ_-.cjs → linIndass-Dxo_bzrZ.cjs} +1 -1
  193. package/dist/{lst-BsGZwd4K.cjs → lst-BV6EbDPs.cjs} +1 -1
  194. package/dist/{lst-DHBMHjOM.js → lst-BejIuO0f.js} +2 -2
  195. package/dist/{manualEntry-zdYpuGoU.cjs → manualEntry-Bt4cs6kn.cjs} +1 -1
  196. package/dist/{manualEntry-gGLZH2mN.js → manualEntry-DObI0OAq.js} +2 -2
  197. package/dist/{mapBackground-DBXKXI9j.js → mapBackground-Cuym5Dqr.js} +3 -3
  198. package/dist/{mapBackground-U2NX5fCU.cjs → mapBackground-oVOBK3zr.cjs} +1 -1
  199. package/dist/{mappingList-vLJbxZcd.cjs → mappingList-BEWAqLd4.cjs} +1 -1
  200. package/dist/{mappingList-D4KRWEkc.js → mappingList-Dzq0zMfs.js} +2 -2
  201. package/dist/{markdownViewer-DzZnOTO-.js → markdownViewer-Bz50jkb6.js} +2 -2
  202. package/dist/{markdownViewer-XvNb3eNT.cjs → markdownViewer-V5b1xhPh.cjs} +1 -1
  203. package/dist/{mix-control-modal-DjD4xOuc.js → mix-control-modal-DzVLdO3S.js} +7 -7
  204. package/dist/{mix-control-modal-DQnZbDGs.cjs → mix-control-modal-I6DqPm04.cjs} +1 -1
  205. package/dist/{mixGrid-CLEdWr86.cjs → mixGrid-_ur8VKLD.cjs} +1 -1
  206. package/dist/{mixGrid-uzRHR_XB.js → mixGrid-tVSdKPms.js} +2 -2
  207. package/dist/mixdashboards.cjs +1 -1
  208. package/dist/mixdashboards.css +1 -1
  209. package/dist/mixdashboards.js +1 -1
  210. package/dist/{mixiotObjectListApi-DCuG7zc-.cjs → mixiotObjectListApi-BUQ-RZ3L.cjs} +1 -1
  211. package/dist/{mixiotObjectListApi-DP6wrrOJ.js → mixiotObjectListApi-D5vNNWgT.js} +1 -1
  212. package/dist/{mjpegCamera-D416oWYH.cjs → mjpegCamera-CjWe8BEK.cjs} +1 -1
  213. package/dist/{mjpegCamera-y_pW209K.js → mjpegCamera-DnAPpFJU.js} +2 -2
  214. package/dist/{monitorAlert-BOJ4UrnO.js → monitorAlert-B-fTYPn6.js} +11 -11
  215. package/dist/{monitorAlert-Bq1MEu6y.cjs → monitorAlert-qmVSQ1lc.cjs} +1 -1
  216. package/dist/{monitorData-CTVzSwsd.js → monitorData-Dopc660L.js} +7 -7
  217. package/dist/{monitorData-eE9QUfb3.cjs → monitorData-YhGSUq3H.cjs} +1 -1
  218. package/dist/{monitorSpeedChart-CnKy9z8m.cjs → monitorSpeedChart-Brj_YHsO.cjs} +1 -1
  219. package/dist/{monitorSpeedChart-CUZat2mO.js → monitorSpeedChart-Dsvr_QPB.js} +1 -1
  220. package/dist/{mxa-ueyMsY-m.cjs → mxa-BzdI7BLB.cjs} +1 -1
  221. package/dist/{mxa-DDJJIW_n.js → mxa-D4WkyBYZ.js} +7 -7
  222. package/dist/{myValue-BdJdeV7Y.cjs → myValue-C0tq-asC.cjs} +1 -1
  223. package/dist/{myValue-jZIrcY-B.js → myValue-DYtBtOJ2.js} +2 -2
  224. package/dist/{myValueList-KoXkIHn0.cjs → myValueList-BJctRTNd.cjs} +1 -1
  225. package/dist/{myValueList-DYPYb3FQ.js → myValueList-Ddpn1S68.js} +2 -2
  226. package/dist/{objectList-Ct6UzSuD.cjs → objectList-Csf0hVwo.cjs} +1 -1
  227. package/dist/{objectList-CGYOZD6e.js → objectList-G4wXFDwe.js} +3 -3
  228. package/dist/{objectListAPP-DrymYbRw.js → objectListAPP-BrmUj4At.js} +3 -3
  229. package/dist/{objectListAPP-D0dHuEhF.cjs → objectListAPP-UZN4iuTn.cjs} +1 -1
  230. package/dist/{photo-DC0tNbgw.js → photo-BEPeK7U8.js} +2 -2
  231. package/dist/{photo-siDcsoGU.cjs → photo-BYH_qg5O.cjs} +1 -1
  232. package/dist/{pie-D9J75dIT.cjs → pie-B57zDxJV.cjs} +1 -1
  233. package/dist/{pie-I_Gqoxg_.js → pie-CEVKe1lL.js} +2 -2
  234. package/dist/{placeholder-BPjcnXBR.cjs → placeholder-BezBEQGo.cjs} +1 -1
  235. package/dist/{placeholder-BsmPsTrK.js → placeholder-Bwv3VyEg.js} +1 -1
  236. package/dist/{pressBtn-CXasqSG5.js → pressBtn-1LCNz2gE.js} +3 -3
  237. package/dist/{pressBtn-DkR5yC7c.cjs → pressBtn-CJZTyY8I.cjs} +1 -1
  238. package/dist/{processTable-CprS7V6w.js → processTable-CHDazqah.js} +2 -2
  239. package/dist/{processTable-D2upRmGB.cjs → processTable-HtDeg1by.cjs} +1 -1
  240. package/dist/{progressBar-CHGUKjOk.cjs → progressBar-BP4SmPZK.cjs} +1 -1
  241. package/dist/{progressBar-BnDhCqnO.js → progressBar-C3NcWUrS.js} +2 -2
  242. package/dist/{progressCircle-DTSsucDj.js → progressCircle-Bo9-Qva_.js} +2 -2
  243. package/dist/{progressCircle-C7U0fPQv.cjs → progressCircle-CDqK1iFt.cjs} +1 -1
  244. package/dist/{qrcode-B65TN3DU.js → qrcode-VmYwvClG.js} +2 -2
  245. package/dist/{qrcode-COSof3Xg.cjs → qrcode-qD6tOm4F.cjs} +1 -1
  246. package/dist/{raceBar-B-Dg_JeH.js → raceBar-DR2-luKW.js} +2 -2
  247. package/dist/{raceBar-DUTC68PY.cjs → raceBar-uAs91hyk.cjs} +1 -1
  248. package/dist/{rad-CQS9cZyM.js → rad-1Jy1KDzt.js} +2 -2
  249. package/dist/{rad-C-5BUzw2.cjs → rad-D7-YZJNO.cjs} +1 -1
  250. package/dist/{radarMapViewer-8GICTIhi.js → radarMapViewer-ByQXe0Mu.js} +2 -2
  251. package/dist/{radarMapViewer-Bnzk9-oK.cjs → radarMapViewer-KPhNE5XX.cjs} +1 -1
  252. package/dist/{rainfallFilterBar-2PbsD0mU.js → rainfallFilterBar-C1obotPf.js} +2 -2
  253. package/dist/{rainfallFilterBar-BAFB2Yla.cjs → rainfallFilterBar-CVQpQp82.cjs} +1 -1
  254. package/dist/{rainfallTimeCurve-D8deMaZA.js → rainfallTimeCurve-B2rEx3T_.js} +3 -3
  255. package/dist/{rainfallTimeCurve-pNf06cfu.cjs → rainfallTimeCurve-DU2tt-Ls.cjs} +1 -1
  256. package/dist/{rangeLin-D1_RCrEG.cjs → rangeLin-COsJkCky.cjs} +1 -1
  257. package/dist/{rangeLin-DiCVHBXe.js → rangeLin-CdfUCFQr.js} +2 -2
  258. package/dist/{realtimeEvolutionMap-BwDjG4Cd.cjs → realtimeEvolutionMap-B7GT8MOq.cjs} +1 -1
  259. package/dist/{realtimeEvolutionMap-BZ3odAWj.js → realtimeEvolutionMap-aR63xPW_.js} +2 -2
  260. package/dist/{regionBar-BZVsJdo6.cjs → regionBar-BYF7IaGA.cjs} +1 -1
  261. package/dist/{regionBar-C_C5cX2r.js → regionBar-DB-secNe.js} +2 -2
  262. package/dist/{request-CsiNbn80.js → request-CBsG4ipL.js} +7 -7
  263. package/dist/{request-B1HlG30f.cjs → request-CvdHjG34.cjs} +1 -1
  264. package/dist/{retainer1-CzyGsNUK.cjs → retainer1-1CFk4InO.cjs} +1 -1
  265. package/dist/{retainer1-DROmtfRa.js → retainer1-CMzTlM5Z.js} +3 -3
  266. package/dist/{retainer2-BCAnjUE9.js → retainer2-DW4ewYX7.js} +3 -3
  267. package/dist/{retainer2-1BaKVlim.cjs → retainer2-DliOH7it.cjs} +1 -1
  268. package/dist/{retainerRecordList-DIdk5Q5E.js → retainerRecordList-Bcm6leuD.js} +2 -2
  269. package/dist/{retainerRecordList-Ct_yDZds.cjs → retainerRecordList-DV7Tx39d.cjs} +1 -1
  270. package/dist/{retainerRecordListAPP-Bi6Ax0r6.js → retainerRecordListAPP-BDRwp8T3.js} +2 -2
  271. package/dist/{retainerRecordListAPP-DUqNtCCN.cjs → retainerRecordListAPP-CJ-u0Tj2.cjs} +1 -1
  272. package/dist/{ringTopN-BSWAdbso.js → ringTopN-Duq0pzm_.js} +2 -2
  273. package/dist/{ringTopN-CIusnN5O.cjs → ringTopN-rd2UwH9f.cjs} +1 -1
  274. package/dist/{riskRegionTable-Lmup8bDM.js → riskRegionTable-BE_ggcEV.js} +7 -7
  275. package/dist/{riskRegionTable-0fHQGnVM.cjs → riskRegionTable-CbPB8mlY.cjs} +1 -1
  276. package/dist/{sankey-D8Erc_QS.cjs → sankey-BqBn6_rx.cjs} +1 -1
  277. package/dist/{sankey-D99KciIH.js → sankey-CnKm9PZe.js} +5 -5
  278. package/dist/{scd-0yZCqQT2.js → scd-BaBLoem8.js} +2 -2
  279. package/dist/{scd-Bkse6tqJ.cjs → scd-BgJ5P7co.cjs} +1 -1
  280. package/dist/{sideMenu-B8Wf4m_8.cjs → sideMenu-BgiQL2P1.cjs} +1 -1
  281. package/dist/{sideMenu-DZ2bbsp7.js → sideMenu-CUal1UQY.js} +2 -2
  282. package/dist/{slopeStability-B8u5QQaS.js → slopeStability-B9YbQLCE.js} +24 -24
  283. package/dist/{slopeStability-D2XSPa-Q.cjs → slopeStability-Y2tDzJeh.cjs} +1 -1
  284. package/dist/{speedCurve-BD8ajqAX.js → speedCurve-DERBMtE1.js} +2 -2
  285. package/dist/{speedCurve-CMZGeXjF.cjs → speedCurve-Kll2RRJ8.cjs} +1 -1
  286. package/dist/{stressFilterBar-Chq7rovQ.cjs → stressFilterBar-BGI4gVfE.cjs} +1 -1
  287. package/dist/{stressFilterBar-Dpn3RUli.js → stressFilterBar-CHRWFnpP.js} +2 -2
  288. package/dist/{stressTimeCurve-D-wPq_W1.cjs → stressTimeCurve-DE5KiXEt.cjs} +1 -1
  289. package/dist/{stressTimeCurve-SRlS-9iL.js → stressTimeCurve-hrlqSYS3.js} +3 -3
  290. package/dist/{swiper-BBV8vKRh.cjs → swiper-CnGllhBQ.cjs} +1 -1
  291. package/dist/{swiper-DIFY95yz.js → swiper-DNHC412s.js} +2 -2
  292. package/dist/{terminalConfigList-Dom3--nE.js → terminalConfigList-BlHAsyCm.js} +2 -2
  293. package/dist/{terminalConfigList-DwA9ITHL.cjs → terminalConfigList-C45EANO4.cjs} +1 -1
  294. package/dist/{terminalList-ClsF5hyg.cjs → terminalList-CNI3_FGb.cjs} +1 -1
  295. package/dist/{terminalList-DpB3UlZG.js → terminalList-UGjkhyf4.js} +2 -2
  296. package/dist/{terminalListAPP-Bu_KM5lV.cjs → terminalListAPP-6fPXF-yJ.cjs} +1 -1
  297. package/dist/{terminalListAPP-U6qqbtPw.js → terminalListAPP-CIJZMdxI.js} +2 -2
  298. package/dist/{textbox-DLDf0rM6.js → textbox-BD_LQ0EN.js} +2 -2
  299. package/dist/{textbox-CbF9pAtK.cjs → textbox-yNPnOaan.cjs} +1 -1
  300. package/dist/{timeQueryBar-CE9N3lDg.cjs → timeQueryBar-3qiV0IV9.cjs} +1 -1
  301. package/dist/{timeQueryBar-ZAH6gs8Q.js → timeQueryBar-B-uPtN25.js} +1 -1
  302. package/dist/{timeSeries-0oO4KLxQ.cjs → timeSeries-BTUuojvj.cjs} +1 -1
  303. package/dist/{timeSeries-DvHAA0wU.js → timeSeries-DdQI4oZU.js} +19 -19
  304. package/dist/{timeSeriesCurve-BTuPg-3z.cjs → timeSeriesCurve-Cj_FbK4x.cjs} +1 -1
  305. package/dist/{timeSeriesCurve-Dyl9b667.js → timeSeriesCurve-TGXshTzl.js} +3 -3
  306. package/dist/{toggleBtn-CZoTmwAw.js → toggleBtn-BMxqm5WG.js} +2 -2
  307. package/dist/{toggleBtn-qDOJLJ7K.cjs → toggleBtn-BXcQfnTB.cjs} +1 -1
  308. package/dist/{trajectoryConfigPanel-CxV8Ed97.cjs → trajectoryConfigPanel-CqoKO0hL.cjs} +1 -1
  309. package/dist/{trajectoryConfigPanel-DwZvvYAl.js → trajectoryConfigPanel-uRLWdXUb.js} +1 -1
  310. package/dist/{trajectoryScatter-CEFp9PB3.js → trajectoryScatter-DPE4cC8N.js} +2 -2
  311. package/dist/{trajectoryScatter-Dd8Ppxae.cjs → trajectoryScatter-Dph8PSdN.cjs} +1 -1
  312. package/dist/{universalConfigPanel-BAppgtmC.js → universalConfigPanel-CI1CuBmr.js} +1 -1
  313. package/dist/{universalConfigPanel-C7tTPczg.cjs → universalConfigPanel-Db-pC67o.cjs} +1 -1
  314. package/dist/{universalTable-3JLC8oEV.js → universalTable-DMrgtBrw.js} +2 -2
  315. package/dist/{universalTable-COmdNAnW.cjs → universalTable-dQObEQog.cjs} +1 -1
  316. package/dist/{video-BtR163lf.js → video-DEhLie80.js} +2 -2
  317. package/dist/{video-8vSuQilp.cjs → video-DbsKQhVD.cjs} +1 -1
  318. package/dist/{videoMonitor-CdTNqBTI.js → videoMonitor-BS6_LYUb.js} +12 -12
  319. package/dist/{videoMonitor-BZwJZvno.cjs → videoMonitor-DLBtivXO.cjs} +1 -1
  320. package/dist/{vlu-AozGL50n.cjs → vlu-DXk_wQf-.cjs} +1 -1
  321. package/dist/{vlu-DqeEDfiN.js → vlu-DaSjPY3I.js} +2 -2
  322. package/dist/{warningOverview-CV_pqizm.js → warningOverview-CKCEs_Jj.js} +3 -3
  323. package/dist/{warningOverview-CRaFyOXe.cjs → warningOverview-DAUlXzr0.cjs} +1 -1
  324. package/dist/{weather-CLXe9W0L.cjs → weather-BAI0IWNH.cjs} +1 -1
  325. package/dist/{weather-iTeslV81.js → weather-XUj6pFwM.js} +2 -2
  326. package/dist/{windLin-u983PAHI.js → windLin-Bt4q2eUT.js} +2 -2
  327. package/dist/{windLin-BCMqmXdY.cjs → windLin-C9dsCT1w.cjs} +1 -1
  328. package/package.json +1 -1
  329. package/dist/bar-vpJvlBYX.cjs +0 -2
  330. package/dist/gasStationList-jfKZeg4P.cjs +0 -1
  331. package/dist/index-Cvu9nAQq.cjs +0 -612
@@ -1,19 +1,19 @@
1
- var q = Object.defineProperty, G = Object.defineProperties;
1
+ var Q = Object.defineProperty, q = Object.defineProperties;
2
2
  var J = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
4
  var W = Object.prototype.hasOwnProperty, X = Object.prototype.propertyIsEnumerable;
5
- var I = (n, o, c) => o in n ? q(n, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[o] = c, L = (n, o) => {
5
+ var I = (n, o, c) => o in n ? Q(n, o, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[o] = c, L = (n, o) => {
6
6
  for (var c in o || (o = {}))
7
7
  W.call(o, c) && I(n, c, o[c]);
8
8
  if (P)
9
9
  for (var c of P(o))
10
10
  X.call(o, c) && I(n, c, o[c]);
11
11
  return n;
12
- }, F = (n, o) => G(n, J(o));
12
+ }, F = (n, o) => q(n, J(o));
13
13
  import { defineComponent as Y, useCssVars as Z, unref as r, ref as m, computed as ee, openBlock as g, createElementBlock as _, createElementVNode as t, toDisplayString as M, withDirectives as w, vModelText as E, createCommentVNode as te, renderSlot as oe } from "vue";
14
14
  import "html2canvas";
15
- import { B as le } from "./BaseComponent-BlCsb-HW.js";
16
- import { L as ae, E as re, _ as ce } from "./index-DomNEEyv.js";
15
+ import { B as le } from "./BaseComponent-CQaDWNO0.js";
16
+ import { N as ae, G as re, _ as ce } from "./index-BZpYmpDy.js";
17
17
  import { A as ne, D as se } from "./ele-vdo-icon-DcWebTR5.js";
18
18
  const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, ue = { class: "header-left" }, ve = { class: "header-title" }, fe = { class: "search-bar" }, pe = ["placeholder"], he = { class: "time-range-row" }, me = { class: "time-range-item" }, be = { class: "time-range-item" }, Ce = { class: "video-area" }, ye = {
19
19
  key: 0,
@@ -66,7 +66,7 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
66
66
  const o = n;
67
67
  class c extends le {
68
68
  extractStyles() {
69
- var l, f, s, u, C, i, y, p, h, v, S, B, R, A, O, N, V, U, j;
69
+ var l, f, s, u, C, i, y, p, h, v, S, B, R, A, N, O, V, U, j;
70
70
  const { options: e } = this.props.conf;
71
71
  return {
72
72
  title: ((l = e == null ? void 0 : e.title) == null ? void 0 : l.value) || "视频监控",
@@ -80,8 +80,8 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
80
80
  recColor: ((h = e == null ? void 0 : e.recColor) == null ? void 0 : h.value) || "#e74c3c",
81
81
  glowEffect: (S = (v = e == null ? void 0 : e.glowEffect) == null ? void 0 : v.value) != null ? S : !0,
82
82
  autoplay: (R = (B = e == null ? void 0 : e.autoplay) == null ? void 0 : B.value) != null ? R : !0,
83
- loop: (O = (A = e == null ? void 0 : e.loop) == null ? void 0 : A.value) != null ? O : !0,
84
- muted: (V = (N = e == null ? void 0 : e.muted) == null ? void 0 : N.value) != null ? V : !0,
83
+ loop: (N = (A = e == null ? void 0 : e.loop) == null ? void 0 : A.value) != null ? N : !0,
84
+ muted: (V = (O = e == null ? void 0 : e.muted) == null ? void 0 : O.value) != null ? V : !0,
85
85
  showControls: (j = (U = e == null ? void 0 : e.showControls) == null ? void 0 : U.value) != null ? j : !1
86
86
  };
87
87
  }
@@ -120,7 +120,7 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
120
120
  var e, l;
121
121
  const d = (l = (e = o.conf) == null ? void 0 : e.data) == null ? void 0 : l[0];
122
122
  return (d == null ? void 0 : d.url) || "";
123
- }), H = () => console.log("实时更新"), K = () => console.log("搜索:", b.value), Q = () => {
123
+ }), G = () => console.log("实时更新"), H = () => console.log("搜索:", b.value), K = () => {
124
124
  b.value = "";
125
125
  };
126
126
  return (d, e) => (g(), _("div", ie, [
@@ -147,7 +147,7 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
147
147
  ]),
148
148
  t("button", {
149
149
  class: "realtime-btn",
150
- onClick: H
150
+ onClick: G
151
151
  }, M(r(a).realtimeBtnText), 1)
152
152
  ]),
153
153
  t("div", fe, [
@@ -161,13 +161,13 @@ const ie = { class: "video-monitor-wrapper" }, de = { class: "panel-header" }, u
161
161
  ]),
162
162
  t("button", {
163
163
  class: "search-btn",
164
- onClick: K
164
+ onClick: H
165
165
  }, [...e[4] || (e[4] = [
166
166
  t("span", null, "Q", -1)
167
167
  ])]),
168
168
  t("button", {
169
169
  class: "clear-btn",
170
- onClick: Q
170
+ onClick: K
171
171
  }, [...e[5] || (e[5] = [
172
172
  t("span", null, "×", -1)
173
173
  ])])
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,R=(n,o)=>{for(var a in o||(o={}))H.call(o,a)&&O(n,a,o[a]);if(S)for(var a of S(o))K.call(o,a)&&O(n,a,o[a]);return n},A=(n,o)=>$(n,z(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const Q=require("./BaseComponent-BXAJUoaf.cjs"),y=require("./index-Cvu9nAQq.cjs"),U=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"video-monitor-wrapper"},J={class:"panel-header"},W={class:"header-left"},X={class:"header-title"},Y={class:"search-bar"},Z=["placeholder"],ee={class:"time-range-row"},te={class:"time-range-item"},oe={class:"time-range-item"},le={class:"video-area"},re={key:0,class:"rec-badge"},ae={class:"video-content"},ne=["src","autoplay","loop","muted","controls"],ce={key:1,class:"video-placeholder"},se={class:"placeholder-text"},de={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"视频监控",NAME_EN:"Video Monitor",ORDER:11,PLATFORM:["pc","screen"]},ie={title:{value:"视频监控",type:"string",label:"component.videoMonitor.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.videoMonitor.realtimeBtnText"},searchPlaceholder:{value:"搜索摄像头、位置...",type:"string",label:"component.videoMonitor.searchPlaceholder"},placeholderText:{value:"实时监控",type:"string",label:"component.videoMonitor.placeholderText"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.videoMonitor.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.videoMonitor.accentColor"},recColor:{value:"#e74c3c",type:"color",label:"component.videoMonitor.recColor"},glowEffect:{value:!0,type:"checkbox",label:"component.videoMonitor.glowEffect"},autoplay:{value:!0,type:"checkbox",label:"component.options.autoplay"},loop:{value:!0,type:"checkbox",label:"component.options.loop"},muted:{value:!0,type:"checkbox",label:"component.options.muted"},showControls:{value:!1,type:"checkbox",label:"component.options.controls"}},ue=[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}],fe=["name","fv","object_id","url"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},pe={DEFAULT:de,OPTIONS:ie,DATA:ue,PARAMS:fe,SOURCE:ve,COMMON:me},he=t.defineComponent(A(R({},pe),{__name:"videoMonitor",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){t.useCssVars(d=>({v05918fa4:t.unref(r).bgColor,d3f9beb2:t.unref(r).borderColor,v23480c46:t.unref(r).textColor,v250d92c9:t.unref(r).accentColor,v91ac3974:t.unref(r).glowEffect?`drop-shadow(0 0 6px ${t.unref(r).accentColor})`:"none",v9406041c:t.unref(r).glowEffect?`0 0 10px ${t.unref(r).accentColor}`:"none",v1bb2feba:t.unref(r).recColor}));const o=n;class a extends Q.BaseComponent{extractStyles(){var l,f,c,i,h,s,b,v,m,u,x,N,V,M,k,w,T,D,B;const{options:e}=this.props.conf;return{title:((l=e==null?void 0:e.title)==null?void 0:l.value)||"视频监控",realtimeBtnText:((f=e==null?void 0:e.realtimeBtnText)==null?void 0:f.value)||"实时更新",searchPlaceholder:((c=e==null?void 0:e.searchPlaceholder)==null?void 0:c.value)||"搜索摄像头、位置...",placeholderText:((i=e==null?void 0:e.placeholderText)==null?void 0:i.value)||"实时监控",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#1a2a3a",borderColor:((s=e==null?void 0:e.borderColor)==null?void 0:s.value)||"#2a4a6a",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#ffffff",accentColor:((v=e==null?void 0:e.accentColor)==null?void 0:v.value)||"#00d4ff",recColor:((m=e==null?void 0:e.recColor)==null?void 0:m.value)||"#e74c3c",glowEffect:(x=(u=e==null?void 0:e.glowEffect)==null?void 0:u.value)!=null?x:!0,autoplay:(V=(N=e==null?void 0:e.autoplay)==null?void 0:N.value)!=null?V:!0,loop:(k=(M=e==null?void 0:e.loop)==null?void 0:M.value)!=null?k:!0,muted:(T=(w=e==null?void 0:e.muted)==null?void 0:w.value)!=null?T:!0,showControls:(B=(D=e==null?void 0:e.showControls)==null?void 0:D.value)!=null?B:!1}}getDefaultData(){return[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}]}setHistoryData(e){const{data:l,common:f}=this.props.conf;if(!l.some(s=>s.object_id&&s.fv))return;const i=f.source||"mosaic";["statistics","calculate"].includes(i)&&(e=y.formatStatisticsResult(e,l));let h=y.handleNullData(e,this.props,"history");l.forEach((s,b)=>{var v,m;if(!(!s.object_id||!s.fv))try{const u=(m=(v=h.history[b])==null?void 0:v[0])==null?void 0:m[s.fv];u&&(s.url=u)}catch(u){}})}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;l.some(c=>c.object_id&&c.fv)&&l.forEach(c=>{if(!c.object_id||!c.fv)return;const i=this.extractDataValue(e,c.fv);i&&(c.url=i)})}}const C=new a(o,"videoMonitor");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=C.getDefaultData()),C.setupLifecycle();const r=C.getStyle(),p=t.ref(""),j=t.ref(!0),I=t.ref(null),E=t.ref(""),g=t.ref(""),_=t.computed(()=>{var e,l;const d=(l=(e=o.conf)==null?void 0:e.data)==null?void 0:l[0];return(d==null?void 0:d.url)||""}),P=()=>console.log("实时更新"),q=()=>console.log("搜索:",p.value),L=()=>{p.value=""};return(d,e)=>(t.openBlock(),t.createElementBlock("div",G,[t.createElementVNode("div",J,[t.createElementVNode("div",W,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M23 7l-7 5 7 5V7z"}),t.createElementVNode("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})],-1)),t.createElementVNode("span",X,t.toDisplayString(t.unref(r).title),1)]),t.createElementVNode("button",{class:"realtime-btn",onClick:P},t.toDisplayString(t.unref(r).realtimeBtnText),1)]),t.createElementVNode("div",Y,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>p.value=l),type:"text",class:"search-input",placeholder:t.unref(r).searchPlaceholder},null,8,Z),[[t.vModelText,p.value]]),t.createElementVNode("button",{class:"search-btn",onClick:q},[...e[4]||(e[4]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:L},[...e[5]||(e[5]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",ee,[t.createElementVNode("div",te,[e[6]||(e[6]=t.createElementVNode("label",null,"开始时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>E.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,E.value]])]),t.createElementVNode("div",oe,[e[7]||(e[7]=t.createElementVNode("label",null,"结束时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>g.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,g.value]])])]),t.createElementVNode("div",le,[j.value?(t.openBlock(),t.createElementBlock("div",re,"REC")):t.createCommentVNode("",!0),t.createElementVNode("div",ae,[_.value?(t.openBlock(),t.createElementBlock("video",{key:0,ref_key:"videoRef",ref:I,src:_.value,autoplay:t.unref(r).autoplay,loop:t.unref(r).loop,muted:t.unref(r).muted,controls:t.unref(r).showControls,class:"video-player"}," 您的浏览器不支持视频播放 ",8,ne)):(t.openBlock(),t.createElementBlock("div",ce,[e[8]||(e[8]=t.createElementVNode("svg",{class:"placeholder-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t.createElementVNode("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),t.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),t.createElementVNode("path",{d:"M2 8h2M20 8h2"})],-1)),t.createElementVNode("div",se,t.toDisplayString(t.unref(r).placeholderText),1)]))])]),t.renderSlot(d.$slots,"default",{},void 0,!0)]))}})),be=y._export_sfc(he,[["__scopeId","data-v-c25a1dc2"]]);exports.default=be;
1
+ "use strict";var F=Object.defineProperty,$=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var O=(n,o,a)=>o in n?F(n,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[o]=a,R=(n,o)=>{for(var a in o||(o={}))H.call(o,a)&&O(n,a,o[a]);if(S)for(var a of S(o))K.call(o,a)&&O(n,a,o[a]);return n},A=(n,o)=>$(n,z(o));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("html2canvas");const Q=require("./BaseComponent-BmhMoM4H.cjs"),y=require("./index-77aUdspY.cjs"),U=require("./ele-vdo-icon-Bgp9gaT6.cjs"),G={class:"video-monitor-wrapper"},J={class:"panel-header"},W={class:"header-left"},X={class:"header-title"},Y={class:"search-bar"},Z=["placeholder"],ee={class:"time-range-row"},te={class:"time-range-item"},oe={class:"time-range-item"},le={class:"video-area"},re={key:0,class:"rec-badge"},ae={class:"video-content"},ne=["src","autoplay","loop","muted","controls"],ce={key:1,class:"video-placeholder"},se={class:"placeholder-text"},de={DEFAULT_ICON:U.DEFAULT_ICON,ACTIVE_ICON:U.ACTIVE_ICON,NAME_CN:"视频监控",NAME_EN:"Video Monitor",ORDER:11,PLATFORM:["pc","screen"]},ie={title:{value:"视频监控",type:"string",label:"component.videoMonitor.title"},realtimeBtnText:{value:"实时更新",type:"string",label:"component.videoMonitor.realtimeBtnText"},searchPlaceholder:{value:"搜索摄像头、位置...",type:"string",label:"component.videoMonitor.searchPlaceholder"},placeholderText:{value:"实时监控",type:"string",label:"component.videoMonitor.placeholderText"},bgColor:{value:"#1a2a3a",type:"color",label:"setting.bgColor"},borderColor:{value:"#2a4a6a",type:"color",label:"component.videoMonitor.borderColor"},textColor:{value:"#ffffff",type:"color",label:"setting.textColor"},accentColor:{value:"#00d4ff",type:"color",label:"component.videoMonitor.accentColor"},recColor:{value:"#e74c3c",type:"color",label:"component.videoMonitor.recColor"},glowEffect:{value:!0,type:"checkbox",label:"component.videoMonitor.glowEffect"},autoplay:{value:!0,type:"checkbox",label:"component.options.autoplay"},loop:{value:!0,type:"checkbox",label:"component.options.loop"},muted:{value:!0,type:"checkbox",label:"component.options.muted"},showControls:{value:!1,type:"checkbox",label:"component.options.controls"}},ue=[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}],fe=["name","fv","object_id","url"],ve=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],me={useAlias:!1,multiObject:!1,source:"mosaic"},pe={DEFAULT:de,OPTIONS:ie,DATA:ue,PARAMS:fe,SOURCE:ve,COMMON:me},he=t.defineComponent(A(R({},pe),{__name:"videoMonitor",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){t.useCssVars(d=>({v05918fa4:t.unref(r).bgColor,d3f9beb2:t.unref(r).borderColor,v23480c46:t.unref(r).textColor,v250d92c9:t.unref(r).accentColor,v91ac3974:t.unref(r).glowEffect?`drop-shadow(0 0 6px ${t.unref(r).accentColor})`:"none",v9406041c:t.unref(r).glowEffect?`0 0 10px ${t.unref(r).accentColor}`:"none",v1bb2feba:t.unref(r).recColor}));const o=n;class a extends Q.BaseComponent{extractStyles(){var l,f,c,i,h,s,b,v,m,u,x,N,V,M,k,w,T,D,B;const{options:e}=this.props.conf;return{title:((l=e==null?void 0:e.title)==null?void 0:l.value)||"视频监控",realtimeBtnText:((f=e==null?void 0:e.realtimeBtnText)==null?void 0:f.value)||"实时更新",searchPlaceholder:((c=e==null?void 0:e.searchPlaceholder)==null?void 0:c.value)||"搜索摄像头、位置...",placeholderText:((i=e==null?void 0:e.placeholderText)==null?void 0:i.value)||"实时监控",bgColor:((h=e==null?void 0:e.bgColor)==null?void 0:h.value)||"#1a2a3a",borderColor:((s=e==null?void 0:e.borderColor)==null?void 0:s.value)||"#2a4a6a",textColor:((b=e==null?void 0:e.textColor)==null?void 0:b.value)||"#ffffff",accentColor:((v=e==null?void 0:e.accentColor)==null?void 0:v.value)||"#00d4ff",recColor:((m=e==null?void 0:e.recColor)==null?void 0:m.value)||"#e74c3c",glowEffect:(x=(u=e==null?void 0:e.glowEffect)==null?void 0:u.value)!=null?x:!0,autoplay:(V=(N=e==null?void 0:e.autoplay)==null?void 0:N.value)!=null?V:!0,loop:(k=(M=e==null?void 0:e.loop)==null?void 0:M.value)!=null?k:!0,muted:(T=(w=e==null?void 0:e.muted)==null?void 0:w.value)!=null?T:!0,showControls:(B=(D=e==null?void 0:e.showControls)==null?void 0:D.value)!=null?B:!1}}getDefaultData(){return[{name:"摄像头-01",fv:"video_url",object_id:"",url:""}]}setHistoryData(e){const{data:l,common:f}=this.props.conf;if(!l.some(s=>s.object_id&&s.fv))return;const i=f.source||"mosaic";["statistics","calculate"].includes(i)&&(e=y.formatStatisticsResult(e,l));let h=y.handleNullData(e,this.props,"history");l.forEach((s,b)=>{var v,m;if(!(!s.object_id||!s.fv))try{const u=(m=(v=h.history[b])==null?void 0:v[0])==null?void 0:m[s.fv];u&&(s.url=u)}catch(u){}})}setSocketData(e){if(!e)return;const{data:l}=this.props.conf;l.some(c=>c.object_id&&c.fv)&&l.forEach(c=>{if(!c.object_id||!c.fv)return;const i=this.extractDataValue(e,c.fv);i&&(c.url=i)})}}const C=new a(o,"videoMonitor");(!o.conf.data||o.conf.data.length===0)&&(o.conf.data=C.getDefaultData()),C.setupLifecycle();const r=C.getStyle(),p=t.ref(""),j=t.ref(!0),I=t.ref(null),E=t.ref(""),g=t.ref(""),_=t.computed(()=>{var e,l;const d=(l=(e=o.conf)==null?void 0:e.data)==null?void 0:l[0];return(d==null?void 0:d.url)||""}),P=()=>console.log("实时更新"),q=()=>console.log("搜索:",p.value),L=()=>{p.value=""};return(d,e)=>(t.openBlock(),t.createElementBlock("div",G,[t.createElementVNode("div",J,[t.createElementVNode("div",W,[e[3]||(e[3]=t.createElementVNode("svg",{class:"header-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M23 7l-7 5 7 5V7z"}),t.createElementVNode("rect",{x:"1",y:"5",width:"15",height:"14",rx:"2",ry:"2"})],-1)),t.createElementVNode("span",X,t.toDisplayString(t.unref(r).title),1)]),t.createElementVNode("button",{class:"realtime-btn",onClick:P},t.toDisplayString(t.unref(r).realtimeBtnText),1)]),t.createElementVNode("div",Y,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=l=>p.value=l),type:"text",class:"search-input",placeholder:t.unref(r).searchPlaceholder},null,8,Z),[[t.vModelText,p.value]]),t.createElementVNode("button",{class:"search-btn",onClick:q},[...e[4]||(e[4]=[t.createElementVNode("span",null,"Q",-1)])]),t.createElementVNode("button",{class:"clear-btn",onClick:L},[...e[5]||(e[5]=[t.createElementVNode("span",null,"×",-1)])])]),t.createElementVNode("div",ee,[t.createElementVNode("div",te,[e[6]||(e[6]=t.createElementVNode("label",null,"开始时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>E.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,E.value]])]),t.createElementVNode("div",oe,[e[7]||(e[7]=t.createElementVNode("label",null,"结束时间",-1)),t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":e[2]||(e[2]=l=>g.value=l),type:"datetime-local",class:"time-input"},null,512),[[t.vModelText,g.value]])])]),t.createElementVNode("div",le,[j.value?(t.openBlock(),t.createElementBlock("div",re,"REC")):t.createCommentVNode("",!0),t.createElementVNode("div",ae,[_.value?(t.openBlock(),t.createElementBlock("video",{key:0,ref_key:"videoRef",ref:I,src:_.value,autoplay:t.unref(r).autoplay,loop:t.unref(r).loop,muted:t.unref(r).muted,controls:t.unref(r).showControls,class:"video-player"}," 您的浏览器不支持视频播放 ",8,ne)):(t.openBlock(),t.createElementBlock("div",ce,[e[8]||(e[8]=t.createElementVNode("svg",{class:"placeholder-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"},[t.createElementVNode("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),t.createElementVNode("circle",{cx:"12",cy:"12",r:"3"}),t.createElementVNode("path",{d:"M2 8h2M20 8h2"})],-1)),t.createElementVNode("div",se,t.toDisplayString(t.unref(r).placeholderText),1)]))])]),t.renderSlot(d.$slots,"default",{},void 0,!0)]))}})),be=y._export_sfc(he,[["__scopeId","data-v-c25a1dc2"]]);exports.default=be;
@@ -1 +1 @@
1
- "use strict";var b=Object.defineProperty,A=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?b(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,_=(l,o)=>{for(var t in o||(o={}))V.call(o,t)&&g(l,t,o[t]);if(v)for(var t of v(o))T.call(o,t)&&g(l,t,o[t]);return l},C=(l,o)=>A(l,z(o));var h=(l,o,t)=>new Promise((y,c)=>{var n=a=>{try{d(t.next(a))}catch(i){c(i)}},u=a=>{try{d(t.throw(a))}catch(i){c(i)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(n,u);d((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./BaseComponent-BXAJUoaf.cjs"),O=require("./index-Cvu9nAQq.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),D={class:"mix-body"},M={class:"mix-footer"},I="--",j="--",B={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"数值卡片",NAME_EN:"Value",ORDER:3,PLATFORM:["pc","screen","mobile"]},L={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{name:"参数一",fv:"",object_id:""}],U=["name","fv","object_id"],F=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],P={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},k=1,q={DEFAULT:B,OPTIONS:L,DATA:R,PARAMS:U,SOURCE:F,ITEMS:k,COMMON:P},H=e.defineComponent(C(_({},q),{__name:"vlu",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,t=e.ref(O.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends x.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return h(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:r}=this.props.conf;!Array.isArray(r)||!r.length||r.forEach((S,f)=>{var m;try{const s=i[f].data[0];s!=null&&(S.value=s);const p=(m=i[f])==null?void 0:m.time[0];p&&(t.value=p)}catch(s){}})}setSocketData(i){super.setSocketData(i),i&&i.datetime&&(t.value=i.datetime)}}const c=new y(o,"vlu");c.setupLifecycle();const n=c.getStyle(),u=o.conf,d=e.computed(()=>N.generateTitleStyle(o.conf.options));return(a,i)=>{var r,S,f,m,s,p;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(d.value)},e.toDisplayString(((f=(S=(r=e.unref(u))==null?void 0:r.data)==null?void 0:S[0])==null?void 0:f.name)||e.unref(u).caption||j),5),e.createElementVNode("div",D,[e.createElementVNode("div",{class:"body-value",style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).textColor})},e.toDisplayString(((p=(s=(m=e.unref(u))==null?void 0:m.data)==null?void 0:s[0])==null?void 0:p.value)||I),5)]),e.createElementVNode("div",M,[e.createElementVNode("div",{class:"footer-time",style:e.normalizeStyle({fontSize:`${e.unref(n).timeSize}px`,color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),$=O._export_sfc(H,[["__scopeId","data-v-bf31c6eb"]]);exports.default=$;
1
+ "use strict";var b=Object.defineProperty,A=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var g=(l,o,t)=>o in l?b(l,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):l[o]=t,_=(l,o)=>{for(var t in o||(o={}))V.call(o,t)&&g(l,t,o[t]);if(v)for(var t of v(o))T.call(o,t)&&g(l,t,o[t]);return l},C=(l,o)=>A(l,z(o));var h=(l,o,t)=>new Promise((y,c)=>{var n=a=>{try{d(t.next(a))}catch(i){c(i)}},u=a=>{try{d(t.throw(a))}catch(i){c(i)}},d=a=>a.done?y(a.value):Promise.resolve(a.value).then(n,u);d((t=t.apply(l,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./BaseComponent-BmhMoM4H.cjs"),O=require("./index-77aUdspY.cjs"),N=require("./titleStyle-NSnz6cUg.cjs"),E=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),D={class:"mix-body"},M={class:"mix-footer"},I="--",j="--",B={DEFAULT_ICON:E.DEFAULT_ICON,ACTIVE_ICON:E.ACTIVE_ICON,NAME_CN:"数值卡片",NAME_EN:"Value",ORDER:3,PLATFORM:["pc","screen","mobile"]},L={valueSize:36,timeSize:12,radiusSize:8,bgColor:"#fff",titleColor:"#111",textColor:"#111",isHideTitle:!1,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4},R=[{name:"参数一",fv:"",object_id:""}],U=["name","fv","object_id"],F=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],P={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"mosaic"},k=1,q={DEFAULT:B,OPTIONS:L,DATA:R,PARAMS:U,SOURCE:F,ITEMS:k,COMMON:P},H=e.defineComponent(C(_({},q),{__name:"vlu",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(l){const o=l,t=e.ref(O.dayjs().format("YYYY-MM-DD HH:mm:ss"));class y extends x.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),valueSize:this.getOptionValue("valueSize",36),timeSize:this.getOptionValue("timeSize",12),radiusSize:this.getOptionValue("radiusSize",8)}}init(){return h(this,null,function*(){var i;this.Style.value=this.extractStyles(),this.applyTheme(),(i=this.props.conf.data)!=null&&i.length||(this.props.conf.data=[{name:"参数一",fv:"",object_id:""}])})}setHistoryData(i){if(!i)return;const{data:r}=this.props.conf;!Array.isArray(r)||!r.length||r.forEach((S,f)=>{var m;try{const s=i[f].data[0];s!=null&&(S.value=s);const p=(m=i[f])==null?void 0:m.time[0];p&&(t.value=p)}catch(s){}})}setSocketData(i){super.setSocketData(i),i&&i.datetime&&(t.value=i.datetime)}}const c=new y(o,"vlu");c.setupLifecycle();const n=c.getStyle(),u=o.conf,d=e.computed(()=>N.generateTitleStyle(o.conf.options));return(a,i)=>{var r,S,f,m,s,p;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(n).bgColor,borderRadius:`${e.unref(n).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(d.value)},e.toDisplayString(((f=(S=(r=e.unref(u))==null?void 0:r.data)==null?void 0:S[0])==null?void 0:f.name)||e.unref(u).caption||j),5),e.createElementVNode("div",D,[e.createElementVNode("div",{class:"body-value",style:e.normalizeStyle({fontSize:`${e.unref(n).valueSize}px`,color:e.unref(n).textColor})},e.toDisplayString(((p=(s=(m=e.unref(u))==null?void 0:m.data)==null?void 0:s[0])==null?void 0:p.value)||I),5)]),e.createElementVNode("div",M,[e.createElementVNode("div",{class:"footer-time",style:e.normalizeStyle({fontSize:`${e.unref(n).timeSize}px`,color:e.unref(n).textColor})},e.toDisplayString(t.value),5)]),e.renderSlot(a.$slots,"default",{},void 0,!0)],4)}}})),$=O._export_sfc(H,[["__scopeId","data-v-bf31c6eb"]]);exports.default=$;
@@ -27,8 +27,8 @@ var O = (i, e, t) => new Promise((_, r) => {
27
27
  u((t = t.apply(i, e)).next());
28
28
  });
29
29
  import { defineComponent as V, ref as M, computed as N, openBlock as B, createElementBlock as R, normalizeStyle as y, unref as l, createElementVNode as S, toDisplayString as g, renderSlot as j } from "vue";
30
- import { B as L } from "./BaseComponent-BlCsb-HW.js";
31
- import { d as I, _ as U } from "./index-DomNEEyv.js";
30
+ import { B as L } from "./BaseComponent-CQaDWNO0.js";
31
+ import { d as I, _ as U } from "./index-BZpYmpDy.js";
32
32
  import { g as k } from "./titleStyle-BT5GlpAb.js";
33
33
  import { A as F, D as H } from "./ele-vlu-icon-Bg6EHZdJ.js";
34
34
  const P = { class: "mix-body" }, Y = { class: "mix-footer" }, $ = "--", w = "--", W = {
@@ -12,10 +12,10 @@ var k = (t, o, a) => o in t ? q(t, o, { enumerable: !0, configurable: !0, writab
12
12
  }, U = (t, o) => G(t, J(o));
13
13
  import { defineComponent as X, computed as b, reactive as Y, ref as V, onMounted as Z, onBeforeUnmount as ee, openBlock as le, createElementBlock as oe, normalizeStyle as ae, createVNode as p, renderSlot as te } from "vue";
14
14
  import "html2canvas";
15
- import { B as ne } from "./BaseComponent-BlCsb-HW.js";
16
- import { _ as re } from "./index-DomNEEyv.js";
15
+ import { B as ne } from "./BaseComponent-CQaDWNO0.js";
16
+ import { _ as re } from "./index-BZpYmpDy.js";
17
17
  import { g as ie } from "./mockData-DcqLnbJF.js";
18
- import { W as se, P as ue, H as ve } from "./HistoryPlanDialog-BALmXGdQ.js";
18
+ import { W as se, P as ue, H as ve } from "./HistoryPlanDialog-CbbeFm-i.js";
19
19
  import { A as be, D as pe } from "./ele-evn-icon-MWzAujnD.js";
20
20
  const ce = {
21
21
  DEFAULT_ICON: pe,
@@ -1 +1 @@
1
- "use strict";var $=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(n,t,a)=>t in n?$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,R=(n,t)=>{for(var a in t||(t={}))K.call(t,a)&&I(n,a,t[a]);if(k)for(var a of k(t))Q.call(t,a)&&I(n,a,t[a]);return n},T=(n,t)=>G(n,J(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const X=require("./BaseComponent-BXAJUoaf.cjs"),Y=require("./index-Cvu9nAQq.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-CiRVXFaZ.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),ee={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"预警数据概览",NAME_EN:"Warning Overview",ORDER:2,PLATFORM:["pc","screen"]},le={title:{value:"预警数据概览",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},tableRowHoverColor:{value:"#f5f7fa",type:"color",label:"行悬停色"},level1Color:{value:"#e74c3c",type:"color",label:"一级预警色"},level2Color:{value:"#ff6600",type:"color",label:"二级预警色"},level3Color:{value:"#f39c12",type:"color",label:"三级预警色"},level4Color:{value:"#3498db",type:"color",label:"四级预警色"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},oe=[],te=[],ae=["mosaic"],ne={useAlias:!1,multiObject:!1,source:"mosaic"},re={DEFAULT:ee,OPTIONS:le,DATA:oe,PARAMS:te,SOURCE:ae,COMMON:ne},ie=o.defineComponent(T(R({},re),{__name:"warningOverview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n;class a extends X.BaseComponent{extractStyles(){var i,p,f,C,d,g,y,m,w,S,F,H,x,z,B,O,h,A,D,E,N,P,W,_,M;const e=((i=this.props.conf)==null?void 0:i.options)||{};return{title:((p=e.title)==null?void 0:p.value)||"预警数据概览",bgColor:((f=e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((C=e.textColor)==null?void 0:C.value)||"#333333",accentColor:((d=e.accentColor)==null?void 0:d.value)||"#409eff",baseFontSize:(y=(g=e.baseFontSize)==null?void 0:g.value)!=null?y:13,titleFontSize:(w=(m=e.titleFontSize)==null?void 0:m.value)!=null?w:14,titleFontWeight:((S=e.titleFontWeight)==null?void 0:S.value)||"600",tableHeaderFontSize:(H=(F=e.tableHeaderFontSize)==null?void 0:F.value)!=null?H:12,tableBodyFontSize:(z=(x=e.tableBodyFontSize)==null?void 0:x.value)!=null?z:12,panelHeaderBgColor:((B=e.panelHeaderBgColor)==null?void 0:B.value)||"#ffffff",tableHeaderBgColor:((O=e.tableHeaderBgColor)==null?void 0:O.value)||"#f5f7fa",tableHeaderColor:((h=e.tableHeaderColor)==null?void 0:h.value)||"#333333",tableBorderColor:((A=e.tableBorderColor)==null?void 0:A.value)||"#ebeef5",tableRowHoverColor:((D=e.tableRowHoverColor)==null?void 0:D.value)||"#f5f7fa",level1Color:((E=e.level1Color)==null?void 0:E.value)||"#e74c3c",level2Color:((N=e.level2Color)==null?void 0:N.value)||"#ff6600",level3Color:((P=e.level3Color)==null?void 0:P.value)||"#f39c12",level4Color:((W=e.level4Color)==null?void 0:W.value)||"#3498db",linkChannel:((_=e.linkChannel)==null?void 0:_.value)||"landslide",customChannel:((M=e.customChannel)==null?void 0:M.value)||""}}getDefaultData(){return[]}}const s=new a(t,"warningOverview"),u=o.computed(()=>s.extractStyles()),q=o.computed(()=>{const l=u.value;return{background:l.bgColor,color:l.textColor,fontSize:l.baseFontSize+"px","--lw-accent":l.accentColor,"--lw-title-size":l.titleFontSize+"px","--lw-title-weight":l.titleFontWeight,"--lw-th-size":l.tableHeaderFontSize+"px","--lw-td-size":l.tableBodyFontSize+"px","--lw-panel-bg":l.bgColor,"--lw-panel-header-bg":l.panelHeaderBgColor,"--lw-table-header-bg":l.tableHeaderBgColor,"--lw-table-header-color":l.tableHeaderColor,"--lw-table-border":l.tableBorderColor,"--lw-table-hover":l.tableRowHoverColor}}),U=o.computed(()=>({1:u.value.level1Color,2:u.value.level2Color,3:u.value.level3Color,4:u.value.level4Color})),r=o.reactive(Z.getMockPageData()),v=o.ref(!1),c=o.ref(!1);function j(l){r.currentWarning=l,s.publish({type:"warning-selected",warning:l})}function L(l){r.plans=l,s.publish({type:"plans-updated",plans:l})}return o.onMounted(()=>s.init()),o.onBeforeUnmount(()=>s.cleanup()),(l,e)=>(o.openBlock(),o.createElementBlock("div",{class:"wov-wrapper",style:o.normalizeStyle(q.value)},[o.createVNode(b.WarningOverviewPanel,{warnings:r.warningEvents,"current-warning":r.currentWarning,"level-colors":U.value,onSelectWarning:j,onManagePlans:e[0]||(e[0]=i=>v.value=!0),onHistoryPlans:e[1]||(e[1]=i=>c.value=!0)},null,8,["warnings","current-warning","level-colors"]),o.createVNode(b.PlanLibraryDialog,{visible:v.value,plans:r.plans,"mobile-objects":r.mobileObjects,"current-warning":r.currentWarning,onClose:e[2]||(e[2]=i=>v.value=!1),"onUpdate:plans":L},null,8,["visible","plans","mobile-objects","current-warning"]),o.createVNode(b.HistoryPlanDialog,{visible:c.value,plans:r.plans,onClose:e[3]||(e[3]=i=>c.value=!1)},null,8,["visible","plans"]),o.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(ie,[["__scopeId","data-v-7fdc2e1d"]]);exports.default=se;
1
+ "use strict";var $=Object.defineProperty,G=Object.defineProperties;var J=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var I=(n,t,a)=>t in n?$(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,R=(n,t)=>{for(var a in t||(t={}))K.call(t,a)&&I(n,a,t[a]);if(k)for(var a of k(t))Q.call(t,a)&&I(n,a,t[a]);return n},T=(n,t)=>G(n,J(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("html2canvas");const X=require("./BaseComponent-BmhMoM4H.cjs"),Y=require("./index-77aUdspY.cjs"),Z=require("./mockData-Cj71Qk7-.cjs"),b=require("./HistoryPlanDialog-BU4GayEm.cjs"),V=require("./ele-evn-icon-DUQMS-9T.cjs"),ee={DEFAULT_ICON:V.DEFAULT_ICON,ACTIVE_ICON:V.ACTIVE_ICON,NAME_CN:"预警数据概览",NAME_EN:"Warning Overview",ORDER:2,PLATFORM:["pc","screen"]},le={title:{value:"预警数据概览",type:"string",label:"标题"},bgColor:{value:"#ffffff",type:"color",label:"setting.bgColor"},textColor:{value:"#333333",type:"color",label:"setting.textColor"},accentColor:{value:"#409eff",type:"color",label:"强调色"},baseFontSize:{value:13,type:"number",label:"基础字号(px)",min:10,max:20},titleFontSize:{value:14,type:"number",label:"标题字号(px)",min:12,max:24},titleFontWeight:{value:"600",type:"select",label:"标题字重",options:[{label:"常规",value:"400"},{label:"中等",value:"500"},{label:"半粗",value:"600"},{label:"粗体",value:"700"}]},tableHeaderFontSize:{value:12,type:"number",label:"表头字号(px)",min:10,max:18},tableBodyFontSize:{value:12,type:"number",label:"表格字号(px)",min:10,max:18},panelHeaderBgColor:{value:"#ffffff",type:"color",label:"面板头背景"},tableHeaderBgColor:{value:"#f5f7fa",type:"color",label:"表头背景"},tableHeaderColor:{value:"#333333",type:"color",label:"表头文字色"},tableBorderColor:{value:"#ebeef5",type:"color",label:"表格分隔线"},tableRowHoverColor:{value:"#f5f7fa",type:"color",label:"行悬停色"},level1Color:{value:"#e74c3c",type:"color",label:"一级预警色"},level2Color:{value:"#ff6600",type:"color",label:"二级预警色"},level3Color:{value:"#f39c12",type:"color",label:"三级预警色"},level4Color:{value:"#3498db",type:"color",label:"四级预警色"},linkChannel:{value:"landslide",type:"select",label:"联动频道",options:[{label:"滑坡预警",value:"landslide"},{label:"自定义",value:"custom"}]},customChannel:{value:"",type:"string",label:"自定义频道",showWhen:{linkChannel:"custom"}}},oe=[],te=[],ae=["mosaic"],ne={useAlias:!1,multiObject:!1,source:"mosaic"},re={DEFAULT:ee,OPTIONS:le,DATA:oe,PARAMS:te,SOURCE:ae,COMMON:ne},ie=o.defineComponent(T(R({},re),{__name:"warningOverview",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(n){const t=n;class a extends X.BaseComponent{extractStyles(){var i,p,f,C,d,g,y,m,w,S,F,H,x,z,B,O,h,A,D,E,N,P,W,_,M;const e=((i=this.props.conf)==null?void 0:i.options)||{};return{title:((p=e.title)==null?void 0:p.value)||"预警数据概览",bgColor:((f=e.bgColor)==null?void 0:f.value)||"#ffffff",textColor:((C=e.textColor)==null?void 0:C.value)||"#333333",accentColor:((d=e.accentColor)==null?void 0:d.value)||"#409eff",baseFontSize:(y=(g=e.baseFontSize)==null?void 0:g.value)!=null?y:13,titleFontSize:(w=(m=e.titleFontSize)==null?void 0:m.value)!=null?w:14,titleFontWeight:((S=e.titleFontWeight)==null?void 0:S.value)||"600",tableHeaderFontSize:(H=(F=e.tableHeaderFontSize)==null?void 0:F.value)!=null?H:12,tableBodyFontSize:(z=(x=e.tableBodyFontSize)==null?void 0:x.value)!=null?z:12,panelHeaderBgColor:((B=e.panelHeaderBgColor)==null?void 0:B.value)||"#ffffff",tableHeaderBgColor:((O=e.tableHeaderBgColor)==null?void 0:O.value)||"#f5f7fa",tableHeaderColor:((h=e.tableHeaderColor)==null?void 0:h.value)||"#333333",tableBorderColor:((A=e.tableBorderColor)==null?void 0:A.value)||"#ebeef5",tableRowHoverColor:((D=e.tableRowHoverColor)==null?void 0:D.value)||"#f5f7fa",level1Color:((E=e.level1Color)==null?void 0:E.value)||"#e74c3c",level2Color:((N=e.level2Color)==null?void 0:N.value)||"#ff6600",level3Color:((P=e.level3Color)==null?void 0:P.value)||"#f39c12",level4Color:((W=e.level4Color)==null?void 0:W.value)||"#3498db",linkChannel:((_=e.linkChannel)==null?void 0:_.value)||"landslide",customChannel:((M=e.customChannel)==null?void 0:M.value)||""}}getDefaultData(){return[]}}const s=new a(t,"warningOverview"),u=o.computed(()=>s.extractStyles()),q=o.computed(()=>{const l=u.value;return{background:l.bgColor,color:l.textColor,fontSize:l.baseFontSize+"px","--lw-accent":l.accentColor,"--lw-title-size":l.titleFontSize+"px","--lw-title-weight":l.titleFontWeight,"--lw-th-size":l.tableHeaderFontSize+"px","--lw-td-size":l.tableBodyFontSize+"px","--lw-panel-bg":l.bgColor,"--lw-panel-header-bg":l.panelHeaderBgColor,"--lw-table-header-bg":l.tableHeaderBgColor,"--lw-table-header-color":l.tableHeaderColor,"--lw-table-border":l.tableBorderColor,"--lw-table-hover":l.tableRowHoverColor}}),U=o.computed(()=>({1:u.value.level1Color,2:u.value.level2Color,3:u.value.level3Color,4:u.value.level4Color})),r=o.reactive(Z.getMockPageData()),v=o.ref(!1),c=o.ref(!1);function j(l){r.currentWarning=l,s.publish({type:"warning-selected",warning:l})}function L(l){r.plans=l,s.publish({type:"plans-updated",plans:l})}return o.onMounted(()=>s.init()),o.onBeforeUnmount(()=>s.cleanup()),(l,e)=>(o.openBlock(),o.createElementBlock("div",{class:"wov-wrapper",style:o.normalizeStyle(q.value)},[o.createVNode(b.WarningOverviewPanel,{warnings:r.warningEvents,"current-warning":r.currentWarning,"level-colors":U.value,onSelectWarning:j,onManagePlans:e[0]||(e[0]=i=>v.value=!0),onHistoryPlans:e[1]||(e[1]=i=>c.value=!0)},null,8,["warnings","current-warning","level-colors"]),o.createVNode(b.PlanLibraryDialog,{visible:v.value,plans:r.plans,"mobile-objects":r.mobileObjects,"current-warning":r.currentWarning,onClose:e[2]||(e[2]=i=>v.value=!1),"onUpdate:plans":L},null,8,["visible","plans","mobile-objects","current-warning"]),o.createVNode(b.HistoryPlanDialog,{visible:c.value,plans:r.plans,onClose:e[3]||(e[3]=i=>c.value=!1)},null,8,["visible","plans"]),o.renderSlot(l.$slots,"default",{},void 0,!0)],4))}})),se=Y._export_sfc(ie,[["__scopeId","data-v-7fdc2e1d"]]);exports.default=se;
@@ -1 +1 @@
1
- "use strict";var w=Object.defineProperty,v=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(C,t,n)=>t in C?w(C,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[t]=n,u=(C,t)=>{for(var n in t||(t={}))b.call(t,n)&&g(C,n,t[n]);if(d)for(var n of d(t))_.call(t,n)&&g(C,n,t[n]);return C},m=(C,t)=>v(C,x(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const M=require("./BaseComponent-BXAJUoaf.cjs"),i=require("./index-Cvu9nAQq.cjs"),y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I={class:"mix-component"},S=["src"],Z={DEFAULT_ICON:y,ACTIVE_ICON:F,NAME_CN:"天气",NAME_EN:"Weather",ORDER:4,PLATFORM:["pc","screen","mobile"]},k={transparent:{value:!1,type:"checkbox",label:"component.options.transparent"},bgColor:"#fff",textColor:{value:"#00B0F0",type:"color",label:"component.options.textColor",hideAlpha:!0},radiusSize:8,bgImg:{value:"",type:"image",label:"component.customized.bgImg"}},E={DEFAULT:Z,OPTIONS:k,COMMON:{}},L=r.defineComponent(m(u({},E),{__name:"weather",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const t=C;class n extends M.BaseComponent{extractStyles(){const{options:e}=this.props.conf,c=(a,h)=>a==null?h:typeof a=="object"&&"value"in a?a.value:a;return{bgColor:c(e==null?void 0:e.bgColor,"#fff"),textColor:c(e==null?void 0:e.textColor,"#00B0F0"),radiusSize:c(e==null?void 0:e.radiusSize,8),bgImg:c(e==null?void 0:e.bgImg,""),transparent:c(e==null?void 0:e.transparent,!1)}}}const s=new n(t,"weather");s.setupLifecycle();const l=s.getStyle(),f=o=>o?o.startsWith(i.FILE_URL)||o.startsWith("http")?o:i.FILE_URL+o:"",p=r.computed(()=>{var o,e;return((e=(o=l.value)==null?void 0:o.textColor)==null?void 0:e.replace("#",""))||"00B0F0"});return(o,e)=>(r.openBlock(),r.createElementBlock("div",I,[r.createElementVNode("div",{class:"weather-wrap",style:r.normalizeStyle({backgroundColor:r.unref(l).transparent?"transparent":r.unref(l).bgColor,borderRadius:`${r.unref(l).radiusSize}px`,backgroundImage:r.unref(l).bgImg?`url(${f(r.unref(l).bgImg)})`:""})},[r.createElementVNode("iframe",{width:"200",scrolling:"no",height:"60",frameborder:"0",allowtransparency:"true",src:`https://i.tianqi.com?c=code&id=12&color=%23${p.value}&icon=1&num=1&site=15&align=center`},null,8,S)],4),r.renderSlot(o.$slots,"default",{},void 0,!0)]))}})),N=i._export_sfc(L,[["__scopeId","data-v-dfc24c16"]]);exports.default=N;
1
+ "use strict";var w=Object.defineProperty,v=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(C,t,n)=>t in C?w(C,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[t]=n,u=(C,t)=>{for(var n in t||(t={}))b.call(t,n)&&g(C,n,t[n]);if(d)for(var n of d(t))_.call(t,n)&&g(C,n,t[n]);return C},m=(C,t)=>v(C,x(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue");require("html2canvas");const M=require("./BaseComponent-BmhMoM4H.cjs"),i=require("./index-77aUdspY.cjs"),y="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",F="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",I={class:"mix-component"},S=["src"],Z={DEFAULT_ICON:y,ACTIVE_ICON:F,NAME_CN:"天气",NAME_EN:"Weather",ORDER:4,PLATFORM:["pc","screen","mobile"]},k={transparent:{value:!1,type:"checkbox",label:"component.options.transparent"},bgColor:"#fff",textColor:{value:"#00B0F0",type:"color",label:"component.options.textColor",hideAlpha:!0},radiusSize:8,bgImg:{value:"",type:"image",label:"component.customized.bgImg"}},E={DEFAULT:Z,OPTIONS:k,COMMON:{}},L=r.defineComponent(m(u({},E),{__name:"weather",props:{conf:{type:Object,default:()=>({data:[]})},mode:{type:String,default:"edit"},uid:{type:String,default:""},theme:{type:String,default:"light"}},setup(C){const t=C;class n extends M.BaseComponent{extractStyles(){const{options:e}=this.props.conf,c=(a,h)=>a==null?h:typeof a=="object"&&"value"in a?a.value:a;return{bgColor:c(e==null?void 0:e.bgColor,"#fff"),textColor:c(e==null?void 0:e.textColor,"#00B0F0"),radiusSize:c(e==null?void 0:e.radiusSize,8),bgImg:c(e==null?void 0:e.bgImg,""),transparent:c(e==null?void 0:e.transparent,!1)}}}const s=new n(t,"weather");s.setupLifecycle();const l=s.getStyle(),f=o=>o?o.startsWith(i.FILE_URL)||o.startsWith("http")?o:i.FILE_URL+o:"",p=r.computed(()=>{var o,e;return((e=(o=l.value)==null?void 0:o.textColor)==null?void 0:e.replace("#",""))||"00B0F0"});return(o,e)=>(r.openBlock(),r.createElementBlock("div",I,[r.createElementVNode("div",{class:"weather-wrap",style:r.normalizeStyle({backgroundColor:r.unref(l).transparent?"transparent":r.unref(l).bgColor,borderRadius:`${r.unref(l).radiusSize}px`,backgroundImage:r.unref(l).bgImg?`url(${f(r.unref(l).bgImg)})`:""})},[r.createElementVNode("iframe",{width:"200",scrolling:"no",height:"60",frameborder:"0",allowtransparency:"true",src:`https://i.tianqi.com?c=code&id=12&color=%23${p.value}&icon=1&num=1&site=15&align=center`},null,8,S)],4),r.renderSlot(o.$slots,"default",{},void 0,!0)]))}})),N=i._export_sfc(L,[["__scopeId","data-v-dfc24c16"]]);exports.default=N;
@@ -12,8 +12,8 @@ var d = (C, t, r) => t in C ? x(C, t, { enumerable: !0, configurable: !0, writab
12
12
  }, m = (C, t) => v(C, _(t));
13
13
  import { defineComponent as F, computed as y, openBlock as I, createElementBlock as Z, createElementVNode as p, normalizeStyle as k, unref as s, renderSlot as S } from "vue";
14
14
  import "html2canvas";
15
- import { B as E } from "./BaseComponent-BlCsb-HW.js";
16
- import { F as f, _ as B } from "./index-DomNEEyv.js";
15
+ import { B as E } from "./BaseComponent-CQaDWNO0.js";
16
+ import { F as f, _ as B } from "./index-BZpYmpDy.js";
17
17
  const N = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", O = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='17px'%20height='18px'%20viewBox='0%200%2017%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e天气%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-807.000000,%20-99.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M817.945888,102.796609%20C819.683477,102.796609%20821.092089,104.205221%20821.092089,105.94281%20C821.092089,106.628082%20820.872999,107.262185%20820.501044,107.778896%20C822.196583,108.244456%20823.44069,109.818548%20823.44069,111.684342%20C823.44069,113.306186%20822.492183,114.753742%20821.051831,115.394536%20C820.713416,115.545093%20820.317026,115.392803%20820.16647,115.054388%20C820.015913,114.715973%20820.168202,114.319583%20820.506617,114.169026%20C821.464713,113.742782%20822.099373,112.774201%20822.099373,111.684342%20C822.099373,110.1861%20820.911369,108.976414%20819.451995,108.976414%20C819.031723,108.976414%20818.626762,109.07618%20818.260607,109.265341%20C817.879726,109.46211%20817.414554,109.255909%20817.304572,108.841551%20C816.799872,106.94008%20815.102249,105.597863%20813.147731,105.597863%20C810.772103,105.597863%20808.841317,107.563868%20808.841317,109.995048%20C808.841317,111.399401%20809.489548,112.691456%20810.568916,113.516983%20C810.863125,113.742002%20810.919215,114.162919%20810.694196,114.457127%20C810.469178,114.751336%20810.048261,114.807426%20809.754052,114.582408%20C808.345227,113.504903%20807.5,111.820195%20807.5,109.995048%20C807.5,106.828451%20810.025832,104.256546%20813.147731,104.256546%20C813.829302,104.256546%20814.486533,104.3802%20815.096693,104.608218%20C815.601039,103.529357%20816.696718,102.796609%20817.945888,102.796609%20Z%20M813.280439,107.176421%20C814.048868,107.176421%20814.770636,107.481714%20815.303171,108.014297%20C815.565067,108.276218%20815.565048,108.700855%20815.303127,108.962752%20C815.041206,109.224648%20814.616569,109.224629%20814.354672,108.962708%20C814.071197,108.679207%20813.689455,108.517738%20813.280439,108.517738%20C812.441385,108.517738%20811.761192,109.197931%20811.761192,110.036985%20C811.761192,110.446001%20811.922661,110.827743%20812.206162,111.111218%20C812.468083,111.373115%20812.468102,111.797752%20812.206206,112.059673%20C811.944309,112.321594%20811.519672,112.321613%20811.257751,112.059717%20C810.725168,111.527182%20810.419875,110.805414%20810.419875,110.036985%20C810.419875,108.457142%20811.700596,107.176421%20813.280439,107.176421%20Z%20M817.945888,104.137926%20C817.210393,104.137926%20816.567249,104.581189%20816.288327,105.226532%20C817.155696,105.815582%20817.856037,106.643608%20818.294581,107.628501%20L818.3271,107.70736%20C819.140827,107.532395%20819.750772,106.808824%20819.750772,105.94281%20C819.750772,104.94601%20818.942688,104.137926%20817.945888,104.137926%20Z%20M822.770031,105.657173%20C823.173193,105.657173%20823.5,105.98398%20823.5,106.387142%20C823.5,106.790304%20823.173193,107.117111%20822.770031,107.117111%20C822.36687,107.117111%20822.040063,106.790304%20822.040063,106.387142%20C822.040063,105.98398%20822.36687,105.657173%20822.770031,105.657173%20Z%20M822.040063,102.372314%20C822.443224,102.372314%20822.770031,102.699132%20822.770031,103.102283%20C822.770031,103.505445%20822.443224,103.832252%20822.040063,103.832252%20C821.636901,103.832252%20821.310094,103.505445%20821.310094,103.102283%20C821.310094,102.699132%20821.636901,102.372314%20822.040063,102.372314%20Z%20M814.740376,101.642346%20C815.143538,101.642346%20815.470345,101.969164%20815.470345,102.372314%20C815.470345,102.775465%20815.143538,103.102283%20814.740376,103.102283%20C814.337215,103.102283%20814.010408,102.775465%20814.010408,102.372314%20C814.010408,101.969164%20814.337215,101.642346%20814.740376,101.642346%20Z%20M818.755204,100.547393%20C819.158366,100.547393%20819.485173,100.874211%20819.485173,101.277361%20C819.485173,101.680512%20819.158366,102.00733%20818.755204,102.00733%20C818.352042,102.00733%20818.025235,101.680512%20818.025235,101.277361%20C818.025235,100.874211%20818.352042,100.547393%20818.755204,100.547393%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", z = { class: "mix-component" }, L = ["src"], A = {
18
18
  DEFAULT_ICON: N,
19
19
  ACTIVE_ICON: O,
@@ -11,8 +11,8 @@ var hn = (V, W, o) => W in V ? yn(V, W, { enumerable: !0, configurable: !0, writ
11
11
  return V;
12
12
  }, dn = (V, W) => Mn(V, Sn(W));
13
13
  import { defineComponent as Cn, ref as Tn, inject as Pn, getCurrentInstance as In, computed as Ln, watchEffect as zn, openBlock as Fn, createElementBlock as Rn, normalizeStyle as gn, unref as $, createElementVNode as an, toDisplayString as Un, renderSlot as On, nextTick as Bn } from "vue";
14
- import { B as Kn, u as Wn, p as bn } from "./BaseComponent-BlCsb-HW.js";
15
- import { k as Vn, I as Xn, J as on, K as Yn, E as Hn, _ as Gn } from "./index-DomNEEyv.js";
14
+ import { B as Kn, u as Wn, p as bn } from "./BaseComponent-CQaDWNO0.js";
15
+ import { k as Vn, J as Xn, K as on, L as Yn, G as Hn, _ as Gn } from "./index-BZpYmpDy.js";
16
16
  import { g as Jn } from "./titleStyle-BT5GlpAb.js";
17
17
  import { A as Zn, D as Qn } from "./ele-aqi-icon-DsYfU5th.js";
18
18
  import { i as qn } from "./install-CJ_UX-RT.js";
@@ -1 +1 @@
1
- "use strict";var Mn=Object.defineProperty,An=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var dn=(X,b,o)=>b in X?Mn(X,b,{enumerable:!0,configurable:!0,writable:!0,value:o}):X[b]=o,mn=(X,b)=>{for(var o in b||(b={}))Cn.call(b,o)&&dn(X,o,b[o]);if(hn)for(var o of hn(b))Tn.call(b,o)&&dn(X,o,b[o]);return X},gn=(X,b)=>An(X,Nn(b));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("vue"),on=require("./BaseComponent-BXAJUoaf.cjs"),Q=require("./index-Cvu9nAQq.cjs"),In=require("./titleStyle-NSnz6cUg.cjs"),pn=require("./ele-aqi-icon-BMm9WgFH.cjs"),Pn=require("./install-DIlB2q7w.cjs"),sn=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Ln=require("./install-C8buXQPI.cjs"),zn=require("./install-CIT6k8Ga.cjs"),Fn=require("./install-z6wShIZI.cjs"),Rn=require("./install-CYwVETsi.cjs"),On=require("./universalTransition-CIN_u2Cu.cjs"),En=require("./echarts-BB8O2KSA.cjs");var k={exports:{}},Un=k.exports,Dn;function Bn(){return Dn||(Dn=1,(function(X,b){(function(f,n){X.exports=n()})(Un,function(){return(function(o){var f={};function n(t){if(f[t])return f[t].exports;var C=f[t]={exports:{},id:t,loaded:!1};return o[t].call(C.exports,C,C.exports,n),C.loaded=!0,C.exports}return n.m=o,n.c=f,n.p="",n(0)})([(function(o,f,n){var t;t=function(C){return{clustering:n(1),regression:n(5),statistics:n(6),histogram:n(15),transform:{regression:n(18),histogram:n(21),clustering:n(22)}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c=n(3),e=n(4),g=c.size,D=c.sumOfColumn,i=c.sum,y=c.zeros,e=n(4),l=e.isNumber,v=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function h(x,S,M){for(var L=y(x.length,2),P=d(S,F(x,M.dimensions)),N=!0,z,I,O,U;N;){N=!1;for(var T=0;T<x.length;T++){z=1/0,I=-1;for(var W=0;W<S;W++)O=p(x[T],P[W],M),O<z&&(z=O,I=W);L[T][0]!==I&&(N=!0),L[T][0]=I,L[T][1]=z}for(var T=0;T<S;T++){U=[];for(var W=0;W<L.length;W++)L[W][0]===T&&U.push(x[W]);P[T]=u(U,M)}}var w={centroids:P,clusterAssigned:L};return w}function u(x,S){for(var M=[],L,P,N=0;N<S.dimensions.length;N++){var z=S.dimensions[N];L=0;for(var I=0;I<x.length;I++)L+=x[I][z];P=L/x.length,M.push(P)}return M}function r(x,S,M){var L=(l(S)?{clusterCount:S,stepByStep:M}:S)||{clusterCount:2},P=L.clusterCount;if(P<2)return;var N=R(x,L),z=N.outputType===a.SINGLE,I=A(x,{dimensions:N.dimensions}),O=y(I.length,2),U,T,W;function w(V,J){O[V][1]=J}function q(V){return O[V][1]}if(z){U=[];var ln=N.outputClusterIndexDimension;T=function(V,J){U[V][ln]=J},W=function(V){return U[V][ln]};for(var H=0;H<I.length;H++)U.push(I[H].slice()),w(H,0),T(H,0)}else T=function(V,J){O[V][0]=J},W=function(V){return O[V][0]};for(var vn=u(I,N),$=[vn],H=0;H<I.length;H++){var Sn=p(I[H],vn,N);w(H,Sn)}var _,nn,rn,j,en,tn,fn=1,G={data:U,centroids:$,isEnd:!1};z||(G.clusterAssment=O);function cn(){if(fn<P){_=1/0;for(var V,J,Z,Y=0;Y<$.length;Y++){nn=[],rn=[];for(var B=0;B<I.length;B++)W(B)===Y?nn.push(I[B]):rn.push(q(B));j=h(nn,2,N),en=D(j.clusterAssigned,1),tn=i(rn),en+tn<_&&(_=tn+en,V=Y,J=j.centroids,Z=j.clusterAssigned)}for(var B=0;B<Z.length;B++)Z[B][0]===0?Z[B][0]=V:Z[B][0]===1&&(Z[B][0]=$.length);$[V]=J[0],$.push(J[1]);for(var B=0,Y=0;B<I.length&&Y<Z.length;B++)W(B)===V&&(T(B,Z[Y][0]),w(B,Z[Y++][1]));var an=[];if(!z){for(var B=0;B<$.length;B++){an[B]=[];for(var Y=0;Y<I.length;Y++)W(Y)===B&&an[B].push(I[Y])}G.pointsInCluster=an}fn++}else G.isEnd=!0}if(L.stepByStep)G.next=function(){return cn(),s(G,N),G};else for(;cn(),!G.isEnd;);return s(G,N),G}function s(x,S){var M=S.outputCentroidDimensions;if(!(S.outputType!==a.SINGLE||M==null))for(var L=x.data,P=x.centroids,N=0;N<L.length;N++)for(var z=L[N],I=z[S.outputClusterIndexDimension],O=P[I],U=Math.min(O.length,M.length),T=0;T<U;T++)z[M[T]]=O[T]}function d(x,S){for(var M=y(x,S.length),L=0;L<S.length;L++)for(var P=S[L],N=0;N<x;N++)M[N][L]=P.min+P.span*Math.random();return M}function p(x,S,M){for(var L=0,P=M.dimensions,N=M.rawExtents,z=0;z<P.length;z++){var I=N[z].span;if(I){var O=P[z],U=(x[O]-S[z])/I;L+=v(U,2)}}return L}function R(x,S){var M=g(x);if(M.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=M[1],P=[],N=0;N<L;N++)P.push(N);var z=E(S.dimensions,P),I=S.outputType||a.MULTIPLE,O=S.outputClusterIndexDimension;if(I===a.SINGLE&&!e.isNumber(O))throw new Error("outputClusterIndexDimension is required as a number.");var U=F(x,z);return{dimensions:z,rawExtents:U,outputType:I,outputClusterIndexDimension:O,outputCentroidDimensions:S.outputCentroidDimensions}}function F(x,S){for(var M=[],L=S.length,P=0;P<L;P++)M.push({min:1/0,max:-1/0});for(var P=0;P<x.length;P++)for(var N=x[P],z=0;z<L;z++){var I=M[z],O=N[S[z]];I.min>O&&(I.min=O),I.max<O&&(I.max=O)}for(var P=0;P<L;P++)M[P].span=M[P].max-M[P].min;return M}return{OutputType:a,hierarchicalKMeans:r}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=m.isArray,E=m.size,c=n(4),g=c.isNumber;function D(e,l){return typeof e=="number"?[e]:e==null?l:e}function i(e,l){l=l||{};var v=l.dimensions,a={};if(v!=null)for(var h=0;h<v.length;h++)a[v[h]]=!0;var u=l.toOneDimensionArray?v?v[0]:0:null;function r(x){return!v||a.hasOwnProperty(x)}if(!A(e))throw new Error("Invalid data type, you should input an array");var s=[],d=E(e);if(d.length===1)for(var h=0;h<d[0];h++){var p=e[h];g(p)&&s.push(p)}else if(d.length===2)for(var h=0;h<d[0];h++){for(var R=!0,p=e[h],F=0;F<d[1];F++)r(F)&&!g(p[F])&&(R=!1);R&&s.push(u!=null?p[u]:p)}return s}function y(e){var l=e.toString(),v=l.indexOf(".");return v<0?0:l.length-1-v}return{normalizeDimensions:D,dataPreprocess:i,getPrecision:y}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=Object.prototype.toString,A=Array.prototype,E=A.map;function c(a){for(var h=[];g(a);)h.push(a.length),a=a[0];return h}function g(a){return m.call(a)==="[object Array]"}function D(a,h){for(var u=[],r=0;r<a;r++){u[r]=[];for(var s=0;s<h;s++)u[r][s]=0}return u}function i(a){for(var h=0,u=0;u<a.length;u++)h+=a[u];return h}function y(a,h){for(var u=0,r=0;r<a.length;r++)u+=a[r][h];return u}function e(a,h){return a>h?1:a<h?-1:a===h?0:NaN}function l(a,h,u,r){for(u==null&&(u=0),r==null&&(r=a.length);u<r;){var s=Math.floor((u+r)/2),d=e(a[s],h);if(d>0)r=s;else if(d<0)u=s+1;else return s+1}return u}function v(a,h,u){if(a&&h){if(a.map&&a.map===E)return a.map(h,u);for(var r=[],s=0,d=a.length;s<d;s++)r.push(h.call(u,a[s],s,a));return r}}return{size:c,isArray:g,zeros:D,sum:i,sumOfColumn:y,ascending:e,bisect:l,map:v}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function A(c){return isFinite(c)&&c===Math.round(c)}function E(c){if(c===0)return 0;var g=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,g)>=10&&g++,g}return{isNumber:m,isInteger:A,quantityExponent:E}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c={linear:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=i.length,s=0;s<r;s++){var d=i[s];v+=d[e],a+=d[l],h+=d[e]*d[l],u+=d[e]*d[e]}for(var p=(r*h-v*a)/(r*u-v*v),R=a/r-p*v/r,F=[],x=0;x<i.length;x++){var d=i[x],S=d.slice();S[e]=d[e],S[l]=p*d[e]+R,F.push(S)}var M="y = "+Math.round(p*100)/100+"x + "+Math.round(R*100)/100;return{points:F,parameter:{gradient:p,intercept:R},expression:M}},linearThroughOrigin:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0;h<i.length;h++){var u=i[h];v+=u[e]*u[e],a+=u[e]*u[l]}for(var r=a/v,s=[],d=0;d<i.length;d++){var u=i[d],p=u.slice();p[e]=u[e],p[l]=u[e]*r,s.push(p)}var R="y = "+Math.round(r*100)/100+"x";return{points:s,parameter:{gradient:r},expression:R}},exponential:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0,s=0,d=0;d<i.length;d++){var p=i[d];v+=p[e],a+=p[l],s+=p[e]*p[l],h+=p[e]*p[e]*p[l],u+=p[l]*Math.log(p[l]),r+=p[e]*p[l]*Math.log(p[l])}for(var R=a*h-s*s,F=Math.pow(Math.E,(h*u-s*r)/R),x=(a*r-s*u)/R,S=[],M=0;M<i.length;M++){var p=i[M],L=p.slice();L[e]=p[e],L[l]=F*Math.pow(Math.E,x*p[e]),S.push(L)}var P="y = "+Math.round(F*100)/100+"e^("+Math.round(x*100)/100+"x)";return{points:S,parameter:{coefficient:F,index:x},expression:P}},logarithmic:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0;r<i.length;r++){var s=i[r];v+=Math.log(s[e]),a+=s[l]*Math.log(s[e]),h+=s[l],u+=Math.pow(Math.log(s[e]),2)}for(var d=(r*a-h*v)/(r*u-v*v),p=(h-d*v)/r,R=[],F=0;F<i.length;F++){var s=i[F],x=s.slice();x[e]=s[e],x[l]=d*Math.log(s[e])+p,R.push(x)}var S="y = "+Math.round(p*100)/100+" + "+Math.round(d*100)/100+"ln(x)";return{points:R,parameter:{gradient:d,intercept:p},expression:S}},polynomial:function(i,y){var e=y.dimensions[0],l=y.dimensions[1],v=y.order;v==null&&(v=2);for(var a=[],h=[],u=v+1,r=0;r<u;r++){for(var s=0,d=0;d<i.length;d++){var p=i[d];s+=p[l]*Math.pow(p[e],r)}h.push(s);for(var R=[],F=0;F<u;F++){for(var x=0,S=0;S<i.length;S++)x+=Math.pow(i[S][e],r+F);R.push(x)}a.push(R)}a.push(h);for(var M=g(a,u),L=[],r=0;r<i.length;r++){for(var P=0,p=i[r],d=0;d<M.length;d++)P+=M[d]*Math.pow(p[e],d);var N=p.slice();N[e]=p[e],N[l]=P,L.push(N)}for(var z="y = ",r=M.length-1;r>=0;r--)r>1?z+=Math.round(M[r]*Math.pow(10,r+1))/Math.pow(10,r+1)+"x^"+r+" + ":r===1?z+=Math.round(M[r]*100)/100+"x + ":z+=Math.round(M[r]*100)/100;return{points:L,parameter:M,expression:z}}};function g(i,y){for(var e=0;e<i.length-1;e++){for(var l=e,v=e+1;v<i.length-1;v++)Math.abs(i[e][v])>Math.abs(i[e][l])&&(l=v);for(var a=e;a<i.length;a++){var h=i[a][e];i[a][e]=i[a][l],i[a][l]=h}for(var u=e+1;u<i.length-1;u++)for(var r=i.length-1;r>=e;r--)i[r][u]-=i[r][e]/i[e][e]*i[e][u]}for(var s=new Array(y),d=i.length-1,v=i.length-2;v>=0;v--){for(var h=0,e=v+1;e<i.length-1;e++)h+=i[e][v]*s[e];s[v]=(i[d][v]-h)/i[v][v]}return s}var D=function(i,y,e){var l=typeof e=="number"?{order:e}:e||{},v=E(l.dimensions,[0,1]),a=A(y,{dimensions:v}),h=c[i](a,{order:l.order,dimensions:v}),u=v[0];return h.points.sort(function(r,s){return r[u]-s[u]}),h};return D}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m={};return m.max=n(7),m.deviation=n(8),m.mean=n(10),m.median=n(12),m.min=n(14),m.quantile=n(13),m.sampleVariance=n(9),m.sum=n(11),m}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=-1/0,D=0;D<c.length;D++)A(c[D])&&c[D]>g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(9);return function(A){var E=m(A);return E&&Math.sqrt(E)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber,E=n(10);function c(g){var D=g.length;if(!D||D<2)return 0;if(g.length>=2){for(var i=E(g),y=0,e,l=0;l<g.length;l++)A(g[l])&&(e=g[l]-i,y+=e*e);return y/(g.length-1)}}return c}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(11);function A(E){var c=E.length;return c?m(E)/E.length:0}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){var g=c.length;if(!g)return 0;for(var D=0,i=0;i<g;i++)A(c[i])&&(D+=c[i]);return D}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(13);function A(E){return m(E,.5)}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){return function(m,A){var E=m.length;if(!E)return 0;if(A<=0||E<2)return m[0];if(A>=1)return m[E-1];var c=(E-1)*A,g=Math.floor(c),D=m[g],i=m[g+1];return D+(i-D)*(c-g)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=1/0,D=0;D<c.length;D++)A(c[D])&&c[D]<g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(7),A=n(14),E=n(13),c=n(8),g=n(2),D=g.dataPreprocess,i=g.normalizeDimensions,y=n(3),e=y.ascending,l=y.map,v=n(16),a=y.bisect,h=n(17);function u(W,d){for(var p=typeof d=="string"?{method:d}:d||{},R=p.method==null?r.squareRoot:r[p.method],F=i(p.dimensions),x=D(W,{dimensions:F,toOneDimensionArray:!0}),S=m(x),M=A(x),L=R(x,M,S),P=h(M,S,L),N=P.step,z=P.toFixedPrecision,I=v(+(Math.ceil(M/N)*N).toFixed(z),+(Math.floor(S/N)*N).toFixed(z),N,z),O=I.length,U=new Array(O+1),T=0;T<=O;T++)U[T]={},U[T].sample=[],U[T].x0=T>0?I[T-1]:I[T]-M===N?M:I[T]-N,U[T].x1=T<O?I[T]:S-I[T-1]===N?S:I[T-1]+N;for(var T=0;T<x.length;T++)M<=x[T]&&x[T]<=S&&U[a(I,x[T],0,O)].sample.push(x[T]);var W=l(U,function(q){return[+((q.x0+q.x1)/2).toFixed(z),q.sample.length,q.x0,q.x1,q.x0+" - "+q.x1]}),w=l(U,function(q){return[q.x0,q.x1,q.sample.length]});return{bins:U,data:W,customData:w}}var r={squareRoot:function(s){var d=Math.ceil(Math.sqrt(s.length));return d>50?50:d},scott:function(s,d,p){return Math.ceil((p-d)/(3.5*c(s)*Math.pow(s.length,-1/3)))},freedmanDiaconis:function(s,d,p){return s.sort(e),Math.ceil((p-d)/(2*(E(s,.75)-E(s,.25))*Math.pow(s.length,-1/3)))},sturges:function(s){return Math.ceil(Math.log(s.length)/Math.LN2)+1}};return u}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.getPrecision;return function(E,c,g,D){var i=arguments.length;i<2?(c=E,E=0,g=1):i<3?g=1:i<4?(g=+g,D=A(g)):D=+D;for(var y=Math.ceil(((c-E)/g).toFixed(D)),e=new Array(y+1),l=0;l<y+1;l++)e[l]=+(E+l*g).toFixed(D);return e}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4);return function(A,E,c){var g=Math.abs(E-A)/c,D=m.quantityExponent(g),i=Math.pow(10,D),y=g/i;y>=Math.sqrt(50)?i*=10:y>=Math.sqrt(10)?i*=5:y>=Math.sqrt(2)&&(i*=2);var e=D<0?-D:0,l=+(E>=A?i:-i).toFixed(e);return{step:l,toFixedPrecision:e}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(5),A=n(19),E=2;return{type:"ecStat:regression",transform:function(g){var D=g.upstream,i=g.config||{},y=i.method||"linear",e=m(y,D.cloneRawData(),{order:i.order,dimensions:A.normalizeExistingDimensions(g,i.dimensions)}),l=e.points,v=i.formulaOn;v==null&&(v="end");var a;if(v!=="none"){for(var h=0;h<l.length;h++)l[h][E]=v==="start"&&h===0||v==="all"||v==="end"&&h===l.length-1?e.expression:"";a=D.cloneAllDimensionInfo(),a[E]={}}return[{dimensions:a,data:l}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=n(4),E=n(20);function c(D,i){if(i==null)return;var y=D.upstream;if(m.isArray(i)){for(var e=[],l=0;l<i.length;l++){var v=y.getDimensionInfo(i[l]);a(v,i[l]),e[l]=v.index}return e}else{var v=y.getDimensionInfo(i);return a(v,i),v.index}function a(h,u){if(!h)throw new Error("Can not find dimension by "+u)}}function g(D){if(m.isArray(D)){for(var i=[],y=[],e=0;e<D.length;e++){var l=v(D[e]);i.push(l.name),y.push(l.index)}return{name:i,index:y}}else if(D!=null)return v(D);function v(a){if(A.isNumber(a))return{index:a};if(E.isObject(a)&&A.isNumber(a.index))return a;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:g}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(E,c){if(Object.assign)Object.assign(E,c);else for(var g in c)c.hasOwnProperty(g)&&(E[g]=c[g]);return E}function A(E){const c=typeof E;return c==="function"||!!E&&c==="object"}return{extend:m,isObject:A}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(15),A=n(19);return{type:"ecStat:histogram",transform:function(c){var g=c.upstream,D=c.config||{},i=m(g.cloneRawData(),{method:D.method,dimensions:A.normalizeExistingDimensions(c,D.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:i.data},{data:i.customData}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(1),A=n(4),E=n(19),c=A.isNumber;return{type:"ecStat:clustering",transform:function(D){var i=D.upstream,y=D.config||{},e=y.clusterCount;if(!c(e)||e<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(e===1)return[{},{data:[]}];var l=E.normalizeNewDimensions(y.outputClusterIndexDimension),v=E.normalizeNewDimensions(y.outputCentroidDimensions);if(l==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var a=m.hierarchicalKMeans(i.cloneRawData(),{clusterCount:e,stepByStep:!1,dimensions:E.normalizeExistingDimensions(D,y.dimensions),outputType:m.OutputType.SINGLE,outputClusterIndexDimension:l.index,outputCentroidDimensions:(v||{}).index}),h=i.cloneAllDimensionInfo(),u=[],r=0;r<h.length;r++){var s=h[r];u.push(s.name)}if(u[l.index]=l.name,v)for(var r=0;r<v.index.length;r++)v.name[r]!=null&&(u[v.index[r]]=v.name[r]);return[{dimensions:u,data:a.data},{data:a.centroids}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)})])})})(k)),k.exports}var un,xn;function Kn(){return xn||(xn=1,un=Bn()),un}var Wn=Kn();const bn=Q.getDefaultExportFromCjs(Wn),Vn={DEFAULT_ICON:pn.DEFAULT_ICON,ACTIVE_ICON:pn.ACTIVE_ICON,NAME_CN:"风向图",NAME_EN:"Wind Line",ORDER:5,PLATFORM:["pc","screen","mobile"]},Xn={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},yn=[{name:"参数一",项目编号:"",object_id:""}],qn=["name","项目编号"],Yn=["index","deviation","stability","balance","increment","risk"],Hn=1,Gn={useAlias:!1,null:{type:"0",value:""},multiObject:!1,hideMultiObject:!0,source:"index"},Jn={DEFAULT:Vn,OPTIONS:Xn,DATA:yn,PARAMS:qn,SOURCE:Yn,ITEMS:Hn,COMMON:Gn},Zn=K.defineComponent(gn(mn({},Jn),{__name:"windLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(X){sn.use([sn.install,Ln.install,zn.install,Fn.install,Rn.install,Pn.install,sn.install$1,On.installUniversalTransition]);const b=K.ref(K.inject("session",null)),{proxy:o}=K.getCurrentInstance(),f="windlin_"+Math.random().toString(16).substring(4,12);let n=null,t=null;const C=X;let m=[];class A extends on.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:yn,C.mode==="edit"&&i(),K.nextTick(()=>{let r=document.querySelector("#"+f);r&&(n||(n=En.init(r),t=Q.elementResizeDetectorMaker({strategy:"scroll"}),t.listenTo(r,()=>n==null?void 0:n.resize())),n.setOption(D(),!0))})}onPreview(){a.preview()}cleanup(){t&&t.uninstall(document.querySelector("#"+f)),n&&n.clear(),n&&En.dispose(n),n=null,a.unregister()}}const E=new A(C,"windLin");E.setupLifecycle();const c=E.getStyle(),g=K.computed(()=>In.generateTitleStyle(C.conf.options)),D=()=>{var d,p,R,F;const{data:u,options:r}=C.conf;let s=u[0]||{};return{tooltip:{trigger:"axis",formatter:function(x){return[x[0].value[0],`${s==null?void 0:s.name}: `+x[0].value[1],`${o.$t("setting.gradient")}: `+x[0].value[2]].join("<br>")}},grid:{top:((d=r==null?void 0:r.top)==null?void 0:d.value)||30,bottom:((p=r==null?void 0:r.bottom)==null?void 0:p.value)||40,left:((R=r==null?void 0:r.left)==null?void 0:R.value)||20,right:((F=r==null?void 0:r.right)==null?void 0:F.value)||20,containLabel:!0},xAxis:{type:"time",splitLine:{lineStyle:{color:"#ddd"}}},yAxis:[{axisLine:{lineStyle:{color:"#666"}},splitNumber:4}],visualMap:{type:"piecewise",show:!1,orient:"horizontal",left:"center",bottom:10,pieces:[{lt:0,color:"#18BF12"},{gte:0,lte:0,color:"#f4e9a3"},{gte:0,color:"#D33C3E"}],seriesIndex:1,dimension:2},dataZoom:[{type:"slider",xAxisIndex:0,start:80,end:100,height:15,bottom:15},{type:"inside"}],series:[{type:"line",yAxisIndex:0,showSymbol:!1,emphasis:{scale:!1},symbolSize:10,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:c.value.lineColor},{offset:1,color:c.value.lineColor+"00"}]}},lineStyle:{color:c.value.lineColor},itemStyle:{color:c.value.lineColor},encode:{x:0},data:m,z:2,smooth:c.value.isSmooth},{type:"custom",renderItem:e,data:m,z:10}]}},i=()=>{var R,F;const u=Q.hasDataSource(C.conf);m=[];let r=[];const{options:s}=C.conf;let d=(F=(R=s==null?void 0:s.points)==null?void 0:R.value)!=null?F:30,p=Q.getxAxisDataTime(d,C.mode,u);if(!p.length){m=[];return}for(let x=0;x<d;x++){let S=Math.floor(Math.random()*200);r.push([p[x],S])}m=y(r)},y=u=>u.map((r,s)=>{var d;if(s===u.length-1)r[2]=0;else{let p=bn.regression("linear",[[s+1,r[1]],[s+2,u[s+1][1]]],0);r[2]=Math.atan(((d=p.parameter)==null?void 0:d.gradient)||0).toFixed(4)}return r}),e=(u,r)=>{const s=r.coord([r.value(0),0]),d=16;return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-d/2,y:-d/2,width:d,height:d},rotation:r.value(2),position:s,style:r.style({stroke:"#555",lineWidth:1})}},l=u=>{if(!Q.hasDataSource(C.conf))return;const{data:r}=C.conf;let s=Q.handleNullData(u,C,"history");if(!s.history.length)return;let d=s.history[0],p=[];d.forEach(R=>{let F=R[r[0].fv]||0;p.push([R.time,F])}),m=y(p),n==null||n.setOption(D())},v=u=>{Q.hasDataSource(C.conf)},a={preview:()=>on.preview(C,b.value,l,v,"windLin"),unregister:()=>on.unregister(C,b.value)};K.watchEffect(()=>{C.conf.socketData&&v(C.conf.socketData)});const h=C.conf;return(u,r)=>(K.openBlock(),K.createElementBlock("div",{class:"mix-component",style:K.normalizeStyle({background:K.unref(c).bgColor,borderRadius:`${K.unref(c).radiusSize}px`})},[K.createElementVNode("div",{class:"mix-title",style:K.normalizeStyle(g.value)},K.toDisplayString(K.unref(h).caption||K.unref(h).name),5),K.createElementVNode("div",{class:"mix-body"},[K.createElementVNode("div",{class:"w-full h-full",id:f})]),K.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),Qn=Q._export_sfc(Zn,[["__scopeId","data-v-4e09b728"]]);exports.default=Qn;
1
+ "use strict";var Mn=Object.defineProperty,An=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var hn=Object.getOwnPropertySymbols;var Cn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var dn=(X,b,o)=>b in X?Mn(X,b,{enumerable:!0,configurable:!0,writable:!0,value:o}):X[b]=o,mn=(X,b)=>{for(var o in b||(b={}))Cn.call(b,o)&&dn(X,o,b[o]);if(hn)for(var o of hn(b))Tn.call(b,o)&&dn(X,o,b[o]);return X},gn=(X,b)=>An(X,Nn(b));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("vue"),on=require("./BaseComponent-BmhMoM4H.cjs"),Q=require("./index-77aUdspY.cjs"),In=require("./titleStyle-NSnz6cUg.cjs"),pn=require("./ele-aqi-icon-BMm9WgFH.cjs"),Pn=require("./install-DIlB2q7w.cjs"),sn=require("./installCanvasRenderer-CyhM1Qpl.cjs"),Ln=require("./install-C8buXQPI.cjs"),zn=require("./install-CIT6k8Ga.cjs"),Fn=require("./install-z6wShIZI.cjs"),Rn=require("./install-CYwVETsi.cjs"),On=require("./universalTransition-CIN_u2Cu.cjs"),En=require("./echarts-BB8O2KSA.cjs");var k={exports:{}},Un=k.exports,Dn;function Bn(){return Dn||(Dn=1,(function(X,b){(function(f,n){X.exports=n()})(Un,function(){return(function(o){var f={};function n(t){if(f[t])return f[t].exports;var C=f[t]={exports:{},id:t,loaded:!1};return o[t].call(C.exports,C,C.exports,n),C.loaded=!0,C.exports}return n.m=o,n.c=f,n.p="",n(0)})([(function(o,f,n){var t;t=function(C){return{clustering:n(1),regression:n(5),statistics:n(6),histogram:n(15),transform:{regression:n(18),histogram:n(21),clustering:n(22)}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c=n(3),e=n(4),g=c.size,D=c.sumOfColumn,i=c.sum,y=c.zeros,e=n(4),l=e.isNumber,v=Math.pow,a={SINGLE:"single",MULTIPLE:"multiple"};function h(x,S,M){for(var L=y(x.length,2),P=d(S,F(x,M.dimensions)),N=!0,z,I,O,U;N;){N=!1;for(var T=0;T<x.length;T++){z=1/0,I=-1;for(var W=0;W<S;W++)O=p(x[T],P[W],M),O<z&&(z=O,I=W);L[T][0]!==I&&(N=!0),L[T][0]=I,L[T][1]=z}for(var T=0;T<S;T++){U=[];for(var W=0;W<L.length;W++)L[W][0]===T&&U.push(x[W]);P[T]=u(U,M)}}var w={centroids:P,clusterAssigned:L};return w}function u(x,S){for(var M=[],L,P,N=0;N<S.dimensions.length;N++){var z=S.dimensions[N];L=0;for(var I=0;I<x.length;I++)L+=x[I][z];P=L/x.length,M.push(P)}return M}function r(x,S,M){var L=(l(S)?{clusterCount:S,stepByStep:M}:S)||{clusterCount:2},P=L.clusterCount;if(P<2)return;var N=R(x,L),z=N.outputType===a.SINGLE,I=A(x,{dimensions:N.dimensions}),O=y(I.length,2),U,T,W;function w(V,J){O[V][1]=J}function q(V){return O[V][1]}if(z){U=[];var ln=N.outputClusterIndexDimension;T=function(V,J){U[V][ln]=J},W=function(V){return U[V][ln]};for(var H=0;H<I.length;H++)U.push(I[H].slice()),w(H,0),T(H,0)}else T=function(V,J){O[V][0]=J},W=function(V){return O[V][0]};for(var vn=u(I,N),$=[vn],H=0;H<I.length;H++){var Sn=p(I[H],vn,N);w(H,Sn)}var _,nn,rn,j,en,tn,fn=1,G={data:U,centroids:$,isEnd:!1};z||(G.clusterAssment=O);function cn(){if(fn<P){_=1/0;for(var V,J,Z,Y=0;Y<$.length;Y++){nn=[],rn=[];for(var B=0;B<I.length;B++)W(B)===Y?nn.push(I[B]):rn.push(q(B));j=h(nn,2,N),en=D(j.clusterAssigned,1),tn=i(rn),en+tn<_&&(_=tn+en,V=Y,J=j.centroids,Z=j.clusterAssigned)}for(var B=0;B<Z.length;B++)Z[B][0]===0?Z[B][0]=V:Z[B][0]===1&&(Z[B][0]=$.length);$[V]=J[0],$.push(J[1]);for(var B=0,Y=0;B<I.length&&Y<Z.length;B++)W(B)===V&&(T(B,Z[Y][0]),w(B,Z[Y++][1]));var an=[];if(!z){for(var B=0;B<$.length;B++){an[B]=[];for(var Y=0;Y<I.length;Y++)W(Y)===B&&an[B].push(I[Y])}G.pointsInCluster=an}fn++}else G.isEnd=!0}if(L.stepByStep)G.next=function(){return cn(),s(G,N),G};else for(;cn(),!G.isEnd;);return s(G,N),G}function s(x,S){var M=S.outputCentroidDimensions;if(!(S.outputType!==a.SINGLE||M==null))for(var L=x.data,P=x.centroids,N=0;N<L.length;N++)for(var z=L[N],I=z[S.outputClusterIndexDimension],O=P[I],U=Math.min(O.length,M.length),T=0;T<U;T++)z[M[T]]=O[T]}function d(x,S){for(var M=y(x,S.length),L=0;L<S.length;L++)for(var P=S[L],N=0;N<x;N++)M[N][L]=P.min+P.span*Math.random();return M}function p(x,S,M){for(var L=0,P=M.dimensions,N=M.rawExtents,z=0;z<P.length;z++){var I=N[z].span;if(I){var O=P[z],U=(x[O]-S[z])/I;L+=v(U,2)}}return L}function R(x,S){var M=g(x);if(M.length<1)throw new Error("The input data of clustering should be two-dimension array.");for(var L=M[1],P=[],N=0;N<L;N++)P.push(N);var z=E(S.dimensions,P),I=S.outputType||a.MULTIPLE,O=S.outputClusterIndexDimension;if(I===a.SINGLE&&!e.isNumber(O))throw new Error("outputClusterIndexDimension is required as a number.");var U=F(x,z);return{dimensions:z,rawExtents:U,outputType:I,outputClusterIndexDimension:O,outputCentroidDimensions:S.outputCentroidDimensions}}function F(x,S){for(var M=[],L=S.length,P=0;P<L;P++)M.push({min:1/0,max:-1/0});for(var P=0;P<x.length;P++)for(var N=x[P],z=0;z<L;z++){var I=M[z],O=N[S[z]];I.min>O&&(I.min=O),I.max<O&&(I.max=O)}for(var P=0;P<L;P++)M[P].span=M[P].max-M[P].min;return M}return{OutputType:a,hierarchicalKMeans:r}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=m.isArray,E=m.size,c=n(4),g=c.isNumber;function D(e,l){return typeof e=="number"?[e]:e==null?l:e}function i(e,l){l=l||{};var v=l.dimensions,a={};if(v!=null)for(var h=0;h<v.length;h++)a[v[h]]=!0;var u=l.toOneDimensionArray?v?v[0]:0:null;function r(x){return!v||a.hasOwnProperty(x)}if(!A(e))throw new Error("Invalid data type, you should input an array");var s=[],d=E(e);if(d.length===1)for(var h=0;h<d[0];h++){var p=e[h];g(p)&&s.push(p)}else if(d.length===2)for(var h=0;h<d[0];h++){for(var R=!0,p=e[h],F=0;F<d[1];F++)r(F)&&!g(p[F])&&(R=!1);R&&s.push(u!=null?p[u]:p)}return s}function y(e){var l=e.toString(),v=l.indexOf(".");return v<0?0:l.length-1-v}return{normalizeDimensions:D,dataPreprocess:i,getPrecision:y}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=Object.prototype.toString,A=Array.prototype,E=A.map;function c(a){for(var h=[];g(a);)h.push(a.length),a=a[0];return h}function g(a){return m.call(a)==="[object Array]"}function D(a,h){for(var u=[],r=0;r<a;r++){u[r]=[];for(var s=0;s<h;s++)u[r][s]=0}return u}function i(a){for(var h=0,u=0;u<a.length;u++)h+=a[u];return h}function y(a,h){for(var u=0,r=0;r<a.length;r++)u+=a[r][h];return u}function e(a,h){return a>h?1:a<h?-1:a===h?0:NaN}function l(a,h,u,r){for(u==null&&(u=0),r==null&&(r=a.length);u<r;){var s=Math.floor((u+r)/2),d=e(a[s],h);if(d>0)r=s;else if(d<0)u=s+1;else return s+1}return u}function v(a,h,u){if(a&&h){if(a.map&&a.map===E)return a.map(h,u);for(var r=[],s=0,d=a.length;s<d;s++)r.push(h.call(u,a[s],s,a));return r}}return{size:c,isArray:g,zeros:D,sum:i,sumOfColumn:y,ascending:e,bisect:l,map:v}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(c){return c=c===null?NaN:+c,typeof c=="number"&&!isNaN(c)}function A(c){return isFinite(c)&&c===Math.round(c)}function E(c){if(c===0)return 0;var g=Math.floor(Math.log(c)/Math.LN10);return c/Math.pow(10,g)>=10&&g++,g}return{isNumber:m,isInteger:A,quantityExponent:E}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.dataPreprocess,E=m.normalizeDimensions,c={linear:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=i.length,s=0;s<r;s++){var d=i[s];v+=d[e],a+=d[l],h+=d[e]*d[l],u+=d[e]*d[e]}for(var p=(r*h-v*a)/(r*u-v*v),R=a/r-p*v/r,F=[],x=0;x<i.length;x++){var d=i[x],S=d.slice();S[e]=d[e],S[l]=p*d[e]+R,F.push(S)}var M="y = "+Math.round(p*100)/100+"x + "+Math.round(R*100)/100;return{points:F,parameter:{gradient:p,intercept:R},expression:M}},linearThroughOrigin:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0;h<i.length;h++){var u=i[h];v+=u[e]*u[e],a+=u[e]*u[l]}for(var r=a/v,s=[],d=0;d<i.length;d++){var u=i[d],p=u.slice();p[e]=u[e],p[l]=u[e]*r,s.push(p)}var R="y = "+Math.round(r*100)/100+"x";return{points:s,parameter:{gradient:r},expression:R}},exponential:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0,s=0,d=0;d<i.length;d++){var p=i[d];v+=p[e],a+=p[l],s+=p[e]*p[l],h+=p[e]*p[e]*p[l],u+=p[l]*Math.log(p[l]),r+=p[e]*p[l]*Math.log(p[l])}for(var R=a*h-s*s,F=Math.pow(Math.E,(h*u-s*r)/R),x=(a*r-s*u)/R,S=[],M=0;M<i.length;M++){var p=i[M],L=p.slice();L[e]=p[e],L[l]=F*Math.pow(Math.E,x*p[e]),S.push(L)}var P="y = "+Math.round(F*100)/100+"e^("+Math.round(x*100)/100+"x)";return{points:S,parameter:{coefficient:F,index:x},expression:P}},logarithmic:function(i,y){for(var e=y.dimensions[0],l=y.dimensions[1],v=0,a=0,h=0,u=0,r=0;r<i.length;r++){var s=i[r];v+=Math.log(s[e]),a+=s[l]*Math.log(s[e]),h+=s[l],u+=Math.pow(Math.log(s[e]),2)}for(var d=(r*a-h*v)/(r*u-v*v),p=(h-d*v)/r,R=[],F=0;F<i.length;F++){var s=i[F],x=s.slice();x[e]=s[e],x[l]=d*Math.log(s[e])+p,R.push(x)}var S="y = "+Math.round(p*100)/100+" + "+Math.round(d*100)/100+"ln(x)";return{points:R,parameter:{gradient:d,intercept:p},expression:S}},polynomial:function(i,y){var e=y.dimensions[0],l=y.dimensions[1],v=y.order;v==null&&(v=2);for(var a=[],h=[],u=v+1,r=0;r<u;r++){for(var s=0,d=0;d<i.length;d++){var p=i[d];s+=p[l]*Math.pow(p[e],r)}h.push(s);for(var R=[],F=0;F<u;F++){for(var x=0,S=0;S<i.length;S++)x+=Math.pow(i[S][e],r+F);R.push(x)}a.push(R)}a.push(h);for(var M=g(a,u),L=[],r=0;r<i.length;r++){for(var P=0,p=i[r],d=0;d<M.length;d++)P+=M[d]*Math.pow(p[e],d);var N=p.slice();N[e]=p[e],N[l]=P,L.push(N)}for(var z="y = ",r=M.length-1;r>=0;r--)r>1?z+=Math.round(M[r]*Math.pow(10,r+1))/Math.pow(10,r+1)+"x^"+r+" + ":r===1?z+=Math.round(M[r]*100)/100+"x + ":z+=Math.round(M[r]*100)/100;return{points:L,parameter:M,expression:z}}};function g(i,y){for(var e=0;e<i.length-1;e++){for(var l=e,v=e+1;v<i.length-1;v++)Math.abs(i[e][v])>Math.abs(i[e][l])&&(l=v);for(var a=e;a<i.length;a++){var h=i[a][e];i[a][e]=i[a][l],i[a][l]=h}for(var u=e+1;u<i.length-1;u++)for(var r=i.length-1;r>=e;r--)i[r][u]-=i[r][e]/i[e][e]*i[e][u]}for(var s=new Array(y),d=i.length-1,v=i.length-2;v>=0;v--){for(var h=0,e=v+1;e<i.length-1;e++)h+=i[e][v]*s[e];s[v]=(i[d][v]-h)/i[v][v]}return s}var D=function(i,y,e){var l=typeof e=="number"?{order:e}:e||{},v=E(l.dimensions,[0,1]),a=A(y,{dimensions:v}),h=c[i](a,{order:l.order,dimensions:v}),u=v[0];return h.points.sort(function(r,s){return r[u]-s[u]}),h};return D}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m={};return m.max=n(7),m.deviation=n(8),m.mean=n(10),m.median=n(12),m.min=n(14),m.quantile=n(13),m.sampleVariance=n(9),m.sum=n(11),m}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=-1/0,D=0;D<c.length;D++)A(c[D])&&c[D]>g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(9);return function(A){var E=m(A);return E&&Math.sqrt(E)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber,E=n(10);function c(g){var D=g.length;if(!D||D<2)return 0;if(g.length>=2){for(var i=E(g),y=0,e,l=0;l<g.length;l++)A(g[l])&&(e=g[l]-i,y+=e*e);return y/(g.length-1)}}return c}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(11);function A(E){var c=E.length;return c?m(E)/E.length:0}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){var g=c.length;if(!g)return 0;for(var D=0,i=0;i<g;i++)A(c[i])&&(D+=c[i]);return D}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(13);function A(E){return m(E,.5)}return A}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){return function(m,A){var E=m.length;if(!E)return 0;if(A<=0||E<2)return m[0];if(A>=1)return m[E-1];var c=(E-1)*A,g=Math.floor(c),D=m[g],i=m[g+1];return D+(i-D)*(c-g)}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4),A=m.isNumber;function E(c){for(var g=1/0,D=0;D<c.length;D++)A(c[D])&&c[D]<g&&(g=c[D]);return g}return E}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(7),A=n(14),E=n(13),c=n(8),g=n(2),D=g.dataPreprocess,i=g.normalizeDimensions,y=n(3),e=y.ascending,l=y.map,v=n(16),a=y.bisect,h=n(17);function u(W,d){for(var p=typeof d=="string"?{method:d}:d||{},R=p.method==null?r.squareRoot:r[p.method],F=i(p.dimensions),x=D(W,{dimensions:F,toOneDimensionArray:!0}),S=m(x),M=A(x),L=R(x,M,S),P=h(M,S,L),N=P.step,z=P.toFixedPrecision,I=v(+(Math.ceil(M/N)*N).toFixed(z),+(Math.floor(S/N)*N).toFixed(z),N,z),O=I.length,U=new Array(O+1),T=0;T<=O;T++)U[T]={},U[T].sample=[],U[T].x0=T>0?I[T-1]:I[T]-M===N?M:I[T]-N,U[T].x1=T<O?I[T]:S-I[T-1]===N?S:I[T-1]+N;for(var T=0;T<x.length;T++)M<=x[T]&&x[T]<=S&&U[a(I,x[T],0,O)].sample.push(x[T]);var W=l(U,function(q){return[+((q.x0+q.x1)/2).toFixed(z),q.sample.length,q.x0,q.x1,q.x0+" - "+q.x1]}),w=l(U,function(q){return[q.x0,q.x1,q.sample.length]});return{bins:U,data:W,customData:w}}var r={squareRoot:function(s){var d=Math.ceil(Math.sqrt(s.length));return d>50?50:d},scott:function(s,d,p){return Math.ceil((p-d)/(3.5*c(s)*Math.pow(s.length,-1/3)))},freedmanDiaconis:function(s,d,p){return s.sort(e),Math.ceil((p-d)/(2*(E(s,.75)-E(s,.25))*Math.pow(s.length,-1/3)))},sturges:function(s){return Math.ceil(Math.log(s.length)/Math.LN2)+1}};return u}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(2),A=m.getPrecision;return function(E,c,g,D){var i=arguments.length;i<2?(c=E,E=0,g=1):i<3?g=1:i<4?(g=+g,D=A(g)):D=+D;for(var y=Math.ceil(((c-E)/g).toFixed(D)),e=new Array(y+1),l=0;l<y+1;l++)e[l]=+(E+l*g).toFixed(D);return e}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(4);return function(A,E,c){var g=Math.abs(E-A)/c,D=m.quantityExponent(g),i=Math.pow(10,D),y=g/i;y>=Math.sqrt(50)?i*=10:y>=Math.sqrt(10)?i*=5:y>=Math.sqrt(2)&&(i*=2);var e=D<0?-D:0,l=+(E>=A?i:-i).toFixed(e);return{step:l,toFixedPrecision:e}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(5),A=n(19),E=2;return{type:"ecStat:regression",transform:function(g){var D=g.upstream,i=g.config||{},y=i.method||"linear",e=m(y,D.cloneRawData(),{order:i.order,dimensions:A.normalizeExistingDimensions(g,i.dimensions)}),l=e.points,v=i.formulaOn;v==null&&(v="end");var a;if(v!=="none"){for(var h=0;h<l.length;h++)l[h][E]=v==="start"&&h===0||v==="all"||v==="end"&&h===l.length-1?e.expression:"";a=D.cloneAllDimensionInfo(),a[E]={}}return[{dimensions:a,data:l}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(3),A=n(4),E=n(20);function c(D,i){if(i==null)return;var y=D.upstream;if(m.isArray(i)){for(var e=[],l=0;l<i.length;l++){var v=y.getDimensionInfo(i[l]);a(v,i[l]),e[l]=v.index}return e}else{var v=y.getDimensionInfo(i);return a(v,i),v.index}function a(h,u){if(!h)throw new Error("Can not find dimension by "+u)}}function g(D){if(m.isArray(D)){for(var i=[],y=[],e=0;e<D.length;e++){var l=v(D[e]);i.push(l.name),y.push(l.index)}return{name:i,index:y}}else if(D!=null)return v(D);function v(a){if(A.isNumber(a))return{index:a};if(E.isObject(a)&&A.isNumber(a.index))return a;throw new Error("Illegle new dimensions config. Expect `{ name: string, index: number }`.")}}return{normalizeExistingDimensions:c,normalizeNewDimensions:g}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){function m(E,c){if(Object.assign)Object.assign(E,c);else for(var g in c)c.hasOwnProperty(g)&&(E[g]=c[g]);return E}function A(E){const c=typeof E;return c==="function"||!!E&&c==="object"}return{extend:m,isObject:A}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(15),A=n(19);return{type:"ecStat:histogram",transform:function(c){var g=c.upstream,D=c.config||{},i=m(g.cloneRawData(),{method:D.method,dimensions:A.normalizeExistingDimensions(c,D.dimensions)});return[{dimensions:["MeanOfV0V1","VCount","V0","V1","DisplayableName"],data:i.data},{data:i.customData}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)}),(function(o,f,n){var t;t=function(C){var m=n(1),A=n(4),E=n(19),c=A.isNumber;return{type:"ecStat:clustering",transform:function(D){var i=D.upstream,y=D.config||{},e=y.clusterCount;if(!c(e)||e<=0)throw new Error('config param "clusterCount" need to be specified as an interger greater than 1.');if(e===1)return[{},{data:[]}];var l=E.normalizeNewDimensions(y.outputClusterIndexDimension),v=E.normalizeNewDimensions(y.outputCentroidDimensions);if(l==null)throw new Error("outputClusterIndexDimension is required as a number.");for(var a=m.hierarchicalKMeans(i.cloneRawData(),{clusterCount:e,stepByStep:!1,dimensions:E.normalizeExistingDimensions(D,y.dimensions),outputType:m.OutputType.SINGLE,outputClusterIndexDimension:l.index,outputCentroidDimensions:(v||{}).index}),h=i.cloneAllDimensionInfo(),u=[],r=0;r<h.length;r++){var s=h[r];u.push(s.name)}if(u[l.index]=l.name,v)for(var r=0;r<v.index.length;r++)v.name[r]!=null&&(u[v.index[r]]=v.name[r]);return[{dimensions:u,data:a.data},{data:a.centroids}]}}}.call(f,n,f,o),t!==void 0&&(o.exports=t)})])})})(k)),k.exports}var un,xn;function Kn(){return xn||(xn=1,un=Bn()),un}var Wn=Kn();const bn=Q.getDefaultExportFromCjs(Wn),Vn={DEFAULT_ICON:pn.DEFAULT_ICON,ACTIVE_ICON:pn.ACTIVE_ICON,NAME_CN:"风向图",NAME_EN:"Wind Line",ORDER:5,PLATFORM:["pc","screen","mobile"]},Xn={titleColor:"#111",bgColor:"#fff",textColor:"#111",lineColor:"#314656",top:30,bottom:40,left:20,right:20,radiusSize:8,textSize:12,points:30,isHideTitle:!1,isSmooth:!1},yn=[{name:"参数一",项目编号:"",object_id:""}],qn=["name","项目编号"],Yn=["index","deviation","stability","balance","increment","risk"],Hn=1,Gn={useAlias:!1,null:{type:"0",value:""},multiObject:!1,hideMultiObject:!0,source:"index"},Jn={DEFAULT:Vn,OPTIONS:Xn,DATA:yn,PARAMS:qn,SOURCE:Yn,ITEMS:Hn,COMMON:Gn},Zn=K.defineComponent(gn(mn({},Jn),{__name:"windLin",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(X){sn.use([sn.install,Ln.install,zn.install,Fn.install,Rn.install,Pn.install,sn.install$1,On.installUniversalTransition]);const b=K.ref(K.inject("session",null)),{proxy:o}=K.getCurrentInstance(),f="windlin_"+Math.random().toString(16).substring(4,12);let n=null,t=null;const C=X;let m=[];class A extends on.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),lineColor:this.getOptionValue("lineColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),isSmooth:this.getOptionValue("isSmooth",!1)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:yn,C.mode==="edit"&&i(),K.nextTick(()=>{let r=document.querySelector("#"+f);r&&(n||(n=En.init(r),t=Q.elementResizeDetectorMaker({strategy:"scroll"}),t.listenTo(r,()=>n==null?void 0:n.resize())),n.setOption(D(),!0))})}onPreview(){a.preview()}cleanup(){t&&t.uninstall(document.querySelector("#"+f)),n&&n.clear(),n&&En.dispose(n),n=null,a.unregister()}}const E=new A(C,"windLin");E.setupLifecycle();const c=E.getStyle(),g=K.computed(()=>In.generateTitleStyle(C.conf.options)),D=()=>{var d,p,R,F;const{data:u,options:r}=C.conf;let s=u[0]||{};return{tooltip:{trigger:"axis",formatter:function(x){return[x[0].value[0],`${s==null?void 0:s.name}: `+x[0].value[1],`${o.$t("setting.gradient")}: `+x[0].value[2]].join("<br>")}},grid:{top:((d=r==null?void 0:r.top)==null?void 0:d.value)||30,bottom:((p=r==null?void 0:r.bottom)==null?void 0:p.value)||40,left:((R=r==null?void 0:r.left)==null?void 0:R.value)||20,right:((F=r==null?void 0:r.right)==null?void 0:F.value)||20,containLabel:!0},xAxis:{type:"time",splitLine:{lineStyle:{color:"#ddd"}}},yAxis:[{axisLine:{lineStyle:{color:"#666"}},splitNumber:4}],visualMap:{type:"piecewise",show:!1,orient:"horizontal",left:"center",bottom:10,pieces:[{lt:0,color:"#18BF12"},{gte:0,lte:0,color:"#f4e9a3"},{gte:0,color:"#D33C3E"}],seriesIndex:1,dimension:2},dataZoom:[{type:"slider",xAxisIndex:0,start:80,end:100,height:15,bottom:15},{type:"inside"}],series:[{type:"line",yAxisIndex:0,showSymbol:!1,emphasis:{scale:!1},symbolSize:10,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,global:!1,colorStops:[{offset:0,color:c.value.lineColor},{offset:1,color:c.value.lineColor+"00"}]}},lineStyle:{color:c.value.lineColor},itemStyle:{color:c.value.lineColor},encode:{x:0},data:m,z:2,smooth:c.value.isSmooth},{type:"custom",renderItem:e,data:m,z:10}]}},i=()=>{var R,F;const u=Q.hasDataSource(C.conf);m=[];let r=[];const{options:s}=C.conf;let d=(F=(R=s==null?void 0:s.points)==null?void 0:R.value)!=null?F:30,p=Q.getxAxisDataTime(d,C.mode,u);if(!p.length){m=[];return}for(let x=0;x<d;x++){let S=Math.floor(Math.random()*200);r.push([p[x],S])}m=y(r)},y=u=>u.map((r,s)=>{var d;if(s===u.length-1)r[2]=0;else{let p=bn.regression("linear",[[s+1,r[1]],[s+2,u[s+1][1]]],0);r[2]=Math.atan(((d=p.parameter)==null?void 0:d.gradient)||0).toFixed(4)}return r}),e=(u,r)=>{const s=r.coord([r.value(0),0]),d=16;return{type:"path",shape:{pathData:"M31 16l-15-15v9h-26v12h26v9z",x:-d/2,y:-d/2,width:d,height:d},rotation:r.value(2),position:s,style:r.style({stroke:"#555",lineWidth:1})}},l=u=>{if(!Q.hasDataSource(C.conf))return;const{data:r}=C.conf;let s=Q.handleNullData(u,C,"history");if(!s.history.length)return;let d=s.history[0],p=[];d.forEach(R=>{let F=R[r[0].fv]||0;p.push([R.time,F])}),m=y(p),n==null||n.setOption(D())},v=u=>{Q.hasDataSource(C.conf)},a={preview:()=>on.preview(C,b.value,l,v,"windLin"),unregister:()=>on.unregister(C,b.value)};K.watchEffect(()=>{C.conf.socketData&&v(C.conf.socketData)});const h=C.conf;return(u,r)=>(K.openBlock(),K.createElementBlock("div",{class:"mix-component",style:K.normalizeStyle({background:K.unref(c).bgColor,borderRadius:`${K.unref(c).radiusSize}px`})},[K.createElementVNode("div",{class:"mix-title",style:K.normalizeStyle(g.value)},K.toDisplayString(K.unref(h).caption||K.unref(h).name),5),K.createElementVNode("div",{class:"mix-body"},[K.createElementVNode("div",{class:"w-full h-full",id:f})]),K.renderSlot(u.$slots,"default",{},void 0,!0)],4))}})),Qn=Q._export_sfc(Zn,[["__scopeId","data-v-4e09b728"]]);exports.default=Qn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mixdashboards",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "MixDashboards Display Components - Show, Pro, App",
5
5
  "type": "module",
6
6
  "main": "./dist/mixdashboards.cjs",
@@ -1,2 +0,0 @@
1
- "use strict";var q=Object.defineProperty,R=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var U=(p,s,u)=>s in p?q(p,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):p[s]=u,A=(p,s)=>{for(var u in s||(s={}))j.call(s,u)&&U(p,u,s[u]);if(I)for(var u of I(s))W.call(s,u)&&U(p,u,s[u]);return p},_=(p,s)=>R(p,V(s));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),h=require("./index-Cvu9nAQq.cjs");require("element-plus");const $=require("./EChartComponentBase-BPiPzdtw.cjs"),F=require("./titleStyle-NSnz6cUg.cjs"),D=require("./ele-bar-icon-V94clxg_.cjs"),X=require("./install-DV5cEgNV.cjs"),M=require("./install-CltTFs4e.cjs"),L=require("./installCanvasRenderer-CyhM1Qpl.cjs"),P=require("./install-C8buXQPI.cjs"),B=require("./install-Ch5d8i37.cjs"),H={class:"mix-body"},G=["id"],K={DEFAULT_ICON:D.DEFAULT_ICON,ACTIVE_ICON:D.ACTIVE_ICON,NAME_CN:"基础柱状图",NAME_EN:"Bar Chart",ORDER:1,PLATFORM:["pc","screen","mobile"]},J={titleColor:"#111",textColor:"#111",bgColor:"#fff",top:30,bottom:40,left:40,right:20,radiusSize:8,textSize:12,barWidth:30,points:10,isHideTitle:!1,showLabel:!1},Q=[{name:"参数一",fv:"",object_id:"",color:"#4162ff",periodUnit:"near-hour",periodValue:1}],Y=["name","fv","object_id","color",{key:"periodUnit",label:"setting.timeUnit",type:"select",options:h.DATE_OPTION},{key:"periodValue",label:"setting.timePeriod",type:"number"}],Z=["mosaic","statistics","calculate"],tt={source:"mosaic",useAlias:!1,multiObject:!1,null:{type:"0",value:""}},et={DEFAULT:K,OPTIONS:J,DATA:Q,PARAMS:Y,SOURCE:Z,COMMON:tt},it=a.defineComponent(_(A({},et),{__name:"bar",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(p){L.use([X.install,M.install,L.install,P.install,L.install$1,B.install]);const s=p,u=h.useLinkStore();class k extends $.EChartComponentBase{extractStyles(){return _(A({},super.extractStyles()),{barWidth:this.getOptionValue("barWidth",30),showLabel:this.getOptionValue("showLabel",!1)})}getChartOption(){const t=this.Style.value,e=this.props.conf;return{tooltip:{trigger:"axis",axisPointer:{type:"shadow"},textStyle:{align:"left",fontSize:t.textSize}},grid:{top:t.top,bottom:t.bottom,left:t.left,right:t.right,containLabel:!1},legend:{show:!0,data:e.data.map(o=>o.name),right:20,top:0,textStyle:{color:t.textColor,fontSize:t.textSize}},xAxis:[{type:"category",data:this.getXAxisData(),axisTick:{alignWithLabel:!0},axisLine:{lineStyle:{color:t.textColor}},axisLabel:{formatter:o=>{if(!/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}$/.test(o))return o;const[r,i]=o.split(" ");return`${r}
2
- ${i}`},color:t.textColor,fontSize:t.textSize}}],yAxis:[{type:"value",nameGap:10,nameTextStyle:{align:"right"},splitLine:{lineStyle:{type:"dashed",color:"#e5e5e5"}},axisLabel:{color:t.textColor,fontSize:t.textSize},axisLine:{lineStyle:{color:t.textColor}},splitNumber:4}],series:this.formatSeries()}}getFixedStatisticsXLabels(){var i;const{data:t,common:e}=this.props.conf,o=(e==null?void 0:e.source)||"mosaic",r=(i=t[0])==null?void 0:i.periodUnit;return["statistics","calculate"].includes(o)&&r&&!String(r).startsWith("near")?h.getStatisticsTimeUnitLabel(r):null}getXAxisData(){var t;return(t=this.getFixedStatisticsXLabels())!=null?t:this.getTimeAxis()}formatSeries(){const t=this.props.conf,e=this.Style.value,o=this.getFixedStatisticsXLabels(),r=o?o.length:e.points;return t.data.map((i,c)=>{const n=i.color||h.COLORS[c];return{type:"bar",data:h.getRandomArr({num:r,max:200,min:0,mode:this.props.mode,hasDataSource:this.hasData()}),name:i.name,itemStyle:{color:n},label:{show:e.showLabel,position:"top",color:n},barWidth:e.barWidth+"%"}})}setSocketData(t){var g;if(!this.hasData()||!this.chartObj||!t)return;const{data:e,common:o}=this.props.conf,r=o.source||"mosaic",i=this.chartObj.getOption(),c=(g=e[0])==null?void 0:g.periodUnit,n=["statistics","calculate"].includes(r)&&c&&!String(c).startsWith("near");if(e.forEach((d,S)=>{const b=this.extractDataValue(t,d.fv);if(["statistics","calculate"].includes(r)&&d.periodUnit&&!String(d.periodUnit).startsWith("near")&&!String(d.periodUnit).startsWith("last")){const x=h.statisticsSocketTimeToXAxisLabel(t.start_time,d.periodUnit),O=x?i.xAxis[0].data.indexOf(x):-1;O>=0&&(i.series[S].data[O]=b);return}const C=["statistics","calculate"].includes(r)?t.start_time:t.datetime;C!=null&&(S===0&&i.xAxis[0].data.push(C),i.series[S].data.push(b))}),n){this.updateChart(i);return}const l=h.addRealtimeData(i.xAxis[0].data,i.series.map(d=>d.data)),f=Number(this.Style.value.points)||10;i.xAxis[0].data=l.times.slice(-f),i.series.forEach((d,S)=>{var b;d.data=((b=l.data[S])==null?void 0:b.slice(-f))||[]}),this.updateChart(i)}setHistoryData(t){if(!t||!(t!=null&&t.length))return;const e=this.chartObj.getOption(),o=Number(this.Style.value.points)||10,{data:r}=this.props.conf,i=n=>{if(n==null||n===""||n==="-")return null;const l=Number(n);return Number.isFinite(l)?l:null},c=this.getFixedStatisticsXLabels();if(c!=null&&c.length){e.xAxis[0].data=[...c],t.forEach((n,l)=>{var C;if(!e.series[l])return;const f=r[l],g=(f==null?void 0:f.periodUnit)||((C=r[0])==null?void 0:C.periodUnit),d=new Array(c.length).fill(null),S=n.time||[],b=n.data||[];for(let x=0;x<S.length;x++){const O=h.statisticsSocketTimeToXAxisLabel(S[x],String(g||"")),v=O?c.indexOf(O):-1;v>=0&&(d[v]=i(b[x]))}e.series[l].data=d}),this.updateChart(e);return}e.xAxis[0].data=t[0].time.slice(-o),t.forEach((n,l)=>{if(!e.series[l])return;const f=n.data||[];e.series[l].data=f.map(i).slice(-o)}),this.updateChart(e)}}const m=new k(s,"bar");m.setupLifecycle();const E=h.useCounterStore();a.onMounted(()=>{var y;if(E.registerInstance(s.uid,m),s.mode==="preview"){const t=((y=m.getChartInstance)==null?void 0:y.call(m))||m.chartObj;t==null||t.off("click"),t==null||t.on("click",e=>{var r,i,c,n,l,f;const o=e==null?void 0:e.seriesName;if(typeof o=="string"&&o){const g=((i=(r=s.conf)==null?void 0:r.options)==null?void 0:i.linkChannel)==="custom"?(n=(c=s.conf)==null?void 0:c.options)==null?void 0:n.customChannel:(f=(l=s.conf)==null?void 0:l.options)==null?void 0:f.linkChannel;u.publish(g||"bar","bar",{objectId:"",deviceId:"",type:"select",fieldKey:o,fv:A({key:o},e),source:"bar"})}})}}),a.onUnmounted(()=>{E.unregisterInstance(s.uid)});const T=m.getStyle(),w=m.getEchartId(),N=s.conf,z=a.computed(()=>F.generateTitleStyle(s.conf.options));return(y,t)=>(a.openBlock(),a.createElementBlock("div",{class:"mix-component",style:a.normalizeStyle({background:a.unref(T).bgColor,borderRadius:`${a.unref(T).radiusSize}px`})},[a.createElementVNode("div",{class:"mix-title",style:a.normalizeStyle(z.value)},a.toDisplayString(a.unref(N).caption||a.unref(N).name),5),a.createElementVNode("div",H,[a.createElementVNode("div",{class:"w-full h-full",id:a.unref(w)},null,8,G)]),a.renderSlot(y.$slots,"default",{},void 0,!0)],4))}})),st=h._export_sfc(it,[["__scopeId","data-v-e27440b4"]]);exports.default=st;
@@ -1 +0,0 @@
1
- "use strict";var it=Object.defineProperty,st=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var Me=Object.getOwnPropertySymbols;var ut=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var Pe=(s,m,d)=>m in s?it(s,m,{enumerable:!0,configurable:!0,writable:!0,value:d}):s[m]=d,le=(s,m)=>{for(var d in m||(m={}))ut.call(m,d)&&Pe(s,d,m[d]);if(Me)for(var d of Me(m))dt.call(m,d)&&Pe(s,d,m[d]);return s},ge=(s,m)=>st(s,ct(m));var q=(s,m,d)=>new Promise((v,y)=>{var _=h=>{try{V(d.next(h))}catch(k){y(k)}},w=h=>{try{V(d.throw(h))}catch(k){y(k)}},V=h=>h.done?v(h.value):Promise.resolve(h.value).then(_,w);V((d=d.apply(s,m)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=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/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/empty/style/css");require("element-plus/es/components/tree/style/css");require("element-plus/es/components/dropdown/style/css");require("element-plus/es/components/dropdown-menu/style/css");require("element-plus/es/components/dropdown-item/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");const e=require("vue"),a=require("@element-plus/icons-vue"),mt=require("./BaseComponent-BXAJUoaf.cjs"),F=require("./index-Cvu9nAQq.cjs"),C=require("element-plus"),Le=require("./ele-lst-icon-CrxnHZ-A.cjs"),ft=[{uid:"CO_HUANENG",id:1001,name:"华能燃气集团",ctype:"customer",nodeIcon:"company",child:[{uid:"PRJ_HB",id:1101,name:"华北区项目",ctype:"project",father_id:1001,nodeIcon:"folder",child:[{uid:"ST_NS",id:1201,name:"南山项目站",ctype:"project",father_id:1101,stationIndicator:"green",child:[{uid:"EQ_NS_AC1",id:1301,name:"1#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_NS_AC2",id:1302,name:"2#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_NS_AC3",id:1303,name:"3#空压机",ctype:"object",statusDot:"orange"},{uid:"EQ_NS_EM",id:1304,name:"总电表",ctype:"object",statusDot:"green"},{uid:"EQ_NS_FM",id:1305,name:"总流量计",ctype:"object",statusDot:"green"}]},{uid:"ST_HAIDIAN",id:1202,name:"北京海淀项目站",ctype:"project",father_id:1101,stationIndicator:"orange",child:[{uid:"EQ_HD_AC1",id:1311,name:"1#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_HD_AC2",id:1312,name:"2#空压机",ctype:"object",statusDot:"orange"},{uid:"EQ_HD_EM",id:1313,name:"总电表",ctype:"object",statusDot:"orange"},{uid:"EQ_HD_FM",id:1314,name:"总流量计",ctype:"object",statusDot:"green"}]},{uid:"ST_BINHAI",id:1203,name:"天津滨海项目站",ctype:"project",father_id:1101,stationIndicator:"green",child:[{uid:"EQ_BH_AC1",id:1321,name:"1#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_BH_AC2",id:1322,name:"2#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_BH_AC3",id:1323,name:"3#空压机",ctype:"object",statusDot:"orange"},{uid:"EQ_BH_EM",id:1324,name:"总电表",ctype:"object",statusDot:"green"},{uid:"EQ_BH_FM",id:1325,name:"总流量计",ctype:"object",statusDot:"green"}]}]},{uid:"PRJ_HD",id:1102,name:"华东区项目",ctype:"project",father_id:1001,nodeIcon:"folder",child:[]}]},{uid:"CO_ZHONGRAN",id:2001,name:"中燃能源科技",ctype:"customer",nodeIcon:"company",child:[{uid:"PRJ_XN",id:2101,name:"西南区项目",ctype:"project",father_id:2001,nodeIcon:"folder",child:[{uid:"ST_CD_GX",id:2201,name:"成都高新项目站",ctype:"project",father_id:2101,stationIndicator:"green",child:[{uid:"EQ_CD_AC1",id:2301,name:"1#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_CD_EM",id:2302,name:"总电表",ctype:"object",statusDot:"green"}]},{uid:"ST_CQ_YB",id:2202,name:"重庆渝北项目站",ctype:"project",father_id:2101,stationIndicator:"green",child:[{uid:"EQ_CQ_AC1",id:2311,name:"1#空压机",ctype:"object",statusDot:"green"},{uid:"EQ_CQ_FM",id:2312,name:"总流量计",ctype:"object",statusDot:"orange"}]}]}]}],Oe={Monitor:a.Monitor,Folder:a.Folder,Document:a.Document,OfficeBuilding:a.OfficeBuilding,Setting:a.Setting,DataAnalysis:a.DataAnalysis,Platform:a.Platform,Box:a.Box,Grid:a.Grid,User:a.User,Bell:a.Bell,Message:a.Message,TrendCharts:a.TrendCharts,PieChart:a.PieChart,Histogram:a.Histogram,Cpu:a.Cpu,Connection:a.Connection,Location:a.Location,MapLocation:a.MapLocation,Calendar:a.Calendar,Warning:a.Warning,Tools:a.Tools,Operation:a.Operation,List:a.List,Menu:a.Menu,Management:a.Management,Files:a.Files,FolderOpened:a.FolderOpened,Reading:a.Reading,Promotion:a.Promotion,Star:a.Star,Flag:a.Flag,Guide:a.Guide,Goods:a.Goods,Service:a.Service,Odometer:a.Odometer,VideoCamera:a.VideoCamera,Picture:a.Picture,Phone:a.Phone,Cellphone:a.Cellphone,Link:a.Link,Lock:a.Lock,Medal:a.Medal,Compass:a.Compass,ShoppingCart:a.ShoppingCart,WindPower:a.WindPower,SetUp:a.SetUp,DataBoard:a.DataBoard,DataLine:a.DataLine,Upload:a.Upload,Download:a.Download,Search:a.Search,EditPen:a.EditPen,View:a.View,Refresh:a.Refresh,Collection:a.Collection,Share:a.Share,Wallet:a.Wallet,Key:a.Key,Timer:a.Timer,Lightning:a.Lightning},pt=new Set(["pro","globalSettings","dashboard","version","meta"]);function ve(s){var m,d;if(!s)return null;if(Array.isArray(s))return ve(s[0]);if(typeof s=="string")try{return ve(JSON.parse(s))}catch(v){return null}if(typeof s=="object"){const v=(d=(m=s.script)!=null?m:s.data)!=null?d:s.result;if(v&&v!==s)return ve(v)}return s}function he(s){if(!s||typeof s!="object"||Array.isArray(s))return null;const m=s;if(Array.isArray(m.sheets))return m;const d=m.dashboard;if(Array.isArray(d)&&d.length>0&&d[0]&&typeof d[0]=="object"){const v=d[0];if(Array.isArray(v.sheets))return ge(le(le({},m),v),{sheets:v.sheets})}return null}function gt(s){const m={};if(!s||typeof s!="object"||Array.isArray(s))return m;for(const d of Object.keys(s)){if(pt.has(d))continue;const v=he(s[d]);v&&(m[d]=v)}return m}function vt(s,m){if(!s)return[];const d=ve(s);if(!d||typeof d!="object"||Array.isArray(d))return[];const v=d;if(Array.isArray(v.sheets)&&v.sheets.length)return v.sheets;const y=he(v);if(y&&Array.isArray(y.sheets)&&y.sheets.length)return y.sheets;const _=gt(v),w=m.trim();if(w&&_[w]){const V=he(_[w]);if(V&&Array.isArray(V.sheets))return V.sheets}for(const V of Object.keys(_)){const h=he(_[V]);if(h&&Array.isArray(h.sheets)&&h.sheets.length)return h.sheets}return[]}function X(s){return String(s!=null?s:"").trim().replace(/\s+/g," ")}function ht(s){var d,v,y,_,w,V;const m=[];for(const h of s){if(!h||h.hideInPreviewTabs)continue;const k=String((y=(v=(d=h.caption)!=null?d:h.name)!=null?v:h.id)!=null?y:"").trim(),S=String((V=(w=(_=h.id)!=null?_:h.name)!=null?w:h.caption)!=null?V:"").trim();!k||!S||m.push({title:k,pageKey:S})}return m}function yt(s,m,d){var h,k,S,L,Y,Z,ae;if(!s.length)return null;const v=X(m);let y=-1;if(d!==void 0&&v&&d.length)for(let D=0;D<s.length;D++){const T=s[D];if(!(!T||T.hideInPreviewTabs)){for(const B of d){const ie=X(B==null?void 0:B.menuTitle),I=X(B==null?void 0:B.sheetTitle);if(!ie||!I||X(v)!==ie)continue;const se=X(T.caption),ee=X(T.name),O=String((h=T.id)!=null?h:"").trim();if(se===I||ee===I||O===I){y=D;break}}if(y>=0)break}}y<0&&(y=s.findIndex(D=>D&&!D.hideInPreviewTabs)),y<0&&(y=0);const _=s[y];if(!_)return null;const w=String((L=(S=(k=_.caption)!=null?k:_.name)!=null?S:_.id)!=null?L:"").trim(),V=String((ae=(Z=(Y=_.id)!=null?Y:_.name)!=null?Z:_.caption)!=null?ae:"").trim();return w?{title:w,pageKey:V}:null}const bt={class:"gsl-top-bar"},_t={key:0,class:"gsl-top-caption"},Ct={key:1,class:"gsl-top-caption-placeholder"},St={class:"gsl-top-actions"},Vt={class:"gsl-tree-col"},Nt={class:"gsl-tree-wrap"},wt={class:"gsl-tree-node"},kt={key:0,class:"gsl-type-icon-wrap","aria-hidden":"true"},jt={class:"gsl-tree-label"},At={key:0,class:"gsl-monitor-col"},Et={key:0,class:"gsl-monitor-sheet-bar"},Tt=["title","onClick"],xt={key:1,class:"gsl-monitor-sheet-bar gsl-monitor-sheet-bar--fallback"},Dt={key:2,class:"gsl-monitor-inner"},Bt={DEFAULT_ICON:Le.DEFAULT_ICON,ACTIVE_ICON:Le.ACTIVE_ICON,NAME_CN:"客户项目对象组件",NAME_EN:"CustomerProjectObject",ORDER:0,PLATFORM:["pc","screen"]},Mt={bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,linkChannel:""},Fe=[{name:"客户项目对象组件",fv:"",object_id:"",unit:"",default:"",isText:!1,useMockTree:!1,showAddBtn:!0,sheetPageKeys:"gas_layout,monitor",sheetPageLabels:"对象布局,监控",defaultSheetGasList:"gas_layout",defaultSheetRuntimeCheck:"monitor",runtimeScene:"gasList",stationNavRules:[],stationNavPageKey:"",embedObjectMonitorRight:!0,objectLinkedDashboardDevice:"pc",menuToSheetLevels:[{level:1,label:"客户",treeIcon:"OfficeBuilding",rules:[{sheetTitle:""}]},{level:2,label:"项目",treeIcon:"Folder",rules:[{sheetTitle:""}]},{level:3,label:"对象",treeIcon:"Monitor",rules:[{sheetTitle:""}]}]}],Pt=[{key:"useMockTree",label:"使用模拟树(离线演示;关闭则 get_customer_project_tree)",type:"checkbox",group:"数据"},{key:"embedObjectMonitorRight",label:"点击对象右侧内嵌设备监控(与对象详情监控同源)",type:"checkbox",group:"数据"},{key:"objectLinkedDashboardDevice",label:"监控显示板终端(pc/mobile/screen)",group:"数据"},{key:"showAddBtn",label:"显示新增",type:"checkbox",group:"命令组"},{key:"sheetPageKeys",label:"页面标识列表"},{key:"sheetPageLabels",label:"页面标题列表"},{key:"defaultSheetGasList",label:"默认页面(客户项目对象)"},{key:"defaultSheetRuntimeCheck",label:"默认页面(运行检查)"},{key:"runtimeScene",label:"当前场景(gasList/runtimeCheck)"}],Lt=[],Ot={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.mixiotListFilter.treeNodeName"},{value:"uid",label:"setting.mixiotListFilter.treeNodeUid"}]},Ft={DEFAULT:Bt,OPTIONS:Mt,DATA:Fe,PARAMS:Pt,SOURCE:Lt,COMMON:Ot},It=e.defineComponent(ge(le({},Ft),{__name:"gasStationList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},code:{default:""}},setup(s){const m=s;class d extends mt.BaseComponent{getDataBool(t,n){var i,u;const r=(u=(i=this.props.conf)==null?void 0:i.data)==null?void 0:u[0];return r&&Object.prototype.hasOwnProperty.call(r,t)&&r[t]!==void 0?!!r[t]:this.getOptionValue(t,n)}extractStyles(){return{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),linkChannel:this.getOptionValue("linkChannel",""),showAddBtn:this.getDataBool("showAddBtn",!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(Fe));else{const n=this.props.conf.data[0];n.useMockTree===void 0&&(n.useMockTree=!1),n.showAddBtn===void 0&&(n.showAddBtn=!0);const r={sheetPageKeys:"gas_layout,monitor",sheetPageLabels:"对象布局,监控",defaultSheetGasList:"gas_layout",defaultSheetRuntimeCheck:"monitor",runtimeScene:"gasList"};for(const[l,f]of Object.entries(r))(n[l]===void 0||n[l]==="")&&(n[l]=f);n.stationNavPageKey===void 0&&(n.stationNavPageKey=""),Array.isArray(n.stationNavRules)||(n.stationNavRules=[]),n.embedObjectMonitorRight===void 0&&(n.embedObjectMonitorRight=n.openObjectLinkedDashboard!==!1),(n.objectLinkedDashboardDevice===void 0||n.objectLinkedDashboardDevice==="")&&(n.objectLinkedDashboardDevice="pc");const i=[{level:1,label:"客户",treeIcon:"OfficeBuilding",rules:[{sheetTitle:""}]},{level:2,label:"项目",treeIcon:"Folder",rules:[{sheetTitle:""}]},{level:3,label:"对象",treeIcon:"Monitor",rules:[{sheetTitle:""}]}],u=l=>l===1?"OfficeBuilding":l===2?"Folder":l===3?"Monitor":"Folder";if(!Array.isArray(n.menuToSheetLevels)||!n.menuToSheetLevels.length)n.menuToSheetLevels=JSON.parse(JSON.stringify(i));else for(const l of n.menuToSheetLevels){(!Array.isArray(l.rules)||!l.rules.length)&&(l.rules=[{sheetTitle:""}]);const f=Number(l.level);(l.treeIcon===void 0||l.treeIcon==="")&&(l.treeIcon=u(Number.isFinite(f)?f:0))}}}}const v=new d(m,"gasStationList");v.setupLifecycle();const y=v.getStyle(),_=e.inject("switchSheetByPageKey",()=>-1),w=e.inject("getSheets",()=>[]),V=e.inject("getProAppActiveMenuTitle",()=>""),h=e.inject("boardSwitchEpoch",e.ref(0)),k=e.computed(()=>{var o;try{const t=V;return typeof t=="function"?String((o=t())!=null?o:"").trim():""}catch(t){return""}}),S=e.computed(()=>{var o,t;return((t=(o=m.conf)==null?void 0:o.data)==null?void 0:t[0])||{}}),L=e.computed(()=>!!S.value.useMockTree);function Y(o){return String(o!=null?o:"").split(/[,,]/).map(t=>t.trim()).filter(Boolean)}const Z=e.computed(()=>{const o=Y(S.value.sheetPageKeys),t=Y(S.value.sheetPageLabels);return o.map((n,r)=>({pageKey:n,label:t[r]||n}))}),ae=e.computed(()=>String(S.value.runtimeScene||"gasList").trim()),D=e.computed(()=>ae.value==="runtimeCheck"?String(S.value.defaultSheetRuntimeCheck||"").trim():String(S.value.defaultSheetGasList||"").trim()),T=e.ref("");function B(){var r;const o=D.value,t=Z.value,n=((r=t[0])==null?void 0:r.pageKey)||"";return o&&t.some(i=>i.pageKey===o)?o:n}function ie(){T.value=B()}function I(){if(m.mode==="edit"||(w()||[]).filter(r=>!(r!=null&&r.hideInPreviewTabs)).length<=1)return;const n=B();n&&(T.value=n,_(String(n)))}e.watch(h,()=>{e.nextTick(()=>I())},{flush:"post",immediate:!0}),e.watch(Z,()=>{m.mode!=="edit"&&e.nextTick(()=>I())},{deep:!0}),e.watch(T,o=>{if(m.mode==="edit"||!o)return;_(String(o))<0&&console.warn("[客户项目对象] 未匹配到 Sheet 页面标识:",o,"sheets:",w())});function se(o){return Array.isArray(o.children)?o.children:Array.isArray(o.child)?o.child:[]}function ee(o){return Array.isArray(o)?o.filter(Boolean).map(t=>{var u,l,f,N;const n=t,r=String((N=(f=(l=(u=n.name)!=null?u:n.alias)!=null?l:n.uid)!=null?f:n.id)!=null?N:""),i=ee(se(n));return ge(le({},n),{label:r,treeKey:Ue(n),children:i.length?i:void 0})}):[]}function O(o,t){const n=String(o||"").trim().toLowerCase();return n==="child_object"?"object":n==="customer"||n==="project"||n==="object"?n:t<=1?"customer":t===2?"project":"object"}function Ie(o,t){const n=o.stationIndicator;if(n==="green"||n==="orange")return!0;if(O(o.ctype,t.level)!=="project")return!1;const r=se(o);return r.length?r.every(i=>O(i.ctype,t.level+1)==="object"):!1}function Re(o){const t=S.value.menuToSheetLevels;if(!Array.isArray(t)||!t.length)return"Folder";const n=t.map(l=>{var f;return{level:Number(l.level)||0,treeIcon:String((f=l.treeIcon)!=null?f:"").trim()}}).filter(l=>l.level>0).sort((l,f)=>l.level-f.level),r=n.filter(l=>l.level<=o),i=r.length?r[r.length-1]:n[0];if(!i)return"Folder";const u=i.treeIcon;return u==="none"?null:u&&Oe[u]?u:"Folder"}function Ke(o){const t=Re(o);return t&&Oe[t]||null}function Ue(o){var r,i,u,l,f;const t=String((r=o.ctype)!=null?r:"n"),n=(f=(l=(u=(i=o.uid)!=null?i:o.id)!=null?u:o.name)!=null?l:o.label)!=null?f:"n";return`${t}_${n}`}const H=e.ref([]),ce=e.ref(!1),ye=e.ref(null),ue=e.ref("");function qe(o,t){var l,f,N,x;if(!o)return!0;const n=o.toLowerCase(),r=String((f=(l=t.label)!=null?l:t.name)!=null?f:"").toLowerCase(),i=String((N=t.uid)!=null?N:"").toLowerCase(),u=String((x=t.alias)!=null?x:"").toLowerCase();return r.includes(n)||i.includes(n)||u.includes(n)}function Ne(){e.nextTick(()=>{var o;(o=ye.value)==null||o.filter(ue.value.trim())})}function z(){return q(this,null,function*(){var o,t;ce.value=!0;try{if(L.value)H.value=ee(JSON.parse(JSON.stringify(ft)));else{const n=yield F.api.post("get_customer_project_tree",{},!0),r=(o=n==null?void 0:n.result)!=null?o:n,i=Array.isArray(r)?r:r!=null?[r]:[];H.value=ee(i)}yield e.nextTick(),(t=ye.value)==null||t.filter(ue.value.trim())}catch(n){console.error(n),H.value=[]}finally{ce.value=!1}})}e.watch(L,()=>{z()});const M=e.ref(null),te=e.ref(1);function we(o){var n,r,i,u;(n=y.value)!=null&&n.linkChannel&&v.publish({objectUid:String((r=o.uid)!=null?r:""),objectName:String((u=(i=o.name)!=null?i:o.label)!=null?u:""),objectId:o.id!=null?String(o.id):""})}function He(o){var i,u,l,f;const t=String((i=o.uid)!=null?i:"").trim(),n=S.value.stationNavRules,r=Array.isArray(n)?n:[];for(const N of r){const x=String((u=N==null?void 0:N.stationUid)!=null?u:"").trim(),g=String((l=N==null?void 0:N.pageKey)!=null?l:"").trim();if(!(!x||!g)&&x===t)return g}return String((f=S.value.stationNavPageKey)!=null?f:"").trim()}function ze(o,t){const n=S.value;return n&&Object.prototype.hasOwnProperty.call(n,o)&&n[o]!==void 0?!!n[o]:t}const Q=e.computed(()=>ze("embedObjectMonitorRight",!0)),be=e.computed(()=>{if(!Q.value)return;const o=String(k.value||"").trim();if(!o)return[];const t=S.value.menuToSheetLevels;if(!Array.isArray(t))return[];const n=Number(te.value),r=t.find(l=>Number(l==null?void 0:l.level)===n),u=(r&&Array.isArray(r.rules)?r.rules:[]).map(l=>{var f;return String((f=l==null?void 0:l.sheetTitle)!=null?f:"").trim()}).filter(Boolean);return u.length?u.map(l=>({menuTitle:o,sheetTitle:l})):[]}),Qe=e.computed(()=>{const o=String(S.value.objectLinkedDashboardDevice||"pc").trim().toLowerCase();return o==="mobile"||o==="screen"?o:"pc"}),E=e.ref(null),de=e.ref(""),me=e.ref(""),fe=e.ref(""),_e=e.ref(!1),ke=e.ref(null),R=e.ref([]),K=e.ref("");function Ce(){var u;const o=E.value;if(!o){R.value=[],K.value="";return}const t=vt(o,me.value),n=be.value;R.value=ht(t);const r=yt(t,k.value,n),i=(r==null?void 0:r.pageKey)||((u=R.value[0])==null?void 0:u.pageKey)||"";(!K.value||!R.value.some(l=>l.pageKey===K.value))&&(K.value=i)}function Ge(o){var n,r;if(!o.pageKey||!E.value)return;K.value=o.pageKey;const t=(r=(n=ke.value)==null?void 0:n.switchSheetByPageKey)==null?void 0:r.call(n,o.pageKey);(t===void 0||t<0)&&C.ElMessage.warning("未找到对应 Sheet 页面")}function je(){E.value=null,de.value="",me.value="",fe.value="",R.value=[],K.value=""}function Ae(o){if(!o||typeof o!="object")return{};const t=o,n=t.result;if(n&&typeof n=="object"&&!Array.isArray(n))return n;const r=t.data;return r&&typeof r=="object"&&!Array.isArray(r)?r:t}function Je(o,t){const n=t.toLowerCase();return o.find(r=>{var l,f;const i=String((l=r==null?void 0:r.device_type)!=null?l:"").toLowerCase(),u=String((f=r==null?void 0:r.type)!=null?f:"").toLowerCase();return i===n||u===n})}function $e(o){return q(this,null,function*(){var n,r,i,u;const t=o.trim();if(!t){C.ElMessage.warning("对象缺少 uid");return}_e.value=!0,E.value=null,de.value=t,me.value="",fe.value="";try{const l=yield F.api.post("get_object_item",{uid:t},!0),f=Ae(l),N=Array.isArray(f.dashboard_list)?f.dashboard_list:[],x=Qe.value,g=Je(N,x),U=String((n=g==null?void 0:g.uid)!=null?n:"").trim();if(!U){C.ElMessage.warning("该对象未绑定对应类型的显示板");return}me.value=U,fe.value=String((u=(i=(r=g==null?void 0:g.name)!=null?r:g==null?void 0:g.caption)!=null?i:g==null?void 0:g.alias)!=null?u:"").trim();const re=yield F.api.post("get_dashboard_item",{uid:U},!0),W=Ae(re),c=W==null?void 0:W.script;c&&typeof c=="object"&&Object.keys(c).length?(E.value=c,yield e.nextTick(),Ce()):C.ElMessage.warning("显示板脚本为空")}catch(l){console.error(l),E.value=null,Ce()}finally{_e.value=!1}})}e.watch([E,k,be,te],()=>{Ce()},{deep:!0});function We(o,t){M.value=o,te.value=t.level;const n=He(o);if(n&&Ie(o,t)){Q.value&&je(),T.value=n,we(o);return}Q.value&&O(o.ctype,t.level)!=="object"&&je(),O(o.ctype,t.level)==="object"&&q(null,null,function*(){var r;if(Q.value&&m.mode!=="edit"){const i=String((r=o.uid)!=null?r:"").trim();i&&(yield $e(i))}else ie();we(o)})}const Ee=e.computed(()=>M.value?O(M.value.ctype,te.value)==="customer":!1),Te=e.computed(()=>M.value?O(M.value.ctype,te.value)==="project":!1),oe=e.ref(null),ne=e.ref(""),Se=e.ref("");function Xe(o){o==="customer"?Ye():o==="project"?Ze():o==="object"&&et()}function Ye(){xe(),G.value=!0}function Ze(){var u,l,f;if(!Ee.value||!M.value){C.ElMessage.warning("请先在树中选中客户(片区)节点");return}De();const o=M.value,t=o.id,n=t!=null&&t!==""?Number(t):NaN;oe.value=Number.isFinite(n)?n:null,ne.value=String((u=o.uid)!=null?u:"").trim();const r=String((f=(l=o.name)!=null?l:o.label)!=null?f:"").trim(),i=ne.value;Se.value=[r,i].filter(Boolean).join(" · ")||i||String(t!=null?t:"—"),J.value=!0}function et(){var t,n,r,i;if(!Te.value||!M.value){C.ElMessage.warning("请先在树中选中项目节点");return}Be();const o=M.value;p.customer_id=String((t=o.uid)!=null?t:"").trim(),p.customer_name=String((r=(n=o.name)!=null?n:o.label)!=null?r:"").trim(),p.customer_alias=String((i=o.alias)!=null?i:"").trim(),$.value=!0}const G=e.ref(!1),J=e.ref(!1),$=e.ref(!1),P=e.ref(!1),b=e.reactive({name:"",alias:"",contact:"",mobile:"",description:""}),j=e.reactive({name:"",alias:"",description:""}),p=e.reactive({uid:"",name:"",alias:"",model:"",customer_id:"",customer_name:"",customer_alias:"",description:""});function xe(){b.name="",b.alias="",b.contact="",b.mobile="",b.description=""}function De(){j.name="",j.alias="",j.description=""}function tt(){oe.value=null,ne.value="",Se.value=""}function ot(){De(),tt()}function Be(){p.uid="",p.name="",p.alias="",p.model="",p.customer_id="",p.customer_name="",p.customer_alias="",p.description=""}function nt(){return q(this,null,function*(){if(!b.name.trim()){C.ElMessage.warning("请填写客户名称");return}if(L.value){C.ElMessage.success("演示数据:已记录(未写入模拟树,关闭「使用模拟树」后可调真实接口)"),G.value=!1;return}P.value=!0;try{yield F.api.post("create_customer",{name:b.name.trim(),alias:b.alias.trim(),contact:b.contact,mobile:b.mobile,description:b.description},!0),C.ElMessage.success("添加成功"),G.value=!1,yield z()}catch(o){C.ElMessage.error("添加失败")}finally{P.value=!1}})}function rt(){return q(this,null,function*(){if(!j.name.trim()){C.ElMessage.warning("请填写项目名称");return}const o=oe.value!=null&&!Number.isNaN(oe.value),t=!!ne.value;if(!o&&!t){C.ElMessage.warning("缺少所属客户");return}if(L.value){C.ElMessage.success("演示数据:已记录(未写入模拟树)"),J.value=!1;return}P.value=!0;try{const n={name:j.name.trim(),alias:j.alias.trim(),description:j.description};o?n.father_id=oe.value:t&&(n.parent_uid=ne.value),yield F.api.post("create_project",n,!0),C.ElMessage.success("添加成功"),J.value=!1,yield z()}catch(n){C.ElMessage.error("添加失败")}finally{P.value=!1}})}function lt(){var o,t,n,r,i,u,l;return{id:0,uid:"",name:String((o=p.name)!=null?o:"").trim(),alias:String((t=p.alias)!=null?t:""),model:String((n=p.model)!=null?n:""),description:String((r=p.description)!=null?r:""),customer_id:String((i=p.customer_id)!=null?i:""),customer_name:String((u=p.customer_name)!=null?u:""),customer_alias:String((l=p.customer_alias)!=null?l:""),terminal_list:[],mapping_id:"",mapping_name:"",tag:[],province:"",city:"",create_by_tpl:0,tpl_uid:"",tpl_name:"",tpl_alias:"",addition:"[]"}}function at(){return q(this,null,function*(){var o;if(!p.name.trim()){C.ElMessage.warning("请填写对象名称");return}if(!String((o=p.customer_id)!=null?o:"").trim()){C.ElMessage.warning("缺少所属项目,请从树中选中项目后再添加");return}if(L.value){C.ElMessage.success("演示数据:已记录(未写入模拟树)"),$.value=!1;return}P.value=!0;try{yield F.api.post("create_object",lt(),!0),C.ElMessage.success("添加成功"),$.value=!1,yield z()}catch(t){C.ElMessage.error("添加失败")}finally{P.value=!1}})}return e.onMounted(()=>{z()}),(o,t)=>{const n=A.ElIcon,r=A.ElInput,i=A.ElButton,u=A.ElDropdownItem,l=A.ElDropdownMenu,f=A.ElDropdown,N=A.ElTree,x=A.ElEmpty,g=A.ElFormItem,U=A.ElForm,re=A.ElDialog,W=A.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"customer-project-object mix-component",style:e.normalizeStyle({backgroundColor:e.unref(y).bgColor,borderRadius:`${e.unref(y).radiusSize}px`})},[e.createElementVNode("div",bt,[e.unref(y).isHideTitle?(e.openBlock(),e.createElementBlock("div",Ct)):(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(s.conf.caption||s.conf.name),1)),e.createElementVNode("div",St,[e.createVNode(r,{modelValue:ue.value,"onUpdate:modelValue":t[0]||(t[0]=c=>ue.value=c),class:"gsl-search-input",clearable:"",placeholder:"搜索客户、项目、对象…",size:"small",onInput:Ne,onClear:Ne},{prefix:e.withCtx(()=>[e.createVNode(n,{class:"gsl-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.Search))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(i,{size:"small",loading:ce.value,onClick:z},{default:e.withCtx(()=>[...t[19]||(t[19]=[e.createTextVNode("刷新",-1)])]),_:1},8,["loading"]),e.unref(y).showAddBtn?(e.openBlock(),e.createBlock(f,{key:0,trigger:"click",onCommand:Xe},{dropdown:e.withCtx(()=>[e.createVNode(l,null,{default:e.withCtx(()=>[e.createVNode(u,{command:"customer"},{default:e.withCtx(()=>[...t[21]||(t[21]=[e.createTextVNode("添加客户",-1)])]),_:1}),e.createVNode(u,{command:"project",disabled:!Ee.value},{default:e.withCtx(()=>[...t[22]||(t[22]=[e.createTextVNode("添加项目",-1)])]),_:1},8,["disabled"]),e.createVNode(u,{command:"object",disabled:!Te.value},{default:e.withCtx(()=>[...t[23]||(t[23]=[e.createTextVNode("添加对象",-1)])]),_:1},8,["disabled"])]),_:1})]),default:e.withCtx(()=>[e.createVNode(i,{type:"primary",size:"small"},{default:e.withCtx(()=>[t[20]||(t[20]=e.createTextVNode(" 新增 ",-1)),e.createVNode(n,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(a.ArrowDown))]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",{class:e.normalizeClass(["mix-body gsl-body",{"gsl-body--split":Q.value}])},[e.createElementVNode("div",Vt,[e.createElementVNode("div",Nt,[H.value.length?(e.openBlock(),e.createBlock(N,{key:0,ref_key:"treeRef",ref:ye,class:"gsl-tree",data:H.value,props:{label:"label",children:"children"},"node-key":"treeKey","highlight-current":"","default-expand-all":"","filter-node-method":qe,onNodeClick:We},{default:e.withCtx(({node:c,data:pe})=>[e.createElementVNode("span",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([Ke(c.level)],Ve=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:pe.treeKey+"-"+c.level},[Ve?(e.openBlock(),e.createElementBlock("span",kt,[e.createVNode(n,{class:"gsl-tree-level-icon"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ve)))]),_:2},1024)])):e.createCommentVNode("",!0)],64))),128)),e.createElementVNode("span",jt,e.toDisplayString(pe.label),1)])]),_:1},8,["data"])):(e.openBlock(),e.createBlock(x,{key:1,description:"暂无树数据"}))])]),Q.value?e.withDirectives((e.openBlock(),e.createElementBlock("div",At,[E.value&&R.value.length?(e.openBlock(),e.createElementBlock("div",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(c,pe)=>(e.openBlock(),e.createElementBlock("button",{key:c.pageKey+"-"+pe,type:"button",class:e.normalizeClass(["gsl-monitor-sheet-tab",{active:c.pageKey===K.value}]),title:c.title,onClick:Ve=>Ge(c)},e.toDisplayString(c.title),11,Tt))),128))])):E.value?(e.openBlock(),e.createElementBlock("div",xt,e.toDisplayString(fe.value||"设备监控"),1)):e.createCommentVNode("",!0),E.value?(e.openBlock(),e.createElementBlock("div",Dt,[(e.openBlock(),e.createBlock(F._sfc_main,{ref_key:"rightPanelDesignRef",ref:ke,key:de.value,script:E.value,uid:de.value,"enable-web-socket":!0,"follow-host-theme":!0,"host-pro-menu-title":k.value,"host-menu-to-sheet-rules":be.value},null,8,["script","uid","host-pro-menu-title","host-menu-to-sheet-rules"]))])):(e.openBlock(),e.createBlock(x,{key:3,class:"gsl-monitor-empty",description:"点击对象查看设备监控"}))])),[[W,_e.value]]):e.createCommentVNode("",!0)],2),e.createVNode(re,{modelValue:G.value,"onUpdate:modelValue":t[7]||(t[7]=c=>G.value=c),title:"添加客户",width:"520px","destroy-on-close":"",onClosed:xe},{footer:e.withCtx(()=>[e.createVNode(i,{onClick:t[6]||(t[6]=c=>G.value=!1)},{default:e.withCtx(()=>[...t[24]||(t[24]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(i,{type:"primary",loading:P.value,onClick:nt},{default:e.withCtx(()=>[...t[25]||(t[25]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(U,{model:b,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"客户名称",required:""},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:b.name,"onUpdate:modelValue":t[1]||(t[1]=c=>b.name=c),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:b.alias,"onUpdate:modelValue":t[2]||(t[2]=c=>b.alias=c)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"联系人"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:b.contact,"onUpdate:modelValue":t[3]||(t[3]=c=>b.contact=c)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"手机"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:b.mobile,"onUpdate:modelValue":t[4]||(t[4]=c=>b.mobile=c)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:b.description,"onUpdate:modelValue":t[5]||(t[5]=c=>b.description=c),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(re,{modelValue:J.value,"onUpdate:modelValue":t[12]||(t[12]=c=>J.value=c),title:"添加项目",width:"520px","destroy-on-close":"",onClosed:ot},{footer:e.withCtx(()=>[e.createVNode(i,{onClick:t[11]||(t[11]=c=>J.value=!1)},{default:e.withCtx(()=>[...t[26]||(t[26]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(i,{type:"primary",loading:P.value,onClick:rt},{default:e.withCtx(()=>[...t[27]||(t[27]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(U,{model:j,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"所属客户"},{default:e.withCtx(()=>[e.createVNode(r,{"model-value":Se.value,disabled:""},null,8,["model-value"])]),_:1}),e.createVNode(g,{label:"项目名称",required:""},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:j.name,"onUpdate:modelValue":t[8]||(t[8]=c=>j.name=c),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"项目别名"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:j.alias,"onUpdate:modelValue":t[9]||(t[9]=c=>j.alias=c)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:j.description,"onUpdate:modelValue":t[10]||(t[10]=c=>j.description=c),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(re,{modelValue:$.value,"onUpdate:modelValue":t[18]||(t[18]=c=>$.value=c),title:"添加对象",width:"560px","destroy-on-close":"",onClosed:Be},{footer:e.withCtx(()=>[e.createVNode(i,{onClick:t[17]||(t[17]=c=>$.value=!1)},{default:e.withCtx(()=>[...t[28]||(t[28]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(i,{type:"primary",loading:P.value,onClick:at},{default:e.withCtx(()=>[...t[29]||(t[29]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(U,{model:p,"label-width":"110px"},{default:e.withCtx(()=>[e.createVNode(g,{label:"对象名称",required:""},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:p.name,"onUpdate:modelValue":t[13]||(t[13]=c=>p.name=c),placeholder:"必填"},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:p.alias,"onUpdate:modelValue":t[14]||(t[14]=c=>p.alias=c)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:p.model,"onUpdate:modelValue":t[15]||(t[15]=c=>p.model=c)},null,8,["modelValue"])]),_:1}),e.createVNode(g,{label:"项目编号"},{default:e.withCtx(()=>[e.createVNode(r,{"model-value":p.customer_id,disabled:""},null,8,["model-value"])]),_:1}),e.createVNode(g,{label:"项目名称"},{default:e.withCtx(()=>[e.createVNode(r,{"model-value":p.customer_name,disabled:""},null,8,["model-value"])]),_:1}),e.createVNode(g,{label:"项目别名"},{default:e.withCtx(()=>[e.createVNode(r,{"model-value":p.customer_alias,disabled:""},null,8,["model-value"])]),_:1}),e.createVNode(g,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:p.description,"onUpdate:modelValue":t[16]||(t[16]=c=>p.description=c),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)),[[W,ce.value&&!H.value.length]])}}})),Rt=F._export_sfc(It,[["__scopeId","data-v-3637114d"]]);exports.default=Rt;