mixdashboards 1.0.95 → 1.0.97

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 (369) hide show
  1. package/dist/AgActionsRenderer.vue_vue_type_script_setup_true_lang-CJoNU7fs.js +139 -0
  2. package/dist/AgActionsRenderer.vue_vue_type_script_setup_true_lang-Cojc_jSG.cjs +1 -0
  3. package/dist/{BaseComponent-CIst2h8G.cjs → BaseComponent-C42zZPAg.cjs} +1 -1
  4. package/dist/{BaseComponent-CDynr4Wh.js → BaseComponent-D7kfvQid.js} +3 -3
  5. package/dist/{EChartComponentBase-vS3I7IAs.js → EChartComponentBase-CrdwK43r.js} +2 -2
  6. package/dist/{EChartComponentBase-COpfXxIp.cjs → EChartComponentBase-pfIekVB2.cjs} +1 -1
  7. package/dist/{EmergencyPlanPanel-pImR2o3P.js → EmergencyPlanPanel-CS1QmwbK.js} +1 -1
  8. package/dist/{EmergencyPlanPanel-C8P0GI7X.cjs → EmergencyPlanPanel-CjLGAAbP.cjs} +1 -1
  9. package/dist/{HistoryPlanDialog-CJt9WdEo.js → HistoryPlanDialog-B1wtkugg.js} +1 -1
  10. package/dist/{HistoryPlanDialog-CTBHiL33.cjs → HistoryPlanDialog-jhNV_Oqc.cjs} +1 -1
  11. package/dist/{MixiotAppDetailPage-BlcjJEvU.js → MixiotAppDetailPage-BiZoXtfI.js} +1 -1
  12. package/dist/{MixiotAppDetailPage-Sh5uWfZQ.cjs → MixiotAppDetailPage-CrJRBNfc.cjs} +1 -1
  13. package/dist/{MonitoringMap-Db5Evmst.cjs → MonitoringMap-Btz8PiVj.cjs} +1 -1
  14. package/dist/{MonitoringMap-Tm3_uHk4.js → MonitoringMap-Dzb6SdgR.js} +2 -2
  15. package/dist/{UniverSheet-CnA6FQC4.cjs → UniverSheet-DHfcCwtp.cjs} +1 -1
  16. package/dist/{UniverSheet-BQ80juz0.js → UniverSheet-DuL-rk5s.js} +2 -2
  17. package/dist/{accelerationChart-Bv6urq3Z.js → accelerationChart-B04m3kGz.js} +2 -2
  18. package/dist/{accelerationChart-CVWR4I6j.cjs → accelerationChart-DrJ_eq7I.cjs} +1 -1
  19. package/dist/{actionItem-Db9YTPOf.cjs → actionItem-Zm6EHUHY.cjs} +1 -1
  20. package/dist/{actionItem-eYAPDWJd.js → actionItem-e-PLFmgU.js} +2 -2
  21. package/dist/{alarmLevelChart-1UVCVoqR.js → alarmLevelChart-DdgByLdg.js} +2 -2
  22. package/dist/{alarmLevelChart-spD1sxSo.cjs → alarmLevelChart-Vu7rFfmM.cjs} +1 -1
  23. package/dist/{alertTable-D3vceqRf.cjs → alertTable-C4NnDMYg.cjs} +1 -1
  24. package/dist/{alertTable-Cq-bm31Z.js → alertTable-C5z7ILNj.js} +2 -2
  25. package/dist/{aliasObjectSelectorDemo-CqL71xrB.cjs → aliasObjectSelectorDemo-BoN6KxiC.cjs} +1 -1
  26. package/dist/{aliasObjectSelectorDemo-OMLXF6zO.js → aliasObjectSelectorDemo-C1vc4Qe6.js} +1 -1
  27. package/dist/{annualRainfallChart-D5jvzBdF.cjs → annualRainfallChart-BdFRM0vA.cjs} +1 -1
  28. package/dist/{annualRainfallChart-Bh51Y8J0.js → annualRainfallChart-Cte3Faau.js} +2 -2
  29. package/dist/{aqi-DDvUmbmk.js → aqi-BixnVgn2.js} +9 -9
  30. package/dist/{aqi-6DGC3Omw.cjs → aqi-Cgb3Vwad.cjs} +1 -1
  31. package/dist/{aqiIndass-Dm7Ak1t1.cjs → aqiIndass-Cs9Ihmtw.cjs} +1 -1
  32. package/dist/{aqiIndass-DwJPngho.js → aqiIndass-DgtV1bOL.js} +15 -15
  33. package/dist/{areaDeformCurve-EEudvN8P.cjs → areaDeformCurve-DUTOFO7B.cjs} +1 -1
  34. package/dist/{areaDeformCurve-DaVqM10Q.js → areaDeformCurve-tiJ0tblV.js} +2 -2
  35. package/dist/{arrayCard-BuhSczlA.js → arrayCard-BhMc72ZG.js} +2 -2
  36. package/dist/{arrayCard-CvNWzdkW.cjs → arrayCard-DkZVKQGQ.cjs} +1 -1
  37. package/dist/{audio-D90BXHEx.js → audio-DGJ648Nc.js} +2 -2
  38. package/dist/{audio-BS2BkAD6.cjs → audio-O6bMgHJQ.cjs} +1 -1
  39. package/dist/{bar-DMn6jdR5.js → bar-CEUnNrnA.js} +2 -2
  40. package/dist/{bar-Zfi2zEac.cjs → bar-D1DpfKwR.cjs} +1 -1
  41. package/dist/basicShapeToolbox-COWozQbc.cjs +1 -0
  42. package/dist/{basicShapeToolbox-IpvEWS3m.js → basicShapeToolbox-DuNotFN_.js} +3 -3
  43. package/dist/{bmp-nZQprsKY.cjs → bmp-BdA3u_nP.cjs} +1 -1
  44. package/dist/{bmp-BynLW8Wd.js → bmp-D_qPtSuK.js} +2 -2
  45. package/dist/{box-Dz4r4YYF.js → box-Bny02hiJ.js} +2 -2
  46. package/dist/{box-CSruteex.cjs → box-DDZH_UNM.cjs} +1 -1
  47. package/dist/{chartConfigPanel-DBF3Wx4F.cjs → chartConfigPanel-B9S6EiKT.cjs} +1 -1
  48. package/dist/{chartConfigPanel-f44Qtke-.js → chartConfigPanel-DvzAeXQE.js} +1 -1
  49. package/dist/{circleBar-CO3o8ByN.cjs → circleBar-C-p-P2K3.cjs} +1 -1
  50. package/dist/{circleBar-CtPFr6JX.js → circleBar-ISuDghgH.js} +8 -8
  51. package/dist/{clock-BRzseKic.cjs → clock-BAZ7gHGS.cjs} +1 -1
  52. package/dist/{clock-CchPRNtc.js → clock-o-g0Qpa7.js} +2 -2
  53. package/dist/{clt-BDhAtdJx.js → clt-CVEtdnpX.js} +2 -2
  54. package/dist/{clt-BLpQ1x4t.cjs → clt-DPq4dqmh.cjs} +1 -1
  55. package/dist/{cmc-twJ1AgHU.js → cmc-4m3QyBlX.js} +2 -2
  56. package/dist/{cmc-CvRgThhq.cjs → cmc-B-wg04Ri.cjs} +1 -1
  57. package/dist/{cmp-CO5hLZ1v.js → cmp-DD8sRmv_.js} +11 -11
  58. package/dist/{cmp-B0NosMZN.cjs → cmp-W-8LSAIe.cjs} +1 -1
  59. package/dist/{conclusionCard-B-ekbdhn.cjs → conclusionCard-BrrCOKf2.cjs} +1 -1
  60. package/dist/{conclusionCard-B6pdcA-3.js → conclusionCard-mbP-mRcJ.js} +2 -2
  61. package/dist/controlList-BrZys8D6.js +757 -0
  62. package/dist/controlList-DlqgQ510.cjs +1 -0
  63. package/dist/controlRecordList-B-lHEslj.cjs +1 -0
  64. package/dist/controlRecordList-BfQU3BYg.js +295 -0
  65. package/dist/{controlRecordListAPP-C7MUibBb.js → controlRecordListAPP-CV33yLCF.js} +2 -2
  66. package/dist/{controlRecordListAPP-BdT7UR3c.cjs → controlRecordListAPP-DbSRJUMy.cjs} +1 -1
  67. package/dist/crd-D8-JrYYm.cjs +1 -0
  68. package/dist/{crd-fmbrjZD7.js → crd-DpjRg2wi.js} +52 -50
  69. package/dist/{ctrBtn-W4abaB3U.cjs → ctrBtn-CKhVuncE.cjs} +1 -1
  70. package/dist/{ctrBtn-Dq6mpOsY.js → ctrBtn-DVnTSpMy.js} +3 -3
  71. package/dist/{ctrSet-xd_zIoJ2.cjs → ctrSet-D3HJgviN.cjs} +1 -1
  72. package/dist/{ctrSet-Br_MBjO-.js → ctrSet-DgMrl4yM.js} +3 -3
  73. package/dist/{ctrSwitch-CwPnRe4L.cjs → ctrSwitch-CLQPCuk8.cjs} +1 -1
  74. package/dist/{ctrSwitch-DTzUrEE_.js → ctrSwitch-CabBqoqJ.js} +3 -3
  75. package/dist/{dataManagement-BhEwqXHV.cjs → dataManagement-CmBsCjjz.cjs} +1 -1
  76. package/dist/{dataManagement-C49vYp12.js → dataManagement-DiJg7jlN.js} +2 -2
  77. package/dist/{dataReport-DSDd8eie.js → dataReport-BRKlDrnT.js} +2 -2
  78. package/dist/{dataReport-DYBqw0YQ.cjs → dataReport-C58Z1WyN.cjs} +1 -1
  79. package/dist/{dataTable-D2qgTxpB.js → dataTable-D9pJzwtQ.js} +1 -1
  80. package/dist/{dataTable-Cy-086YO.cjs → dataTable-n4TQYX4v.cjs} +1 -1
  81. package/dist/{datetime-COKFm9L5.js → datetime-B-KYzzjs.js} +2 -2
  82. package/dist/{datetime-DFUVJb4S.cjs → datetime-Cp-aTjx9.cjs} +1 -1
  83. package/dist/{deepClusterSlipSurface-DJzALgcB.js → deepClusterSlipSurface-Cb6AKo_u.js} +5 -5
  84. package/dist/{deepClusterSlipSurface-BPISTQcX.cjs → deepClusterSlipSurface-Cs4au-D7.cjs} +1 -1
  85. package/dist/{deepDataMatrix-w0cfO2B_.js → deepDataMatrix-D18UbgVg.js} +2 -2
  86. package/dist/{deepDataMatrix-Bi3g_bKW.cjs → deepDataMatrix-edH7pl5I.cjs} +1 -1
  87. package/dist/{deepDisplacement3D-C1ttX8aE.js → deepDisplacement3D-C_ezOVqs.js} +2 -2
  88. package/dist/{deepDisplacement3D-CIyaSi0I.cjs → deepDisplacement3D-CjUFL7gl.cjs} +1 -1
  89. package/dist/{deepDisplacementChart-CI7DxjHz.js → deepDisplacementChart-BNVKT9M5.js} +3 -3
  90. package/dist/{deepDisplacementChart-C2iv9NHz.cjs → deepDisplacementChart-COdOOjQT.cjs} +1 -1
  91. package/dist/{deepDisplacementChart-Dk_rmKnV.js → deepDisplacementChart-DlFZBsHh.js} +2 -2
  92. package/dist/{deepDisplacementChart-CYstKBTy.cjs → deepDisplacementChart-Tfqj9khW.cjs} +1 -1
  93. package/dist/{deepDisplacementView-CIffZ686.js → deepDisplacementView-BcYMcimK.js} +1 -1
  94. package/dist/{deepDisplacementView-Dq4b2RbZ.cjs → deepDisplacementView-C5dr_KFf.cjs} +1 -1
  95. package/dist/{deepNodeTemperatureChart-OVbfuoz6.cjs → deepNodeTemperatureChart-CyjWwmRb.cjs} +1 -1
  96. package/dist/{deepNodeTemperatureChart-C2gt2VNw.js → deepNodeTemperatureChart-DZLc9z6n.js} +5 -5
  97. package/dist/{deepTangentAngleChart-DqtJDwQf.js → deepTangentAngleChart-DsyFhBgJ.js} +6 -6
  98. package/dist/{deepTangentAngleChart-C-NNLv4_.cjs → deepTangentAngleChart-a41v2DRO.cjs} +1 -1
  99. package/dist/{deepTemperatureField-BsxBNJ-G.cjs → deepTemperatureField-BKwbER4Z.cjs} +1 -1
  100. package/dist/{deepTemperatureField-BeQX4h51.js → deepTemperatureField-CTtxBHkt.js} +7 -7
  101. package/dist/{deepTrendChart-Dk-eTMyG.cjs → deepTrendChart-B7T-ykiy.cjs} +1 -1
  102. package/dist/{deepTrendChart-sxOxHlRy.js → deepTrendChart-DCJmZ38j.js} +5 -5
  103. package/dist/{deviceOnlineStatus-J3R8H1RD.cjs → deviceOnlineStatus-DJLS5d8V.cjs} +1 -1
  104. package/dist/{deviceOnlineStatus-CKijwYuq.js → deviceOnlineStatus-vvs3IjoT.js} +2 -2
  105. package/dist/{deviceStatus-CnfzQ719.js → deviceStatus-8Y7fqV7j.js} +2 -2
  106. package/dist/{deviceStatus-Bt1e3XlG.cjs → deviceStatus-fsvw50YY.cjs} +1 -1
  107. package/dist/{displacementDataTable-B5thhB6W.cjs → displacementDataTable-CAj6C6ug.cjs} +1 -1
  108. package/dist/{displacementDataTable-CbGeB6cZ.js → displacementDataTable-zCrCdDAk.js} +2 -2
  109. package/dist/{displacementTrajectoryChart-B1p6RdoR.cjs → displacementTrajectoryChart-BArbCJTS.cjs} +1 -1
  110. package/dist/{displacementTrajectoryChart-D6BsvUrc.js → displacementTrajectoryChart-iL4iRKZ2.js} +2 -2
  111. package/dist/{displacementTrendChart-B0GB0r8C.cjs → displacementTrendChart-B_5KOzmg.cjs} +1 -1
  112. package/dist/{displacementTrendChart-D0mhffyM.js → displacementTrendChart-jI9s1jqc.js} +2 -2
  113. package/dist/{dxf-ChDppNsq.cjs → dxf-EOLYvUtK.cjs} +1 -1
  114. package/dist/{dxf-BSWNRcSp.js → dxf-Wr__XlMC.js} +2 -2
  115. package/dist/{dzc-j07WTq_9.js → dzc-BWDvHjPU.js} +12 -12
  116. package/dist/{dzc-CjI1wBLb.cjs → dzc-D8XN73z2.cjs} +1 -1
  117. package/dist/{emergencyPlan-CJljT67A.cjs → emergencyPlan-CI9EkZfn.cjs} +1 -1
  118. package/dist/{emergencyPlan-DWXloQOJ.js → emergencyPlan-DVQEu9zg.js} +3 -3
  119. package/dist/{evn-C85HtXrl.cjs → evn-2U-jKoDM.cjs} +1 -1
  120. package/dist/{evn-DVXNLw3K.js → evn-CkEHDEjn.js} +2 -2
  121. package/dist/{evolutionChart-CiSJ0zjN.js → evolutionChart-DAh8Gy4-.js} +3 -3
  122. package/dist/{evolutionChart-CzqdvPgf.cjs → evolutionChart-DxkVM36e.cjs} +1 -1
  123. package/dist/{fileViewer-AuP1BMOL.cjs → fileViewer-C8XZYud4.cjs} +1 -1
  124. package/dist/{fileViewer-BfvwEeaA.js → fileViewer-CR0Ldpe9.js} +2 -2
  125. package/dist/{filterBar-DxLYIinB.cjs → filterBar-CVm0E6_U.cjs} +1 -1
  126. package/dist/{filterBar-C6XiY3D6.js → filterBar-DWLGgMzl.js} +2 -2
  127. package/dist/{fireCombustionCurve-DZ0aQVHp.js → fireCombustionCurve-w50Ad5Qz.js} +3 -3
  128. package/dist/{fireCombustionCurve-8cJxPiAg.cjs → fireCombustionCurve-yQMkVsEM.cjs} +1 -1
  129. package/dist/{fireFilterBar-ZaI62_tT.cjs → fireFilterBar-DbmtTFOx.cjs} +1 -1
  130. package/dist/{fireFilterBar-BCnSNarb.js → fireFilterBar-Duk7OJ9Y.js} +2 -2
  131. package/dist/{fireHistoryTable-PZdwtN69.cjs → fireHistoryTable-BO6ej88t.cjs} +1 -1
  132. package/dist/{fireHistoryTable-BXC6ZYkJ.js → fireHistoryTable-DPBVjZiJ.js} +2 -2
  133. package/dist/{gag-CbkboK8w.cjs → gag-BMTle0iW.cjs} +1 -1
  134. package/dist/{gag--ZAXdXFK.js → gag-CSAmkyDD.js} +5 -5
  135. package/dist/{gasStationList-DvzI0A1r.js → gasStationList-CQgakcsg.js} +2 -2
  136. package/dist/{gasStationList-Cw7AH91B.cjs → gasStationList-DnQK3yKb.cjs} +1 -1
  137. package/dist/{geo3dViewer-mFrWGimz.cjs → geo3dViewer-BIlig7g_.cjs} +1 -1
  138. package/dist/{geo3dViewer-fK7PZCvz.js → geo3dViewer-mJDVY5cp.js} +3 -3
  139. package/dist/{glbModel-BgqZX5Vh.js → glbModel-BzxP8shl.js} +2 -2
  140. package/dist/{glbModel-iV3SV8Ig.cjs → glbModel-DnWXDJic.cjs} +1 -1
  141. package/dist/{globalObjectSelector-DKw1vigz.cjs → globalObjectSelector-Cp55ZFxL.cjs} +1 -1
  142. package/dist/{globalObjectSelector-EwvayNUM.js → globalObjectSelector-lYWLbEt8.js} +1 -1
  143. package/dist/{gnssFilterBar-Bh0x2hth.js → gnssFilterBar-4yJR6Hid.js} +2 -2
  144. package/dist/{gnssFilterBar-X7HKdDTm.cjs → gnssFilterBar-BcXsjKvN.cjs} +1 -1
  145. package/dist/{gnssHistoryTable-DgH6SjDn.cjs → gnssHistoryTable-CQhYzIkF.cjs} +1 -1
  146. package/dist/{gnssHistoryTable-CRnzvH_A.js → gnssHistoryTable-V6L8Mapo.js} +2 -2
  147. package/dist/{gnssMapView-Dw4_9_Mv.js → gnssMapView-B-uzWumH.js} +4 -4
  148. package/dist/{gnssMapView-WYpkFEvR.cjs → gnssMapView-CCJ_Y4o6.cjs} +2 -2
  149. package/dist/{gnssSectionProfile-DmQNxm5Z.js → gnssSectionProfile-B8Rt-CF9.js} +2 -2
  150. package/dist/{gnssSectionProfile-CkWQ6OJ5.cjs → gnssSectionProfile-B_8IErhJ.cjs} +1 -1
  151. package/dist/{gnssTimeSeriesChart-XHZlhMj6.js → gnssTimeSeriesChart-BaP9brVp.js} +2 -2
  152. package/dist/{gnssTimeSeriesChart-DQgAq0a7.cjs → gnssTimeSeriesChart-IF2Zzgya.cjs} +1 -1
  153. package/dist/{gnssXYTrajectory-CSo1u1n3.js → gnssXYTrajectory-BNXHdP5L.js} +2 -2
  154. package/dist/{gnssXYTrajectory-DGHeShyk.cjs → gnssXYTrajectory-DZXUOtdZ.cjs} +1 -1
  155. package/dist/{grd-CZkreEUN.js → grd-CRF5hQq3.js} +2 -2
  156. package/dist/{grd-v0lK1kF4.cjs → grd-q2JwG1LL.cjs} +1 -1
  157. package/dist/{grdIndass-BT0BFDGR.cjs → grdIndass-B_nXfqqR.cjs} +1 -1
  158. package/dist/{grdIndass-D6yoBQ17.js → grdIndass-C8DPNROD.js} +2 -2
  159. package/dist/{grg-DRWv1y-A.cjs → grg-DHuXQP_O.cjs} +1 -1
  160. package/dist/{grg-DckR9cWt.js → grg-M9MwBK9q.js} +6 -6
  161. package/dist/{gridview-BNsYOW5h.cjs → gridview-DLILP3no.cjs} +1 -1
  162. package/dist/{gridview-BeWxnPvt.js → gridview-DTqcftjZ.js} +2 -2
  163. package/dist/{groundwaterFilterBar-yRYOHhla.js → groundwaterFilterBar-DwrhRk_v.js} +2 -2
  164. package/dist/{groundwaterFilterBar-DlJ6qtXT.cjs → groundwaterFilterBar-zXbia-fX.cjs} +1 -1
  165. package/dist/{groundwaterProfileChart-DH4qqAPc.cjs → groundwaterProfileChart-DrdP76cd.cjs} +2 -2
  166. package/dist/{groundwaterProfileChart-Bt_O3O-n.js → groundwaterProfileChart-PjBzMvbw.js} +3 -3
  167. package/dist/{groundwaterTimeCurve-Ck0jjuL8.js → groundwaterTimeCurve-DInTJEEl.js} +3 -3
  168. package/dist/{groundwaterTimeCurve-BXMGUMmt.cjs → groundwaterTimeCurve-DYk42p1p.cjs} +1 -1
  169. package/dist/{groupCard-D0UsDuiC.js → groupCard-BrNzGFVs.js} +2 -2
  170. package/dist/{groupCard-B-IRFBAh.cjs → groupCard-CNuEYy3p.cjs} +1 -1
  171. package/dist/{headerBar-B1WEFdX3.cjs → headerBar-BEoo20so.cjs} +1 -1
  172. package/dist/{headerBar-D5Xt_cgG.js → headerBar-C5tkesYI.js} +2 -2
  173. package/dist/{history-DQBAOa1f.js → history-D_JkziAv.js} +1 -1
  174. package/dist/{history-CDhWtnKJ.cjs → history-b7zBiHDz.cjs} +1 -1
  175. package/dist/{index-dAR2gb1S.js → index-CaDDNmGU.js} +3725 -3636
  176. package/dist/index-PR_k3tQg.cjs +615 -0
  177. package/dist/{insarDeformChart-Ca-7OxkY.js → insarDeformChart-C5PiLbYU.js} +2 -2
  178. package/dist/{insarDeformChart-Cpj6erLV.cjs → insarDeformChart-DBXyVjKk.cjs} +1 -1
  179. package/dist/{insarImageViewer-B13fJI8O.cjs → insarImageViewer-B9-QQ_De.cjs} +1 -1
  180. package/dist/{insarImageViewer-DPl6v87T.js → insarImageViewer-BEeQiS6N.js} +2 -2
  181. package/dist/{kds-DOWMe1al.js → kds-BoR05GUP.js} +10 -10
  182. package/dist/{kds-BKeCFcf9.cjs → kds-JbCbEtJs.cjs} +1 -1
  183. package/dist/{kpiCard-qgFod_Ua.cjs → kpiCard-7v6bZGP2.cjs} +1 -1
  184. package/dist/{kpiCard-CCFRhtwi.js → kpiCard-BP-GnthE.js} +2 -2
  185. package/dist/{landslideMap-BQlFx7Cv.js → landslideMap-BMu2X2bN.js} +3 -3
  186. package/dist/{landslideMap-BzeioyHt.cjs → landslideMap-D59SrOZE.cjs} +1 -1
  187. package/dist/{landslideWarning-VULyaEXL.cjs → landslideWarning-C_hcQ1wr.cjs} +1 -1
  188. package/dist/{landslideWarning-M7D7Bl_l.js → landslideWarning-DeB2bNpu.js} +5 -5
  189. package/dist/{layerTabs-BlaGgxva.js → layerTabs-ByZZMwks.js} +2 -2
  190. package/dist/{layerTabs-DMUf84AC.cjs → layerTabs-C1XclQOC.cjs} +1 -1
  191. package/dist/{leaflet-src-ClJjz25G.js → leaflet-src-O0MJ0wU5.js} +1 -1
  192. package/dist/{leaflet-src-DV6okrEg.cjs → leaflet-src-w8JmXMPG.cjs} +1 -1
  193. package/dist/{lerc-CI8uTaV0.js → lerc-BSgE4FKp.js} +2 -2
  194. package/dist/{lerc-DgZ-wqgS.cjs → lerc-C0ekD7Me.cjs} +1 -1
  195. package/dist/{lin-B1h1vCEM.cjs → lin-DGOJIF6s.cjs} +1 -1
  196. package/dist/{lin-DoCO7YNv.js → lin-DGafw8zf.js} +11 -11
  197. package/dist/{linIndass-0AjC0BWn.cjs → linIndass-BERNb4X3.cjs} +1 -1
  198. package/dist/{linIndass-CBpi3PAZ.js → linIndass-BLAQz5op.js} +6 -6
  199. package/dist/{lst-Di4jQX13.cjs → lst-BbLp5U-f.cjs} +1 -1
  200. package/dist/{lst-DOQ0I-QM.js → lst-Cb1RdJ3D.js} +2 -2
  201. package/dist/{manualEntry-Cbkj0184.js → manualEntry-C3aJpT9g.js} +2 -2
  202. package/dist/{manualEntry-P8Nl97Qi.cjs → manualEntry-Ztj3fH3A.cjs} +1 -1
  203. package/dist/{mapBackground-DQ9_4u47.js → mapBackground-BPNim3nv.js} +3 -3
  204. package/dist/{mapBackground-B8qmaFhT.cjs → mapBackground-CzRZzD1O.cjs} +1 -1
  205. package/dist/mappingList-B6NYcjIa.js +790 -0
  206. package/dist/mappingList-B_FVwWfC.cjs +1 -0
  207. package/dist/{markdownViewer-CUD-sV4Y.cjs → markdownViewer-BPdAvoWW.cjs} +1 -1
  208. package/dist/{markdownViewer-DoNdzIKf.js → markdownViewer-CSMB8l93.js} +2 -2
  209. package/dist/materialFileUrl-BR6anfF2.cjs +1 -0
  210. package/dist/materialFileUrl-BUkIkwgp.js +108 -0
  211. package/dist/{mix-control-modal-Ckptw_rw.js → mix-control-modal-46dJ4X4L.js} +1 -1
  212. package/dist/{mix-control-modal-C_uKEO_a.cjs → mix-control-modal-oDAz2GZ_.cjs} +1 -1
  213. package/dist/{mixGrid-6zeicQ3c.cjs → mixGrid-1tOrywk7.cjs} +1 -1
  214. package/dist/{mixGrid-CTVvp9QF.js → mixGrid-F-d2hIht.js} +2 -2
  215. package/dist/mixdashboards.cjs +1 -1
  216. package/dist/mixdashboards.css +1 -1
  217. package/dist/mixdashboards.js +1 -1
  218. package/dist/{mjpegCamera-iTrVcLgw.cjs → mjpegCamera-Bzf9Zlb9.cjs} +1 -1
  219. package/dist/{mjpegCamera-Vcjc4TDv.js → mjpegCamera-CAR217Pv.js} +2 -2
  220. package/dist/{monitorAlert-C-4k1_jT.cjs → monitorAlert-BJtWNV53.cjs} +1 -1
  221. package/dist/{monitorAlert-Dr38wAgW.js → monitorAlert-CD2NRVzR.js} +2 -2
  222. package/dist/{monitorData-C1TidDg9.js → monitorData-CviwIANH.js} +2 -2
  223. package/dist/{monitorData-CZVyYd2r.cjs → monitorData-D2rrSoJh.cjs} +1 -1
  224. package/dist/{monitorSpeedChart-17C8sMrk.cjs → monitorSpeedChart-BUfGJsBO.cjs} +1 -1
  225. package/dist/{monitorSpeedChart-BcpBU8eq.js → monitorSpeedChart-DCMb9kVx.js} +1 -1
  226. package/dist/{mxa-CM0cQhnm.js → mxa-CAgh10Ux.js} +6 -6
  227. package/dist/{mxa-Bgnj8E8y.cjs → mxa-CTkUFkJB.cjs} +1 -1
  228. package/dist/{myValue-8ohRFr2E.js → myValue-BwWuUkn0.js} +2 -2
  229. package/dist/{myValue-BLbSXlWk.cjs → myValue-CTtwYm45.cjs} +1 -1
  230. package/dist/{myValueList-CHcuWTTH.cjs → myValueList-8goYepha.cjs} +1 -1
  231. package/dist/{myValueList-COjvkd2-.js → myValueList-D-EbIIcT.js} +2 -2
  232. package/dist/objectList-B6S5Vbt7.js +1824 -0
  233. package/dist/objectList-Dbkam4GS.cjs +1 -0
  234. package/dist/{objectListAPP-bzNJlVaA.js → objectListAPP-6EVjt25O.js} +3 -3
  235. package/dist/{objectListAPP-Dq8fHxp8.cjs → objectListAPP-BRDAVQcL.cjs} +1 -1
  236. package/dist/{percentBar-FUCfrT8V.js → percentBar-CXFGCu39.js} +9 -9
  237. package/dist/{percentBar-SFYgecHA.cjs → percentBar-CllO6t03.cjs} +1 -1
  238. package/dist/photo-Bm9bjJ5L.cjs +1 -0
  239. package/dist/{photo-TgHIe0Ch.js → photo-CISKz3py.js} +4 -4
  240. package/dist/{pie-C48Objcw.js → pie-B3nio1dC.js} +8 -8
  241. package/dist/{pie-BZ77ZyhE.cjs → pie-CsZff0UE.cjs} +1 -1
  242. package/dist/{placeholder-_psD4WXJ.cjs → placeholder-CPgwWlNB.cjs} +1 -1
  243. package/dist/{placeholder-CxNDI9H6.js → placeholder-q3O8Bva5.js} +1 -1
  244. package/dist/{pressBtn-B5Z00Ths.js → pressBtn-BSWda69G.js} +3 -3
  245. package/dist/{pressBtn-DPKQTc72.cjs → pressBtn-Bq1_wegh.cjs} +1 -1
  246. package/dist/{processTable-DHGOo7NC.cjs → processTable-BP4EKe75.cjs} +1 -1
  247. package/dist/{processTable-Dy8AKXfL.js → processTable-C9Q2jiVC.js} +2 -2
  248. package/dist/{progressBar-DAkhmQGk.cjs → progressBar-Bb9apofa.cjs} +1 -1
  249. package/dist/{progressBar-BsbB_lCn.js → progressBar-DGI1hKbd.js} +2 -2
  250. package/dist/{progressCircle-Bo6lG0y4.cjs → progressCircle-BRbfwnB-.cjs} +1 -1
  251. package/dist/{progressCircle-dtQ2Mr98.js → progressCircle-B_yHB1bZ.js} +2 -2
  252. package/dist/{qrcode-PDPXI73T.js → qrcode-B4O103tY.js} +308 -307
  253. package/dist/qrcode-CMYqHUmi.cjs +1 -0
  254. package/dist/{raceBar-CORYOqMg.cjs → raceBar-BBTSuU97.cjs} +1 -1
  255. package/dist/{raceBar-BuuLeY-X.js → raceBar-CJ4qBGhx.js} +6 -6
  256. package/dist/{rad-CNwy6iai.js → rad-DR-duEfw.js} +7 -7
  257. package/dist/{rad-BmQsBbVy.cjs → rad-np3W7CAD.cjs} +1 -1
  258. package/dist/{radarMapViewer-BADJdQo5.js → radarMapViewer-BVtJ2q6c.js} +2 -2
  259. package/dist/{radarMapViewer-CrMIxOBL.cjs → radarMapViewer-kbdzbDKP.cjs} +1 -1
  260. package/dist/{rainfallFilterBar-CiOm_zYw.js → rainfallFilterBar-CYpib1XL.js} +2 -2
  261. package/dist/{rainfallFilterBar-MmjGAJRF.cjs → rainfallFilterBar-DuZwhtKa.cjs} +1 -1
  262. package/dist/{rainfallTimeCurve-BAKEsUwe.js → rainfallTimeCurve-BT4rE2Vc.js} +3 -3
  263. package/dist/{rainfallTimeCurve-C2ysFIbv.cjs → rainfallTimeCurve-DYWpLoT1.cjs} +1 -1
  264. package/dist/{rangeLin-DBV9Ss9P.js → rangeLin-BBcJ9PnJ.js} +7 -7
  265. package/dist/{rangeLin-6kOG5U0P.cjs → rangeLin-ChaYkb8_.cjs} +1 -1
  266. package/dist/{realtimeEvolutionMap-C8Dsp61U.js → realtimeEvolutionMap-CJxCeMCD.js} +2 -2
  267. package/dist/{realtimeEvolutionMap-RVlodvbx.cjs → realtimeEvolutionMap-UFga_5-Z.cjs} +1 -1
  268. package/dist/{regionBar-CuD510qV.cjs → regionBar-CdvwMj9w.cjs} +1 -1
  269. package/dist/{regionBar-sPagXetw.js → regionBar-D2tQM5cu.js} +2 -2
  270. package/dist/{request-DtzGiXvj.cjs → request-CBFwthty.cjs} +1 -1
  271. package/dist/{request-Do8WJeMw.js → request-D0RrTUSz.js} +1 -1
  272. package/dist/{retainer1-C8Do2c08.cjs → retainer1-BGV2MuUp.cjs} +1 -1
  273. package/dist/{retainer1-CrZIpnRg.js → retainer1-YHosRvc1.js} +3 -3
  274. package/dist/{retainer2-BG9yfpJ5.cjs → retainer2-Un2rhmxB.cjs} +1 -1
  275. package/dist/{retainer2-0h4QPS_q.js → retainer2-Wvm3l39y.js} +3 -3
  276. package/dist/retainerRecordList-C_aduEsj.cjs +1 -0
  277. package/dist/retainerRecordList-CqOPgM_e.js +772 -0
  278. package/dist/{retainerRecordListAPP-DPcEWs2r.js → retainerRecordListAPP-CutsTHxC.js} +3 -3
  279. package/dist/{retainerRecordListAPP-DYifrv8O.cjs → retainerRecordListAPP-UOXVHQzs.cjs} +1 -1
  280. package/dist/{ringTopN-DqDVlrjM.js → ringTopN-BhDlEOCJ.js} +5 -5
  281. package/dist/{ringTopN-CrJ_d3bE.cjs → ringTopN-mA9LAgFN.cjs} +1 -1
  282. package/dist/{riskRegionTable-DP2yKg1m.js → riskRegionTable-CYTLnsH-.js} +2 -2
  283. package/dist/{riskRegionTable-DXn7fEY5.cjs → riskRegionTable-Cm9BsaWA.cjs} +1 -1
  284. package/dist/{sankey-Bu-SU7-2.cjs → sankey-BmvrkXRY.cjs} +1 -1
  285. package/dist/{sankey-CT3ba6e5.js → sankey-jU9Dscb_.js} +8 -8
  286. package/dist/{scd-DLEMda1z.js → scd-CGTKGaWO.js} +3 -3
  287. package/dist/{scd-B0uAZi1c.cjs → scd-TQcCDjoj.cjs} +1 -1
  288. package/dist/{sideMenu-NDBmswKS.js → sideMenu-CtdLmpLX.js} +2 -2
  289. package/dist/{sideMenu-D5CiGthZ.cjs → sideMenu-D4uEDc38.cjs} +1 -1
  290. package/dist/{slopeStability-DHEMnZQs.cjs → slopeStability-B-LzCvR7.cjs} +1 -1
  291. package/dist/{slopeStability-Bm83R1CK.js → slopeStability-H7iiOf5G.js} +2 -2
  292. package/dist/{speedCurve-COz1e5fR.cjs → speedCurve-BKMR6Z0r.cjs} +1 -1
  293. package/dist/{speedCurve-DMzIHREh.js → speedCurve-lgD_hG_W.js} +2 -2
  294. package/dist/{stackedBar-Co04v-nd.js → stackedBar-BJu9_GI7.js} +9 -9
  295. package/dist/{stackedBar-Cj1vVULH.cjs → stackedBar-D-goARDv.cjs} +1 -1
  296. package/dist/{stressFilterBar-CFgshgvm.js → stressFilterBar-BOsQJoK_.js} +2 -2
  297. package/dist/{stressFilterBar-wfAWtOIp.cjs → stressFilterBar-D6qiNCAj.cjs} +1 -1
  298. package/dist/{stressTimeCurve-CwMkdryb.js → stressTimeCurve-Bgxr5Wrf.js} +3 -3
  299. package/dist/{stressTimeCurve-BRvsiFhp.cjs → stressTimeCurve-BwZLKFHb.cjs} +1 -1
  300. package/dist/{swiper-DA6nGJfp.js → swiper-CRtoulGh.js} +2 -2
  301. package/dist/{swiper-CPMWAfwl.cjs → swiper-D82oGlpT.cjs} +1 -1
  302. package/dist/syncMixiotListConfig-CD0wWvPU.js +34192 -0
  303. package/dist/syncMixiotListConfig-Cpgnkkws.cjs +200 -0
  304. package/dist/tablemanList-10EHbXgv.cjs +1 -0
  305. package/dist/tablemanList-DmHYElUp.js +888 -0
  306. package/dist/terminalConfigList-D6NiHYBX.js +888 -0
  307. package/dist/terminalConfigList-cHJ-LVj5.cjs +1 -0
  308. package/dist/terminalList-BVovhzGU.cjs +1 -0
  309. package/dist/terminalList-CTBcP9xm.js +1046 -0
  310. package/dist/{terminalListAPP-Bj7pUZTy.cjs → terminalListAPP-Cwe2xdL6.cjs} +1 -1
  311. package/dist/{terminalListAPP-37PqyT3O.js → terminalListAPP-afa_Ibtw.js} +3 -3
  312. package/dist/{textbox-DG4Wr4Zt.js → textbox-BLANVfpn.js} +2 -2
  313. package/dist/{textbox-CawmOfBp.cjs → textbox-D1Qwf3d2.cjs} +1 -1
  314. package/dist/{timeQueryBar-CD-5fWy6.js → timeQueryBar-BHTy_h6G.js} +1 -1
  315. package/dist/{timeQueryBar-Bqc3rENc.cjs → timeQueryBar-CNbq5Bet.cjs} +1 -1
  316. package/dist/{timeSeries-CopKSs1l.cjs → timeSeries-CVz4_Q5W.cjs} +1 -1
  317. package/dist/{timeSeries-BzGYz4rY.js → timeSeries-DSzv8Sp2.js} +3 -3
  318. package/dist/{timeSeriesCurve-m0ics-PW.js → timeSeriesCurve-DSAYjkRU.js} +3 -3
  319. package/dist/{timeSeriesCurve-ejwsuDRh.cjs → timeSeriesCurve-yQo3qHHo.cjs} +1 -1
  320. package/dist/{toggleBtn-C-nuKRcD.js → toggleBtn-COE-GX9z.js} +9 -9
  321. package/dist/{toggleBtn-CSEv5acM.cjs → toggleBtn-CsetEz6X.cjs} +1 -1
  322. package/dist/{trajectoryConfigPanel-Cp-3rnXO.cjs → trajectoryConfigPanel-BS6SAfIu.cjs} +1 -1
  323. package/dist/{trajectoryConfigPanel-Af97dCSS.js → trajectoryConfigPanel-BzJcwd-3.js} +1 -1
  324. package/dist/{trajectoryScatter-De9UG6j1.js → trajectoryScatter-DSj9tCgT.js} +5 -5
  325. package/dist/{trajectoryScatter-BoTLmylA.cjs → trajectoryScatter-ftlV7dd0.cjs} +1 -1
  326. package/dist/{universalConfigPanel-Dit0ntD6.js → universalConfigPanel-BzY0yL6m.js} +1 -1
  327. package/dist/{universalConfigPanel-XvxA7QRD.cjs → universalConfigPanel-DjClEju7.cjs} +1 -1
  328. package/dist/{universalTable-Uu7dh0aG.cjs → universalTable-DPu429rn.cjs} +1 -1
  329. package/dist/{universalTable-BssOWAuT.js → universalTable-JvMM251F.js} +2 -2
  330. package/dist/{video-CJtGAYJU.cjs → video-BZbt1v0N.cjs} +10 -10
  331. package/dist/{video-Mbk0ZeLf.js → video-OJsr6jxT.js} +218 -191
  332. package/dist/{videoMonitor-DmL2qXe0.js → videoMonitor-BcfssQX4.js} +2 -2
  333. package/dist/{videoMonitor-B3pFfxQs.cjs → videoMonitor-DWNh0F6P.cjs} +1 -1
  334. package/dist/{vlu-D32xqnoV.js → vlu-BXyZcEQh.js} +2 -2
  335. package/dist/{vlu-XFWtxEvv.cjs → vlu-BrVly_o-.cjs} +1 -1
  336. package/dist/{warningOverview-COPwxqAR.js → warningOverview-C8qJNEFc.js} +3 -3
  337. package/dist/{warningOverview-DM5hXwpU.cjs → warningOverview-YqxTqkG6.cjs} +1 -1
  338. package/dist/{weather-B-KIS-ju.cjs → weather-Ba0ATW6-.cjs} +1 -1
  339. package/dist/{weather-CdxthMeR.js → weather-Drd-bMhZ.js} +2 -2
  340. package/dist/{windLin-FzPQoyak.cjs → windLin-5NXNHy9D.cjs} +1 -1
  341. package/dist/{windLin-BgUBtwgj.js → windLin-DFzNiUCz.js} +9 -9
  342. package/package.json +4 -4
  343. package/dist/basicShapeToolbox-XDdKQhh3.cjs +0 -1
  344. package/dist/controlList-Dnoaci0A.js +0 -831
  345. package/dist/controlList-dtqVlRpr.cjs +0 -1
  346. package/dist/controlRecordList-B9LUt_5C.cjs +0 -1
  347. package/dist/controlRecordList-D1Q7xLf4.js +0 -356
  348. package/dist/crd-BThv1Z-E.cjs +0 -1
  349. package/dist/index-5jeBLy74.cjs +0 -612
  350. package/dist/mappingList-C5Z35UKc.js +0 -874
  351. package/dist/mappingList-DPzBIPSp.cjs +0 -1
  352. package/dist/materialFileUrl-CubtnHeq.js +0 -108
  353. package/dist/materialFileUrl-DfPNm265.cjs +0 -1
  354. package/dist/objectList-C0VYvS35.js +0 -1949
  355. package/dist/objectList-YyLH8wsA.cjs +0 -1
  356. package/dist/photo-qUJBBWcl.cjs +0 -1
  357. package/dist/qrcode-e5STOK-h.cjs +0 -1
  358. package/dist/retainerRecordList-CRZXn8qs.js +0 -833
  359. package/dist/retainerRecordList-TfKyqBNI.cjs +0 -1
  360. package/dist/syncMixiotListConfig-CiyYjyPz.js +0 -259
  361. package/dist/syncMixiotListConfig-Dke6MCA9.cjs +0 -1
  362. package/dist/tablemanList-BOFkLUE6.cjs +0 -1
  363. package/dist/tablemanList-Cy40wppA.js +0 -954
  364. package/dist/terminalConfigList-BcHRePUS.js +0 -978
  365. package/dist/terminalConfigList-DCT3FbXq.cjs +0 -1
  366. package/dist/terminalList-BTyk3rSA.cjs +0 -1
  367. package/dist/terminalList-Czr6nBtS.js +0 -1163
  368. /package/dist/{vue-router-CRhRQNx-.cjs → useApi-DtucMc-S-CRhRQNx-.cjs} +0 -0
  369. /package/dist/{vue-router-ha66t1D5.js → useApi-DtucMc-S-ha66t1D5.js} +0 -0
