mixdashboards 1.0.39 → 1.0.43

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 (290) hide show
  1. package/dist/{EChartComponentBase-BaQpBzVC.cjs → EChartComponentBase-BChD1X2l.cjs} +1 -1
  2. package/dist/{EChartComponentBase-BQOhWkz2.js → EChartComponentBase-tSVuV5H3.js} +1 -1
  3. package/dist/{UniverSheet-KlvmL1Yw.cjs → UniverSheet-DxPYELl0.cjs} +1 -1
  4. package/dist/{UniverSheet-MSHzUXq0.js → UniverSheet-ZGig1_Pu.js} +2 -2
  5. package/dist/{accelerationChart-DZj2V2vD.cjs → accelerationChart-BU01FhLB.cjs} +1 -1
  6. package/dist/{accelerationChart-B1HPMmd2.js → accelerationChart-uPXXAoIX.js} +3 -3
  7. package/dist/{actionItem-Bb2xiYlY.js → actionItem-Cto59Uxi.js} +3 -3
  8. package/dist/{actionItem-BYCPoQK7.cjs → actionItem-Ds004yWK.cjs} +1 -1
  9. package/dist/{alarmLevelChart-CCioESvL.js → alarmLevelChart-Bxhp_1Yh.js} +2 -2
  10. package/dist/{alarmLevelChart-Bb0mAbwQ.cjs → alarmLevelChart-pquXuv2m.cjs} +1 -1
  11. package/dist/{alertTable-CQwr8YYt.js → alertTable-BmHTGwvG.js} +2 -2
  12. package/dist/{alertTable-oaX5eJC0.cjs → alertTable-C8POEEmf.cjs} +1 -1
  13. package/dist/{annualRainfallChart-C21jEMBe.js → annualRainfallChart-BgKPNPJQ.js} +2 -2
  14. package/dist/{annualRainfallChart-pO8q6aUJ.cjs → annualRainfallChart-CEy_57N0.cjs} +1 -1
  15. package/dist/{api-P_s372dW.cjs → api-B54Z00Zb.cjs} +1 -1
  16. package/dist/{api-C0GhBpqd.js → api-Cug1klvp.js} +4 -4
  17. package/dist/{aqi-DlY2r7OA.cjs → aqi-XOaZyAYC.cjs} +1 -1
  18. package/dist/{aqi-iLwQH4rc.js → aqi-_FjN7mXi.js} +10 -10
  19. package/dist/{aqiIndass-BaIVBfdC.cjs → aqiIndass-BT4xpq07.cjs} +1 -1
  20. package/dist/{aqiIndass-DBeVSBdy.js → aqiIndass-LrPuO3hk.js} +15 -15
  21. package/dist/arrayCard-CxQt6Fpt.js +94 -0
  22. package/dist/arrayCard-I0242qBp.cjs +1 -0
  23. package/dist/{audio-CAP4D-J2.js → audio-Ca_jh1Ry.js} +5 -5
  24. package/dist/{audio-CThzVIDU.cjs → audio-Ci8MfRFp.cjs} +1 -1
  25. package/dist/{bar-BjR566__.cjs → bar-B2qbk8Xs.cjs} +1 -1
  26. package/dist/{bar-D8C06GO4.js → bar-OCOTqPHY.js} +4 -4
  27. package/dist/{bmp-Cjizh2x6.js → bmp-CLiSfyAx.js} +3 -3
  28. package/dist/{bmp-DsmTzyce.cjs → bmp-DSOZL3Ws.cjs} +1 -1
  29. package/dist/{box-qgu_67OD.cjs → box-CSAC2nll.cjs} +1 -1
  30. package/dist/{box-DqewT3MF.js → box-Dfiea0UY.js} +2 -2
  31. package/dist/{chartConfigPanel-DwAUq3pf.js → chartConfigPanel-DNyg08bW.js} +1 -1
  32. package/dist/{chartConfigPanel-BiQArCoQ.cjs → chartConfigPanel-MmXLFF3s.cjs} +1 -1
  33. package/dist/{circleBar-CO89T7kj.cjs → circleBar-BTodjF_P.cjs} +1 -1
  34. package/dist/{circleBar-DGHDWQih.js → circleBar-jvdZW67Y.js} +8 -8
  35. package/dist/{clock-32hGccm4.cjs → clock-BvUgA4hU.cjs} +1 -1
  36. package/dist/{clock-CT8YXEU3.js → clock-IOEnD1FR.js} +2 -2
  37. package/dist/{clt-FfIEfGtn.js → clt-C0J-U9U2.js} +3 -3
  38. package/dist/{clt-5bP_g1O-.cjs → clt-CqVfBGgu.cjs} +1 -1
  39. package/dist/{cmc-dbuLkE8o.cjs → cmc-CpaXOsS7.cjs} +1 -1
  40. package/dist/{cmc-B2nQFZIS.js → cmc-D0_Qv6Zs.js} +3 -3
  41. package/dist/{cmp-QQlYcnqo.js → cmp-BDgmsQWa.js} +12 -12
  42. package/dist/{cmp-l3U9fIrz.cjs → cmp-BU9ix80c.cjs} +1 -1
  43. package/dist/{composite-DlY2_x6P.cjs → composite-BHFoRAhK.cjs} +1 -1
  44. package/dist/{composite-DjhrBgG1.js → composite-Daajjrh1.js} +8 -8
  45. package/dist/config-D3MEjLGn.js +9 -0
  46. package/dist/config-UTUPYJ45.cjs +1 -0
  47. package/dist/{controlList-BdF8xNAi.js → controlList-OYiF483D.js} +3 -3
  48. package/dist/{controlList-De6PXdOc.cjs → controlList-PkvqGwS5.cjs} +1 -1
  49. package/dist/{controlRecordList-u5a7chIX.cjs → controlRecordList-BaJdGodA.cjs} +1 -1
  50. package/dist/{controlRecordList-CKpAr1ON.js → controlRecordList-pzonY5_g.js} +3 -3
  51. package/dist/{crd-BoaXQhFQ.cjs → crd-CgatCwuM.cjs} +1 -1
  52. package/dist/{crd-BVAf41oX.js → crd-Vjh_CNX2.js} +2 -2
  53. package/dist/{ctrBtn-ZPRYWE66.js → ctrBtn-CSuW7u1a.js} +4 -4
  54. package/dist/{ctrBtn-C9kQiqY1.cjs → ctrBtn-CjMIOEud.cjs} +1 -1
  55. package/dist/{ctrSet-CNCrnLSs.cjs → ctrSet-CNfIgsND.cjs} +1 -1
  56. package/dist/{ctrSet-C87dxLfQ.js → ctrSet-CpKA4FWL.js} +4 -4
  57. package/dist/{ctrSwitch-CkC_Axtp.js → ctrSwitch-BPCp-27u.js} +4 -4
  58. package/dist/{ctrSwitch-CVEtbdfb.cjs → ctrSwitch-DNLZ2RDv.cjs} +1 -1
  59. package/dist/{dataManagement-CjlNfeYq.js → dataManagement-kLivh0Wo.js} +2 -2
  60. package/dist/{dataManagement-n711sd1g.cjs → dataManagement-tU6uKtEj.cjs} +1 -1
  61. package/dist/{dataReport-BsVjW3p7.cjs → dataReport-D7g7U1Mk.cjs} +1 -1
  62. package/dist/{dataReport-ByjswEqq.js → dataReport-DKIWxloF.js} +2 -2
  63. package/dist/{dataTable-K7j4fhnq.cjs → dataTable-BHlNGT3A.cjs} +1 -1
  64. package/dist/{dataTable-DX500R1i.js → dataTable-Ch3UyUHs.js} +1 -1
  65. package/dist/{datetime-DYXWKrXI.cjs → datetime-CGgW1_vl.cjs} +1 -1
  66. package/dist/{datetime-DVbJtALf.js → datetime-Cyg8Xaoh.js} +2 -2
  67. package/dist/{deepClusterSlipSurface-B7nkEM9A.cjs → deepClusterSlipSurface-CN_WZFnF.cjs} +1 -1
  68. package/dist/{deepClusterSlipSurface-CQUE05cK.js → deepClusterSlipSurface-D4PhBTV3.js} +6 -6
  69. package/dist/{deepDataMatrix-DHZA0IAm.cjs → deepDataMatrix-DrQ1_-Ie.cjs} +1 -1
  70. package/dist/{deepDataMatrix-ai5rB6ET.js → deepDataMatrix-v5op9TPA.js} +2 -2
  71. package/dist/{deepDisplacement3D-BFqKqSYg.cjs → deepDisplacement3D--kNKCZIe.cjs} +1 -1
  72. package/dist/{deepDisplacement3D-BsUzvbQb.js → deepDisplacement3D-COaSjPeE.js} +3 -3
  73. package/dist/{deepDisplacementChart-2JZNrhrw.cjs → deepDisplacementChart-C9SjfW9d.cjs} +1 -1
  74. package/dist/{deepDisplacementChart-igl4rW1K.js → deepDisplacementChart-CrQDLDLG.js} +2 -2
  75. package/dist/{deepDisplacementChart-BCIuCMdK.js → deepDisplacementChart-CuH2f1nn.js} +4 -4
  76. package/dist/{deepDisplacementChart-Ba67v6um.cjs → deepDisplacementChart-DcpBhevd.cjs} +1 -1
  77. package/dist/{deepDisplacementView-wQxyKzB-.cjs → deepDisplacementView-CZrY99uX.cjs} +1 -1
  78. package/dist/{deepDisplacementView-BedWJsx7.js → deepDisplacementView-D7lYRm9Y.js} +1 -1
  79. package/dist/{deepNodeTemperatureChart-albL8hKa.cjs → deepNodeTemperatureChart-CxzgoQXA.cjs} +1 -1
  80. package/dist/{deepNodeTemperatureChart-DLeb9jKp.js → deepNodeTemperatureChart-DfR4tUqO.js} +6 -6
  81. package/dist/{deepTangentAngleChart-DukevXaM.cjs → deepTangentAngleChart-B8WNZAJe.cjs} +1 -1
  82. package/dist/{deepTangentAngleChart-C6xOiITk.js → deepTangentAngleChart-CVjnZrOJ.js} +7 -7
  83. package/dist/{deepTemperatureField-De4xKoHw.cjs → deepTemperatureField-CUfAJ9UM.cjs} +1 -1
  84. package/dist/{deepTemperatureField-B-y94GPV.js → deepTemperatureField-Do6-blr7.js} +7 -7
  85. package/dist/{deepTrendChart-DCkV2HNv.js → deepTrendChart-BP2CKFYM.js} +6 -6
  86. package/dist/{deepTrendChart-MmuYSXtu.cjs → deepTrendChart-DtFP9z8x.cjs} +1 -1
  87. package/dist/{deviceOnlineStatus-CFuCTx7_.js → deviceOnlineStatus-D6bULBvw.js} +2 -2
  88. package/dist/{deviceOnlineStatus-B5cCjhNA.cjs → deviceOnlineStatus-DTKqM11O.cjs} +1 -1
  89. package/dist/{deviceStatus-DsEtKiGo.cjs → deviceStatus-B6OKoKq-.cjs} +1 -1
  90. package/dist/{deviceStatus-B2ibBDSi.js → deviceStatus-DJYGmb17.js} +2 -2
  91. package/dist/{displacementDataTable-oLnUdafv.cjs → displacementDataTable-DDG2INsm.cjs} +1 -1
  92. package/dist/{displacementDataTable-BDqG1IvI.js → displacementDataTable-uRgXH0CK.js} +2 -2
  93. package/dist/{displacementTrajectoryChart-Crf55oKi.js → displacementTrajectoryChart-CEiKrhq1.js} +3 -3
  94. package/dist/{displacementTrajectoryChart-CBhPwZhe.cjs → displacementTrajectoryChart-CurD1AeO.cjs} +1 -1
  95. package/dist/{displacementTrendChart-10n_lC9j.js → displacementTrendChart-Cc_3vfUE.js} +2 -2
  96. package/dist/{displacementTrendChart-CWihCuIJ.cjs → displacementTrendChart-DVa6z4Nl.cjs} +1 -1
  97. package/dist/{dxf-D8zHpz5g.js → dxf-BVAbI2Re.js} +5 -5
  98. package/dist/{dxf-DDh_DcQy.cjs → dxf-D4bSvrFx.cjs} +1 -1
  99. package/dist/{dzc-DLCdTCwW.js → dzc-CP27H3cb.js} +10 -10
  100. package/dist/{dzc-uNTDJqpi.cjs → dzc-fP5m-jgn.cjs} +1 -1
  101. package/dist/{arrayCard-DNNUEPvW.js → ele-arrayCard-icon-CAk9ojr4.js} +3 -91
  102. package/dist/ele-arrayCard-icon-QOabvV0y.cjs +1 -0
  103. package/dist/{element-resize-detector-DJcsrJ8s.js → element-resize-detector-CcMj2at_.js} +419 -412
  104. package/dist/element-resize-detector-Dv3K8Mdu.cjs +6 -0
  105. package/dist/{evn-YwCALVXj.js → evn-Ce6AYrxO.js} +2 -2
  106. package/dist/{evn-DuL5oVRl.cjs → evn-CyEggAn9.cjs} +1 -1
  107. package/dist/{evolutionChart-AeL67MAt.cjs → evolutionChart-CMRBPKKA.cjs} +1 -1
  108. package/dist/{evolutionChart-4noZSdLX.js → evolutionChart-D74KWOt_.js} +3 -3
  109. package/dist/{fileViewer-DiH3PM0r.js → fileViewer-FWpbKEm_.js} +5 -5
  110. package/dist/{fileViewer-bsrjlJkC.cjs → fileViewer-HmsHvQbe.cjs} +1 -1
  111. package/dist/{filterBar-Ct1BFhrS.cjs → filterBar-BGqSr_Gz.cjs} +1 -1
  112. package/dist/{filterBar-CWEguwYc.js → filterBar-SwG99EqD.js} +2 -2
  113. package/dist/{fireCombustionCurve-DYPC4zKJ.js → fireCombustionCurve-CK9bbLYm.js} +2 -2
  114. package/dist/{fireCombustionCurve-DyiQn-WA.cjs → fireCombustionCurve-DGYg2Zz7.cjs} +1 -1
  115. package/dist/{fireFilterBar-Bdm2ljuO.cjs → fireFilterBar-BUdbOHbv.cjs} +1 -1
  116. package/dist/{fireFilterBar-DGHPNTwF.js → fireFilterBar-Dv4oMV2C.js} +2 -2
  117. package/dist/{gag-HiNaL81R.cjs → gag-DV4cygUt.cjs} +1 -1
  118. package/dist/{gag-kvkKzJuO.js → gag-eTRNcrqU.js} +5 -5
  119. package/dist/gasStationList-DNIbWG_P.cjs +1 -0
  120. package/dist/gasStationList-Dq4JF7HM.js +984 -0
  121. package/dist/{glbModel-DtBI72ap.cjs → glbModel-BEB3-OkB.cjs} +1 -1
  122. package/dist/{glbModel-CUz6CyVF.js → glbModel-DXwR8B8M.js} +2 -2
  123. package/dist/{gnssFilterBar-TBtirXIB.js → gnssFilterBar-B6A4lUyp.js} +2 -2
  124. package/dist/{gnssFilterBar-BQgY5x1W.cjs → gnssFilterBar-Diqwq6NT.cjs} +1 -1
  125. package/dist/{gnssHistoryTable-D1ZLJOgh.cjs → gnssHistoryTable-Bn_PcTYz.cjs} +1 -1
  126. package/dist/{gnssHistoryTable-U8O7nyO7.js → gnssHistoryTable-DYgh7vSR.js} +3 -3
  127. package/dist/{gnssMapView-42zmAd9q.cjs → gnssMapView-C4nMl0TP.cjs} +1 -1
  128. package/dist/{gnssMapView-CaBfWeT1.js → gnssMapView-g7D0pOjL.js} +2 -2
  129. package/dist/{gnssTimeSeriesChart-CV2w_Aik.cjs → gnssTimeSeriesChart-DeQ-wByR.cjs} +1 -1
  130. package/dist/{gnssTimeSeriesChart-BrXYvuh6.js → gnssTimeSeriesChart-hQbteX4L.js} +4 -4
  131. package/dist/{gnssXYTrajectory-BmzSYjQ_.cjs → gnssXYTrajectory-B_e7j8rL.cjs} +1 -1
  132. package/dist/{gnssXYTrajectory-D2DoYnze.js → gnssXYTrajectory-lvuXN9lD.js} +3 -3
  133. package/dist/{grd-DW8cSFVR.cjs → grd-Cue6pwOG.cjs} +1 -1
  134. package/dist/{grd-B0GUjLm9.js → grd-p61RCI9f.js} +3 -3
  135. package/dist/{grdIndass-DduUKZJm.js → grdIndass-B7h2b6uM.js} +3 -3
  136. package/dist/{grdIndass-BeBXVsos.cjs → grdIndass-C7cig5jz.cjs} +1 -1
  137. package/dist/{grg-fnpcXtju.cjs → grg-CuoOAf0S.cjs} +1 -1
  138. package/dist/{grg-CeX0pirQ.js → grg-duDSzJwQ.js} +6 -6
  139. package/dist/{gridview-DpABhCIw.cjs → gridview-B73KnYlW.cjs} +1 -1
  140. package/dist/{gridview-BPwWXza9.js → gridview-CSJXmPgO.js} +2 -2
  141. package/dist/{groupCard-De1E15mW.js → groupCard-DPlcY3KM.js} +2 -2
  142. package/dist/{groupCard-WNE6gAAl.cjs → groupCard-DbuFpUy_.cjs} +1 -1
  143. package/dist/{headerBar-CZ3qcLHo.js → headerBar-CNX5OgJJ.js} +3 -3
  144. package/dist/{headerBar-Qi1EXrr6.cjs → headerBar-ntCC3TG_.cjs} +1 -1
  145. package/dist/history-BKlOuH9N.cjs +1 -0
  146. package/dist/{history-BkZhlpdY.js → history-DDhjCbfn.js} +60 -57
  147. package/dist/{index-kShjySl9.js → index-DCD0sVkl.js} +1047 -1065
  148. package/dist/index-p4bdBANg.cjs +582 -0
  149. package/dist/{insarDeformChart-CnuSL1d9.js → insarDeformChart-BUpCXYTi.js} +2 -2
  150. package/dist/{insarDeformChart-BGr2xe7w.cjs → insarDeformChart-DWjpCTST.cjs} +1 -1
  151. package/dist/{insarImageViewer-EmVThmVQ.js → insarImageViewer-3jC7sm-N.js} +2 -2
  152. package/dist/{insarImageViewer-DRgGdQmN.cjs → insarImageViewer-DBouC3bG.cjs} +1 -1
  153. package/dist/{kds-CpIQFgeY.js → kds-B8Eb8A5z.js} +10 -10
  154. package/dist/{kds-DTYWOq4K.cjs → kds-BbHwPepp.cjs} +1 -1
  155. package/dist/{layerTabs-BATcBkTA.cjs → layerTabs-D7I2t951.cjs} +1 -1
  156. package/dist/{layerTabs-uze6K91A.js → layerTabs-DyEqHH1_.js} +2 -2
  157. package/dist/{lin-DU_EuPRg.js → lin-BnBuwG1p.js} +8 -8
  158. package/dist/{lin-Ba6fHkYf.cjs → lin-Co2eyQYR.cjs} +1 -1
  159. package/dist/{linIndass-urYe5inp.cjs → linIndass-BI56prH5.cjs} +1 -1
  160. package/dist/{linIndass-XHKElG7L.js → linIndass-D440bglm.js} +7 -7
  161. package/dist/{lst-CpmoEQDY.cjs → lst-CyOeVUwG.cjs} +1 -1
  162. package/dist/{lst-C7aee1cU.js → lst-DJ70Qm0_.js} +2 -2
  163. package/dist/{manualEntry-CJPiO5nh.cjs → manualEntry-DIRgJo2n.cjs} +1 -1
  164. package/dist/{manualEntry-D9m_WPw3.js → manualEntry-w-qfhXMO.js} +2 -2
  165. package/dist/{mapBackground-CF_TqNBy.cjs → mapBackground-B29Oe6LE.cjs} +1 -1
  166. package/dist/{mapBackground-6g_71Fwa.js → mapBackground-CPjs_j_-.js} +2 -2
  167. package/dist/{mappingList-luT5YE0d.js → mappingList-B40O99li.js} +3 -3
  168. package/dist/{mappingList-CR55Tq4t.cjs → mappingList-DbnBjHp6.cjs} +1 -1
  169. package/dist/{markdownViewer-CnguoUr8.js → markdownViewer-Bx2It9sV.js} +5 -5
  170. package/dist/{markdownViewer-D1hDk2Y7.cjs → markdownViewer-CLkqzacw.cjs} +1 -1
  171. package/dist/{mix-control-modal-BDHAB4Tw.cjs → mix-control-modal-CMieJ_yd.cjs} +1 -1
  172. package/dist/{mix-control-modal-CHiX3hQs.js → mix-control-modal-OWpKWsS0.js} +3 -3
  173. package/dist/{mixDataPermission-BaqV0Z6N.js → mixDataPermission-Et2y1ZNV.js} +4 -3
  174. package/dist/{mixDataPermission-BTA1jNd1.cjs → mixDataPermission-wcr14h4V.cjs} +1 -1
  175. package/dist/{mixGrid-3BqQCvg8.cjs → mixGrid-D3cGrQ1G.cjs} +1 -1
  176. package/dist/{mixGrid-C0eEvwPy.js → mixGrid-DZyLbs2L.js} +3 -3
  177. package/dist/{mixMap-Bw-We4Cm.cjs → mixMap-CZijD9Wl.cjs} +1 -1
  178. package/dist/{mixMap-7upgYwWk.js → mixMap-CvcH9tWH.js} +3 -3
  179. package/dist/{mixModel-CgV4XptM.cjs → mixModel-C7jP0OTI.cjs} +1 -1
  180. package/dist/{mixModel-BqE_Kd4c.js → mixModel-Cb9jZGgU.js} +10 -10
  181. package/dist/{mixPie-9LfMCTQV.cjs → mixPie-DaVnghMR.cjs} +1 -1
  182. package/dist/{mixPie-B-HeglUn.js → mixPie-Xl9q3aeM.js} +7 -7
  183. package/dist/mixdashboards.cjs +1 -1
  184. package/dist/mixdashboards.css +1 -1
  185. package/dist/mixdashboards.js +1 -1
  186. package/dist/{mjpegCamera-nxKfhobY.cjs → mjpegCamera-B4DGYk-6.cjs} +1 -1
  187. package/dist/{mjpegCamera-Cfw3rzT5.js → mjpegCamera-Bur1zDjR.js} +2 -2
  188. package/dist/{monitorAlert-Bt0baNh4.cjs → monitorAlert-BEeF7aKG.cjs} +1 -1
  189. package/dist/{monitorAlert-Bg5vzzyG.js → monitorAlert-DTtkf40Q.js} +2 -2
  190. package/dist/{monitorData-CzPVIk_4.cjs → monitorData-CxUmxh7h.cjs} +1 -1
  191. package/dist/{monitorData-BvAMeOrp.js → monitorData-DJOo9Mmf.js} +3 -3
  192. package/dist/{monitorSpeedChart-0bDuU3Kj.js → monitorSpeedChart-BC2X02Sb.js} +1 -1
  193. package/dist/{monitorSpeedChart-C52QjA5K.cjs → monitorSpeedChart-CNoRIuP1.cjs} +1 -1
  194. package/dist/{mxa-BW80xKCc.js → mxa-BN75OPFt.js} +7 -7
  195. package/dist/{mxa-eLAgZPMC.cjs → mxa-BxzaaRQF.cjs} +1 -1
  196. package/dist/myValue-CNORsNDC.js +149 -0
  197. package/dist/myValue-DFkdFmlD.cjs +1 -0
  198. package/dist/myValueList-CBMG0eWA.js +451 -0
  199. package/dist/myValueList-CjBLDJYH.cjs +1 -0
  200. package/dist/objectList-DFhu-fz0.cjs +1 -0
  201. package/dist/{objectList-Cf9GMyXN.js → objectList-bNg216p9.js} +575 -623
  202. package/dist/photo-DigmnVvl.js +342 -0
  203. package/dist/photo-kfRZAysa.cjs +1 -0
  204. package/dist/{pie-DxoBrm0D.cjs → pie-84DfqS1S.cjs} +1 -1
  205. package/dist/{pie-BDLg-Rls.js → pie-DTt2sFrk.js} +7 -7
  206. package/dist/{pressBtn-t0g4vk7s.cjs → pressBtn-DDIIdhOz.cjs} +1 -1
  207. package/dist/{pressBtn-CXG1eSWC.js → pressBtn-DDffBSTH.js} +4 -4
  208. package/dist/{progressBar-BXaFKSCq.js → progressBar-BBXjT_1K.js} +2 -2
  209. package/dist/{progressBar-CJEWkZ42.cjs → progressBar-T-y989f-.cjs} +1 -1
  210. package/dist/{progressCircle-DpOI5D5z.js → progressCircle-CTl5sua8.js} +2 -2
  211. package/dist/{progressCircle-uQ7vaMKM.cjs → progressCircle-Dr9rGPdw.cjs} +1 -1
  212. package/dist/qrcode-B_s5tsz3.cjs +1 -0
  213. package/dist/{qrcode-CX8aymYZ.js → qrcode-kk5QYwXg.js} +297 -298
  214. package/dist/{raceBar-DFaH342G.js → raceBar-LWP50Esm.js} +7 -7
  215. package/dist/{raceBar-Cv0-0ogd.cjs → raceBar-l_09Yq2I.cjs} +1 -1
  216. package/dist/{rad-NS2G_nMg.js → rad-B78foPbg.js} +7 -7
  217. package/dist/{rad-CFswUTwi.cjs → rad-q5w7s5OW.cjs} +1 -1
  218. package/dist/{rainfallFilterBar-D_Ye_NeB.js → rainfallFilterBar-CgLsQ-bP.js} +2 -2
  219. package/dist/{rainfallFilterBar-BI45QvJm.cjs → rainfallFilterBar-Df3KQ_ZM.cjs} +1 -1
  220. package/dist/{rainfallTimeCurve-BHWqX47Q.js → rainfallTimeCurve-B2QbnKYR.js} +3 -3
  221. package/dist/{rainfallTimeCurve-Ke1JvSWq.cjs → rainfallTimeCurve-C7Pyp1yx.cjs} +1 -1
  222. package/dist/{rangeLin-D6VZ2U3C.cjs → rangeLin-54P6A-H6.cjs} +1 -1
  223. package/dist/{rangeLin-GMYEgLeP.js → rangeLin-lsD1Tb23.js} +7 -7
  224. package/dist/{request-Bn100qAJ.cjs → request-Bkzlbfat.cjs} +1 -1
  225. package/dist/{request-BD0x5Hkt.js → request-DvQqpxzM.js} +1 -1
  226. package/dist/{retainer1-h-Whr2c9.js → retainer1-G4qdYcqG.js} +3 -3
  227. package/dist/{retainer1-D2XmjXYH.cjs → retainer1-LbRL0Bvk.cjs} +1 -1
  228. package/dist/{retainer2-ByQdiRjq.js → retainer2-DcNWAHtE.js} +3 -3
  229. package/dist/{retainer2-cF-trL2g.cjs → retainer2-DfFMVUdl.cjs} +1 -1
  230. package/dist/{riskRegionTable-CQxAkG7k.js → riskRegionTable-CIlOa9cB.js} +2 -2
  231. package/dist/{riskRegionTable-cKnxra4_.cjs → riskRegionTable-WR6ex2Hi.cjs} +1 -1
  232. package/dist/{sankey-MRirEgU0.cjs → sankey-BWpsoIQq.cjs} +1 -1
  233. package/dist/{sankey-Bk1IcVJQ.js → sankey-DU5yTv0d.js} +9 -9
  234. package/dist/{scd-J-mN3eI5.cjs → scd-D_1G2sMH.cjs} +1 -1
  235. package/dist/{scd-BDRpzmsa.js → scd-s1R4ArEA.js} +2 -2
  236. package/dist/{sideMenu-BgTMtnMq.js → sideMenu-BLN-hmKR.js} +2 -2
  237. package/dist/{sideMenu-l8X2E00H.cjs → sideMenu-BXylutdD.cjs} +1 -1
  238. package/dist/{slopeStability-BPf7m0fJ.cjs → slopeStability-Dm3wLwov.cjs} +1 -1
  239. package/dist/{slopeStability-C5RqZ1im.js → slopeStability-yF4cbFAW.js} +3 -3
  240. package/dist/{speedCurve-C3pK-zZy.js → speedCurve-B4jL0peM.js} +3 -3
  241. package/dist/{speedCurve-CluwNAZl.cjs → speedCurve-Dha8_czy.cjs} +1 -1
  242. package/dist/{staticLine-DXWOLj15.js → staticLine-9Z3ZUOOu.js} +7 -7
  243. package/dist/{staticLine-C6tGGXcN.cjs → staticLine-DsOWwv03.cjs} +1 -1
  244. package/dist/{store-BJW2NQkK.cjs → store-B3uCwXgM.cjs} +1 -1
  245. package/dist/{store-DzDtVfSX.js → store-BLHqFZQd.js} +2 -2
  246. package/dist/{swiper-IMlGje3t.js → swiper-BdGmBriB.js} +3 -3
  247. package/dist/{swiper-DGqDoUkX.cjs → swiper-CXb_2mfg.cjs} +1 -1
  248. package/dist/{terminalConfigList-D6xDHsnb.cjs → terminalConfigList-DFzOUHe2.cjs} +1 -1
  249. package/dist/{terminalConfigList-SAyXi-BK.js → terminalConfigList-EQ7lagNS.js} +3 -3
  250. package/dist/{terminalList-ml2C18MY.cjs → terminalList-CEr-6C-6.cjs} +1 -1
  251. package/dist/{terminalList-CjSHshiR.js → terminalList-neZWjaQ9.js} +3 -3
  252. package/dist/{textbox-BLV-SY8e.js → textbox-BLzAPC0q.js} +4 -4
  253. package/dist/{textbox-AQtCe25j.cjs → textbox-DmOguEQU.cjs} +1 -1
  254. package/dist/{timeQueryBar-BeMu_DYr.js → timeQueryBar-B_xpm0AC.js} +1 -1
  255. package/dist/{timeQueryBar-BuKakMy8.cjs → timeQueryBar-MDyFx6rP.cjs} +1 -1
  256. package/dist/{timeSeries-DP5iZKVM.js → timeSeries-7SohUo9l.js} +4 -4
  257. package/dist/{timeSeries-DfGgFWiF.cjs → timeSeries-CaIR746Y.cjs} +1 -1
  258. package/dist/{timeSeriesCurve-B0Mw6eNK.cjs → timeSeriesCurve-D-PncXjY.cjs} +1 -1
  259. package/dist/{timeSeriesCurve-BSgtPqYw.js → timeSeriesCurve-DZBsHqsK.js} +3 -3
  260. package/dist/{toggleBtn-Dh64vVWo.cjs → toggleBtn--cJyh7p1.cjs} +1 -1
  261. package/dist/{toggleBtn-O2Y75Uen.js → toggleBtn-B2m2z1Si.js} +7 -7
  262. package/dist/{trajectoryConfigPanel--C1h3tK6.js → trajectoryConfigPanel-Bs-CzBAX.js} +1 -1
  263. package/dist/{trajectoryConfigPanel-P_Qa4omj.cjs → trajectoryConfigPanel-ChfuUbTU.cjs} +1 -1
  264. package/dist/{trajectoryScatter-VLrmImlq.js → trajectoryScatter-Bm2AHlY2.js} +6 -6
  265. package/dist/{trajectoryScatter-BbpbgNb8.cjs → trajectoryScatter-DuWUKaOg.cjs} +1 -1
  266. package/dist/{universalConfigPanel-C0lDSzOB.cjs → universalConfigPanel-C6dYbcUq.cjs} +1 -1
  267. package/dist/{universalConfigPanel-DBg76b4F.js → universalConfigPanel-D6887bDA.js} +1 -1
  268. package/dist/{universalTable-DGK02ywi.js → universalTable-D-Nx7-YD.js} +2 -2
  269. package/dist/{universalTable-Bzq9VqzA.cjs → universalTable-DPpSYgmV.cjs} +1 -1
  270. package/dist/{video-CyRoSQf1.cjs → video-CB2ndqns.cjs} +1 -1
  271. package/dist/{video-DCzzaEmV.js → video-i7fMjDsj.js} +5 -5
  272. package/dist/{videoMonitor-ByaQeIWR.js → videoMonitor-D_gmm8xD.js} +2 -2
  273. package/dist/{videoMonitor-BjD-ZFS0.cjs → videoMonitor-DjHj3jKS.cjs} +1 -1
  274. package/dist/{vlu-CYZjYHaV.cjs → vlu-BapGJiKV.cjs} +1 -1
  275. package/dist/{vlu-h-9twmCr.js → vlu-DKvcQynh.js} +2 -2
  276. package/dist/{weather-B7B5E1EJ.cjs → weather-CqehOpyT.cjs} +1 -1
  277. package/dist/{weather-C_aC0XJ1.js → weather-M9RB9i4h.js} +3 -3
  278. package/dist/{windLin-DPNzX7JN.cjs → windLin-BtRlE9KH.cjs} +1 -1
  279. package/dist/{windLin-B7V4NUV8.js → windLin-xKNNyTR0.js} +9 -9
  280. package/package.json +10 -9
  281. package/dist/arrayCard-OlVAAsZq.cjs +0 -1
  282. package/dist/config-BLSroAzs.cjs +0 -1
  283. package/dist/config-Cc2W4vke.js +0 -9
  284. package/dist/element-resize-detector-Bo5uDQAu.cjs +0 -6
  285. package/dist/history-DAmBl4_5.cjs +0 -1
  286. package/dist/index-Mh5Dw2sd.cjs +0 -585
  287. package/dist/objectList-CpqQxG8L.cjs +0 -1
  288. package/dist/photo-BODEtaYh.cjs +0 -1
  289. package/dist/photo-BfLkWAo8.js +0 -256
  290. package/dist/qrcode-DHCRfp0M.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var bt=Object.defineProperty,vt=Object.defineProperties;var _t=Object.getOwnPropertyDescriptors;var Re=Object.getOwnPropertySymbols;var Vt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var je=(b,g,V)=>g in b?bt(b,g,{enumerable:!0,configurable:!0,writable:!0,value:V}):b[g]=V,U=(b,g)=>{for(var V in g||(g={}))Vt.call(g,V)&&je(b,V,g[V]);if(Re)for(var V of Re(g))yt.call(g,V)&&je(b,V,g[V]);return b},te=(b,g)=>vt(b,_t(g));var M=(b,g,V)=>new Promise((A,S)=>{var ae=B=>{try{w(V.next(B))}catch(H){S(H)}},X=B=>{try{w(V.throw(B))}catch(H){S(H)}},w=B=>B.done?A(B.value):Promise.resolve(B.value).then(ae,X);w((V=V.apply(b,g)).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/switch/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/select/style/css");require("element-plus/es/components/option/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");const e=require("vue"),gt=require("./element-resize-detector-Bo5uDQAu.cjs"),Me=require("./index-Mh5Dw2sd.cjs"),ht=require("./titleStyle-NSnz6cUg.cjs"),me=require("./config-BLSroAzs.cjs"),k=require("element-plus"),wt=require("@element-plus/icons-vue"),q=require("./mixDataPermission-BTA1jNd1.cjs"),le=require("./store-BJW2NQkK.cjs"),Pe=require("./ele-lst-icon-CrxnHZ-A.cjs"),fe=[{dataKey:"detailTab_baseinfo",label:"基础信息",defaultOn:!0},{dataKey:"detailTab_monitor",label:"监控",defaultOn:!1},{dataKey:"detailTab_history",label:"历程数据",defaultOn:!1},{dataKey:"detailTab_dashboard",label:"大屏脚本",defaultOn:!1},{dataKey:"detailTab_control",label:"控制记录",defaultOn:!1},{dataKey:"detailTab_child",label:"子对象",defaultOn:!1},{dataKey:"detailTab_terminal",label:"关联终端",defaultOn:!1},{dataKey:"detailTab_fv",label:"FV列表",defaultOn:!1},{dataKey:"detailTab_statistics",label:"统计项目",defaultOn:!1},{dataKey:"detailTab_statistics_result",label:"统计结果",defaultOn:!1},{dataKey:"detailTab_calculate",label:"计算任务",defaultOn:!1},{dataKey:"detailTab_calculate_result",label:"计算结果",defaultOn:!1},{dataKey:"detailTab_collect",label:"采集项目",defaultOn:!1},{dataKey:"detailTab_collect_record",label:"采集记录",defaultOn:!1},{dataKey:"detailTab_retainer",label:"历程项目",defaultOn:!1},{dataKey:"detailTab_retainer_record",label:"历程记录",defaultOn:!1},{dataKey:"detailTab_ai",label:"AI项目",defaultOn:!1},{dataKey:"detailTab_ai_result",label:"AI结果",defaultOn:!1},{dataKey:"detailTab_adaps",label:"特征检测项目",defaultOn:!1},{dataKey:"detailTab_adaps_result",label:"特征检测结果",defaultOn:!1},{dataKey:"detailTab_indass",label:"特征指标(Indass)",defaultOn:!1},{dataKey:"detailTab_data_for_record",label:"备档文件",defaultOn:!1}];function qe(){return Object.fromEntries(fe.map(b=>[b.dataKey,b.defaultOn]))}function kt(b){return b.replace(/^detailTab_/,"").replace(/_/g,"-")}const xt={class:"mix-body"},Nt={class:"toolbar"},Ct={class:"table-wrapper"},St={class:"pagination"},Bt={class:"context-menu"},Tt={class:"dialog-footer"},Et={class:"dialog-footer"},Dt={class:"view-detail-body"},Ot={key:1,class:"view-detail-layout"},At={class:"view-detail-tabs"},Lt=["onClick"],Ut={class:"view-detail-pane"},Ft={key:0,class:"view-detail-error"},Kt={class:"mix-detail-block"},Rt=["src"],jt={key:1,class:"mix-detail-title-sm"},Pt={key:2,class:"mix-detail-block"},Mt={key:1,class:"view-detail-stub"},qt={class:"stub-uid"},zt={DEFAULT_ICON:Pe.DEFAULT_ICON,ACTIVE_ICON:Pe.ACTIVE_ICON,NAME_CN:"对象列表",NAME_EN:"ObjectList",ORDER:1},It={bgColor:"#fff",nameColor:"#999",valueColor:"#333",titleColor:"#111",titleSize:14,nameSize:12,valueSize:12,radiusSize:8,isHideTitle:!1,columns:[{key:"uid",label:"对象编号",width:180,visible:!0,useFv:!1},{key:"name",label:"对象名称",width:180,visible:!0,useFv:!1},{key:"alias",label:"对象别名",width:180,visible:!0,useFv:!1},{key:"model",label:"型号",width:160,visible:!0,useFv:!1},{key:"create_by_tpl",label:"创建方式",width:120,visible:!0,useFv:!1},{key:"customer_name",label:"客户名称",width:180,visible:!0,useFv:!1},{key:"terminal_list",label:"关联终端",width:180,visible:!0,useFv:!1},{key:"mapping_name",label:"映射表名称",width:180,visible:!0,useFv:!1},{key:"tag",label:"标签",width:120,visible:!0,useFv:!1},{key:"province",label:"省份",width:100,visible:!0,useFv:!1},{key:"city",label:"市/区",width:100,visible:!0,useFv:!1},{key:"description",label:"描述",width:150,visible:!0,useFv:!1},{key:"created",label:"创建时间",width:180,visible:!0,useFv:!1},{key:"last_modified",label:"更新时间",width:180,visible:!0,useFv:!1}]},pe=[te(U({name:"对象",fv:"",object_id:"",unit:"",default:"",isText:!1,showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0},qe()),{addRealtimeData:!1,realtimeParams:[{name:"",fv:""}],alias:"对象别名",alias_visible:!0,model:"型号",model_visible:!0,create_by_tpl:"创建方式",create_by_tpl_visible:!0,customer_name:"客户名称",customer_name_visible:!0,terminal_list:"关联终端",terminal_list_visible:!0,mapping_name:"映射表名称",mapping_name_visible:!0,tag:"标签",tag_visible:!0,province:"省份",province_visible:!0,city:"市/区",city_visible:!0,description:"描述",description_visible:!0,created:"创建时间",created_visible:!0,last_modified:"更新时间",last_modified_visible:!0,textValueTransform:{mode:"numeric",numericRules:[{matchType:"value",matchValue:"",displayText:"",color:"#333333"}],rangeRules:[{op:"gt",boundary:"",displayText:"",color:"#333333"}]}})],$t=[{key:"showAddBtn",label:"添加对象按钮",type:"checkbox",group:"命令组"},{key:"showViewBtn",label:"查看",type:"checkbox",group:"操作组",collapseIndentedChildren:!0,collapseExpandLabel:"展开查看详情",collapseCollapseLabel:"收起查看详情"},...fe.map(b=>({key:b.dataKey,label:b.label,type:"checkbox",group:"操作组",dependent:"showViewBtn",indent:!0})),{key:"showEditBtn",label:"编辑",type:"checkbox",group:"操作组"},{key:"showArchiveBtn",label:"资料备档",type:"checkbox",group:"操作组"},{key:"showDeleteBtn",label:"删除",type:"checkbox",group:"操作组"},{key:"name",label:"参数名称"},{key:"addRealtimeData",label:"添加实时数据",type:"checkbox"},{key:"realtimeParams",label:"实时数据参数",type:"array",fields:["name","fv"],dependent:"addRealtimeData"},{key:"alias",label:"对象别名",checkable:!0,checkboxKey:"alias_visible"},{key:"model",label:"型号",checkable:!0,checkboxKey:"model_visible"},{key:"create_by_tpl",label:"创建方式",checkable:!0,checkboxKey:"create_by_tpl_visible"},{key:"customer_name",label:"客户名称",checkable:!0,checkboxKey:"customer_name_visible"},{key:"terminal_list",label:"关联终端",checkable:!0,checkboxKey:"terminal_list_visible"},{key:"mapping_name",label:"映射表名称",checkable:!0,checkboxKey:"mapping_name_visible"},{key:"tag",label:"标签",checkable:!0,checkboxKey:"tag_visible"},{key:"province",label:"省份",checkable:!0,checkboxKey:"province_visible"},{key:"city",label:"市/区",checkable:!0,checkboxKey:"city_visible"},{key:"description",label:"描述",checkable:!0,checkboxKey:"description_visible"},{key:"created",label:"创建时间",checkable:!0,checkboxKey:"created_visible"},{key:"last_modified",label:"更新时间",checkable:!0,checkboxKey:"last_modified_visible"}],Jt=["mosaic","statistics","calculate","statisticsRealtime","calculateRealtime"],Ht={},Yt=[{prop:"uid",label:"对象编号",width:180,visible:!0},{prop:"name",label:"对象名称",width:180,visible:!0},{prop:"alias",label:"对象别名",width:180,visible:!0},{prop:"model",label:"型号",width:160,visible:!0},{prop:"create_by_tpl",label:"创建方式",width:120,visible:!0},{prop:"customer_name",label:"客户名称",width:180,visible:!0},{prop:"terminal_list",label:"关联终端",width:180,visible:!0},{prop:"mapping_name",label:"映射表名称",width:180,visible:!0},{prop:"tag",label:"标签",width:120,visible:!0},{prop:"province",label:"省份",width:100,visible:!0},{prop:"city",label:"市/区",width:100,visible:!0},{prop:"description",label:"描述",width:150,visible:!0},{prop:"created",label:"创建时间",width:180,visible:!0},{prop:"last_modified",label:"更新时间",width:180,visible:!0}],Wt={DEFAULT:zt,OPTIONS:It,DATA:pe,PARAMS:$t,SOURCE:Jt,COMMON:Ht,COLUMNS_CONFIG:Yt},Gt=e.defineComponent(te(U({},Wt),{__name:"objectList",props:{conf:{default:()=>({data:[]})},uid:{default:""},mode:{},theme:{},objectList:{default:()=>[]},code:{default:""}},setup(b){const g=me.MIDDLE_PLATFORM_URL;function V(l){const t=q.action_mapping,i=l.split(".");return i.length===1?t[i[0]]:t[i[0]][i[1]]}function A(l,t={},i=!0){const o=U({},t);q.mergeMixDataPermission(l,o);const m=localStorage.getItem("globalApiUrl"),d=localStorage.getItem("globalApiToken"),y=window.location.href.includes("/preview");if(!!(m&&d&&y)){const _=V(l),D=U({block_mapping:_.block_mapping,action:_.action},o);return le.useCounterStore().changeLoading(!i),Me.apiProxy.post(D).catch(N=>{if(N.code===10018&&N.info&&N.info.includes("不存在的action和路由"))return console.warn(`[objectListApiPost] ApiProxy 不支持 action: ${_.action},回退到中台服务`),o.block_mapping=_.block_mapping,o.action=_.action,q.base.post(g,o);throw N}).finally(()=>{le.useCounterStore().changeLoading(!1)})}const h=V(l);return o.block_mapping=h.block_mapping,o.action=h.action,le.useCounterStore().changeLoading(!i),q.base.post(g,o).catch(_=>{if(q.mockManager.shouldUseMock(_))return console.warn(`⚠️ 服务不可用,使用 Mock 数据: ${h.action}`,_),q.mockManager.getMockData(h.action,o);throw _}).finally(()=>{le.useCounterStore().changeLoading(!1)})}const S=b;class ae extends gt.BaseComponent{getDataBool(t,i){var m,d;const o=(d=(m=this.props.conf)==null?void 0:m.data)==null?void 0:d[0];return o&&Object.prototype.hasOwnProperty.call(o,t)&&o[t]!==void 0?!!o[t]:this.getOptionValue(t,i)}extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),nameColor:this.getOptionValue("nameColor","#999"),valueColor:this.getOptionValue("valueColor","#333"),titleColor:this.getOptionValue("titleColor","#111"),titleSize:this.getOptionValue("titleSize",14),nameSize:this.getOptionValue("nameSize",12),valueSize:this.getOptionValue("valueSize",12),radiusSize:this.getOptionValue("radiusSize",8),isHideTitle:this.getOptionValue("isHideTitle",!1),showAddBtn:this.getDataBool("showAddBtn",!0),showViewBtn:this.getDataBool("showViewBtn",!0),showEditBtn:this.getDataBool("showEditBtn",!0),showArchiveBtn:this.getDataBool("showArchiveBtn",!0),showDeleteBtn:this.getDataBool("showDeleteBtn",!0)}}init(){var t;if(this.Style.value=this.extractStyles(),this.applyTheme(),!((t=this.props.conf.data)!=null&&t.length)||this.props.conf.data.length===1&&this.props.conf.data[0].alias_visible===void 0)this.props.conf.data=JSON.parse(JSON.stringify(pe));else{const i=this.props.conf.data[0],o={showAddBtn:!0,showViewBtn:!0,showEditBtn:!0,showArchiveBtn:!0,showDeleteBtn:!0};for(const[d,y]of Object.entries(o))i[d]===void 0&&(i[d]=y);const m=qe();for(const[d,y]of Object.entries(m))i[d]===void 0&&(i[d]=y);i.textValueTransform===void 0&&(i.textValueTransform=JSON.parse(JSON.stringify(pe[0].textValueTransform)))}}}const X=new ae(S,"objectList");X.setupLifecycle();const w=X.getStyle(),B=e.computed(()=>ht.generateTitleStyle(S.conf.options)),H=e.computed(()=>{var o,m,d,y;const l=((m=(o=S.conf)==null?void 0:o.options)==null?void 0:m.columns)||[],t=((y=(d=S.conf)==null?void 0:d.data)==null?void 0:y[0])||{},i=Array.isArray(l)?l.map(c=>{const h=t[c.key],_=t[`${c.key}_visible`];return{prop:c.key,label:h!==void 0&&h!==""?h:c.label,width:c.width,visible:_!==void 0?_:c.visible}}):[];return t.addRealtimeData&&Array.isArray(t.realtimeParams)&&t.realtimeParams.forEach(c=>{c.name&&c.fv&&i.push({prop:c.fv,label:c.name,width:150,visible:!0})}),i}),x=e.reactive({current:1,pageSize:20,total:0}),Y=e.ref(""),z=e.ref("name"),W=e.ref(null),oe=e.ref([]),ie=e.ref(!1);function ze(){z.value==="created"?Y.value="":W.value=null}function Ie(){const l=[];if(z.value==="created"){const i=W.value;if(i&&i.length===2&&i[0]&&i[1]){const[o,m]=i;l.push(["created",">=",o<=m?o:m]),l.push(["created","<=",o<=m?m:o])}}else{const i=Y.value.trim();i&&l.push([z.value,"like",`%${i}%`])}const t={page_index:x.current,page_size:x.pageSize};return l.length&&(t.where_and=JSON.stringify(l)),t}function T(){return M(this,null,function*(){var l,t;ie.value=!0;try{const i=yield A("get_object_list",Ie(),!0),o=(l=i==null?void 0:i.result)!=null?l:i;let m=Array.isArray(o==null?void 0:o.data)?[...o.data]:Array.isArray(o)?[...o]:[];if((t=S.objectList)!=null&&t.length){const y=new Set(S.objectList.map(String));m=m.filter(c=>y.has(String(c.uid)))}oe.value=m;let d=o==null?void 0:o.total_records;typeof d!="number"&&(d=Array.isArray(o)?o.length:m.length),x.total=d,i&&i.code!==void 0&&i.code!==200&&k.ElMessage.warning(i.msg||i.info||"列表接口返回非成功状态")}catch(i){console.error(i),oe.value=[],x.total=0,q.mockManager.isServiceUnavailableError(i)?k.ElMessage.warning("对象列表服务暂不可用(如 object 未在 Consul 注册),请检查后端"):k.ElMessage.error("加载对象列表失败")}finally{ie.value=!1}})}const $e=e.computed(()=>oe.value);function be(l){return l===!0||l===1||l==="1"}const I=e.ref(!1),ve=e.ref(0),_e=e.ref(0),E=e.ref(null),G=e.ref(!1),n=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:""}),Ve=()=>{x.current=1,T()},Je=()=>{Y.value="",W.value=null,x.current=1,T()};function He(){x.current=1,T()}function Ye(){T()}e.watch(()=>{var l;return(l=S.objectList)==null?void 0:l.join(",")},()=>{x.current=1,T()});const We=(l,t)=>{l.preventDefault(),E.value=t,ve.value=l.clientY,_e.value=l.clientX,I.value=!0},$=e.ref(!1),Z=e.ref(!1),F=e.ref(""),p=e.ref(null),K=e.computed(()=>{var l,t;return((t=(l=S.conf)==null?void 0:l.data)==null?void 0:t[0])||{}}),Ge=e.computed(()=>{const l=new Set,t=K.value;if(t.addRealtimeData&&Array.isArray(t.realtimeParams))for(const i of t.realtimeParams)i!=null&&i.fv&&l.add(String(i.fv));return l}),ye=e.computed(()=>{const l=K.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)}))}),ge=e.computed(()=>{var l;return(l=K.value)==null?void 0:l.textValueTransform});function Qe(l){if(l==null||l==="")return!0;const t=String(l).trim();return!t||t==="未获取"}function he(l,t){if(!t)return null;if(t.mode==="numeric"){for(const i of t.numericRules||[])if(i.matchType==="unavailable"){if(Qe(l))return{text:i.displayText,color:i.color}}else if(String(l)===String(i.matchValue))return{text:i.displayText,color:i.color}}else{const i=typeof l=="number"?l:parseFloat(String(l).replace(/,/g,""));if(Number.isNaN(i))return null;for(const o of t.rangeRules||[]){const m=parseFloat(String(o.boundary));if(!Number.isNaN(m)){if(o.op==="gt"&&i>m)return{text:o.displayText,color:o.color};if(o.op==="lt"&&i<m)return{text:o.displayText,color:o.color}}}}return null}function we(l){return Ge.value.has(l)}function Xe(l,t){const i=l[t.prop];if(we(t.prop)){const o=he(i,ge.value);if(o)return o.text}return i==null?"":String(i)}function Ze(l,t){const i=l[t.prop];if(!we(t.prop))return{};const o=he(i,ge.value);return o!=null&&o.color?{color:o.color}:{}}const R=e.computed(()=>fe.filter(l=>K.value[l.dataKey]===!0).map(l=>te(U({},l),{tabKey:kt(l.dataKey)}))),J=e.ref("baseinfo"),et=e.computed(()=>{var t;const l=R.value.find(i=>i.tabKey===J.value);return(t=l==null?void 0:l.label)!=null?t:""}),tt=e.computed(()=>{try{return localStorage.getItem("sys_mode")||""}catch(l){return""}}),ke=e.computed(()=>{var i;const l=(i=p.value)==null?void 0:i.image;if(!l||typeof l!="string")return"";if(l.startsWith("http")||l.startsWith(me.FILE_URL))return l;const t=l.startsWith("/")?l.slice(1):l;return`${me.FILE_URL}${t}`}),xe=e.computed(()=>{var t;const l=(t=p.value)==null?void 0:t.tag;return Array.isArray(l)?l.map(String).filter(Boolean):typeof l=="string"&&l.trim()?l.split(/[,,]/).map(i=>i.trim()).filter(Boolean):[]}),re=e.computed(()=>{var t;const l=(t=p.value)==null?void 0:t.addition;return Array.isArray(l)?l.filter(i=>i&&typeof i=="object"&&Array.isArray(i.data)):[]}),lt=l=>`「${l}」的完整能力在 mixui 对象管理模块中提供;大屏组件内仅保留配置占位。`,Ne=()=>{const l=R.value;J.value=l.length?l[0].tabKey:"baseinfo"},Ce=l=>M(null,null,function*(){if(I.value=!1,F.value="",p.value=null,Ne(),!R.value.length){$.value=!0;return}$.value=!0,Z.value=!0;try{const t=yield A("get_object_item",{uid:l.uid},!0);t!=null&&t.result&&typeof t.result=="object"?p.value=t.result:p.value=U({},l),(t==null?void 0:t.code)!==void 0&&t.code!==200?F.value=t.msg||t.info||`请求失败 (${t.code})`:t!=null&&t.result||(F.value="未返回详情数据,已使用列表行暂代显示。")}catch(t){p.value=U({},l),F.value="加载详情失败,已使用列表行暂代显示。"}finally{Z.value=!1}}),at=()=>{p.value=null,F.value="",Z.value=!1};e.watch(R,()=>{if(!$.value)return;new Set(R.value.map(t=>t.tabKey)).has(J.value)||Ne()});const Se=()=>({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:""}),Q=e.ref(!1),u=e.reactive(Se()),Be=e.ref(0),ne=e.ref(!1),de=e.ref(!1),se=e.ref(!1);function ot(l){return Array.isArray(l)?l.map(String).filter(Boolean).join(", "):typeof l=="string"?l:""}function it(l){return l.split(/[,,]/).map(t=>t.trim()).filter(Boolean)}function rt(){const l=K.value;if(l.addRealtimeData&&Array.isArray(l.realtimeParams))for(const t of l.realtimeParams)t!=null&&t.fv&&Reflect.deleteProperty(u,String(t.fv));Object.assign(u,Se())}function Te(l){const t=K.value;if(!(!t.addRealtimeData||!Array.isArray(t.realtimeParams))){for(const i of t.realtimeParams)if(i!=null&&i.name&&(i!=null&&i.fv)){const o=String(i.fv),m=l[o];u[o]=m!=null?String(m):""}}}function Ee(l){var t,i,o,m,d,y,c,h,_,D,N,s,j,L,O,P;rt(),Object.assign(u,{uid:String((t=l.uid)!=null?t:""),name:String((i=l.name)!=null?i:""),alias:String((o=l.alias)!=null?o:""),model:String((m=l.model)!=null?m:""),description:String((d=l.description)!=null?d:""),customer_id:String((y=l.customer_id)!=null?y:""),customer_name:String((c=l.customer_name)!=null?c:""),customer_alias:String((h=l.customer_alias)!=null?h:""),terminal_list:String((_=l.terminal_list)!=null?_:""),mapping_id:String((D=l.mapping_id)!=null?D:""),mapping_name:String((N=l.mapping_name)!=null?N:""),tag:ot(l.tag),province:String((s=l.province)!=null?s:""),city:String((j=l.city)!=null?j:""),create_by_tpl:be(l.create_by_tpl),tpl_uid:String((L=l.tpl_uid)!=null?L:""),tpl_name:String((O=l.tpl_name)!=null?O:""),tpl_alias:String((P=l.tpl_alias)!=null?P:"")}),Be.value=Number(l.id)||0}function De(l,t){var i,o,m,d,y,c,h,_,D,N,s,j,L,O,P,ee,f;return{id:t,uid:String((i=l.uid)!=null?i:"").trim(),name:String((o=l.name)!=null?o:"").trim(),alias:String((m=l.alias)!=null?m:""),model:String((d=l.model)!=null?d:""),description:String((y=l.description)!=null?y:""),customer_id:String((c=l.customer_id)!=null?c:""),customer_name:String((h=l.customer_name)!=null?h:""),customer_alias:String((_=l.customer_alias)!=null?_:""),terminal_list:String((D=l.terminal_list)!=null?D:""),mapping_id:String((N=l.mapping_id)!=null?N:""),mapping_name:String((s=l.mapping_name)!=null?s:""),tag:it(String((j=l.tag)!=null?j:"")),province:String((L=l.province)!=null?L:""),city:String((O=l.city)!=null?O:""),create_by_tpl:l.create_by_tpl?1:0,tpl_uid:String((P=l.tpl_uid)!=null?P:""),tpl_name:String((ee=l.tpl_name)!=null?ee:""),tpl_alias:String((f=l.tpl_alias)!=null?f:""),addition:"[]"}}const Oe=l=>M(null,null,function*(){var t;I.value=!1,Q.value=!0,ne.value=!0;try{const i=yield A("get_object_item",{uid:l.uid},!0),o=(t=i==null?void 0:i.result)!=null?t:l;Ee(o),Te(o)}catch(i){Ee(l),Te(l),k.ElMessage.warning("拉取对象详情失败,已使用列表行编辑")}finally{ne.value=!1}}),nt=()=>M(null,null,function*(){if(!u.name.trim()){k.ElMessage.warning("请填写对象名称");return}de.value=!0;try{yield A("update_object",De(u,Be.value),!0),k.ElMessage.success("保存成功"),Q.value=!1,yield T()}catch(l){k.ElMessage.error("保存失败")}finally{de.value=!1}}),Ae=l=>{I.value=!1,k.ElMessageBox.confirm("确认删除该对象吗?","警告",{type:"warning"}).then(()=>M(null,null,function*(){try{yield A("delete_object",{uid:l.uid,id:l.id},!0),k.ElMessage.success("删除成功"),yield T()}catch(t){k.ElMessage.error("删除失败")}})).catch(()=>{})},dt=()=>{Object.assign(n,{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:""}),G.value=!0},st=()=>M(null,null,function*(){var l,t;if(!((l=n.uid)!=null&&l.trim())||!((t=n.name)!=null&&t.trim())){k.ElMessage.warning("请填写对象编号与名称");return}se.value=!0;try{yield A("create_object",De(n,0),!0),G.value=!1,k.ElMessage.success("添加成功"),yield T()}catch(i){k.ElMessage.error("添加失败")}finally{se.value=!1}}),Le=l=>{I.value=!1,k.ElMessageBox.confirm(`确认对对象 [${l.name}] 进行资料备档吗?`,"提示",{type:"info"}).then(()=>{k.ElMessage.success("备档成功")}).catch(()=>{})};return e.onMounted(()=>{T()}),(l,t)=>{const i=v.ElIcon,o=v.ElInput,m=v.ElDatePicker,d=v.ElOption,y=v.ElSelect,c=v.ElButton,h=v.ElTableColumn,_=v.ElTable,D=v.ElPagination,N=v.ElPopover,s=v.ElFormItem,j=v.ElSwitch,L=v.ElForm,O=v.ElDialog,P=v.ElDivider,ee=v.ElAlert,f=v.ElDescriptionsItem,ut=v.ElTag,Ue=v.ElDescriptions,ct=v.ElCollapseItem,mt=v.ElCollapse,pt=v.ElEmpty,ue=v.ElLoadingDirective;return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"object-list mix-component",style:e.normalizeStyle({backgroundColor:e.unref(w).bgColor,borderRadius:`${e.unref(w).radiusSize}px`})},[e.unref(w).isHideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"mix-title",style:e.normalizeStyle(B.value)},e.toDisplayString(b.conf.caption||b.conf.name),5)),e.createElementVNode("div",xt,[e.createElementVNode("div",Nt,[z.value!=="created"?(e.openBlock(),e.createBlock(o,{key:0,modelValue:Y.value,"onUpdate:modelValue":t[0]||(t[0]=a=>Y.value=a),placeholder:"搜索对象(与 mixui ObjectList 搜索字段一致)",size:"small",class:"toolbar-search",onKeyup:e.withKeys(Ve,["enter"])},{prefix:e.withCtx(()=>[e.createVNode(i,{class:"toolbar-search-icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(wt.Search))]),_:1})]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(m,{key:1,modelValue:W.value,"onUpdate:modelValue":t[1]||(t[1]=a=>W.value=a),type:"datetimerange","range-separator":"至","start-placeholder":"创建开始","end-placeholder":"创建结束","value-format":"YYYY-MM-DD HH:mm:ss",size:"small",class:"toolbar-created-range"},null,8,["modelValue"])),e.createVNode(y,{modelValue:z.value,"onUpdate:modelValue":t[2]||(t[2]=a=>z.value=a),size:"small",class:"toolbar-field-select",onChange:ze},{default:e.withCtx(()=>[e.createVNode(d,{label:"对象名称",value:"name"}),e.createVNode(d,{label:"对象编号",value:"uid"}),e.createVNode(d,{label:"对象别名",value:"alias"}),e.createVNode(d,{label:"客户编号",value:"customer_id"}),e.createVNode(d,{label:"客户别名",value:"customer_alias"}),e.createVNode(d,{label:"客户名称",value:"customer_name"}),e.createVNode(d,{label:"映射表编号",value:"mapping_id"}),e.createVNode(d,{label:"映射表名称",value:"mapping_name"}),e.createVNode(d,{label:"关联终端",value:"terminal_list"}),e.createVNode(d,{label:"标签",value:"tag"}),e.createVNode(d,{label:"省份",value:"province"}),e.createVNode(d,{label:"市/区",value:"city"}),e.createVNode(d,{label:"型号",value:"model"}),e.createVNode(d,{label:"序列号",value:"serial_no"}),e.createVNode(d,{label:"创建时间",value:"created"})]),_:1},8,["modelValue"]),e.createVNode(c,{type:"primary",onClick:Ve},{default:e.withCtx(()=>[...t[47]||(t[47]=[e.createTextVNode("搜索",-1)])]),_:1}),e.createVNode(c,{onClick:Je},{default:e.withCtx(()=>[...t[48]||(t[48]=[e.createTextVNode("重置",-1)])]),_:1}),e.unref(w).showAddBtn?(e.openBlock(),e.createBlock(c,{key:2,type:"success",onClick:dt},{default:e.withCtx(()=>[...t[49]||(t[49]=[e.createTextVNode("添加对象",-1)])]),_:1})):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ct,[e.createVNode(_,{data:$e.value,border:"",class:"yunuis-aprus-table",style:{width:"100%"},onRowContextmenu:We},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(H.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a.prop},[a.visible?(e.openBlock(),e.createBlock(h,{key:0,prop:a.prop,label:a.label,width:a.width},{default:e.withCtx(C=>[a.prop==="create_by_tpl"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(be(C.row.create_by_tpl)?"模板创建":"手动创建"),1)],64)):(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(Ze(C.row,a))},e.toDisplayString(Xe(C.row,a)),5))]),_:2},1032,["prop","label","width"])):e.createCommentVNode("",!0)],64))),128)),e.createVNode(h,{label:"操作","min-width":"250"},{default:e.withCtx(a=>[e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(c,{key:0,size:"small",onClick:C=>Ce(a.row)},{default:e.withCtx(()=>[...t[50]||(t[50]=[e.createTextVNode("查看",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(c,{key:1,size:"small",type:"primary",onClick:C=>Oe(a.row)},{default:e.withCtx(()=>[...t[51]||(t[51]=[e.createTextVNode("编辑",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(c,{key:2,size:"small",type:"info",onClick:C=>Le(a.row)},{default:e.withCtx(()=>[...t[52]||(t[52]=[e.createTextVNode("资料备档",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(c,{key:3,size:"small",type:"danger",onClick:C=>Ae(a.row)},{default:e.withCtx(()=>[...t[53]||(t[53]=[e.createTextVNode("删除",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",St,[e.createVNode(D,{"current-page":x.current,"onUpdate:currentPage":t[3]||(t[3]=a=>x.current=a),"page-size":x.pageSize,"onUpdate:pageSize":t[4]||(t[4]=a=>x.pageSize=a),"page-sizes":[20,50,100,200],layout:"total, sizes, prev, pager, next, jumper",total:x.total,onSizeChange:He,onCurrentChange:Ye},null,8,["current-page","page-size","total"])]),e.createVNode(N,{visible:I.value,width:200,trigger:"click","popper-options":{placement:"bottom",modifiers:[{name:"offset",options:{offset:[_e.value,ve.value]}}]}},{default:e.withCtx(()=>[e.createElementVNode("div",Bt,[E.value&&e.unref(w).showViewBtn?(e.openBlock(),e.createBlock(c,{key:0,type:"text",onClick:t[5]||(t[5]=a=>Ce(E.value))},{default:e.withCtx(()=>[...t[54]||(t[54]=[e.createTextVNode("查看详情",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(w).showEditBtn?(e.openBlock(),e.createBlock(c,{key:1,type:"text",onClick:t[6]||(t[6]=a=>Oe(E.value))},{default:e.withCtx(()=>[...t[55]||(t[55]=[e.createTextVNode("编辑对象",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(w).showArchiveBtn?(e.openBlock(),e.createBlock(c,{key:2,type:"text",onClick:t[7]||(t[7]=a=>Le(E.value))},{default:e.withCtx(()=>[...t[56]||(t[56]=[e.createTextVNode("资料备档",-1)])]),_:1})):e.createCommentVNode("",!0),E.value&&e.unref(w).showDeleteBtn?(e.openBlock(),e.createBlock(c,{key:3,type:"text",onClick:t[8]||(t[8]=a=>Ae(E.value))},{default:e.withCtx(()=>[...t[57]||(t[57]=[e.createTextVNode("删除对象",-1)])]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["visible","popper-options"]),e.createVNode(O,{modelValue:G.value,"onUpdate:modelValue":t[28]||(t[28]=a=>G.value=a),title:"添加对象",width:"600px"},{footer:e.withCtx(()=>[e.createElementVNode("span",Tt,[e.createVNode(c,{onClick:t[27]||(t[27]=a=>G.value=!1)},{default:e.withCtx(()=>[...t[58]||(t[58]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(c,{type:"primary",loading:se.value,onClick:st},{default:e.withCtx(()=>[...t[59]||(t[59]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.createVNode(L,{model:n,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.uid,"onUpdate:modelValue":t[9]||(t[9]=a=>n.uid=a),placeholder:"请输入对象编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.name,"onUpdate:modelValue":t[10]||(t[10]=a=>n.name=a),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.alias,"onUpdate:modelValue":t[11]||(t[11]=a=>n.alias=a),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.model,"onUpdate:modelValue":t[12]||(t[12]=a=>n.model=a),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.description,"onUpdate:modelValue":t[13]||(t[13]=a=>n.description=a),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.customer_id,"onUpdate:modelValue":t[14]||(t[14]=a=>n.customer_id=a),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.customer_name,"onUpdate:modelValue":t[15]||(t[15]=a=>n.customer_name=a),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.customer_alias,"onUpdate:modelValue":t[16]||(t[16]=a=>n.customer_alias=a),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.terminal_list,"onUpdate:modelValue":t[17]||(t[17]=a=>n.terminal_list=a),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.mapping_id,"onUpdate:modelValue":t[18]||(t[18]=a=>n.mapping_id=a),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.mapping_name,"onUpdate:modelValue":t[19]||(t[19]=a=>n.mapping_name=a),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tag,"onUpdate:modelValue":t[20]||(t[20]=a=>n.tag=a),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.province,"onUpdate:modelValue":t[21]||(t[21]=a=>n.province=a),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.city,"onUpdate:modelValue":t[22]||(t[22]=a=>n.city=a),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"创建方式"},{default:e.withCtx(()=>[e.createVNode(j,{modelValue:n.create_by_tpl,"onUpdate:modelValue":t[23]||(t[23]=a=>n.create_by_tpl=a),"active-text":"模板创建","inactive-text":"手动创建"},null,8,["modelValue"])]),_:1}),n.create_by_tpl?(e.openBlock(),e.createBlock(s,{key:0,label:"模板编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tpl_uid,"onUpdate:modelValue":t[24]||(t[24]=a=>n.tpl_uid=a),placeholder:"请输入模板编号"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),n.create_by_tpl?(e.openBlock(),e.createBlock(s,{key:1,label:"模板名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tpl_name,"onUpdate:modelValue":t[25]||(t[25]=a=>n.tpl_name=a),placeholder:"请输入模板名称"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),n.create_by_tpl?(e.openBlock(),e.createBlock(s,{key:2,label:"模板别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:n.tpl_alias,"onUpdate:modelValue":t[26]||(t[26]=a=>n.tpl_alias=a),placeholder:"请输入模板别名"},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:Q.value,"onUpdate:modelValue":t[44]||(t[44]=a=>Q.value=a),title:"编辑对象",width:"600px","destroy-on-close":""},{footer:e.withCtx(()=>[e.createElementVNode("span",Et,[e.createVNode(c,{onClick:t[43]||(t[43]=a=>Q.value=!1)},{default:e.withCtx(()=>[...t[61]||(t[61]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(c,{type:"primary",loading:de.value,onClick:nt},{default:e.withCtx(()=>[...t[62]||(t[62]=[e.createTextVNode("保存",-1)])]),_:1},8,["loading"])])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(L,{model:u,"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"对象编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.uid,"onUpdate:modelValue":t[29]||(t[29]=a=>u.uid=a),placeholder:"请输入对象编号",disabled:""},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.name,"onUpdate:modelValue":t[30]||(t[30]=a=>u.name=a),placeholder:"请输入对象名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"对象别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.alias,"onUpdate:modelValue":t[31]||(t[31]=a=>u.alias=a),placeholder:"请输入对象别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"型号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.model,"onUpdate:modelValue":t[32]||(t[32]=a=>u.model=a),placeholder:"请输入型号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"描述"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.description,"onUpdate:modelValue":t[33]||(t[33]=a=>u.description=a),placeholder:"请输入描述",type:"textarea"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.customer_id,"onUpdate:modelValue":t[34]||(t[34]=a=>u.customer_id=a),placeholder:"请输入客户编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.customer_name,"onUpdate:modelValue":t[35]||(t[35]=a=>u.customer_name=a),placeholder:"请输入客户名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"客户别名"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.customer_alias,"onUpdate:modelValue":t[36]||(t[36]=a=>u.customer_alias=a),placeholder:"请输入客户别名"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"关联终端"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.terminal_list,"onUpdate:modelValue":t[37]||(t[37]=a=>u.terminal_list=a),placeholder:"请输入关联终端"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表编号"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.mapping_id,"onUpdate:modelValue":t[38]||(t[38]=a=>u.mapping_id=a),placeholder:"请输入映射表编号"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"映射表名称"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.mapping_name,"onUpdate:modelValue":t[39]||(t[39]=a=>u.mapping_name=a),placeholder:"请输入映射表名称"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"标签"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.tag,"onUpdate:modelValue":t[40]||(t[40]=a=>u.tag=a),placeholder:"请输入标签"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"省份"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.province,"onUpdate:modelValue":t[41]||(t[41]=a=>u.province=a),placeholder:"请输入省份"},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"市/区"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u.city,"onUpdate:modelValue":t[42]||(t[42]=a=>u.city=a),placeholder:"请输入市/区"},null,8,["modelValue"])]),_:1}),K.value.addRealtimeData&&ye.value.length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{"content-position":"left"},{default:e.withCtx(()=>[...t[60]||(t[60]=[e.createTextVNode("实时数据",-1)])]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ye.value,a=>(e.openBlock(),e.createBlock(s,{key:a.fv,label:a.name},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:u[a.fv],"onUpdate:modelValue":C=>u[a.fv]=C,placeholder:"请输入"+a.name},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["label"]))),128))],64)):e.createCommentVNode("",!0)]),_:1},8,["model"])),[[ue,ne.value]])]),_:1},8,["modelValue"]),e.createVNode(O,{modelValue:$.value,"onUpdate:modelValue":t[46]||(t[46]=a=>$.value=a),title:"对象详情",width:"920px",class:"object-view-detail-dialog","destroy-on-close":"",onClosed:at},{footer:e.withCtx(()=>[e.createVNode(c,{type:"primary",onClick:t[45]||(t[45]=a=>$.value=!1)},{default:e.withCtx(()=>[...t[63]||(t[63]=[e.createTextVNode("关闭",-1)])]),_:1})]),default:e.withCtx(()=>{var a,C;return[e.withDirectives((e.openBlock(),e.createElementBlock("div",Dt,[R.value.length?(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("aside",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,r=>(e.openBlock(),e.createElementBlock("div",{key:r.tabKey,class:e.normalizeClass(["view-detail-tab-item",{active:J.value===r.tabKey}]),onClick:ce=>J.value=r.tabKey},e.toDisplayString(r.label),11,Lt))),128))]),e.createElementVNode("div",Ut,[J.value==="baseinfo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[F.value?(e.openBlock(),e.createElementBlock("div",Ft,e.toDisplayString(F.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Kt,[p.value?(e.openBlock(),e.createBlock(Ue,{key:0,column:2,border:""},{default:e.withCtx(()=>[ke.value?(e.openBlock(),e.createBlock(f,{key:0,label:"对象图片",span:2},{default:e.withCtx(()=>[e.createElementVNode("img",{class:"view-detail-head-img",src:ke.value,alt:""},null,8,Rt)]),_:1})):e.createCommentVNode("",!0),e.createVNode(f,{label:"对象编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.uid)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"对象名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"对象别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.alias)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"型号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.model)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"序列号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.serial_no)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.mapping_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.mapping_name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"映射表别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.mapping_alias)!=null?r:""),1)]}),_:1}),tt.value!=="box"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,{label:"项目编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.customer_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"项目名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.customer_name)!=null?r:""),1)]}),_:1})],64)):e.createCommentVNode("",!0),e.createVNode(f,{label:"控制密码"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码编号"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control_id)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码名称"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control_name)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"控制码别名"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.control_alias)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"地址"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.address)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"设置经纬度"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.custom_gis)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"GPS经纬度"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.gis)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"省份"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.province)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"城市"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.city)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"创建时间"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.created)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"更新时间"},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.last_modified)!=null?r:""),1)]}),_:1}),e.createVNode(f,{label:"标签",span:2},{default:e.withCtx(()=>[xe.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(xe.value,r=>(e.openBlock(),e.createBlock(ut,{key:r,style:{"margin-right":"6px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r),1)]),_:2},1024))),128)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(f,{label:"描述",span:2},{default:e.withCtx(()=>{var r;return[e.createTextVNode(e.toDisplayString((r=p.value.description)!=null?r:""),1)]}),_:1})]),_:1})):e.createCommentVNode("",!0)]),re.value.length?(e.openBlock(),e.createElementBlock("div",jt,"扩展脚本信息")):e.createCommentVNode("",!0),re.value.length?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(mt,{"expand-icon-position":"left"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(re.value,(r,ce)=>(e.openBlock(),e.createBlock(ct,{key:ce,name:ce,title:r.title},{default:e.withCtx(()=>[e.createVNode(Ue,{border:"",column:1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.data,(Fe,ft)=>(e.openBlock(),e.createBlock(f,{key:ft,label:String(Fe[0])},{default:e.withCtx(()=>{var Ke;return[e.createTextVNode(e.toDisplayString((Ke=Fe[1])!=null?Ke:""),1)]}),_:2},1032,["label"]))),128))]),_:2},1024)]),_:2},1032,["name","title"]))),128))]),_:1})])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",Mt,[e.createVNode(pt,{description:lt(et.value)},null,8,["description"]),e.createElementVNode("div",qt,"对象编号:"+e.toDisplayString((C=(a=p.value)==null?void 0:a.uid)!=null?C:"—"),1)]))])])):(e.openBlock(),e.createBlock(ee,{key:0,type:"warning","show-icon":"",closable:!1,title:"请先在右侧「数据」面板勾选「查看」,并在其下的详情页签中至少启用一项。"}))])),[[ue,Z.value]])]}),_:1},8,["modelValue"])]),e.renderSlot(l.$slots,"default",{},void 0,!0)],4)),[[ue,ie.value]])}}})),Qt=Me._export_sfc(Gt,[["__scopeId","data-v-3d45a74c"]]);exports.default=Qt;
@@ -1 +0,0 @@
1
- "use strict";var $=Object.defineProperty,W=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var V=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var B=(s,l,t)=>l in s?$(s,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[l]=t,L=(s,l)=>{for(var t in l||(l={}))J.call(l,t)&&B(s,t,l[t]);if(V)for(var t of V(l))Z.call(l,t)&&B(s,t,l[t]);return s},I=(s,l)=>W(s,H(l));var M=(s,l,t)=>new Promise((h,f)=>{var r=n=>{try{g(t.next(n))}catch(c){f(c)}},u=n=>{try{g(t.throw(n))}catch(c){f(c)}},g=n=>n.done?h(n.value):Promise.resolve(n.value).then(r,u);g((t=t.apply(s,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/button/style/css");const e=require("vue"),K=require("./vue-i18n-BvHMBi_b.cjs"),Q=require("./element-resize-detector-Bo5uDQAu.cjs"),E=require("./index-Mh5Dw2sd.cjs"),Y=require("./api-P_s372dW.cjs"),ee=require("./config-BLSroAzs.cjs"),_=require("element-plus"),w=require("./ele-bmp-icon-BBI0-SX7.cjs"),te={class:"mix-body"},oe={class:"upload-content"},ne={viewBox:"0 0 24 24",width:"48",height:"48",fill:"currentColor",style:{opacity:"0.5"}},le={class:"upload-text"},ie={key:0,class:"upload-actions"},ae={key:1,class:"upload-supported"},se={key:1,class:"viewer-container"},re={key:0,class:"file-info"},ce={class:"file-name"},pe=["title"],ue=["src","alt"],de={DEFAULT_ICON:w.DEFAULT_ICON,ACTIVE_ICON:w.ACTIVE_ICON,NAME_CN:"图片查看器",NAME_EN:"Photo Viewer",ORDER:2},me={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:"请上传素材"}},fe=[],ge=[],ve=[],he=null,ye={DEFAULT:de,OPTIONS:me,DATA:fe,PARAMS:ge,SOURCE:ve,COMMON:he},_e=e.defineComponent(I(L({},ye),{__name:"photo",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(s){const{t:l}=K.useI18n(),t=s;class h extends Q.BaseComponent{extractStyles(){return{imageDisplayMode:this.getOptionValue("imageDisplayMode","center"),radiusSize:this.getOptionValue("radiusSize",0)}}init(){this.Style.value=this.extractStyles(),this.applyTheme(),x()}}const f=new h(t,"photo");f.setupLifecycle();const r=f.getStyle(),u=e.ref(null),g=e.ref(null),n=e.ref(""),c=e.ref(""),N=e.ref(!1),R="image/gif,image/jpeg,image/bmp,image/png,image/svg+xml,image/x-icon,image/vnd.microsoft.icon",y="mixdesignd",b=o=>{if(!o)return"";if(o.startsWith("data:")||o.startsWith("http://")||o.startsWith("https://"))return o;const i=(ee.MATERIAL_FILE_BASE_URL||"").replace(/\/$/,""),a=String(o).replace(/^\/+/,""),p=a.startsWith(`${y}/`)?a.slice(y.length+1):a;return`${i}/${y}/${p}`},O=o=>b(o),x=()=>{var i,a,p;const{conf:o}=t;(a=(i=o==null?void 0:o.options)==null?void 0:i.fileUrl)!=null&&a.value&&(n.value=O(o.options.fileUrl.value),c.value=((p=o.options.fileName)==null?void 0:p.value)||"")},A=e.computed(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"})),D=e.computed(()=>{var i;const o=(i=r==null?void 0:r.value)==null?void 0:i.imageDisplayMode;return o==="tile"?{display:"none"}:o==="stretch"?{width:"100%",height:"100%",objectFit:"fill"}:{width:"100%",height:"100%",objectFit:"contain"}}),T=e.computed(()=>{var o;return((o=r==null?void 0:r.value)==null?void 0:o.imageDisplayMode)!=="tile"||!n.value?{}:{width:"100%",height:"100%",backgroundImage:`url(${n.value})`,backgroundRepeat:"repeat",backgroundPosition:"center center"}}),k=()=>{var o;(o=u.value)==null||o.click()},F=o=>M(null,null,function*(){var C,S;const i=o.target,a=(C=i==null?void 0:i.files)==null?void 0:C[0];if(!a)return;if(!["image/gif","image/jpeg","image/bmp","image/png","image/svg+xml","image/x-icon","image/vnd.microsoft.icon"].includes(a.type)){_.ElMessage.warning(l("component.photo.invalidType")||"请选择有效的图片文件 (GIF, JPG, BMP, PNG, SVG, ICO)");return}n.value&&n.value.startsWith("blob:")&&URL.revokeObjectURL(n.value);const v=URL.createObjectURL(a);n.value=v,c.value=a.name;try{N.value=!0;const d=yield E.fileToBase64(a),P=E.getFileExtension(a.name)||"png",m=yield Y.api.post("upload_material",{material_Data:d,material_type:P},!0);if(m.code===200&&((S=m.result)!=null&&S.material_path)){const U=String(m.result.material_path).trim(),G=b(U);URL.revokeObjectURL(v),n.value=G,t.conf&&t.conf.options&&(t.conf.options.fileUrl||(t.conf.options.fileUrl={value:"",type:"string",label:""}),t.conf.options.fileName||(t.conf.options.fileName={value:"",type:"string",label:""}),t.conf.options.imageUid||(t.conf.options.imageUid={value:"",type:"string",label:""}),t.conf.options.fileUrl.value=U,t.conf.options.fileName.value=m.result.file_name||a.name,t.conf.options.imageUid.value=m.result.image_uid||""),_.ElMessage.success("图片上传成功")}else throw new Error(m.msg||"上传失败")}catch(d){console.error("图片上传失败:",d),_.ElMessage.error("图片上传失败: "+((d==null?void 0:d.message)||"未知错误"))}finally{N.value=!1,u.value&&(u.value.value="")}}),j=()=>{n.value&&URL.revokeObjectURL(n.value),n.value="",c.value="",setTimeout(()=>{k()},100)},q=()=>{console.log("图片加载成功")},z=o=>{console.error("图片加载失败:",o),alert(l("component.photo.loadError")||"图片加载失败")};return e.onMounted(()=>{}),e.onBeforeUnmount(()=>{n.value&&n.value.startsWith("blob:")&&URL.revokeObjectURL(n.value)}),(o,i)=>{var p,v;const a=X.ElButton;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({borderRadius:`${e.unref(r).radiusSize}px`})},[e.createElementVNode("div",te,[n.value?(e.openBlock(),e.createElementBlock("div",se,[t.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("span",ce,e.toDisplayString(c.value),1),e.createElementVNode("button",{class:"change-file-btn",onClick:j,title:e.unref(l)("component.photo.changeFile")||"更换文件"},[...i[1]||(i[1]=[e.createElementVNode("svg",{viewBox:"0 0 24 24",width:"16",height:"16",fill:"currentColor"},[e.createElementVNode("path",{d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})],-1)])],8,pe)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"image-container",style:e.normalizeStyle(A.value)},[e.createElementVNode("img",{ref_key:"imageRef",ref:g,src:n.value,alt:c.value,style:e.normalizeStyle(D.value),onLoad:q,onError:z},null,44,ue),((v=(p=e.unref(r))==null?void 0:p.value)==null?void 0:v.imageDisplayMode)==="tile"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tiled-background",style:e.normalizeStyle(T.value)},null,4)):e.createCommentVNode("",!0)],4)])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["upload-area",{"preview-mode":t.mode==="preview"}])},[e.createElementVNode("input",{ref_key:"fileInputRef",ref:u,type:"file",accept:R,onChange:F,style:{display:"none"}},null,544),e.createElementVNode("div",oe,[(e.openBlock(),e.createElementBlock("svg",ne,[...i[0]||(i[0]=[e.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)])])),e.createElementVNode("p",le,e.toDisplayString(t.mode==="preview"?"未上传素材":e.unref(l)("component.photo.uploadText")||"点击上传图片"),1),t.mode!=="preview"?(e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(a,{type:"primary",size:"small",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("component.photo.uploadFile")||"上传文件"),1)]),_:1})])):e.createCommentVNode("",!0),t.mode!=="preview"?(e.openBlock(),e.createElementBlock("p",ae,e.toDisplayString(e.unref(l)("component.photo.supportedTypes")||"支持格式: GIF, JPG, BMP, PNG, SVG, ICO"),1)):e.createCommentVNode("",!0)])],2))]),e.renderSlot(o.$slots,"default",{},void 0,!0)],4)}}})),Ee=E._export_sfc(_e,[["__scopeId","data-v-a8da1c27"]]);exports.default=Ee;
@@ -1,256 +0,0 @@
1
- var K = Object.defineProperty, Q = Object.defineProperties;
2
- var Y = Object.getOwnPropertyDescriptors;
3
- var O = Object.getOwnPropertySymbols;
4
- var ee = Object.prototype.hasOwnProperty, te = Object.prototype.propertyIsEnumerable;
5
- var T = (a, i, e) => i in a ? K(a, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[i] = e, D = (a, i) => {
6
- for (var e in i || (i = {}))
7
- ee.call(i, e) && T(a, e, i[e]);
8
- if (O)
9
- for (var e of O(i))
10
- te.call(i, e) && T(a, e, i[e]);
11
- return a;
12
- }, F = (a, i) => Q(a, Y(i));
13
- var V = (a, i, e) => new Promise((w, h) => {
14
- var r = (o) => {
15
- try {
16
- y(e.next(o));
17
- } catch (c) {
18
- h(c);
19
- }
20
- }, m = (o) => {
21
- try {
22
- y(e.throw(o));
23
- } catch (c) {
24
- h(c);
25
- }
26
- }, y = (o) => o.done ? w(o.value) : Promise.resolve(o.value).then(r, m);
27
- y((e = e.apply(a, i)).next());
28
- });
29
- import { ElButton as oe } from "element-plus/es";
30
- import "element-plus/es/components/base/style/css";
31
- import "element-plus/es/components/button/style/css";
32
- import { defineComponent as ie, ref as b, computed as S, onMounted as le, onBeforeUnmount as ne, openBlock as u, createElementBlock as d, normalizeStyle as U, unref as v, createElementVNode as s, normalizeClass as ae, toDisplayString as C, createVNode as se, withCtx as re, createTextVNode as ce, createCommentVNode as L, renderSlot as pe } from "vue";
33
- import { u as ue } from "./vue-i18n-5Nahpzrm.js";
34
- import { B as de } from "./element-resize-detector-DJcsrJ8s.js";
35
- import { c as me, g as fe, _ as ge } from "./index-kShjySl9.js";
36
- import { a as ve } from "./api-C0GhBpqd.js";
37
- import { a as he } from "./config-Cc2W4vke.js";
38
- import { ElMessage as R } from "element-plus";
39
- import { A as ye, D as _e } from "./ele-bmp-icon-Pdolk1J5.js";
40
- const be = { class: "mix-body" }, Ue = { class: "upload-content" }, Ce = {
41
- viewBox: "0 0 24 24",
42
- width: "48",
43
- height: "48",
44
- fill: "currentColor",
45
- style: { opacity: "0.5" }
46
- }, Le = { class: "upload-text" }, we = {
47
- key: 0,
48
- class: "upload-actions"
49
- }, Me = {
50
- key: 1,
51
- class: "upload-supported"
52
- }, Se = {
53
- key: 1,
54
- class: "viewer-container"
55
- }, Re = {
56
- key: 0,
57
- class: "file-info"
58
- }, ke = { class: "file-name" }, Ie = ["title"], Ne = ["src", "alt"], xe = {
59
- DEFAULT_ICON: _e,
60
- ACTIVE_ICON: ye,
61
- NAME_CN: "图片查看器",
62
- NAME_EN: "Photo Viewer",
63
- ORDER: 2
64
- }, Ee = {
65
- imageDisplayMode: {
66
- value: "center",
67
- type: "select",
68
- options: [
69
- { label: "component.photo.center", value: "center" },
70
- { label: "component.photo.tile", value: "tile" },
71
- { label: "component.photo.stretch", value: "stretch" }
72
- ],
73
- label: "component.options.imageDisplayMode"
74
- },
75
- fileUrl: { value: "", type: "string", label: "component.options.fileUrl", placeholder: "请上传素材" },
76
- fileName: { value: "", type: "string", label: "component.options.fileName", placeholder: "请上传素材" }
77
- }, Ae = [], Oe = [], Te = [], De = null, Fe = { DEFAULT: xe, OPTIONS: Ee, DATA: Ae, PARAMS: Oe, SOURCE: Te, COMMON: De }, Ve = /* @__PURE__ */ ie(F(D({}, Fe), {
78
- __name: "photo",
79
- props: {
80
- conf: { type: Object, default: () => ({}) },
81
- uid: { type: String, default: "" },
82
- mode: { type: String, default: "edit" },
83
- theme: { type: String, default: "light" }
84
- },
85
- setup(a) {
86
- const { t: i } = ue(), e = a;
87
- class w extends de {
88
- extractStyles() {
89
- return {
90
- imageDisplayMode: this.getOptionValue("imageDisplayMode", "center"),
91
- radiusSize: this.getOptionValue("radiusSize", 0)
92
- };
93
- }
94
- init() {
95
- this.Style.value = this.extractStyles(), this.applyTheme(), G();
96
- }
97
- }
98
- const h = new w(e, "photo");
99
- h.setupLifecycle();
100
- const r = h.getStyle(), m = b(null), y = b(null), o = b(""), c = b(""), k = b(!1), B = "image/gif,image/jpeg,image/bmp,image/png,image/svg+xml,image/x-icon,image/vnd.microsoft.icon", M = "mixdesignd", I = (t) => {
101
- if (!t) return "";
102
- if (t.startsWith("data:") || t.startsWith("http://") || t.startsWith("https://")) return t;
103
- const l = (he || "").replace(/\/$/, ""), n = String(t).replace(/^\/+/, ""), p = n.startsWith(`${M}/`) ? n.slice(M.length + 1) : n;
104
- return `${l}/${M}/${p}`;
105
- }, j = (t) => I(t), G = () => {
106
- var l, n, p;
107
- const { conf: t } = e;
108
- (n = (l = t == null ? void 0 : t.options) == null ? void 0 : l.fileUrl) != null && n.value && (o.value = j(t.options.fileUrl.value), c.value = ((p = t.options.fileName) == null ? void 0 : p.value) || "");
109
- }, $ = S(() => ({
110
- width: "100%",
111
- height: "100%",
112
- display: "flex",
113
- alignItems: "center",
114
- justifyContent: "center",
115
- overflow: "hidden"
116
- })), P = S(() => {
117
- var l;
118
- const t = (l = r == null ? void 0 : r.value) == null ? void 0 : l.imageDisplayMode;
119
- return t === "tile" ? { display: "none" } : t === "stretch" ? { width: "100%", height: "100%", objectFit: "fill" } : { width: "100%", height: "100%", objectFit: "contain" };
120
- }), z = S(() => {
121
- var t;
122
- return ((t = r == null ? void 0 : r.value) == null ? void 0 : t.imageDisplayMode) !== "tile" || !o.value ? {} : {
123
- width: "100%",
124
- height: "100%",
125
- backgroundImage: `url(${o.value})`,
126
- backgroundRepeat: "repeat",
127
- backgroundPosition: "center center"
128
- };
129
- }), N = () => {
130
- var t;
131
- (t = m.value) == null || t.click();
132
- }, W = (t) => V(null, null, function* () {
133
- var x, E;
134
- const l = t.target, n = (x = l == null ? void 0 : l.files) == null ? void 0 : x[0];
135
- if (!n) return;
136
- if (!["image/gif", "image/jpeg", "image/bmp", "image/png", "image/svg+xml", "image/x-icon", "image/vnd.microsoft.icon"].includes(n.type)) {
137
- R.warning(i("component.photo.invalidType") || "请选择有效的图片文件 (GIF, JPG, BMP, PNG, SVG, ICO)");
138
- return;
139
- }
140
- o.value && o.value.startsWith("blob:") && URL.revokeObjectURL(o.value);
141
- const _ = URL.createObjectURL(n);
142
- o.value = _, c.value = n.name;
143
- try {
144
- k.value = !0;
145
- const f = yield me(n), X = fe(n.name) || "png", g = yield ve.post("upload_material", {
146
- material_Data: f,
147
- material_type: X
148
- }, !0);
149
- if (g.code === 200 && ((E = g.result) != null && E.material_path)) {
150
- const A = String(g.result.material_path).trim(), q = I(A);
151
- URL.revokeObjectURL(_), o.value = q, e.conf && e.conf.options && (e.conf.options.fileUrl || (e.conf.options.fileUrl = { value: "", type: "string", label: "" }), e.conf.options.fileName || (e.conf.options.fileName = { value: "", type: "string", label: "" }), e.conf.options.imageUid || (e.conf.options.imageUid = { value: "", type: "string", label: "" }), e.conf.options.fileUrl.value = A, e.conf.options.fileName.value = g.result.file_name || n.name, e.conf.options.imageUid.value = g.result.image_uid || ""), R.success("图片上传成功");
152
- } else
153
- throw new Error(g.msg || "上传失败");
154
- } catch (f) {
155
- console.error("图片上传失败:", f), R.error("图片上传失败: " + ((f == null ? void 0 : f.message) || "未知错误"));
156
- } finally {
157
- k.value = !1, m.value && (m.value.value = "");
158
- }
159
- }), H = () => {
160
- o.value && URL.revokeObjectURL(o.value), o.value = "", c.value = "", setTimeout(() => {
161
- N();
162
- }, 100);
163
- }, J = () => {
164
- console.log("图片加载成功");
165
- }, Z = (t) => {
166
- console.error("图片加载失败:", t), alert(i("component.photo.loadError") || "图片加载失败");
167
- };
168
- return le(() => {
169
- }), ne(() => {
170
- o.value && o.value.startsWith("blob:") && URL.revokeObjectURL(o.value);
171
- }), (t, l) => {
172
- var p, _;
173
- const n = oe;
174
- return u(), d("div", {
175
- class: "mix-component",
176
- style: U({ borderRadius: `${v(r).radiusSize}px` })
177
- }, [
178
- s("div", be, [
179
- o.value ? (u(), d("div", Se, [
180
- e.mode !== "preview" ? (u(), d("div", Re, [
181
- s("span", ke, C(c.value), 1),
182
- s("button", {
183
- class: "change-file-btn",
184
- onClick: H,
185
- title: v(i)("component.photo.changeFile") || "更换文件"
186
- }, [...l[1] || (l[1] = [
187
- s("svg", {
188
- viewBox: "0 0 24 24",
189
- width: "16",
190
- height: "16",
191
- fill: "currentColor"
192
- }, [
193
- s("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" })
194
- ], -1)
195
- ])], 8, Ie)
196
- ])) : L("", !0),
197
- s("div", {
198
- class: "image-container",
199
- style: U($.value)
200
- }, [
201
- s("img", {
202
- ref_key: "imageRef",
203
- ref: y,
204
- src: o.value,
205
- alt: c.value,
206
- style: U(P.value),
207
- onLoad: J,
208
- onError: Z
209
- }, null, 44, Ne),
210
- ((_ = (p = v(r)) == null ? void 0 : p.value) == null ? void 0 : _.imageDisplayMode) === "tile" ? (u(), d("div", {
211
- key: 0,
212
- class: "tiled-background",
213
- style: U(z.value)
214
- }, null, 4)) : L("", !0)
215
- ], 4)
216
- ])) : (u(), d("div", {
217
- key: 0,
218
- class: ae(["upload-area", { "preview-mode": e.mode === "preview" }])
219
- }, [
220
- s("input", {
221
- ref_key: "fileInputRef",
222
- ref: m,
223
- type: "file",
224
- accept: B,
225
- onChange: W,
226
- style: { display: "none" }
227
- }, null, 544),
228
- s("div", Ue, [
229
- (u(), d("svg", Ce, [...l[0] || (l[0] = [
230
- s("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)
231
- ])])),
232
- s("p", Le, C(e.mode === "preview" ? "未上传素材" : v(i)("component.photo.uploadText") || "点击上传图片"), 1),
233
- e.mode !== "preview" ? (u(), d("div", we, [
234
- se(n, {
235
- type: "primary",
236
- size: "small",
237
- onClick: N
238
- }, {
239
- default: re(() => [
240
- ce(C(v(i)("component.photo.uploadFile") || "上传文件"), 1)
241
- ]),
242
- _: 1
243
- })
244
- ])) : L("", !0),
245
- e.mode !== "preview" ? (u(), d("p", Me, C(v(i)("component.photo.supportedTypes") || "支持格式: GIF, JPG, BMP, PNG, SVG, ICO"), 1)) : L("", !0)
246
- ])
247
- ], 2))
248
- ]),
249
- pe(t.$slots, "default", {}, void 0, !0)
250
- ], 4);
251
- };
252
- }
253
- })), Ke = /* @__PURE__ */ ge(Ve, [["__scopeId", "data-v-a8da1c27"]]);
254
- export {
255
- Ke as default
256
- };
@@ -1 +0,0 @@
1
- "use strict";var K=Object.defineProperty,$=Object.defineProperties;var X=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var F=(o,d,s)=>d in o?K(o,d,{enumerable:!0,configurable:!0,writable:!0,value:s}):o[d]=s,x=(o,d)=>{for(var s in d||(d={}))Z.call(d,s)&&F(o,s,d[s]);if(q)for(var s of q(d))J.call(d,s)&&F(o,s,d[s]);return o},k=(o,d)=>$(o,X(d));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("vue"),j=require("./element-resize-detector-Bo5uDQAu.cjs"),ee=require("./index-Mh5Dw2sd.cjs"),te=require("./titleStyle-NSnz6cUg.cjs");var b=function(){return b=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},b.apply(this,arguments)};var O;(function(o){var d=(function(){function a(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=e*4+17;for(var i=[],l=0;l<this.size;l++)i.push(!1);for(var l=0;l<this.size;l++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();var v=this.addEccAndInterleave(r);if(this.drawCodewords(v),n==-1)for(var g=1e9,l=0;l<8;l++){this.applyMask(l),this.drawFormatBits(l);var p=this.getPenaltyScore();p<g&&(n=l,g=p),this.applyMask(l)}c(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}return a.encodeText=function(e,t){var r=o.QrSegment.makeSegments(e);return a.encodeSegments(r,t)},a.encodeBinary=function(e,t){var r=o.QrSegment.makeBytes(e);return a.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,i,l){if(r===void 0&&(r=1),n===void 0&&(n=40),i===void 0&&(i=-1),l===void 0&&(l=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||i<-1||i>7)throw new RangeError("Invalid value");var v,g;for(v=r;;v++){var p=a.getNumDataCodewords(v,t)*8,E=h.getTotalBits(e,v);if(E<=p){g=E;break}if(v>=n)throw new RangeError("Data too long")}for(var C=0,S=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<S.length;C++){var y=S[C];l&&g<=a.getNumDataCodewords(v,y)*8&&(t=y)}for(var w=[],M=0,m=e;M<m.length;M++){var R=m[M];s(R.mode.modeBits,4,w),s(R.numChars,R.mode.numCharCountBits(v),w);for(var P=0,N=R.getData();P<N.length;P++){var I=N[P];w.push(I)}}c(w.length==g);var z=a.getNumDataCodewords(v,t)*8;c(w.length<=z),s(0,Math.min(4,z-w.length),w),s(0,(8-w.length%8)%8,w),c(w.length%8==0);for(var A=236;w.length<z;A^=253)s(A,8,w);for(var _=[];_.length*8<w.length;)_.push(0);return w.forEach(function(L,T){return _[T>>>3]|=L<<7-(T&7)}),new a(v,t,_,i)},a.prototype.getModule=function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){return this.modules},a.prototype.drawFunctionPatterns=function(){for(var e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var t=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(var n=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;var i=(t<<10|r)^21522;c(i>>>15==0);for(var n=0;n<=5;n++)this.setFunctionModule(8,n,u(i,n));this.setFunctionModule(8,7,u(i,6)),this.setFunctionModule(8,8,u(i,7)),this.setFunctionModule(7,8,u(i,8));for(var n=9;n<15;n++)this.setFunctionModule(14-n,8,u(i,n));for(var n=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(i,n));for(var n=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(i,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;var r=this.version<<12|e;c(r>>>18==0);for(var t=0;t<18;t++){var n=u(r,t),i=this.size-11+t%3,l=Math.floor(t/3);this.setFunctionModule(i,l,n),this.setFunctionModule(l,i,n)}}},a.prototype.drawFinderPattern=function(e,t){for(var r=-4;r<=4;r++)for(var n=-4;n<=4;n++){var i=Math.max(Math.abs(n),Math.abs(r)),l=e+n,v=t+r;0<=l&&l<this.size&&0<=v&&v<this.size&&this.setFunctionModule(l,v,i!=2&&i!=4)}},a.prototype.drawAlignmentPattern=function(e,t){for(var r=-2;r<=2;r++)for(var n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,Math.max(Math.abs(n),Math.abs(r))!=1)},a.prototype.setFunctionModule=function(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0},a.prototype.addEccAndInterleave=function(e){var t=this.version,r=this.errorCorrectionLevel;if(e.length!=a.getNumDataCodewords(t,r))throw new RangeError("Invalid argument");for(var n=a.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][t],i=a.ECC_CODEWORDS_PER_BLOCK[r.ordinal][t],l=Math.floor(a.getNumRawDataModules(t)/8),v=n-l%n,g=Math.floor(l/n),p=[],E=a.reedSolomonComputeDivisor(i),C=0,S=0;C<n;C++){var y=e.slice(S,S+g-i+(C<v?0:1));S+=y.length;var w=a.reedSolomonComputeRemainder(y,E);C<v&&y.push(0),p.push(y.concat(w))}for(var M=[],m=function(R){p.forEach(function(P,N){(R!=g-i||N>=v)&&M.push(P[R])})},C=0;C<p[0].length;C++)m(C);return c(M.length==l),M},a.prototype.drawCodewords=function(e){if(e.length!=Math.floor(a.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var t=0,r=this.size-1;r>=1;r-=2){r==6&&(r=5);for(var n=0;n<this.size;n++)for(var i=0;i<2;i++){var l=r-i,v=(r+1&2)==0,g=v?this.size-1-n:n;!this.isFunction[g][l]&&t<e.length*8&&(this.modules[g][l]=u(e[t>>>3],7-(t&7)),t++)}}c(t==e.length*8)},a.prototype.applyMask=function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var r=0;r<this.size;r++){var n=void 0;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}},a.prototype.getPenaltyScore=function(){for(var e=0,t=0;t<this.size;t++){for(var r=!1,n=0,i=[0,0,0,0,0,0,0],l=0;l<this.size;l++)this.modules[t][l]==r?(n++,n==5?e+=a.PENALTY_N1:n>5&&e++):(this.finderPenaltyAddHistory(n,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],n=1);e+=this.finderPenaltyTerminateAndCount(r,n,i)*a.PENALTY_N3}for(var l=0;l<this.size;l++){for(var r=!1,v=0,i=[0,0,0,0,0,0,0],t=0;t<this.size;t++)this.modules[t][l]==r?(v++,v==5?e+=a.PENALTY_N1:v>5&&e++):(this.finderPenaltyAddHistory(v,i),r||(e+=this.finderPenaltyCountPatterns(i)*a.PENALTY_N3),r=this.modules[t][l],v=1);e+=this.finderPenaltyTerminateAndCount(r,v,i)*a.PENALTY_N3}for(var t=0;t<this.size-1;t++)for(var l=0;l<this.size-1;l++){var g=this.modules[t][l];g==this.modules[t][l+1]&&g==this.modules[t+1][l]&&g==this.modules[t+1][l+1]&&(e+=a.PENALTY_N2)}for(var p=0,E=0,C=this.modules;E<C.length;E++){var S=C[E];p=S.reduce(function(M,m){return M+(m?1:0)},p)}var y=this.size*this.size,w=Math.ceil(Math.abs(p*20-y*10)/y)-1;return c(0<=w&&w<=9),e+=w*a.PENALTY_N4,c(0<=e&&e<=2568888),e},a.prototype.getAlignmentPatternPositions=function(){if(this.version==1)return[];for(var e=Math.floor(this.version/7)+2,t=Math.floor((this.version*8+e*3+5)/(e*4-4))*2,r=[6],n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r},a.getNumRawDataModules=function(e){if(e<a.MIN_VERSION||e>a.MAX_VERSION)throw new RangeError("Version number out of range");var t=(16*e+128)*e+64;if(e>=2){var r=Math.floor(e/7)+2;t-=(25*r-10)*r-55,e>=7&&(t-=36)}return c(208<=t&&t<=29648),t},a.getNumDataCodewords=function(e,t){return Math.floor(a.getNumRawDataModules(e)/8)-a.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*a.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]},a.reedSolomonComputeDivisor=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");for(var t=[],r=0;r<e-1;r++)t.push(0);t.push(1);for(var n=1,r=0;r<e;r++){for(var i=0;i<t.length;i++)t[i]=a.reedSolomonMultiply(t[i],n),i+1<t.length&&(t[i]^=t[i+1]);n=a.reedSolomonMultiply(n,2)}return t},a.reedSolomonComputeRemainder=function(e,t){for(var r=t.map(function(g){return 0}),n=function(g){var p=g^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 v=l[i];n(v)}return r},a.reedSolomonMultiply=function(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");for(var r=0,n=7;n>=0;n--)r=r<<1^(r>>>7)*285,r^=(t>>>n&1)*e;return c(r>>>8==0),r},a.prototype.finderPenaltyCountPatterns=function(e){var t=e[1];c(t<=this.size*3);var r=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(r&&e[0]>=t*4&&e[6]>=t?1:0)+(r&&e[6]>=t*4&&e[0]>=t?1:0)},a.prototype.finderPenaltyTerminateAndCount=function(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)},a.prototype.finderPenaltyAddHistory=function(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)},a.MIN_VERSION=1,a.MAX_VERSION=40,a.PENALTY_N1=3,a.PENALTY_N2=3,a.PENALTY_N3=40,a.PENALTY_N4=10,a.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],a.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a})();o.QrCode=d;function s(a,e,t){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)t.push(a>>>r&1)}function u(a,e){return(a>>>e&1)!=0}function c(a){if(!a)throw new Error("Assertion error")}var h=(function(){function a(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return a.makeBytes=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];s(i,8,t)}return new a(a.Mode.BYTE,e.length,t)},a.makeNumeric=function(e){if(!a.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,3);s(parseInt(e.substring(r,r+n),10),n*3+1,t),r+=n}return new a(a.Mode.NUMERIC,e.length,t)},a.makeAlphanumeric=function(e){if(!a.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");var t=[],r;for(r=0;r+2<=e.length;r+=2){var n=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r))*45;n+=a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r+1)),s(n,11,t)}return r<e.length&&s(a.ALPHANUMERIC_CHARSET.indexOf(e.charAt(r)),6,t),new a(a.Mode.ALPHANUMERIC,e.length,t)},a.makeSegments=function(e){return e==""?[]:a.isNumeric(e)?[a.makeNumeric(e)]:a.isAlphanumeric(e)?[a.makeAlphanumeric(e)]:[a.makeBytes(a.toUtf8ByteArray(e))]},a.makeEci=function(e){var t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)s(e,8,t);else if(e<16384)s(2,2,t),s(e,14,t);else if(e<1e6)s(6,3,t),s(e,21,t);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,t)},a.isNumeric=function(e){return a.NUMERIC_REGEX.test(e)},a.isAlphanumeric=function(e){return a.ALPHANUMERIC_REGEX.test(e)},a.prototype.getData=function(){return this.bitData.slice()},a.getTotalBits=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var l=i[n],v=l.mode.numCharCountBits(t);if(l.numChars>=1<<v)return 1/0;r+=4+v+l.bitData.length}return r},a.toUtf8ByteArray=function(e){e=encodeURI(e);for(var t=[],r=0;r<e.length;r++)e.charAt(r)!="%"?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t},a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",a})();o.QrSegment=h})(O||(O={}));(function(o){(function(d){var s=(function(){function u(c,h){this.ordinal=c,this.formatBits=h}return u.LOW=new u(0,1),u.MEDIUM=new u(1,0),u.QUARTILE=new u(2,3),u.HIGH=new u(3,2),u})();d.Ecc=s})(o.QrCode||(o.QrCode={}))})(O||(O={}));(function(o){(function(d){var s=(function(){function u(c,h){this.modeBits=c,this.numBitsCharCount=h}return u.prototype.numCharCountBits=function(c){return this.numBitsCharCount[Math.floor((c+7)/17)]},u.NUMERIC=new u(1,[10,12,14]),u.ALPHANUMERIC=new u(2,[9,11,13]),u.BYTE=new u(4,[8,16,16]),u.KANJI=new u(8,[8,10,12]),u.ECI=new u(7,[0,0,0]),u})();d.Mode=s})(o.QrSegment||(o.QrSegment={}))})(O||(O={}));var B=O,re=0,Q="L",ae=100,U=0,ne=.1,oe=2,H={L:B.QrCode.Ecc.LOW,M:B.QrCode.Ecc.MEDIUM,Q:B.QrCode.Ecc.QUARTILE,H:B.QrCode.Ecc.HIGH},ie=(function(){try{new Path2D().addPath(new Path2D)}catch(o){return!1}return!0})();function V(o){return o in H}function le(o,d){d===void 0&&(d=0);for(var s=[],u=0;u<o.length;u++)for(var c=o[u],h=null,a=0;a<c.length;a++){var e=c[a];if(!e&&h!==null){s.push("M".concat(h+d," ").concat(u+d,"h").concat(a-h,"v1H").concat(h+d,"z")),h=null;continue}if(a===c.length-1){if(!e)continue;h===null?s.push("M".concat(a+d,",").concat(u+d," h1v1H").concat(a+d,"z")):s.push("M".concat(h+d,",").concat(u+d," h").concat(a+1-h,"v1H").concat(h+d,"z"));continue}e&&h===null&&(h=a)}return s.join("")}function ue(o,d,s,u){var c=u.width,h=u.height,a=u.x,e=u.y,t=o.length+s*2,r=Math.floor(d*ne),n=t/d,i=(c||r)*n,l=(h||r)*n,v=a==null?o.length/2-i/2:a*n,g=e==null?o.length/2-l/2:e*n,p=(u.borderRadius||0)*n,E=null;if(u.excavate){var C=Math.floor(v),S=Math.floor(g),y=Math.ceil(i+v-C),w=Math.ceil(l+g-S);E={x:C,y:S,w:y,h:w}}return{x:v,y:g,h:l,w:i,borderRadius:p,excavation:E}}function G(o){var d=f.computed(function(){var e;return((e=o.margin)!==null&&e!==void 0?e:U)>>>0}),s=f.computed(function(){var e=V(o.level)?o.level:Q;return B.QrCode.encodeText(o.value,H[e]).getModules()}),u=f.computed(function(){return s.value.length+d.value*2}),c=f.computed(function(){return le(s.value,d.value)}),h=f.computed(function(){if(!o.imageSettings.src)return{x:0,y:0,width:0,height:0,borderRadius:0};var e=ue(s.value,o.size,d.value,o.imageSettings);return{x:e.x+d.value,y:e.y+d.value,width:e.w,height:e.h,borderRadius:e.borderRadius}}),a=f.computed(function(){if(!o.imageSettings.excavate||!o.imageSettings.src)return null;var e=oe/(o.size/u.value);return{x:h.value.x-e,y:h.value.y-e,width:h.value.width+e*2,height:h.value.height+e*2,borderRadius:h.value.borderRadius}});return{margin:d,numCells:u,cells:s,fgPath:c,imageProps:h,imageBorderProps:a}}var D={value:{type:String,required:!0,default:""},size:{type:Number,default:ae},level:{type:String,default:Q,validator:function(o){return V(o)}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},margin:{type:Number,required:!1,default:U},imageSettings:{type:Object,required:!1,default:function(){return{}}},gradient:{type:Boolean,required:!1,default:!1},gradientType:{type:String,required:!1,default:"linear",validator:function(o){return["linear","radial"].indexOf(o)>-1}},gradientStartColor:{type:String,required:!1,default:"#000"},gradientEndColor:{type:String,required:!1,default:"#fff"}},se=b(b({},D),{renderAs:{type:String,required:!1,default:"canvas",validator:function(o){return["canvas","svg"].indexOf(o)>-1}}}),de=f.defineComponent({name:"QRCodeSvg",props:D,setup:function(o){var d=G(o),s=d.numCells,u=d.fgPath,c=d.imageProps,h=d.imageBorderProps,a=re++,e="qrcode.vue-gradient-".concat(a),t="qrcode.vue-logo-clip-path-".concat(a),r=function(){if(!o.gradient)return null;var i=o.gradientType==="linear"?{x1:"0%",y1:"0%",x2:"100%",y2:"100%"}:{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"};return f.h(o.gradientType==="linear"?"linearGradient":"radialGradient",b({id:e},i),[f.h("stop",{offset:"0%",style:{stopColor:o.gradientStartColor}}),f.h("stop",{offset:"100%",style:{stopColor:o.gradientEndColor}})])},n=function(){var i=c.value.borderRadius;return!o.imageSettings.src||i<=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:i,ry:i})])};return function(){return f.h("svg",{width:o.size,height:o.size,"shape-rendering":"crispEdges",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(s.value," ").concat(s.value),role:"img","aria-label":o.value},[f.h("defs",{},[r(),n()]),f.h("rect",{width:"100%",height:"100%",fill:o.background}),f.h("path",{fill:o.gradient?"url(#".concat(e,")"):o.foreground,d:u.value}),h.value&&f.h("rect",{x:h.value.x,y:h.value.y,width:h.value.width,height:h.value.height,fill:o.background,rx:h.value.borderRadius,ry:h.value.borderRadius}),o.imageSettings.src&&f.h("image",b(b({href:o.imageSettings.src},c.value),c.value.borderRadius>0?{"clip-path":"url(#".concat(t,")")}:{}))])}}}),he=f.defineComponent({name:"QRCodeCanvas",props:D,setup:function(o,d){var s=G(o),u=s.margin,c=s.cells,h=s.numCells,a=s.fgPath,e=s.imageProps,t=s.imageBorderProps,r=f.ref(null),n=f.ref(null),i=function(g,p,E,C,S,y){g.beginPath(),g.roundRect?g.roundRect(p,E,C,S,y):g.rect(p,E,C,S)},l=function(){var g=o.size,p=o.background,E=o.foreground,C=o.gradient,S=o.gradientType,y=o.gradientStartColor,w=o.gradientEndColor,M=r.value;if(M){var m=M.getContext("2d");if(m){var R=n.value,P=typeof window!="undefined"&&window.devicePixelRatio||1,N=g/h.value*P;if(M.height=M.width=g*P,m.scale(N,N),m.fillStyle=p,m.fillRect(0,0,h.value,h.value),C){var I=void 0;S==="linear"?I=m.createLinearGradient(0,0,h.value,h.value):I=m.createRadialGradient(h.value/2,h.value/2,0,h.value/2,h.value/2,h.value/2),I.addColorStop(0,y),I.addColorStop(1,w),m.fillStyle=I}else m.fillStyle=E;ie?m.fill(new Path2D(a.value)):c.value.forEach(function(L,T){L.forEach(function(W,Y){W&&m.fillRect(Y+u.value,T+u.value,1,1)})});var z=o.imageSettings.src&&R&&R.naturalWidth!==0&&R.naturalHeight!==0;if(z){if(t.value){var A=t.value;m.fillStyle=o.background,i(m,A.x,A.y,A.width,A.height,A.borderRadius),m.fill()}var _=e.value.borderRadius;_>0?(m.save(),i(m,e.value.x,e.value.y,e.value.width,e.value.height,_),m.clip(),m.drawImage(R,e.value.x,e.value.y,e.value.width,e.value.height),m.restore()):m.drawImage(R,e.value.x,e.value.y,e.value.width,e.value.height)}}}};f.onMounted(l),f.watchEffect(l);var v=d.attrs.style;return function(){return f.h(f.Fragment,[f.h("canvas",b(b({},d.attrs),{ref:r,role:"img","aria-label":o.value,style:b(b({},v),{width:"".concat(o.size,"px"),height:"".concat(o.size,"px")})})),o.imageSettings.src&&f.h("img",{ref:n,src:o.imageSettings.src,style:{display:"none"},onLoad:l})])}}}),ce=f.defineComponent({name:"Qrcode",props:se,setup:function(o){return function(){return f.h(o.renderAs==="svg"?de:he,{value:o.value,size:o.size,margin:o.margin,level:o.level,background:o.background,foreground:o.foreground,imageSettings:o.imageSettings,gradient:o.gradient,gradientType:o.gradientType,gradientStartColor:o.gradientStartColor,gradientEndColor:o.gradientEndColor})}}});const fe="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",ve="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",ge={class:"mix-body"},me={DEFAULT_ICON:fe,ACTIVE_ICON:ve,NAME_CN:"二维码",NAME_EN:"QR Code",ORDER:10},Ce={titleColor:"#111",bgColor:"#fff",radiusSize:8,isHideTitle:!1,qrColor:{value:"#000000",type:"color",label:"component.qrcode.qrColor"},qrBgColor:{value:"#ffffff",type:"color",label:"component.qrcode.qrBgColor"},showBorder:{value:!0,type:"checkbox",label:"component.qrcode.showBorder"},borderColor:{value:"#e5e7eb",type:"color",label:"setting.borderColor",dependent:"showBorder"},borderWidth:{value:1,type:"number",label:"component.qrcode.borderWidth",min:1,max:10,dependent:"showBorder"},qrSize:{value:200,type:"number",label:"component.qrcode.qrSize",min:50,max:500},defaultContent:{value:"http://www.mixlinker.com",type:"textarea",label:"component.qrcode.defaultContent"},errorLevel:{value:"M",type:"select",label:"component.qrcode.errorLevel",options:[{label:"低 (L)",value:"L"},{label:"中 (M)",value:"M"},{label:"较高 (Q)",value:"Q"},{label:"高 (H)",value:"H"}]}},we=[],pe=[],Ee=[],Se={},ye={DEFAULT:me,OPTIONS:Ce,DATA:we,PARAMS:pe,SOURCE:Ee,COMMON:Se},Me=f.defineComponent(k(x({},ye),{__name:"qrcode",props:{conf:{type:Object,default:()=>({})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(o){const d=o;class s extends j.BaseComponent{extractStyles(){return k(x({},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(()=>te.generateTitleStyle(d.conf.options)),e=f.computed(()=>c.value.defaultContent||"http://www.mixlinker.com"),t=f.computed(()=>Math.min(c.value.qrSize,300)),r=f.computed(()=>({border:c.value.showBorder?`${c.value.borderWidth}px solid ${c.value.borderColor}`:"none",padding:c.value.showBorder?"8px":"0",background:c.value.qrBgColor,borderRadius:"4px"}));return(n,i)=>(f.openBlock(),f.createElementBlock("div",{class:"mix-component",style:f.normalizeStyle({background:f.unref(c).bgColor,borderRadius:`${f.unref(c).radiusSize}px`})},[f.createElementVNode("div",{class:"mix-title",style:f.normalizeStyle(a.value)},f.toDisplayString(f.unref(h).caption||f.unref(h).name),5),f.createElementVNode("div",ge,[f.createElementVNode("div",{class:"qrcode-wrapper",style:f.normalizeStyle(r.value)},[f.createVNode(ce,{value:e.value,size:t.value,level:f.unref(c).errorLevel,"render-as":"svg",foreground:f.unref(c).qrColor,background:f.unref(c).qrBgColor},null,8,["value","size","level","foreground","background"])],4)]),f.renderSlot(n.$slots,"default",{},void 0,!0)],4))}})),Re=ee._export_sfc(Me,[["__scopeId","data-v-8d1e58f4"]]);exports.default=Re;