@@ -1 +0,0 @@
1
- "use strict";var Ut=Object.defineProperty,Mt=Object.defineProperties;var Rt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var qt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable;var lt=(k,y,b)=>y in k?Ut(k,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):k[y]=b,X=(k,y)=>{for(var b in y||(y={}))qt.call(y,b)&&lt(k,b,y[b]);if(tt)for(var b of tt(y))Pt.call(y,b)&&lt(k,b,y[b]);return k},ue=(k,y)=>Mt(k,Rt(y));var B=(k,y,b)=>new Promise((ie,_)=>{var K=T=>{try{Z(b.next(T))}catch(ee){_(ee)}},fe=T=>{try{Z(b.throw(T))}catch(ee){_(ee)}},Z=T=>T.done?ie(T.value):Promise.resolve(T.value).then(K,fe);Z((b=b.apply(k,y)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/loading/style/css");require("element-plus/es/components/empty/style/css");require("element-plus/es/components/collapse/style/css");require("element-plus/es/components/collapse-item/style/css");require("element-plus/es/components/descriptions/style/css");require("element-plus/es/components/tag/style/css");require("element-plus/es/components/descriptions-item/style/css");require("element-plus/es/components/alert/style/css");require("element-plus/es/components/divider/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/popover/style/css");require("element-plus/es/components/pagination/style/css");require("element-plus/es/components/table/style/css");require("element-plus/es/components/table-column/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/date-picker/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/icon/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");const e=require("vue"),h=require("./index-5jeBLy74.cjs"),me=require("./syncMixiotListConfig-Dke6MCA9.cjs"),zt=require("./useMixiotPanelSurface-CAZgexY5.cjs"),It=require("./BaseComponent-CIst2h8G.cjs"),$t=require("./titleStyle-NSnz6cUg.cjs"),C=require("element-plus"),Kt=require("@element-plus/icons-vue"),Ht=require("./appendCommonDesignerWhereAnd-Q-EhDJXE.cjs"),pe=require("./objectList.tabs-BRCf7OY9.cjs"),Yt=require("./migrateMixiotListKeys-C8_DM_Sv.cjs"),at=require("./ele-lst-icon-CrxnHZ-A.cjs"),Wt={class:"mix-body"},Jt={class:"top-bar"},Gt={class:"footer-panel"},Qt={class:"context-menu"},Xt={class:"dialog-footer"},Zt={class:"dialog-footer"},el={class:"view-detail-body"},tl={key:1,class:"view-detail-layout"},ll={class:"view-detail-tabs"},al=["onClick"],ol={class:"view-detail-pane"},il={key:0,class:"view-detail-error"},rl={class:"mix-detail-block"},nl=["src"],dl={key:1,class:"mix-detail-title-sm"},sl={key:2,class:"mix-detail-block"},cl={key:1,class:"detail-tab-body detail-tab-body--monitor"},ul={key:2,class:"detail-tab-body"},ml={key:3,class:"detail-tab-body"},pl={class:"tab-card-title"},fl={class:"tab-card-meta"},vl={key:0},gl={key:1},yl={key:4,class:"detail-tab-body"},Vl={class:"tab-card-title"},_l={class:"tab-card-meta"},bl={key:0},hl={key:1},Nl={key:5,class:"detail-tab-body"},kl={class:"tab-card-title"},xl={class:"tab-card-meta"},Cl={key:0},wl={key:1},Bl={key:6,class:"detail-tab-body"},Sl={class:"tab-toolbar"},Tl={key:7,class:"view-detail-stub"},Dl={class:"stub-uid"},El={DEFAULT_ICON:at.DEFAULT_ICON,ACTIVE_ICON:at.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectList",ORDER:1,PLATFORM:["pc","screen"]},Al={panelBgTone:{value:"light",type:"select",label:"component.options.mixiotPanelBgTone",options:[{label:"component.options.mixiotPanelBgTone_light",value:"light"},{label:"component.options.mixiotPanelBgTone_dark",value:"dark"}]},titleColor:"#111",titleSize:14,isHideTitle:!1,columns:[]},Be=[ue(X({add:!0,view:!0,edit:!0,archive:!0,delete:!0},pe.detailTabRowDefaults()),{addRealtimeData:!1,realtimeParams:[{name:"",fv:""}],textValueTransform:{mode:"numeric",numericRules:[{matchType:"value",matchValue:"",displayText:"",color:"#333333"}],rangeRules:[{op:"gt",boundary:"",displayText:"",color:"#333333"}]}})],Ll=[{key:"add",label:"添加对象",type:"checkbox"}],Fl=[{key:"view",label:"查看",type:"checkbox"},{key:"edit",label:"编辑",type:"checkbox"},{key:"archive",label:"资料备档",type:"checkbox"},{key:"delete",label:"删除",type:"checkbox"}],jl=[],Ol={isAddCondition:!1,conditions:[],conditionFilterFields:[{value:"name",label:"setting.gridFields.objectName"},{value:"uid",label:"setting.gridFields.objectId"},{value:"alias",label:"setting.gridFields.objectAlias"},{value:"customer_id",label:"setting.gridFields.customerId"},{value:"customer_alias",label:"setting.gridFields.customerAlias"},{value:"customer_name",label:"setting.gridFields.customerName"},{value:"mapping_id",label:"setting.gridFields.mappingId"},{value:"mapping_name",label:"setting.gridFields.mappingName"},{value:"terminal_list",label:"setting.gridFields.linkedTerminals"},{value:"tag",label:"setting.gridFields.tag"},{value:"province",label:"setting.gridFields.province"},{value:"city",label:"setting.gridFields.city"},{value:"model",label:"setting.gridFields.model"},{value:"serial_no",label:"setting.gridFields.serialNumber"},{value:"created",label:"setting.gridFields.created"}]},Ul={DEFAULT:El,OPTIONS:Al,DATA:Be,COMMANDS:Ll,OPERATIONS:Fl,SOURCE:jl,COMMON:Ol},Ml=e.defineComponent(ue(X({},Ul),{__name:"objectList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(k){const y=k;class b extends It.BaseComponent{getDataBool(t,a){var d,n;const o=(n=(d=this.props.conf)==null?void 0:d.data)==null?void 0:n[0];return o&&Object.prototype.hasOwnProperty.call(o,t)&&o[t]!==void 0?!!o[t]:this.getOptionValue(t,a)}extractStyles(){return{panelBgTone:this.getOptionValue("panelBgTone","light"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),isHideTitle:this.getOptionValue("isHideTitle",!1),add:this.getDataBool("add",!0),view:this.getDataBool("view",!0),edit:this.getDataBool("edit",!0),archive:this.getDataBool("archive",!0),delete:this.getDataBool("delete",!0)}}migrateCommandOperationKeys(t){Yt.migrateMixiotCommandOperationKeys(t)}init(){return B(this,null,function*(){var n;this.applyTheme(),(n=this.props.conf.data)!=null&&n.length||(this.props.conf.data=JSON.parse(JSON.stringify(Be)));const t=this.props.conf.data[0];this.migrateCommandOperationKeys(t);const a={add:!0,view:!0,edit:!0,archive:!0,delete:!0};for(const[f,s]of Object.entries(a))t[f]===void 0&&(t[f]=s);const o=pe.detailTabRowDefaults();for(const[f,s]of Object.entries(o))t[f]===void 0&&(t[f]=s);t.textValueTransform===void 0&&(t.textValueTransform=JSON.parse(JSON.stringify(Be[0].textValueTransform)));const d=me.sortFieldsBySavedOrder(me.getMixiotListDefaultFields("objectList"),this.props.conf);me.syncMixiotListFieldsToConf(this.props.conf,d),this.Style.value=this.extractStyles()})}}const ie=new b(y,"objectList");ie.setupLifecycle();const _=ie.getStyle(),K={view:60,edit:60,archive:88,delete:60},fe=e.computed(()=>{const l=[_.value.view?K.view:0,_.value.edit?K.edit:0,_.value.archive?K.archive:0,_.value.delete?K.delete:0].filter(t=>t>0);return l.length?l.reduce((t,a)=>t+a,0)+(l.length-1)*8+24:80}),{mixiotPanelClass:Z,mixiotPanelRootStyle:T}=zt.useMixiotPanelSurface(_),{tableWrapRef:ee,tableBodyHeight:ot}=me.useTableBodyHeight(),it=e.computed(()=>$t.generateTitleStyle(y.conf.options)),rt=e.computed(()=>{var d,n,f,s;const l=(n=(d=y.conf)==null?void 0:d.options)==null?void 0:n.columns,t=l&&typeof l=="object"&&"value"in l?l.value:l||[],a=((s=(f=y.conf)==null?void 0:f.data)==null?void 0:s[0])||{},o=(Array.isArray(t)?t:[]).filter(c=>{const N=c.key;return N?a[`${N}_visible`]!==!1&&c.visible!==!1:!1}).map(c=>{const N=a[c.key];return{prop:c.key,label:N!==void 0&&N!==""?String(N):c.label||c.key,width:c.width,visible:!0}});return a.addRealtimeData&&Array.isArray(a.realtimeParams)&&a.realtimeParams.forEach(c=>{c.name&&c.fv&&o.push({prop:c.fv,label:c.name,width:150,visible:!0})}),o}),w=e.reactive({current:1,pageSize:20,total:0}),te=e.ref(""),H=e.ref("name"),le=e.ref(null),ve=e.ref([]),ge=e.ref(!1);function nt(){H.value==="created"?te.value="":le.value=null}function dt(){const l=[];if(H.value==="created"){const a=le.value;if(a&&a.length===2&&a[0]&&a[1]){const[o,d]=a;l.push(["created",">=",o<=d?o:d]),l.push(["created","<=",o<=d?d:o])}}else{const a=te.value.trim();a&&l.push([H.value,"like",`%${a}%`])}Ht.appendCommonDesignerWhereAnd(y.conf.common,l);const t={page_index:w.current,page_size:w.pageSize};return l.length&&(t.where_and=JSON.stringify(l)),t}function D(){return B(this,null,function*(){var l,t;ge.value=!0;try{const a=yield h.api.http("get_object_list",dt(),!0),o=(l=a==null?void 0:a.result)!=null?l:a;let d=Array.isArray(o==null?void 0:o.data)?[...o.data]:Array.isArray(o)?[...o]:[];if((t=y.objectList)!=null&&t.length){const f=new Set(y.objectList.map(String));d=d.filter(s=>f.has(String(s.uid)))}ve.value=d;let n=o==null?void 0:o.total_records;typeof n!="number"&&(n=Array.isArray(o)?o.length:d.length),w.total=n,a&&a.code!==void 0&&a.code!==200&&console.warn("[objectList] 列表接口非成功",a.msg||a.info,a)}catch(a){console.error(a),ve.value=[],w.total=0}finally{ge.value=!1}})}const st=e.computed(()=>ve.value);function Se(l){return l===!0||l===1||l==="1"}const Y=e.ref(!1),Te=e.ref(0),De=e.ref(0),E=e.ref(null),ae=e.ref(!1),v=e.reactive({uid:"",name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),Ee=()=>{w.current=1,D()},ct=()=>{te.value="",le.value=null,w.current=1,D()};function ut(){w.current=1,D()}function mt(){D()}e.watch(()=>{var l;return(l=y.objectList)==null?void 0:l.join(",")},()=>{w.current=1,D()});const pt=(l,t)=>{l.preventDefault(),E.value=t,Te.value=l.clientY,De.value=l.clientX,Y.value=!0},W=e.ref(!1),re=e.ref(!1),U=e.ref(""),u=e.ref(null),M=e.computed(()=>{var l,t;return((t=(l=y.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),ft=e.computed(()=>{const l=new Set,t=M.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const a of t.realtimeParams)a!=null&&a.fv&&l.add(String(a.fv));return l}),Ae=e.computed(()=>{const l=M.value;return!l.addRealtimeData||!Array.isArray(l.realtimeParams)?[]:l.realtimeParams.filter(t=>(t==null?void 0:t.name)&&(t==null?void 0:t.fv)).map(t=>({name:String(t.name),fv:String(t.fv)}))}),Le=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.textValueTransform});function vt(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function Fe(l,t){if(!t)return null;if(t.mode==="numeric"){for(const a of t.numericRules||[])if(a.matchType==="unavailable"){if(vt(l))return{text:a.displayText,color:a.color}}else if(String(l)===String(a.matchValue))return{text:a.displayText,color:a.color}}else{const a=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(a))return null;for(const o of t.rangeRules||[]){const d=parseFloat(String(o.boundary));if(!Number.isNaN(d)){if(o.op==="gt"&&a>d)return{text:o.displayText,color:o.color};if(o.op==="lt"&&a<d)return{text:o.displayText,color:o.color}}}}return null}function je(l){return ft.value.has(l)}function gt(l,t){const a=l[t.prop];if(je(t.prop)){const o=Fe(a,Le.value);if(o)return o.text}return a==null?"":String(a)}function yt(l,t){const a=l[t.prop];if(!je(t.prop))return{};const o=Fe(a,Le.value);return o!=null&&o.color?{color:o.color}:{}}const R=e.computed(()=>pe.OBJECT_DETAIL_TAB_DEFS.filter(l=>M.value[l.dataKey]===!0).map(l=>ue(X({},l),{tabKey:pe.dataKeyToTabKey(l.dataKey)}))),x=e.ref("baseinfo"),Vt=e.computed(()=>{var t;const l=R.value.find(a=>a.tabKey===x.value);return(t=l==null?void 0:l.label)!=null?t:""}),_t=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),Oe=e.computed(()=>{var a;const l=(a=u.value)==null?void 0:a.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(h.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${h.FILE_URL}${t}`}),Ue=e.computed(()=>{var t;const l=(t=u.value)==null?void 0:t.tag;return Array.isArray(l)?l.map(String).filter(Boolean):typeof l=="string"&&l.trim()?l.split(/[,,]/).map(a=>a.trim()).filter(Boolean):[]}),ye=e.computed(()=>{var t;const l=(t=u.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(a=>a&&typeof a=="object"&&Array.isArray(a.data)):[]}),ne=e.ref(!1),q=e.ref(null),Me=e.ref(""),Ve=e.ref(""),_e=e.ref(!1),J=e.ref([]),be=e.ref(!1),G=e.ref([]),de=e.ref([]),he=e.ref(!1),P=e.ref([]),Ne=e.ref(!1),Q=e.ref([]),se=e.ref([h.dayjs().subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),h.dayjs().format("YYYY-MM-DD HH:mm:ss")]),bt=l=>B(null,null,function*(){var t;_e.value=!0;try{const a=yield h.api.http("get_retainer_result_list",{object_id:l,page_size:50,page_index:1},!0),o=(t=a==null?void 0:a.result)!=null?t:a;J.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(a){J.value=[]}finally{_e.value=!1}}),ht=l=>B(null,null,function*(){var t;be.value=!0;try{const a=yield h.api.http("get_collect_list",{object_id:l,page_size:50,page_index:1},!0),o=(t=a==null?void 0:a.result)!=null?t:a;G.value=Array.isArray(o==null?void 0:o.data)?o.data:[]}catch(a){G.value=[]}finally{be.value=!1}}),Nt=(l,t)=>B(null,null,function*(){var a;if(!t.length){P.value=[];return}he.value=!0;try{const o=[["uid","in",t]],d=yield h.api.http("terminal_list",{page_size:100,page_index:1,where_and:JSON.stringify(o)},!0),n=(a=d==null?void 0:d.result)!=null?a:d;P.value=Array.isArray(n==null?void 0:n.data)?n.data:[]}catch(o){P.value=[]}finally{he.value=!1}}),ke=()=>B(null,null,function*(){var t,a,o,d;const l=(t=u.value)==null?void 0:t.uid;if(l){Ne.value=!0;try{const n=(o=(a=u.value)==null?void 0:a.fv_list)!=null?o:[],f=[["object_id","=",l],["time",">=",se.value[0]],["time","<=",se.value[1]]];n.length&&f.push(["fv_key","in",n.slice(0,10)]);const s=yield h.api.http("history_mosaic",{page_size:100,page_index:1,where_and:JSON.stringify(f)},!0),c=(d=s==null?void 0:s.result)!=null?d:s;Q.value=Array.isArray(c==null?void 0:c.data)?c.data:[]}catch(n){Q.value=[]}finally{Ne.value=!1}}});function kt(l,t){const a=t.toLowerCase();return l.find(o=>{var f,s;const d=String((f=o==null?void 0:o.device_type)!=null?f:"").toLowerCase(),n=String((s=o==null?void 0:o.type)!=null?s:"").toLowerCase();return d===a||n===a})}const xt=l=>B(null,null,function*(){var t,a;if(l){ne.value=!0,q.value=null,Me.value=l;try{const o=Array.isArray((t=u.value)==null?void 0:t.dashboard_list)?u.value.dashboard_list:[],d=kt(o,"pc"),n=String((a=d==null?void 0:d.uid)!=null?a:"").trim();if(!n){C.ElMessage.warning("该对象未绑定电脑显示板");return}Ve.value=n;const f=yield h.api.http("get_dashboard_item",{uid:n},!1),s=(f==null?void 0:f.result)||{},c=s==null?void 0:s.script;c&&typeof c=="object"&&Object.keys(c).length?q.value=c:C.ElMessage.warning("显示板脚本为空")}catch(o){console.error(o),q.value=null}finally{ne.value=!1}}}),Ct=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,Re=()=>{const l=R.value;x.value=l.length?l[0].tabKey:"baseinfo"},qe=l=>B(null,null,function*(){var t,a;if(Y.value=!1,U.value="",u.value=null,Re(),!R.value.length){W.value=!0;return}W.value=!0,re.value=!0;try{const o=yield h.api.http("get_object_item",{uid:l.uid},!0);o!=null&&o.result&&typeof o.result=="object"?(u.value=o.result,de.value=(a=(t=o.result)==null?void 0:t.object_list)!=null?a:[]):u.value=X({},l),(o==null?void 0:o.code)!==void 0&&o.code!==200?U.value=o.msg||o.info||`请求失败 (${o.code})`:o!=null&&o.result||(U.value="未返回详情数据,已使用列表行暂代显示。")}catch(o){u.value=X({},l),U.value="加载详情失败,已使用列表行暂代显示。"}finally{re.value=!1,Pe(x.value)}}),wt=()=>{u.value=null,U.value="",re.value=!1,q.value=null,Ve.value="",J.value=[],G.value=[],de.value=[],P.value=[],Q.value=[]};function Pe(l){var a,o;const t=(a=u.value)==null?void 0:a.uid;if(!(!t||l==="baseinfo"||l==="child"))if(l==="monitor"&&!q.value)xt(t);else if(l==="retainer-record"&&!J.value.length)bt(t);else if(l==="collect"&&!G.value.length)ht(t);else if(l==="terminal"&&!P.value.length){const d=(o=u.value)==null?void 0:o.terminal_list,n=Array.isArray(d)?d:typeof d=="string"&&d?d.split(/[,,]/).map(f=>f.trim()).filter(Boolean):[];Nt(t,n)}else l==="history"&&!Q.value.length&&ke()}e.watch(x,l=>{Pe(l)}),e.watch(R,()=>{if(!W.value)return;new Set(R.value.map(t=>t.tabKey)).has(x.value)||Re()});const ze=()=>({uid:"",name:"",alias:"",model:"",description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),oe=e.ref(!1),m=e.reactive(ze()),Ie=e.ref(0),xe=e.ref(!1),Ce=e.ref(!1),we=e.ref(!1);function Bt(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function $e(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function St(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function Tt(l){const t=l.terminal_list;return Array.isArray(t)?t.map(String).map(a=>a.trim()).filter(Boolean):$e(String(t!=null?t:""))}function Dt(){const l=M.value;if(l.addRealtimeData&&Array.isArray(l.realtimeParams))for(const t of l.realtimeParams)t!=null&&t.fv&&Reflect.deleteProperty(m,String(t.fv));Object.assign(m,ze())}function Ke(l){const t=M.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const a of t.realtimeParams)if(a!=null&&a.name&&(a!=null&&a.fv)){const o=String(a.fv),d=l[o];m[o]=d!=null?String(d):""}}}function He(l){var t,a,o,d,n,f,s,c,N,F,z,p,j,A,I;Dt(),Object.assign(m,{uid:String((t=l.uid)!=null?t:""),name:String((a=l.name)!=null?a:""),alias:String((o=l.alias)!=null?o:""),model:String((d=l.model)!=null?d:""),description:String((n=l.description)!=null?n:""),customer_id:String((f=l.customer_id)!=null?f:""),customer_name:String((s=l.customer_name)!=null?s:""),customer_alias:String((c=l.customer_alias)!=null?c:""),terminal_list:St(l.terminal_list),mapping_id:String((N=l.mapping_id)!=null?N:""),mapping_name:String((F=l.mapping_name)!=null?F:""),tag:Bt(l.tag),province:String((z=l.province)!=null?z:""),city:String((p=l.city)!=null?p:""),create_by_tpl:Se(l.create_by_tpl),tpl_uid:String((j=l.tpl_uid)!=null?j:""),tpl_name:String((A=l.tpl_name)!=null?A:""),tpl_alias:String((I=l.tpl_alias)!=null?I:"")}),Ie.value=Number(l.id)||0}function Ye(l,t){var a,o,d,n,f,s,c,N,F,z,p,j,A,I,ce,g;return{id:t,uid:String((a=l.uid)!=null?a:"").trim(),name:String((o=l.name)!=null?o:"").trim(),alias:String((d=l.alias)!=null?d:""),model:String((n=l.model)!=null?n:""),description:String((f=l.description)!=null?f:""),customer_id:String((s=l.customer_id)!=null?s:""),customer_name:String((c=l.customer_name)!=null?c:""),customer_alias:String((N=l.customer_alias)!=null?N:""),terminal_list:Tt(l),mapping_id:String((F=l.mapping_id)!=null?F:""),mapping_name:String((z=l.mapping_name)!=null?z:""),tag:$e(String((p=l.tag)!=null?p:"")),province:String((j=l.province)!=null?j:""),city:String((A=l.city)!=null?A:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((I=l.tpl_uid)!=null?I:""),tpl_name:String((ce=l.tpl_name)!=null?ce:""),tpl_alias:String((g=l.tpl_alias)!=null?g:""),addition:"[]"}}const We=l=>B(null,null,function*(){var t;Y.value=!1,oe.value=!0,xe.value=!0;try{const a=yield h.api.http("get_object_item",{uid:l.uid},!0),o=(t=a==null?void 0:a.result)!=null?t:l;He(o),Ke(o)}catch(a){He(l),Ke(l),C.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{xe.value=!1}}),Et=()=>B(null,null,function*(){if(!m.name.trim()){C.ElMessage.warning("请填写对象名称");return}Ce.value=!0;try{yield h.api.http("update_object",Ye(m,Ie.value),!0),C.ElMessage.success("保存成功"),oe.value=!1,yield D()}catch(l){C.ElMessage.error("保存失败")}finally{Ce.value=!1}}),Je=l=>{Y.value=!1,C.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>B(null,null,function*(){try{yield h.api.http("delete_object",{uid:l.uid,id:l.id},!0),C.ElMessage.success("删除成功"),yield D()}catch(t){C.ElMessage.error("删除失败")}})).catch(()=>{})},At=()=>{const l=typeof crypto!="undefined"&&typeof crypto.randomUUID=="function"?`obj_${crypto.randomUUID()}`:`obj_${Date.now()}_${Math.random().toString(16).slice(2)}`;Object.assign(v,{uid:l,name:"",alias:"",model:"",created:new Date().toLocaleString(),last_modified:new Date().toLocaleString(),description:"",customer_id:"",customer_name:"",customer_alias:"",terminal_list:"",mapping_id:"",mapping_name:"",tag:"",province:"",city:"",create_by_tpl:!1,tpl_uid:"",tpl_name:"",tpl_alias:""}),ae.value=!0},Lt=()=>B(null,null,function*(){var l;if(!((l=v.name)!=null&&l.trim())){C.ElMessage.warning("请填写对象名称");return}we.value=!0;try{yield h.api.http("create_object",Ye(v,0),!0),ae.value=!1,C.ElMessage.success("添加成功"),yield D()}catch(t){C.ElMessage.error("添加失败")}finally{we.value=!1}}),Ge=l=>{Y.value=!1,C.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{C.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{D()}),(l,t)=>{const a=V.ElOption,o=V.ElSelect,d=V.ElIcon,n=V.ElInput,f=V.ElDatePicker,s=V.ElButton,c=V.ElTableColumn,N=V.ElTable,F=V.ElPagination,z=V.ElPopover,p=V.ElFormItem,j=V.ElForm,A=V.ElDialog,I=V.ElDivider,ce=V.ElAlert,g=V.ElDescriptionsItem,Qe=V.ElTag,Xe=V.ElDescriptions,Ft=V.ElCollapseItem,jt=V.ElCollapse,$=V.ElEmpty,O=V.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["object-list mix-component",e.unref(Z)]),style:e.normalizeStyle(e.unref(T))},[e.unref(_).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(it.value)},e.toDisplayString(k.conf.caption||k.conf.name),5)),e.createElementVNode("div",Wt,[e.createElementVNode("div",Jt,[e.createVNode(o,{modelValue:H.value,"onUpdate:modelValue":t[0]||(t[0]=r=>H.value=r),class:"toolbar-field-select",onChange:nt},{default:e.withCtx(()=>[e.createVNode(a,{label:"对象名称",value:"name"}),e.createVNode(a,{label:"对象编号",value:"uid"}),e.createVNode(a,{label:"对象别名",value:"alias"}),e.createVNode(a,{label:"客户编号",value:"customer_id"}),e.createVNode(a,{label:"客户别名",value:"customer_alias"}),e.createVNode(a,{label:"客户名称",value:"customer_name"}),e.createVNode(a,{label:"映射表编号",value:"mapping_id"}),e.createVNode(a,{label:"映射表名称",value:"mapping_name"}),e.createVNode(a,{label:"关联终端",value:"terminal_list"}),e.createVNode(a,{label:"标签",value:"tag"}),e.createVNode(a,{label:"省份",value:"province"}),e.createVNode(a,{label:"市/区",value:"city"}),e.createVNode(a,{label:"型号",value:"model"}),e.createVNode(a,{label:"序列号",value:"serial_no"}),e.createVNode(a,{label:"创建时间",value:"created"})]),_:1},8,["modelValue"]),H.value!=="created"?(e.openBlock(),e.createBlock(n,{key:0,modelValue:te.value,"onUpdate:modelValue":t[1]||(t[1]=r=>te.value=r),placeholder:"搜索对象(与 mixui ObjectList 搜索字段一致)",class:"toolbar-search",onKeyup:e.withKeys(Ee,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(d,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(Kt.Search))]),_:1})]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(f,{key:1,modelValue:le.value,"onUpdate:modelValue":t[2]||(t[2]=r=>le.value=r),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",class:"toolbar-created-range"},null,8,["modelValue"])),e.createVNode(s,{type:"primary",onClick:Ee},{default:e.withCtx(()=>[...t[43]||(t[43]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(s,{onClick:ct},{default:e.withCtx(()=>[...t[44]||(t[44]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(_).add?(e.openBlock(),e.createBlock(s,{key:2,type:"success",onClick:At},{default:e.withCtx(()=>[...t[45]||(t[45]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",{ref_key:"tableWrapRef",ref:ee,class:"table-panel"},[e.createVNode(N,{data:st.value,border:"",style:{width:"100%"},height:e.unref(ot),onRowContextmenu:pt},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(rt.value,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.prop},[r.visible?(e.openBlock(),e.createBlock(c,{key:0,prop:r.prop,label:r.label,width:r.width},{default:e.withCtx(S=>[r.prop==="create_by_tpl"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(Se(S.row.create_by_tpl)?"模板创建":"手动创建"),1)],64)):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(yt(S.row,r))},e.toDisplayString(gt(S.row,r)),5))]),_:2},1032,["prop","label","width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(c,{label:"操作","min-width":fe.value,fixed:"right","class-name":"mixiot-col-actions"},{default:e.withCtx(r=>[e.unref(_).view?(e.openBlock(),e.createBlock(s,{key:0,size:"small",onClick:S=>qe(r.row)},{default:e.withCtx(()=>[...t[46]||(t[46]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(_).edit?(e.openBlock(),e.createBlock(s,{key:1,size:"small",type:"primary",onClick:S=>We(r.row)},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(_).archive?(e.openBlock(),e.createBlock(s,{key:2,size:"small",type:"info",onClick:S=>Ge(r.row)},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(_).delete?(e.openBlock(),e.createBlock(s,{key:3,size:"small",type:"danger",onClick:S=>Je(r.row)},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1},8,["min-width"])]),_:1},8,["data","height"])],512),e.createElementVNode("div",Gt,[e.createVNode(F,{"current-page":w.current,"onUpdate:currentPage":t[3]||(t[3]=r=>w.current=r),"page-size":w.pageSize,"onUpdate:pageSize":t[4]||(t[4]=r=>w.pageSize=r),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:w.total,onSizeChange:ut,onCurrentChange:mt},null,8,["current-page","page-size","total"])]),e.createVNode(z,{visible:Y.value,width:200,trigger:"click","popper-options":{placement:"bottom",modifiers:[{name:"offset",options:{offset:[De.value,Te.value]}}]}},{default:e.withCtx(()=>[e.createElementVNode("div",Qt,[E.value&&e.unref(_).view?(e.openBlock(),e.createBlock(s,{key:0,type:"text",onClick:t[5]||(t[5]=r=>qe(E.value))},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("查看详情",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(_).edit?(e.openBlock(),e.createBlock(s,{key:1,type:"text",onClick:t[6]||(t[6]=r=>We(E.value))},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("编辑对象",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(_).archive?(e.openBlock(),e.createBlock(s,{key:2,type:"text",onClick:t[7]||(t[7]=r=>Ge(E.value))},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("资料备档",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(_).delete?(e.openBlock(),e.createBlock(s,{key:3,type:"text",onClick:t[8]||(t[8]=r=>Je(E.value))},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("删除对象",-1)])]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["visible","popper-options"]),e.createVNode(A,{modelValue:ae.value,"onUpdate:modelValue":t[23]||(t[23]=r=>ae.value=r),title:"添加对象",width:"600px"},{footer:e.withCtx(()=>[e.createElementVNode("span",Xt,[e.createVNode(s,{onClick:t[22]||(t[22]=r=>ae.value=!1)},{default:e.withCtx(()=>[...t[54]||(t[54]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:we.value,onClick:Lt},{default:e.withCtx(()=>[...t[55]||(t[55]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(j,{model:v,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.name,"onUpdate:modelValue":t[9]||(t[9]=r=>v.name=r),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.alias,"onUpdate:modelValue":t[10]||(t[10]=r=>v.alias=r),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.model,"onUpdate:modelValue":t[11]||(t[11]=r=>v.model=r),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.description,"onUpdate:modelValue":t[12]||(t[12]=r=>v.description=r),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.customer_id,"onUpdate:modelValue":t[13]||(t[13]=r=>v.customer_id=r),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.customer_name,"onUpdate:modelValue":t[14]||(t[14]=r=>v.customer_name=r),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.customer_alias,"onUpdate:modelValue":t[15]||(t[15]=r=>v.customer_alias=r),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.terminal_list,"onUpdate:modelValue":t[16]||(t[16]=r=>v.terminal_list=r),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.mapping_id,"onUpdate:modelValue":t[17]||(t[17]=r=>v.mapping_id=r),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.mapping_name,"onUpdate:modelValue":t[18]||(t[18]=r=>v.mapping_name=r),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.tag,"onUpdate:modelValue":t[19]||(t[19]=r=>v.tag=r),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.province,"onUpdate:modelValue":t[20]||(t[20]=r=>v.province=r),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:v.city,"onUpdate:modelValue":t[21]||(t[21]=r=>v.city=r),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(A,{modelValue:oe.value,"onUpdate:modelValue":t[39]||(t[39]=r=>oe.value=r),title:"编辑对象",width:"600px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Zt,[e.createVNode(s,{onClick:t[38]||(t[38]=r=>oe.value=!1)},{default:e.withCtx(()=>[...t[57]||(t[57]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(s,{type:"primary",loading:Ce.value,onClick:Et},{default:e.withCtx(()=>[...t[58]||(t[58]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(j,{model:m,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(p,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.uid,"onUpdate:modelValue":t[24]||(t[24]=r=>m.uid=r),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.name,"onUpdate:modelValue":t[25]||(t[25]=r=>m.name=r),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.alias,"onUpdate:modelValue":t[26]||(t[26]=r=>m.alias=r),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.model,"onUpdate:modelValue":t[27]||(t[27]=r=>m.model=r),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.description,"onUpdate:modelValue":t[28]||(t[28]=r=>m.description=r),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.customer_id,"onUpdate:modelValue":t[29]||(t[29]=r=>m.customer_id=r),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.customer_name,"onUpdate:modelValue":t[30]||(t[30]=r=>m.customer_name=r),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.customer_alias,"onUpdate:modelValue":t[31]||(t[31]=r=>m.customer_alias=r),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.terminal_list,"onUpdate:modelValue":t[32]||(t[32]=r=>m.terminal_list=r),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.mapping_id,"onUpdate:modelValue":t[33]||(t[33]=r=>m.mapping_id=r),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.mapping_name,"onUpdate:modelValue":t[34]||(t[34]=r=>m.mapping_name=r),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.tag,"onUpdate:modelValue":t[35]||(t[35]=r=>m.tag=r),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.province,"onUpdate:modelValue":t[36]||(t[36]=r=>m.province=r),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(p,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m.city,"onUpdate:modelValue":t[37]||(t[37]=r=>m.city=r),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),M.value.addRealtimeData&&Ae.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(I,{"content-position":"left"},{default:e.withCtx(()=>[...t[56]||(t[56]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ae.value,r=>(e.openBlock(),e.createBlock(p,{key:r.fv,label:r.name},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:m[r.fv],"onUpdate:modelValue":S=>m[r.fv]=S,placeholder:"请输入"+r.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[O,xe.value]])]),_:1},8,["modelValue"]),e.createVNode(A,{modelValue:W.value,"onUpdate:modelValue":t[42]||(t[42]=r=>W.value=r),title:"对象详情",width:"920px",class:"object-view-detail-dialog","destroy-on-close":"",onClosed:wt},{footer:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:t[41]||(t[41]=r=>W.value=!1)},{default:e.withCtx(()=>[...t[60]||(t[60]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>{var r,S;return[e.withDirectives((e.openBlock(),e.createElementBlock("div",el,[R.value.length?(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("aside",ll,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,i=>(e.openBlock(),e.createElementBlock("div",{key:i.tabKey,class:e.normalizeClass(["view-detail-tab-item",{active:x.value===i.tabKey}]),onClick:L=>x.value=i.tabKey},e.toDisplayString(i.label),11,al))),128))]),e.createElementVNode("div",ol,[x.value==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[U.value?(e.openBlock(),e.createElementBlock("div",il,e.toDisplayString(U.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",rl,[u.value?(e.openBlock(),e.createBlock(Xe,{key:0,column:2,border:""},{default:e.withCtx(()=>[Oe.value?(e.openBlock(),e.createBlock(g,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:Oe.value,alt:""},null,8,nl)]),_:1})):e.createCommentVNode("",!0),e.createVNode(g,{label:"对象编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.uid)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"对象名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.name)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"对象别名"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.alias)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"型号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.model)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"序列号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.serial_no)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"映射表编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.mapping_id)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"映射表名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.mapping_name)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"映射表别名"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.mapping_alias)!=null?i:""),1)]}),_:1}),_t.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(g,{label:"项目编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.customer_id)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"项目名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.customer_name)!=null?i:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(g,{label:"控制密码"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"控制码编号"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control_id)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"控制码名称"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control_name)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"控制码别名"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.control_alias)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"地址"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.address)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"设置经纬度"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.custom_gis)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"GPS经纬度"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.gis)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"省份"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.province)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"城市"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.city)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"创建时间"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.created)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"更新时间"},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.last_modified)!=null?i:""),1)]}),_:1}),e.createVNode(g,{label:"标签",span:2},{default:e.withCtx(()=>[Ue.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(Ue.value,i=>(e.openBlock(),e.createBlock(Qe,{key:i,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(g,{label:"描述",span:2},{default:e.withCtx(()=>{var i;return[e.createTextVNode(e.toDisplayString((i=u.value.description)!=null?i:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),ye.value.length?(e.openBlock(),e.createElementBlock("div",dl,"扩展脚本信息")):e.createCommentVNode("",!0),ye.value.length?(e.openBlock(),e.createElementBlock("div",sl,[e.createVNode(jt,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ye.value,(i,L)=>(e.openBlock(),e.createBlock(Ft,{key:L,name:L,title:i.title},{default:e.withCtx(()=>[e.createVNode(Xe,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.data,(Ze,Ot)=>(e.openBlock(),e.createBlock(g,{key:Ot,label:String(Ze[0])},{default:e.withCtx(()=>{var et;return[e.createTextVNode(e.toDisplayString((et=Ze[1])!=null?et:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):x.value==="monitor"?e.withDirectives((e.openBlock(),e.createElementBlock("div",cl,[q.value?(e.openBlock(),e.createBlock(h._sfc_main,{key:Ve.value,script:q.value,uid:Me.value,"enable-web-socket":!0,"follow-host-theme":!0},null,8,["script","uid"])):ne.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($,{key:1,description:"暂无关联电脑显示板"}))])),[[O,ne.value]]):x.value==="retainer-record"?e.withDirectives((e.openBlock(),e.createElementBlock("div",ul,[J.value.length?(e.openBlock(),e.createBlock(N,{key:0,data:J.value,stripe:"",size:"small",class:"detail-table","max-height":"420"},{default:e.withCtx(()=>[e.createVNode(c,{prop:"template_id",label:"项目编号",width:"120"}),e.createVNode(c,{prop:"label_cn",label:"历程项名称","min-width":"120"}),e.createVNode(c,{prop:"code",label:"编码",width:"100"}),e.createVNode(c,{prop:"category",label:"类型",width:"80"}),e.createVNode(c,{prop:"opened_at",label:"开始时间",width:"160"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock($,{key:1,description:"暂无历程记录"}))])),[[O,_e.value]]):x.value==="collect"?e.withDirectives((e.openBlock(),e.createElementBlock("div",ml,[G.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(G.value,(i,L)=>(e.openBlock(),e.createElementBlock("div",{key:L,class:"tab-card-item"},[e.createElementVNode("div",pl,e.toDisplayString(i.name||i.uid||"—"),1),e.createElementVNode("div",fl,[i.uid?(e.openBlock(),e.createElementBlock("span",vl,"编号:"+e.toDisplayString(i.uid),1)):e.createCommentVNode("",!0),i.is_active!==void 0?(e.openBlock(),e.createElementBlock("span",gl,"状态:"+e.toDisplayString(i.is_active===1?"开启":"关闭"),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock($,{key:1,description:"暂无离线采集项目"}))])),[[O,be.value]]):x.value==="child"?(e.openBlock(),e.createElementBlock("div",yl,[de.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(de.value,(i,L)=>(e.openBlock(),e.createElementBlock("div",{key:L,class:"tab-card-item"},[e.createElementVNode("div",Vl,e.toDisplayString(i.name||i.uid||"—"),1),e.createElementVNode("div",_l,[i.uid?(e.openBlock(),e.createElementBlock("span",bl,"编号:"+e.toDisplayString(i.uid),1)):e.createCommentVNode("",!0),i.model?(e.openBlock(),e.createElementBlock("span",hl,"型号:"+e.toDisplayString(i.model),1)):e.createCommentVNode("",!0)])]))),128)):(e.openBlock(),e.createBlock($,{key:1,description:"暂无子对象"}))])):x.value==="terminal"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Nl,[P.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(P.value,(i,L)=>(e.openBlock(),e.createElementBlock("div",{key:L,class:"tab-card-item"},[e.createElementVNode("div",kl,e.toDisplayString(i.name||i.uid||"—"),1),e.createElementVNode("div",xl,[i.uid?(e.openBlock(),e.createElementBlock("span",Cl,"编号:"+e.toDisplayString(i.uid),1)):e.createCommentVNode("",!0),i.type?(e.openBlock(),e.createElementBlock("span",wl,"类型:"+e.toDisplayString(i.type),1)):e.createCommentVNode("",!0),e.createVNode(Qe,{type:i.online===1?"success":"danger",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.online===1?"在线":"离线"),1)]),_:2},1032,["type"])])]))),128)):(e.openBlock(),e.createBlock($,{key:1,description:"暂无关联终端"}))])),[[O,he.value]]):x.value==="history"?e.withDirectives((e.openBlock(),e.createElementBlock("div",Bl,[e.createElementVNode("div",Sl,[e.createVNode(f,{modelValue:se.value,"onUpdate:modelValue":t[40]||(t[40]=i=>se.value=i),type:"datetimerange",size:"small","range-separator":"-","start-placeholder":"开始","end-placeholder":"结束",onChange:ke},null,8,["modelValue"]),e.createVNode(s,{size:"small",type:"primary",onClick:ke},{default:e.withCtx(()=>[...t[59]||(t[59]=[e.createTextVNode("查询",-1)])]),_:1})]),Q.value.length?(e.openBlock(),e.createBlock(N,{key:0,data:Q.value,stripe:"",size:"small",class:"detail-table","max-height":"380"},{default:e.withCtx(()=>[e.createVNode(c,{prop:"time",label:"时间",width:"160"}),e.createVNode(c,{prop:"fv_key",label:"变量",width:"120"}),e.createVNode(c,{prop:"value",label:"值","min-width":"100"})]),_:1},8,["data"])):(e.openBlock(),e.createBlock($,{key:1,description:"暂无历史数据"}))])),[[O,Ne.value]]):(e.openBlock(),e.createElementBlock("div",Tl,[e.createVNode($,{description:Ct(Vt.value)},null,8,["description"]),e.createElementVNode("div",Dl,"对象编号:"+e.toDisplayString((S=(r=u.value)==null?void 0:r.uid)!=null?S:"—"),1)]))])])):(e.openBlock(),e.createBlock(ce,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])),[[O,re.value]])]}),_:1},8,["modelValue"])]),e.renderSlot(l.$slots,"default",{},void 0,!0)],6)),[[O,ge.value]])}}})),Rl=h._export_sfc(Ml,[["__scopeId","data-v-c4499447"]]);exports.default=Rl;
@@ -1 +0,0 @@
1
- "use strict";var Y=Object.defineProperty,ee=Object.defineProperties;var te=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;var q=(e,t,a)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,b=(e,t)=>{for(var a in t||(t={}))ae.call(t,a)&&q(e,a,t[a]);if(O)for(var a of O(t))oe.call(t,a)&&q(e,a,t[a]);return e},S=(e,t)=>ee(e,te(t));var s=(e,t,a)=>new Promise((l,o)=>{var c=y=>{try{i(a.next(y))}catch(v){o(v)}},h=y=>{try{i(a.throw(y))}catch(v){o(v)}},i=y=>y.done?l(y.value):Promise.resolve(y.value).then(c,h);i((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const r=require("vue"),re=require("./vue-router-CRhRQNx-.cjs"),ne=require("./vue-i18n-BvHMBi_b.cjs"),le=require("./BaseComponent-CIst2h8G.cjs"),f=require("./index-5jeBLy74.cjs"),A=require("./materialFileUrl-DfPNm265.cjs"),V=require("element-plus"),T=require("./ele-bmp-icon-BBI0-SX7.cjs"),U=e=>{const t=typeof e=="string"?Number(e):e;return t===0||t===200},se=(e,t)=>{if(e&&String(e).trim()){const a=String(e).trim();if(a.startsWith("http://")||a.startsWith("https://"))try{return new URL(a).pathname||""}catch(l){return a}return a.startsWith("/")?a:`/${a}`}return t?`/yunfiles/material/file/${t}`:""},de={uploadFile(e){return s(this,null,function*(){var l;const t=new FormData;t.append("file",e);const a=yield f.api.upload(t,!0);if(U(a.code)&&((l=a.result)!=null&&l.url))return a.result.url;throw new Error(a.msg||"文件上传失败")})},uploadMaterialGetPath(e,t){return s(this,null,function*(){var c,h;const l={material_data:e.includes(",")?e.split(",")[1]:e,material_type:t||"png"},o=yield f.api.post("upload_material",l,!0);if(U(o.code)&&o.result){const i=o.result,y=se(i.material_path||i.relative_path||"",i.file_id);if(y)return S(b({},i),{material_path:y,material_size:(h=(c=i.material_size)!=null?c:i.file_size)!=null?h:0,material_type:i.material_type||i.mime_type||t||"png",name:i.name||i.file_name||""})}throw new Error(o.info||o.msg||"上传原图获取路径失败")})},createMaterial(e){return s(this,null,function*(){var a;const t=yield f.api.post("create_dashboard_material",e,!0);if(U(t.code)&&((a=t.result)!=null&&a.uid))return t.result;throw new Error(t.info||t.msg||"创建素材失败")})},uploadAndCreateMaterial(a){return s(this,arguments,function*(e,t={}){var h;const l=((h=e.name.split(".").pop())==null?void 0:h.toLowerCase())||"png",o=yield this._fileToBase64(e),c=yield this.uploadMaterialGetPath(o,l);if(c.uid)return{uid:c.uid};throw new Error("upload_material 未返回 uid")})},_fileToBase64(e){return new Promise((t,a)=>{const l=new FileReader;l.onload=()=>t(l.result),l.onerror=()=>a(new Error("文件读取失败")),l.readAsDataURL(e)})},getMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield f.api.post("get_dashboard_material_list",t)})},getMyMaterialList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return yield f.api.post("get_my_dashboard_material_list",t)})},getMaterialItem(e){return s(this,null,function*(){return yield f.api.post("get_dashboard_material_item",{uid:e})})},updateMaterial(e){return s(this,null,function*(){return yield f.api.post("update_dashboard_material",e,!0)})},deleteMaterial(e){return s(this,null,function*(){return yield f.api.post("delete_dashboard_material",{uid:e},!0)})},deleteMaterialByPath(e){return s(this,null,function*(){var a;if(!e||!String(e).trim())return;const t=String(e).replace(/^\//,"");try{const l=yield this.getMyMaterialList({page_index:1,page_size:10,where_and:JSON.stringify([["material_path","=",t]])}),o=(a=l==null?void 0:l.result)==null?void 0:a.data;Array.isArray(o)&&o.length>0&&o[0].uid&&(yield this.deleteMaterial(o[0].uid))}catch(l){}})}},W={_buildWhereAnd(e){return JSON.stringify(e.filter(([,,t])=>t!=null))},_isEmptyId(e){return e==null||String(e).trim()===""},_isComponentLevel(e){return!this._isEmptyId(e.component_id)},_isLayerLevel(e){return this._isEmptyId(e.component_id)&&!this._isEmptyId(e.layer_id)},_isSheetLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&!this._isEmptyId(e.sheet_id)},_isDashboardLevel(e){return this._isEmptyId(e.component_id)&&this._isEmptyId(e.layer_id)&&this._isEmptyId(e.sheet_id)},_listRelations(e){return s(this,null,function*(){var a;const t=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:e});return((a=t==null?void 0:t.result)==null?void 0:a.data)||[]})},_deleteByUid(e,t){return s(this,null,function*(){t&&(yield this.deleteMaterialRelation({dashboard_record_uid:e,uid:t}))})},_deleteByRelation(e){return s(this,null,function*(){e!=null&&e.dashboard_record_uid&&(yield this.deleteMaterialRelation({dashboard_record_uid:e.dashboard_record_uid,dashboard_id:e.dashboard_id,sheet_id:e.sheet_id,layer_id:e.layer_id,component_id:e.component_id,uid:e.uid}))})},_deleteRelationList(e,t){return s(this,null,function*(){for(const a of t)yield this._deleteByUid(e,a.uid)})},createMaterialRelation(e){return s(this,null,function*(){return yield f.api.post("create_dashboard_materials_relation",e,!0)})},deleteMaterialRelation(e){return s(this,null,function*(){return yield f.api.post("delete_dashboard_materials_relation",e,!0)})},getMaterialRelationList(){return s(this,arguments,function*(e={}){const t=b({page_index:e.page_index||1,page_size:e.page_size||20,order_by:e.order_by||"created",order_type:e.order_type||"desc"},e);return!e.order_by&&!e.order_type&&e.order?t.order=e.order:delete t.order,yield f.api.post("get_my_dashboard_materials_relation_list",t)})},getMaterialRelationsByDashboard(a){return s(this,arguments,function*(e,t={}){const l=JSON.stringify([["dashboard_record_uid","=",e]]);return yield this.getMaterialRelationList(S(b({},t),{where_and:l}))})},getMaterialRelationByComponent(l,o){return s(this,arguments,function*(e,t,a={}){const c=JSON.stringify([["dashboard_record_uid","=",e],["component_id","=",t]]);return yield this.getMaterialRelationList(S(b({},a),{where_and:c}))})},getRelationsByMaterial(e){return s(this,null,function*(){var l;if(!e)return[];const t=JSON.stringify([["material_uid","=",e]]),a=yield this.getMaterialRelationList({page_index:1,page_size:999,where_and:t});return((l=a==null?void 0:a.result)==null?void 0:l.data)||[]})},getMaterialUsageSummary(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e),a=new Set;return t.forEach(l=>{const o=String(l.dashboard_record_uid||"").trim();o&&a.add(o)}),{relationCount:t.length,dashboardCount:a.size,relations:t}})},deleteAllRelationsByMaterial(e){return s(this,null,function*(){const t=yield this.getRelationsByMaterial(e);for(const a of t)!(a!=null&&a.uid)||!(a!=null&&a.dashboard_record_uid)||(yield this.deleteMaterialRelation({dashboard_record_uid:a.dashboard_record_uid,uid:a.uid}));return t.length})},deleteAllRelationsByDashboard(e){return s(this,null,function*(){return yield this.deleteRelationsByDashboardHierarchy(e)})},deleteRelationByComponent(e,t){return s(this,null,function*(){return yield this.deleteMaterialRelation({dashboard_record_uid:e,component_id:t})})},deleteComponentRelations(e,t,a,l){return s(this,null,function*(){if(!e||!t||!a||!l)return;const o=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a],["component_id","=",l]]),c=yield this._listRelations(o);for(const h of c)yield this._deleteByRelation(h)})},deleteLayerLevelRelations(e,t,a){return s(this,null,function*(){if(!e||!t||!a)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a]]),c=(yield this._listRelations(l)).filter(h=>this._isLayerLevel(h));for(const h of c)yield this._deleteByRelation(h)})},deleteSheetLevelRelations(e,t){return s(this,null,function*(){if(!e||!t)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),o=(yield this._listRelations(a)).filter(c=>this._isSheetLevel(c));for(const c of o)yield this._deleteByRelation(c)})},deleteDashboardLevelRelations(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),l=(yield this._listRelations(t)).filter(o=>this._isDashboardLevel(o));for(const o of l)yield this._deleteByRelation(o)})},deleteRelationsByLayerHierarchy(e,t,a){return s(this,null,function*(){if(!e||!t||!a)return;const l=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t],["layer_id","=",a]]),o=yield this._listRelations(l),c=o.filter(i=>this._isComponentLevel(i)),h=o.filter(i=>this._isLayerLevel(i));for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})},deleteRelationsBySheetHierarchy(e,t){return s(this,null,function*(){if(!e||!t)return;const a=this._buildWhereAnd([["dashboard_record_uid","=",e],["sheet_id","=",t]]),l=yield this._listRelations(a),o=l.filter(i=>this._isComponentLevel(i)),c=l.filter(i=>this._isLayerLevel(i)),h=l.filter(i=>this._isSheetLevel(i));for(const i of o)yield this._deleteByRelation(i);for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})},deleteRelationsByDashboardHierarchy(e){return s(this,null,function*(){if(!e)return;const t=this._buildWhereAnd([["dashboard_record_uid","=",e]]),a=yield this._listRelations(t),l=a.filter(i=>this._isComponentLevel(i)),o=a.filter(i=>this._isLayerLevel(i)),c=a.filter(i=>this._isSheetLevel(i)),h=a.filter(i=>this._isDashboardLevel(i));for(const i of l)yield this._deleteByRelation(i);for(const i of o)yield this._deleteByRelation(i);for(const i of c)yield this._deleteByRelation(i);for(const i of h)yield this._deleteByRelation(i)})}},ce=r.ref(!1),ue=r.ref("all");function he(e="all"){return ue.value=e,ce.value=!0,new Promise(t=>{})}const _e={class:"mix-body"},pe={class:"upload-content"},me={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},fe={class:"upload-text"},ye={key:0,class:"upload-actions"},ge={key:1,class:"viewer-container"},ve={key:0,class:"file-info"},we={class:"file-name"},be=["title"],Re=["src","alt"],Me={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2,PLATFORM:["pc","screen","mobile"]},Le={imageDisplayMode:{value:"center",type:"select",options:[{label:"component.photo.center",value:"center"},{label:"component.photo.tile",value:"tile"},{label:"component.photo.stretch",value:"stretch"}],label:"component.options.imageDisplayMode"},fileUrl:{value:"",type:"string",label:"component.options.fileUrl",placeholder:"请上传素材"},fileName:{value:"",type:"string",label:"component.options.fileName",placeholder:"请上传素材"},materialUid:{value:"",type:"string",label:"component.options.materialUid",placeholder:"素材UID"}},Se=[],Be=[],Ce=[],Ne=null,Ee={DEFAULT:Me,OPTIONS:Le,DATA:Se,PARAMS:Be,SOURCE:Ce,COMMON:Ne},Ae=r.defineComponent(S(b({},Ee),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){const{t}=ne.useI18n(),a=f.useCounterStore(),l=re.useRoute(),o=e;class c extends le.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),j()}}const h=new c(o,"photo");h.setupLifecycle();const i=h.getStyle(),y=r.ref(null),v=r.ref(""),p=r.ref(""),R=r.ref(""),k=r.ref(!1),P=r.ref(!1),$=n=>A.buildMaterialFileUrlByMaterialPath(n),j=()=>s(null,null,function*(){var d,u,_;const{conf:n}=o;(u=(d=n==null?void 0:n.options)==null?void 0:d.fileUrl)!=null&&u.value&&(v.value=$(n.options.fileUrl.value),yield I(),R.value=((_=n.options.fileName)==null?void 0:_.value)||"")}),D=n=>{n&&n.startsWith("blob:")&&URL.revokeObjectURL(n)},I=()=>s(null,null,function*(){if(v.value)try{const n=f.resolveHttpAuthTokenForFetch();if(!n){p.value="";return}const d=A.encodeMaterialFileRequestUrl(v.value),u=yield fetch(d,{mode:"cors",credentials:"include",headers:{Authorization:`Bearer ${n}`}});if(!u.ok)throw new Error(`load image failed: ${u.status}`);const _=yield u.blob(),g=URL.createObjectURL(_);D(p.value),p.value=g}catch(n){console.error("[Photo] 拉取图片失败:",n),D(p.value),p.value=""}}),H=r.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),J=r.computed(()=>{var d;const n=(d=i==null?void 0:i.value)==null?void 0:d.imageDisplayMode;return n==="tile"?{display:"none"}:n==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),G=r.computed(()=>{var n;return((n=i==null?void 0:i.value)==null?void 0:n.imageDisplayMode)!=="tile"||!p.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${p.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),x=r.computed(()=>{const n=l.params.id;return n?String(n):""}),z=n=>{var u;const d=((u=a.pageData)==null?void 0:u.sheets)||[];for(const _ of d){const g=_.id,M=_.caption||_.name||_.id,B=_.layers||[];for(const w of B){const C=w.id,N=w.caption||w.name||w.id,E=w.components||[];for(const m of E)if((m==null?void 0:m.id)===n){const L=m.caption||m.name||m.id;return{sheetId:g,layerId:C,sheetName:M,layerName:N,componentName:L}}}}return{sheetId:"",layerId:"",sheetName:"",layerName:"",componentName:""}},Z=n=>s(null,null,function*(){var g;if(!x.value)return;const d=o.uid||((g=o.conf)==null?void 0:g.id);if(!d||!n)return;const{sheetId:u,layerId:_}=z(d);try{yield W.deleteComponentRelations(x.value,u,_,d),yield W.createMaterialRelation({dashboard_record_uid:x.value,material_uid:n,sheet_id:u||void 0,layer_id:_||void 0,component_id:d})}catch(M){console.warn("[Photo] 同步素材关联失败:",M)}}),F=()=>s(null,null,function*(){try{const n=yield he("image");if(n){if(console.log("[Photo] 选中的素材:",n),console.log("[Photo] material_path:",n.material_path),console.log("[Photo] thumbnail:",n.thumbnail),console.log("[Photo] file_id:",n.file_id),!n.material_path){V.ElMessage.warning("该素材缺少 material_path,无法获取原图"),console.warn("[Photo] 素材缺少 material_path");return}const d=String(n.material_path).trim(),u=A.buildMaterialFileUrlByMaterialPath(d);console.log("[Photo] 原图URL:",u),v.value=u,yield I(),R.value=n.name,o.conf&&o.conf.options&&(o.conf.options.fileUrl||(o.conf.options.fileUrl={value:"",type:"string",label:""}),o.conf.options.fileName||(o.conf.options.fileName={value:"",type:"string",label:""}),o.conf.options.materialUid||(o.conf.options.materialUid={value:"",type:"string",label:""}),o.conf.options.fileUrl.value=d,o.conf.options.fileName.value=n.name,o.conf.options.materialUid.value=n.uid,console.log("[Photo] 配置已保存:",{fileUrl:o.conf.options.fileUrl.value,fileName:o.conf.options.fileName.value,materialUid:o.conf.options.materialUid.value})),console.log("[Photo] uploadedFileUrl.value:",p.value),V.ElMessage.success(t("component.photo.materialSelected")||"素材选择成功"),yield Z(n.uid)}else console.log("[Photo] 用户取消选择")}catch(n){console.error("[Photo] 素材选择失败:",n),V.ElMessage.error("素材选择失败")}}),K=()=>{D(p.value),p.value="",v.value="",R.value="",o.mode!=="preview"&&F()},Q=()=>{k.value=!1,y.value,console.log("图片加载成功")},X=n=>{var g,M,B,w,C,N,E;if(console.error("图片加载失败:",n),k.value||P.value)return;const d=o.uid||((g=o.conf)==null?void 0:g.id)||"",u=d?z(d):null;u&&(u.sheetName||u.layerName||u.componentName)?`${u.sheetName||"-"}${u.layerName||"-"}${u.componentName||"-"}`:R.value;const _=String(((w=(B=(M=o.conf)==null?void 0:M.options)==null?void 0:B.materialUid)==null?void 0:w.value)||((E=(N=(C=o.conf)==null?void 0:C.options)==null?void 0:N.imageUid)==null?void 0:E.value)||"").trim();_&&(P.value=!0,de.getMaterialItem(_).then(m=>{if(U(m==null?void 0:m.code)&&(m!=null&&m.result)){const L=m.result;L!=null&&L.material_path&&(v.value=A.buildMaterialFileUrlByMaterialPath(String(L.material_path).trim()),I());return}k.value=!0}).catch(()=>{}).finally(()=>{P.value=!1}))};return r.onMounted(()=>{}),r.onBeforeUnmount(()=>{p.value&&p.value.startsWith("blob:")&&URL.revokeObjectURL(p.value)}),(n,d)=>{var _,g;const u=ie.ElButton;return r.openBlock(),r.createElementBlock("div",{class:"mix-component",style:r.normalizeStyle({borderRadius:`${r.unref(i).radiusSize}px`})},[r.createElementVNode("div",_e,[p.value?(r.openBlock(),r.createElementBlock("div",ge,[o.mode!=="preview"?(r.openBlock(),r.createElementBlock("div",ve,[r.createElementVNode("span",we,r.toDisplayString(R.value),1),r.createElementVNode("button",{class:"change-file-btn",onClick:K,title:r.unref(t)("component.photo.changeFile")||"更换文件"},[...d[1]||(d[1]=[r.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[r.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])],8,be)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"image-container",style:r.normalizeStyle(H.value)},[r.createElementVNode("img",{ref_key:"imageRef",ref:y,src:p.value,alt:R.value,style:r.normalizeStyle(J.value),onLoad:Q,onError:X},null,44,Re),((g=(_=r.unref(i))==null?void 0:_.value)==null?void 0:g.imageDisplayMode)==="tile"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"tiled-background",style:r.normalizeStyle(G.value)},null,4)):r.createCommentVNode("",!0)],4)])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["upload-area",{"preview-mode":o.mode==="preview"}])},[r.createElementVNode("div",pe,[(r.openBlock(),r.createElementBlock("svg",me,[...d[0]||(d[0]=[r.createElementVNode("path",{d:"M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"},null,-1)])])),r.createElementVNode("p",fe,r.toDisplayString(o.mode==="preview"?"未上传素材":r.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1),o.mode!=="preview"?(r.openBlock(),r.createElementBlock("div",ye,[r.createVNode(u,{type:"primary",size:"small",onClick:F},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(t)("component.photo.selectFromLibrary")||"从素材库选择"),1)]),_:1})])):r.createCommentVNode("",!0)])],2))]),r.renderSlot(n.$slots,"default",{},void 0,!0)],4)}}})),Ue=f._export_sfc(Ae,[["__scopeId","data-v-57314f5b"]]);exports.default=Ue;
@@ -1 +0,0 @@
1
- "use strict";var Z=Object.defineProperty,J=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var H=(n,d,s)=>d in n?Z(n,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[d]=s,q=(n,d)=>{for(var s in d||(d={}))ee.call(d,s)&&H(n,s,d[s]);if(U)for(var s of U(d))te.call(d,s)&&H(n,s,d[s]);return n},D=(n,d)=>J(n,j(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),re=require("./BaseComponent-CIst2h8G.cjs"),ae=require("./index-5jeBLy74.cjs"),oe=require("./titleStyle-NSnz6cUg.cjs");var R=function(){return R=Object.assign||function(d){for(var s,u=1,c=arguments.length;u<c;u++){s=arguments[u];for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(d[h]=s[h])}return d},R.apply(this,arguments)};var B;(function(n){var d=(function(){function a(e,t,r,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var g=this.addEccAndInterleave(r);if(this.drawCodewords(g),o==-1)for(var m=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<m&&(o=l,m=p),this.applyMask(l)}c(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return a.encodeText=function(e,t){var r=n.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=n.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,o,i,l){if(r===void 0&&(r=1),o===void 0&&(o=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=o&&o<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var g,m;for(g=r;;g++){var p=a.getNumDataCodewords(g,t)*8,E=h.getTotalBits(e,g);if(E<=p){m=E;break}if(g>=o)throw new RangeError("Data too long")}for(var C=0,y=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<y.length;C++){var w=y[C];l&&m<=a.getNumDataCodewords(g,w)*8&&(t=w)}for(var v=[],S=0,M=e;S<M.length;S++){var b=M[S];s(b.mode.modeBits,4,v),s(b.numChars,b.mode.numCharCountBits(g),v);for(var A=0,P=b.getData();A<P.length;A++){var k=P[A];v.push(k)}}c(v.length==m);var z=a.getNumDataCodewords(g,t)*8;c(v.length<=z),s(0,Math.min(4,z-v.length),v),s(0,(8-v.length%8)%8,v),c(v.length%8==0);for(var N=236;v.length<z;N^=253)s(N,8,v);for(var O=[];O.length*8<v.length;)O.push(0);return v.forEach(function(I,_){return O[_>>>3]|=I<<7-(_&7)}),new a(g,t,O,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var o=0;o<r;o++)e==0&&o==0||e==0&&o==r-1||e==r-1&&o==0||this.drawAlignmentPattern(t[e],t[o]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,o=0;o<10;o++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,u(i,o));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var o=9;o<15;o++)this.setFunctionModule(14-o,8,u(i,o));for(var o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,u(i,o));for(var o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,u(i,o));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var o=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,o),this.setFunctionModule(l,i,o)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var o=-4;o<=4;o++){var i=Math.max(Math.abs(o),Math.abs(r)),l=e+o,g=t+r;0<=l&&l<this.size&&0<=g&&g<this.size&&this.setFunctionModule(l,g,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+r,Math.max(Math.abs(o),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var o=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),g=o-l%o,m=Math.floor(l/o),p=[],E=a.reedSolomonComputeDivisor(i),C=0,y=0;C<o;C++){var w=e.slice(y,y+m-i+(C<g?0:1));y+=w.length;var v=a.reedSolomonComputeRemainder(w,E);C<g&&w.push(0),p.push(w.concat(v))}for(var S=[],M=function(b){p.forEach(function(A,P){(b!=m-i||P>=g)&&S.push(A[b])})},C=0;C<p[0].length;C++)M(C);return c(S.length==l),S},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var o=0;o<this.size;o++)for(var i=0;i<2;i++){var l=r-i,g=(r+1&2)==0,m=g?this.size-1-o:o;!this.isFunction[m][l]&&t<e.length*8&&(this.modules[m][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var o=void 0;switch(e){case 0:o=(r+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=r%3==0;break;case 3:o=(r+t)%3==0;break;case 4:o=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:o=r*t%2+r*t%3==0;break;case 6:o=(r*t%2+r*t%3)%2==0;break;case 7:o=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&o&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,o=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(o++,o==5?e+=a.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,g=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(g++,g==5?e+=a.PENALTY_N1:g>5&&e++):(this.finderPenaltyAddHistory(g,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],g=1);e+=this.finderPenaltyTerminateAndCount(r,g,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var m=this.modules[t][l];m==this.modules[t][l+1]&&m==this.modules[t+1][l]&&m==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var y=C[E];p=y.reduce(function(S,M){return S+(M?1:0)},p)}var w=this.size*this.size,v=Math.ceil(Math.abs(p*20-w*10)/w)-1;return c(0<=v&&v<=9),e+=v*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],o=this.size-7;r.length<e;o-=t)r.splice(1,0,o);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var o=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],o),i+1<t.length&&(t[i]^=t[i+1]);o=a.reedSolomonMultiply(o,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(m){return 0}),o=function(m){var p=m^r.shift();r.push(0),t.forEach(function(E,C){return r[C]^=a.reedSolomonMultiply(E,p)})},i=0,l=e;i<l.length;i++){var g=l[i];o(g)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,o=7;o>=0;o--)r=r<<1^(r>>>7)*285,r^=(t>>>o&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();n.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var o=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+o),10),o*3+1,t),r+=o}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var o=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;o+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(o,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,o=0,i=e;o<i.length;o++){var l=i[o],g=l.mode.numCharCountBits(t);if(l.numChars>=1<<g)return 1/0;r+=4+g+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();n.QrSegment=h})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(n.QrCode||(n.QrCode={}))})(B||(B={}));(function(n){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(n.QrSegment||(n.QrSegment={}))})(B||(B={}));var T=B,V="L",ne=100,G=0,ie=.1,le=2,W={L:T.QrCode.Ecc.LOW,M:T.QrCode.Ecc.MEDIUM,Q:T.QrCode.Ecc.QUARTILE,H:T.QrCode.Ecc.HIGH},ue=(function(){try{new Path2D().addPath(new Path2D)}catch(n){return!1}return!0})();function Y(n){return n in W}function $(n,d){d===void 0&&(d=0);var s="";return n.forEach(function(u,c){var h=null;u.forEach(function(a,e){if(!a&&h!==null){s+="M".concat(h+d," ").concat(c+d,"h").concat(e-h,"v1H").concat(h+d,"z"),h=null;return}if(e===u.length-1){if(!a)return;h===null?s+="M".concat(e+d,",").concat(c+d," h1v1H").concat(e+d,"z"):s+="M".concat(h+d,",").concat(c+d," h").concat(e+1-h,"v1H").concat(h+d,"z");return}a&&h===null&&(h=e)})}),s}function se(n,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=n.length+s*2,r=Math.floor(d*ie),o=t/d,i=(c||r)*o,l=(h||r)*o,g=a==null?n.length/2-i/2:a*o,m=e==null?n.length/2-l/2:e*o,p=(u.borderRadius||0)*o,E=null;if(u.excavate){var C=Math.floor(g),y=Math.floor(m),w=Math.ceil(i+g-C),v=Math.ceil(l+m-y);E={x:C,y,w,h:v}}return{x:g,y:m,h:l,w:i,borderRadius:p,excavation:E}}function K(n){var d=f.computed(function(){var e;return((e=n.margin)!==null&&e!==void 0?e:G)>>>0}),s=f.computed(function(){var e=Y(n.level)?n.level:V;return T.QrCode.encodeText(n.value,W[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return $(s.value,d.value)}),h=f.computed(function(){if(!n.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=se(s.value,n.size,d.value,n.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!n.imageSettings.excavate||!n.imageSettings.src)return null;var e=le/(n.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var F={value:{type:String,required:!0,default:""},size:{type:Number,default:ne},level:{type:String,default:V,validator:function(n){return Y(n)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:G},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(n){return["linear","radial"].indexOf(n)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},de=R(R({},F),{renderAs:{type:String,required:!1,default:"canvas",validator:function(n){return["canvas","svg"].indexOf(n)>-1}}}),he=f.defineComponent({name:"QRCodeSvg",props:F,setup:function(n){var d=K(n),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a="qrcode.vue-gradient",e=function(){if(!n.gradient)return null;var o=n.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(n.gradientType==="linear"?"linearGradient":"radialGradient",R({id:a},o),[f.h("stop",{offset:"0%",style:{stopColor:n.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:n.gradientEndColor}})])},t="qrcode.vue-logo-clip-path",r=function(){var o=c.value.borderRadius;return!n.imageSettings.src||o<=0?null:f.h("clipPath",{id:t},[f.h("rect",{x:c.value.x,y:c.value.y,width:c.value.width,height:c.value.height,rx:o,ry:o})])};return function(){return f.h("svg",{width:n.size,height:n.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value)},[f.h("defs",{},[e(),r()]),f.h("rect",{width:"100%",height:"100%",fill:n.background}),f.h("path",{fill:n.gradient?"url(#".concat(a,")"):n.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:n.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),n.imageSettings.src&&f.h("image",R(R({href:n.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),ce=f.defineComponent({name:"QRCodeCanvas",props:F,setup:function(n,d){var s=K(n),u=s.margin,c=s.cells,h=s.numCells,a=s.imageProps,e=s.imageBorderProps,t=f.ref(null),r=f.ref(null),o=function(){var l=n.size,g=n.background,m=n.foreground,p=n.gradient,E=n.gradientType,C=n.gradientStartColor,y=n.gradientEndColor,w=t.value;if(w){var v=w.getContext("2d");if(v){var S=c.value,M=r.value,b=typeof window!="undefined"&&window.devicePixelRatio||1,A=l/h.value*b;if(w.height=w.width=l*b,v.scale(A,A),v.fillStyle=g,v.fillRect(0,0,h.value,h.value),p){var P=void 0;E==="linear"?P=v.createLinearGradient(0,0,h.value,h.value):P=v.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),P.addColorStop(0,C),P.addColorStop(1,y),v.fillStyle=P}else v.fillStyle=m;ue?v.fill(new Path2D($(S,u.value))):S.forEach(function(I,_){I.forEach(function(L,x){L&&v.fillRect(x+u.value,_+u.value,1,1)})});var k=n.imageSettings.src&&M&&M.naturalWidth!==0&&M.naturalHeight!==0;if(k){var z=function(I,_,L,x,Q,X){I.beginPath(),I.roundRect?I.roundRect(_,L,x,Q,X):I.rect(_,L,x,Q)};if(e.value){var N=e.value;v.fillStyle=n.background,z(v,N.x,N.y,N.width,N.height,N.borderRadius),v.fill()}var O=a.value.borderRadius;O>0?(v.save(),z(v,a.value.x,a.value.y,a.value.width,a.value.height,O),v.clip(),v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height),v.restore()):v.drawImage(M,a.value.x,a.value.y,a.value.width,a.value.height)}}}};f.onMounted(o),f.watchEffect(o);var i=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",R(R({},d.attrs),{ref:t,style:R(R({},i),{width:"".concat(n.size,"px"),height:"".concat(n.size,"px")})})),n.imageSettings.src&&f.h("img",{ref:r,src:n.imageSettings.src,style:{display:"none"},onLoad:o})])}}}),fe=f.defineComponent({name:"Qrcode",render:function(){var n=this.$props,d=n.renderAs,s=n.value,u=n.size,c=n.margin,h=n.level,a=n.background,e=n.foreground,t=n.imageSettings,r=n.gradient,o=n.gradientType,i=n.gradientStartColor,l=n.gradientEndColor;return f.h(d==="svg"?he:ce,{value:s,size:u,margin:c,level:h,background:a,foreground:e,imageSettings:t,gradient:r,gradientType:o,gradientStartColor:i,gradientEndColor:l})},props:de});const ve="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='currentColor'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='currentColor'/%3e%3c/svg%3e",ge="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234162ff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3crect%20x='3'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='3'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='3'%20y='14'%20width='7'%20height='7'%20rx='1'/%3e%3crect%20x='14'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='14'%20width='3'%20height='3'/%3e%3crect%20x='14'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='18'%20y='18'%20width='3'%20height='3'/%3e%3crect%20x='5'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='16'%20y='5'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3crect%20x='5'%20y='16'%20width='3'%20height='3'%20fill='%234162ff'/%3e%3c/svg%3e",me={class:"mix-body"},Ce={DEFAULT_ICON:ve,ACTIVE_ICON:ge,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10,PLATFORM:["pc","screen","mobile"]},pe={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,titleSize:14,titleAlign:"left",titleWeight:"bold",titleBgColor:"transparent",titleBorderType:"none",titleBorderColor:"#cccccc",titleBorderWidth:1,titlePaddingH:8,titlePaddingV:4,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],Ee=[],ye=[],Se={},Me={DEFAULT:Ce,OPTIONS:pe,DATA:we,PARAMS:Ee,SOURCE:ye,COMMON:Se},Re=f.defineComponent(D(q({},Me),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(n){const d=n;class s extends re.BaseComponent{extractStyles(){return D(q({},super.extractStyles()),{titleColor:this.getOptionValue("titleColor","#111"),bgColor:this.getOptionValue("bgColor","#fff"),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),qrColor:this.getOptionValue("qrColor","#000000"),qrBgColor:this.getOptionValue("qrBgColor","#ffffff"),showBorder:this.getOptionValue("showBorder",!0),borderColor:this.getOptionValue("borderColor","#e5e7eb"),borderWidth:this.getOptionValue("borderWidth",1),qrSize:this.getOptionValue("qrSize",200),defaultContent:this.getOptionValue("defaultContent","http://www.mixlinker.com"),errorLevel:this.getOptionValue("errorLevel","M")})}init(){this.Style.value=this.extractStyles(),this.applyTheme()}}const u=new s(d,"qrcode");u.setupLifecycle();const c=u.getStyle(),h=d.conf,a=f.computed(()=>oe.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(o,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",me,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(fe,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(o.$slots,"default",{},void 0,!0)],4))}})),be=ae._export_sfc(Re,[["__scopeId","data-v-3ff68f63"]]);exports.default=be;