@yimou6/common-ui 1.13.19 → 1.13.22

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 (125) hide show
  1. package/cdn/index.cdn.js +25 -22
  2. package/cdn/index.cdn.js.map +1 -1
  3. package/cdn/index.cdn.mjs +18 -15
  4. package/cdn/index.cdn.mjs.map +1 -1
  5. package/cdn/index.css +1 -1
  6. package/es/components/geoMark/index.d.ts +733 -0
  7. package/es/components/geoMark/index.mjs +9 -0
  8. package/es/components/geoMark/index.mjs.map +1 -0
  9. package/es/components/geoMark/src/DragIcon.vue.d.ts +77 -0
  10. package/es/components/geoMark/src/DragIcon.vue.mjs +6 -0
  11. package/es/components/geoMark/src/DragIcon.vue.mjs.map +1 -0
  12. package/es/components/geoMark/src/DragIcon.vue2.mjs +67 -0
  13. package/es/components/geoMark/src/DragIcon.vue2.mjs.map +1 -0
  14. package/es/components/geoMark/src/assets//344/277/235/345/255/230.png.mjs +4 -0
  15. package/es/components/geoMark/src/assets//344/277/235/345/255/230.png.mjs.map +1 -0
  16. package/es/components/geoMark/src/assets//345/210/240/351/231/244.png.mjs +4 -0
  17. package/es/components/geoMark/src/assets//345/210/240/351/231/244.png.mjs.map +1 -0
  18. package/es/components/geoMark/src/assets//347/274/226/350/276/221.png.mjs +4 -0
  19. package/es/components/geoMark/src/assets//347/274/226/350/276/221.png.mjs.map +1 -0
  20. package/es/components/geoMark/src/assets//351/242/234/350/211/262.png.mjs +4 -0
  21. package/es/components/geoMark/src/assets//351/242/234/350/211/262.png.mjs.map +1 -0
  22. package/es/components/geoMark/src/default.png.mjs +4 -0
  23. package/es/components/geoMark/src/default.png.mjs.map +1 -0
  24. package/es/components/geoMark/src/floorRight/floor.vue.d.ts +15 -0
  25. package/es/components/geoMark/src/floorRight/floor.vue.mjs +6 -0
  26. package/es/components/geoMark/src/floorRight/floor.vue.mjs.map +1 -0
  27. package/es/components/geoMark/src/floorRight/floor.vue2.mjs +119 -0
  28. package/es/components/geoMark/src/floorRight/floor.vue2.mjs.map +1 -0
  29. package/es/components/geoMark/src/geoMark.d.ts +164 -0
  30. package/es/components/geoMark/src/geoMark.mjs +6 -0
  31. package/es/components/geoMark/src/geoMark.mjs.map +1 -0
  32. package/es/components/geoMark/src/geoMark.vue.d.ts +734 -0
  33. package/es/components/geoMark/src/geoMark.vue.mjs +6 -0
  34. package/es/components/geoMark/src/geoMark.vue.mjs.map +1 -0
  35. package/es/components/geoMark/src/geoMark.vue2.mjs +1425 -0
  36. package/es/components/geoMark/src/geoMark.vue2.mjs.map +1 -0
  37. package/es/components/geoMark/src/openMap.vue.d.ts +326 -0
  38. package/es/components/geoMark/src/openMap.vue.mjs +6 -0
  39. package/es/components/geoMark/src/openMap.vue.mjs.map +1 -0
  40. package/es/components/geoMark/src/openMap.vue2.mjs +422 -0
  41. package/es/components/geoMark/src/openMap.vue2.mjs.map +1 -0
  42. package/es/components/geoMark/src/waring.png.mjs +4 -0
  43. package/es/components/geoMark/src/waring.png.mjs.map +1 -0
  44. package/es/components/geoMark/src//346/226/260/345/274/271/346/241/206.png.mjs +4 -0
  45. package/es/components/geoMark/src//346/226/260/345/274/271/346/241/206.png.mjs.map +1 -0
  46. package/es/components/geoMark/src//347/201/255/347/201/253/345/231/250.png.mjs +4 -0
  47. package/es/components/geoMark/src//347/201/255/347/201/253/345/231/250.png.mjs.map +1 -0
  48. package/es/components/index.d.ts +1 -0
  49. package/es/components/index.mjs +2 -0
  50. package/es/components/index.mjs.map +1 -1
  51. package/es/components/map/src/map.vue2.mjs +1 -1
  52. package/es/components/map/src/map.vue2.mjs.map +1 -1
  53. package/es/components/tzj-player/index.d.ts +5 -0
  54. package/es/components/tzj-player/src/ctyun-player.vue.d.ts +1 -0
  55. package/es/components/tzj-player/src/easyPlayer.vue.d.ts +1 -0
  56. package/es/components/tzj-player/src/easyPlayer.vue2.mjs +24 -17
  57. package/es/components/tzj-player/src/easyPlayer.vue2.mjs.map +1 -1
  58. package/es/components/tzj-player/src/tzj-player.vue.d.ts +5 -0
  59. package/es/components/tzj-player/src/yunzhiyanPlayer.vue.d.ts +1 -0
  60. package/es/index.mjs +2 -0
  61. package/es/index.mjs.map +1 -1
  62. package/es/installer.mjs +3 -1
  63. package/es/installer.mjs.map +1 -1
  64. package/global.d.ts +5 -0
  65. package/lib/components/geoMark/index.d.ts +733 -0
  66. package/lib/components/geoMark/index.js +15 -0
  67. package/lib/components/geoMark/index.js.map +1 -0
  68. package/lib/components/geoMark/src/DragIcon.vue.d.ts +77 -0
  69. package/lib/components/geoMark/src/DragIcon.vue.js +10 -0
  70. package/lib/components/geoMark/src/DragIcon.vue.js.map +1 -0
  71. package/lib/components/geoMark/src/DragIcon.vue2.js +71 -0
  72. package/lib/components/geoMark/src/DragIcon.vue2.js.map +1 -0
  73. package/lib/components/geoMark/src/assets//344/277/235/345/255/230.png.js +8 -0
  74. package/lib/components/geoMark/src/assets//344/277/235/345/255/230.png.js.map +1 -0
  75. package/lib/components/geoMark/src/assets//345/210/240/351/231/244.png.js +8 -0
  76. package/lib/components/geoMark/src/assets//345/210/240/351/231/244.png.js.map +1 -0
  77. package/lib/components/geoMark/src/assets//347/274/226/350/276/221.png.js +8 -0
  78. package/lib/components/geoMark/src/assets//347/274/226/350/276/221.png.js.map +1 -0
  79. package/lib/components/geoMark/src/assets//351/242/234/350/211/262.png.js +8 -0
  80. package/lib/components/geoMark/src/assets//351/242/234/350/211/262.png.js.map +1 -0
  81. package/lib/components/geoMark/src/default.png.js +8 -0
  82. package/lib/components/geoMark/src/default.png.js.map +1 -0
  83. package/lib/components/geoMark/src/floorRight/floor.vue.d.ts +15 -0
  84. package/lib/components/geoMark/src/floorRight/floor.vue.js +10 -0
  85. package/lib/components/geoMark/src/floorRight/floor.vue.js.map +1 -0
  86. package/lib/components/geoMark/src/floorRight/floor.vue2.js +123 -0
  87. package/lib/components/geoMark/src/floorRight/floor.vue2.js.map +1 -0
  88. package/lib/components/geoMark/src/geoMark.d.ts +164 -0
  89. package/lib/components/geoMark/src/geoMark.js +8 -0
  90. package/lib/components/geoMark/src/geoMark.js.map +1 -0
  91. package/lib/components/geoMark/src/geoMark.vue.d.ts +734 -0
  92. package/lib/components/geoMark/src/geoMark.vue.js +10 -0
  93. package/lib/components/geoMark/src/geoMark.vue.js.map +1 -0
  94. package/lib/components/geoMark/src/geoMark.vue2.js +1429 -0
  95. package/lib/components/geoMark/src/geoMark.vue2.js.map +1 -0
  96. package/lib/components/geoMark/src/openMap.vue.d.ts +326 -0
  97. package/lib/components/geoMark/src/openMap.vue.js +10 -0
  98. package/lib/components/geoMark/src/openMap.vue.js.map +1 -0
  99. package/lib/components/geoMark/src/openMap.vue2.js +426 -0
  100. package/lib/components/geoMark/src/openMap.vue2.js.map +1 -0
  101. package/lib/components/geoMark/src/waring.png.js +8 -0
  102. package/lib/components/geoMark/src/waring.png.js.map +1 -0
  103. package/lib/components/geoMark/src//346/226/260/345/274/271/346/241/206.png.js +8 -0
  104. package/lib/components/geoMark/src//346/226/260/345/274/271/346/241/206.png.js.map +1 -0
  105. package/lib/components/geoMark/src//347/201/255/347/201/253/345/231/250.png.js +8 -0
  106. package/lib/components/geoMark/src//347/201/255/347/201/253/345/231/250.png.js.map +1 -0
  107. package/lib/components/index.d.ts +1 -0
  108. package/lib/components/index.js +4 -0
  109. package/lib/components/index.js.map +1 -1
  110. package/lib/components/map/src/map.vue2.js +1 -1
  111. package/lib/components/map/src/map.vue2.js.map +1 -1
  112. package/lib/components/tzj-player/index.d.ts +5 -0
  113. package/lib/components/tzj-player/src/ctyun-player.vue.d.ts +1 -0
  114. package/lib/components/tzj-player/src/easyPlayer.vue.d.ts +1 -0
  115. package/lib/components/tzj-player/src/easyPlayer.vue2.js +23 -16
  116. package/lib/components/tzj-player/src/easyPlayer.vue2.js.map +1 -1
  117. package/lib/components/tzj-player/src/tzj-player.vue.d.ts +5 -0
  118. package/lib/components/tzj-player/src/yunzhiyanPlayer.vue.d.ts +1 -0
  119. package/lib/index.js +8 -4
  120. package/lib/index.js.map +1 -1
  121. package/lib/installer.js +3 -1
  122. package/lib/installer.js.map +1 -1
  123. package/package.json +3 -1
  124. package/theme-default/i-geo-mark.css +1 -0
  125. package/theme-default/index.css +1 -1
@@ -0,0 +1,1429 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var lodashEs = require('lodash-es');
7
+ var condition_js = require('ol/events/condition.js');
8
+ var Feature = require('ol/Feature');
9
+ var GeoJSON = require('ol/format/GeoJSON.js');
10
+ var Point = require('ol/geom/Point.js');
11
+ var Polygon = require('ol/geom/Polygon.js');
12
+ var Draw = require('ol/interaction/Draw.js');
13
+ var Modify = require('ol/interaction/Modify.js');
14
+ var Translate = require('ol/interaction/Translate.js');
15
+ var VectorLayer = require('ol/layer/Vector.js');
16
+ var style = require('ol/style');
17
+ var CircleStyle = require('ol/style/Circle.js');
18
+ var Style = require('ol/style/Style');
19
+ var __$3 = require('./assets/保存.png.js');
20
+ var __ = require('./assets/删除.png.js');
21
+ var __$1 = require('./assets/编辑.png.js');
22
+ var __$2 = require('./assets/颜色.png.js');
23
+ var _default = require('./default.png.js');
24
+ require('./DragIcon.vue.js');
25
+ require('./floorRight/floor.vue.js');
26
+ var geoMark = require('./geoMark.js');
27
+ require('./openMap.vue.js');
28
+ var waring = require('./waring.png.js');
29
+ var ___$1 = require('./新弹框.png.js');
30
+ var ___ = require('./灭火器.png.js');
31
+ var floor_vue_vue_type_script_setup_true_lang = require('./floorRight/floor.vue2.js');
32
+ var DragIcon_vue_vue_type_script_setup_true_lang = require('./DragIcon.vue2.js');
33
+ var openMap_vue_vue_type_script_setup_true_lang = require('./openMap.vue2.js');
34
+
35
+ var __defProp = Object.defineProperty;
36
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
37
+ const _hoisted_1 = {
38
+ id: "ypc-map-container",
39
+ class: "relative w-full h-full overflow-hidden t-geo-mark"
40
+ };
41
+ const _hoisted_2 = { class: "flex items-center justify-between w-full h-full -mt-2" };
42
+ const _hoisted_3 = { key: 0 };
43
+ const _hoisted_4 = { class: "flex items-center justify-between w-full h-full -mt-2" };
44
+ const _hoisted_5 = ["onClick"];
45
+ const _hoisted_6 = ["onClick"];
46
+ const _hoisted_7 = ["onClick"];
47
+ const _hoisted_8 = ["onClick"];
48
+ const _hoisted_9 = { class: "grid grid-cols-3 gap-2 p-1" };
49
+ const _hoisted_10 = ["onClick"];
50
+ const _hoisted_11 = { class: "text-xs mt-1" };
51
+ const _hoisted_12 = { class: "flex px-3.5 justify-between flex-shrink-0 w-full h-10 py-1 select-none -mt-5 p-2" };
52
+ const _hoisted_13 = { class: "flex justify-between w-30" };
53
+ const _hoisted_14 = {
54
+ key: 0,
55
+ class: "grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
56
+ };
57
+ const _hoisted_15 = { class: "col-span-4" };
58
+ const _hoisted_16 = {
59
+ key: 1,
60
+ class: "grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
61
+ };
62
+ const _hoisted_17 = {
63
+ key: 2,
64
+ style: { "height": "calc(100% - 100px)" },
65
+ class: "w-full mt-4 pb-5 overflow-x-hidden overflow-y-auto panel"
66
+ };
67
+ const _hoisted_18 = ["title"];
68
+ const _hoisted_19 = { class: "col-span-1 cursor-pointer" };
69
+ const _hoisted_20 = { class: "col-span-4 break-words" };
70
+ const _hoisted_21 = ["title"];
71
+ const _hoisted_22 = ["title"];
72
+ const _hoisted_23 = {
73
+ key: 3,
74
+ style: { "height": "calc(100% - 100px)" },
75
+ class: "w-full mt-4 overflow-x-hidden overflow-y-auto panel"
76
+ };
77
+ const _hoisted_24 = { class: "col-span-1" };
78
+ const _hoisted_25 = { class: "col-span-1" };
79
+ const _hoisted_26 = {
80
+ key: 0,
81
+ class: "!w-8 h-full t-image-point"
82
+ };
83
+ const _hoisted_27 = { class: "col-span-8" };
84
+ const _hoisted_28 = ["onClick"];
85
+ const _hoisted_29 = {
86
+ key: 0,
87
+ class: "flex flex-col justify-start text-white opacity-80 t-bg-overlay flex-nowrap"
88
+ };
89
+ const _hoisted_30 = ["src"];
90
+ const _hoisted_31 = { class: "flex t-overlay-item items-center w-full !mt-10 justify-items-start" };
91
+ const _hoisted_32 = { class: "flex items-center w-full t-overlay-item justify-items-start" };
92
+ const _hoisted_33 = { class: "flex items-center w-full t-overlay-item justify-items-start" };
93
+ const _hoisted_34 = ["title"];
94
+ const _hoisted_35 = { class: "flex items-center w-full t-overlay-item justify-items-start" };
95
+ const _hoisted_36 = ["title"];
96
+ const _hoisted_37 = {
97
+ key: 1,
98
+ class: "flex flex-col justify-start text-white opacity-80 t-bg-overlay flex-nowrap"
99
+ };
100
+ const _hoisted_38 = ["src"];
101
+ const _hoisted_39 = { class: "flex t-overlay-item items-center w-full !mt-10 justify-items-start" };
102
+ const _hoisted_40 = { class: "flex items-center w-full t-overlay-item justify-items-start" };
103
+ const _hoisted_41 = { class: "flex items-center w-full t-overlay-item justify-items-start" };
104
+ const _hoisted_42 = { class: "flex items-center w-full t-overlay-item justify-items-start" };
105
+ const _hoisted_43 = ["src"];
106
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
107
+ ...{ name: "IGeoMark" },
108
+ __name: "geoMark",
109
+ props: geoMark.GeoMarkProps,
110
+ emits: ["closeMain", "saveMain"],
111
+ setup(__props, { expose: __expose, emit: __emit }) {
112
+ const props = __props;
113
+ const emit = __emit;
114
+ const activatedPositionOverlayWaring = vue.ref([]);
115
+ const drawInteraction = vue.ref(null);
116
+ const modifyInteraction = vue.ref(null);
117
+ const translateInteraction = vue.ref(null);
118
+ const currentDrawType = vue.ref("Polygon");
119
+ vue.onMounted(() => {
120
+ window.addEventListener("popstate", (e) => {
121
+ document.documentElement.classList.remove("dark");
122
+ e.preventDefault();
123
+ });
124
+ });
125
+ vue.onUnmounted(() => {
126
+ document.documentElement.classList.remove("dark");
127
+ });
128
+ const activatedList = vue.ref(true);
129
+ const activatedFold = vue.ref(false);
130
+ const FnUpdateActivatedFold = /* @__PURE__ */ __name(() => {
131
+ activatedFold.value = !activatedFold.value;
132
+ }, "FnUpdateActivatedFold");
133
+ const listFloor = vue.ref([]);
134
+ const listDevice = vue.ref([]);
135
+ const listAllDevice = vue.ref([]);
136
+ const list_title = vue.ref("\u8BBE\u5907\u4FE1\u606F\u5217\u8868");
137
+ const configIcon = vue.ref({});
138
+ const configTopBar = vue.ref([
139
+ { name: `\u5355\u4F4D\u540D\uFF1A`, icon: "icon-jianzhu02-L", value: "-----" },
140
+ { name: `\u5EFA\u7B51\u540D\uFF1A`, icon: "icon-jianzhu03-L", value: "-----" },
141
+ { name: "\u9000\u51FA", icon: "icon-fanhui3", value: "-----" }
142
+ ]);
143
+ const configBottomBar = vue.ref([
144
+ { name: "\u9009\u62E9", icon: "icon-xuanze" },
145
+ { name: "\u7F16\u8F91", icon: "icon-xiugai" },
146
+ { name: "\u91CD\u7F6E", icon: "icon-zhongzhi1" },
147
+ { name: "\u653E\u5927", icon: "icon-fangda" },
148
+ { name: "\u7F29\u5C0F", icon: "icon-suoxiao" },
149
+ { name: "\u989C\u8272", icon: "icon-yanse" },
150
+ { name: "\u533A\u57DF\u8BBE\u7F6E", icon: "icon-shezhi" },
151
+ { name: "\u539F\u59CB\u5C3A\u5BF8", icon: "icon-chicun" },
152
+ { name: "\u4FDD\u5B58", icon: "icon-Save" }
153
+ ]);
154
+ const configBottomBar2 = vue.ref([
155
+ { name: "\u533A\u57DF\u6A21\u677F", icon: "icon-moban2" },
156
+ { name: "\u533A\u57DF\u7ED8\u5236", icon: "icon-pencel" }
157
+ ]);
158
+ const activatedMode = vue.computed(() => {
159
+ return props.type || "edit";
160
+ });
161
+ const activatedBottomBar = vue.ref("\u9009\u62E9");
162
+ const activatedFloor = vue.ref();
163
+ const refFloor = vue.ref(null);
164
+ const alarmType = vue.ref("fire");
165
+ const filtrationType = vue.ref([]);
166
+ const _waring = vue.ref(null);
167
+ const hasWaring = vue.computed(() => {
168
+ const w = _waring.value;
169
+ return w != null && w !== "";
170
+ });
171
+ const isWaringCode = /* @__PURE__ */ __name((code) => {
172
+ const w = _waring.value;
173
+ return w != null && w !== "" && w === code;
174
+ }, "isWaringCode");
175
+ const imgUrl = vue.ref(_default.default);
176
+ const rrefMap = vue.ref(null);
177
+ const mapReady = vue.ref(false);
178
+ const pendingInit = vue.ref(null);
179
+ const activatedPositionOverlay = vue.ref([]);
180
+ const activatedPropertiesOverlay = vue.ref({});
181
+ const activatedArrayFeatures = vue.ref([]);
182
+ const activatedFeature = vue.ref(null);
183
+ const move1 = vue.ref([]);
184
+ const defaultColor = vue.ref("rgba(255,255,51,0.2)");
185
+ const colorList = vue.ref([
186
+ { name: "\u9EC4\u8272", value: "rgba(255,255,51,0.2)" },
187
+ { name: "\u7EA2\u8272", value: "rgba(255,0,0,0.25)" },
188
+ { name: "\u7EFF\u8272", value: "rgba(0,255,0,0.25)" },
189
+ { name: "\u84DD\u8272", value: "rgba(0,120,255,0.25)" },
190
+ { name: "\u6A59\u8272", value: "rgba(255,150,0,0.3)" },
191
+ { name: "\u7D2B\u8272", value: "rgba(150,0,255,0.25)" }
192
+ ]);
193
+ const center = vue.ref([0, 0]);
194
+ const zoom = vue.ref(1);
195
+ const projection = vue.ref("EPSG:3857");
196
+ const size = vue.ref([800, 600]);
197
+ const extent = vue.ref([0, 0, 800, 600]);
198
+ const configOptionsDeviceType = vue.ref([]);
199
+ const configOptionsDeviceModel = vue.ref([]);
200
+ const configOptionsManufacturer = vue.ref([]);
201
+ const queryDeviceList = vue.ref({
202
+ activatedDeviceType: "",
203
+ activatedManufacturer: "",
204
+ activatedDeviceModel: ""
205
+ });
206
+ const activatedDragItem = vue.ref();
207
+ const deviceTypeSet = /* @__PURE__ */ new Set();
208
+ const manufacturerSet = /* @__PURE__ */ new Set();
209
+ const deviceModelSet = /* @__PURE__ */ new Set();
210
+ const createAdvancedStyle = /* @__PURE__ */ __name((_feature) => {
211
+ return [
212
+ new Style({
213
+ fill: new style.Fill({ color: "rgba(255, 255, 255, 0.2)" }),
214
+ stroke: new style.Stroke({ color: "#ffcc33", width: 2 }),
215
+ image: new CircleStyle({
216
+ radius: 7,
217
+ fill: new style.Fill({ color: "#ffcc33" })
218
+ })
219
+ })
220
+ ];
221
+ }, "createAdvancedStyle");
222
+ const initAdvancedModify = /* @__PURE__ */ __name(() => {
223
+ if (!rrefMap.value) return;
224
+ const source = rrefMap.value.getVectorSource();
225
+ if (modifyInteraction.value) {
226
+ rrefMap.value.getMap().removeInteraction(modifyInteraction.value);
227
+ }
228
+ modifyInteraction.value = new Modify({
229
+ source,
230
+ condition(event) {
231
+ return condition_js.primaryAction(event) && !condition_js.platformModifierKeyOnly(event);
232
+ },
233
+ deleteCondition: condition_js.never,
234
+ insertVertexCondition: condition_js.never,
235
+ style(feature, resolution) {
236
+ return createAdvancedStyle(feature);
237
+ }
238
+ });
239
+ modifyInteraction.value.on("modifystart", (event) => {
240
+ event.features.forEach((feature) => {
241
+ feature.set(
242
+ "modifyGeometry",
243
+ { geometry: feature.getGeometry().clone() },
244
+ true
245
+ );
246
+ });
247
+ });
248
+ modifyInteraction.value.on("modifyend", (event) => {
249
+ event.features.forEach((feature) => {
250
+ const modifyGeometry = feature.get("modifyGeometry");
251
+ if (modifyGeometry) {
252
+ feature.setGeometry(modifyGeometry.geometry);
253
+ feature.unset("modifyGeometry", true);
254
+ }
255
+ });
256
+ });
257
+ rrefMap.value.getMap().addInteraction(modifyInteraction.value);
258
+ }, "initAdvancedModify");
259
+ const initTranslate = /* @__PURE__ */ __name(() => {
260
+ if (!rrefMap.value) return;
261
+ if (translateInteraction.value) {
262
+ rrefMap.value.getMap().removeInteraction(translateInteraction.value);
263
+ }
264
+ translateInteraction.value = new Translate({
265
+ condition(event) {
266
+ return condition_js.primaryAction(event) && condition_js.platformModifierKeyOnly(event);
267
+ },
268
+ layers: [
269
+ rrefMap.value.getMap().getLayers().getArray().filter((layer) => layer instanceof VectorLayer)
270
+ ]
271
+ });
272
+ rrefMap.value.getMap().addInteraction(translateInteraction.value);
273
+ }, "initTranslate");
274
+ const initDraw = /* @__PURE__ */ __name((type = "Polygon") => {
275
+ if (!rrefMap.value) return;
276
+ if (drawInteraction.value) {
277
+ rrefMap.value.getMap().removeInteraction(drawInteraction.value);
278
+ }
279
+ drawInteraction.value = new Draw({
280
+ source: rrefMap.value.getVectorSource(),
281
+ type
282
+ });
283
+ drawInteraction.value.on("drawend", (event) => {
284
+ const feature = event.feature;
285
+ feature.set("color", defaultColor.value);
286
+ feature.set("text", "\u65B0\u7ED8\u5236\u533A\u57DF");
287
+ feature.setStyle(createAdvancedStyle(feature));
288
+ });
289
+ rrefMap.value.getMap().addInteraction(drawInteraction.value);
290
+ }, "initDraw");
291
+ const open = /* @__PURE__ */ __name(async (params = {
292
+ listFloor: [],
293
+ listDevice: [],
294
+ mode: "edit",
295
+ defaultFloor: null,
296
+ waring: null,
297
+ listTitle: "\u8BBE\u5907\u4FE1\u606F\u5217\u8868",
298
+ configIcon: {},
299
+ configTopBar: [],
300
+ type: "edit",
301
+ featureType: ["Areas"]
302
+ }) => {
303
+ var _a, _b;
304
+ if (params.featureType && params.featureType.length > 0) {
305
+ filtrationType.value = params.featureType;
306
+ }
307
+ if (params.type) {
308
+ alarmType.value = params.type;
309
+ }
310
+ if (params.listTitle) {
311
+ list_title.value = params.listTitle;
312
+ }
313
+ listFloor.value = params.listFloor;
314
+ listDevice.value = params.listDevice;
315
+ listAllDevice.value = params.listDevice;
316
+ configIcon.value = params.configIcon || {};
317
+ configTopBar.value = params.configTopBar || [];
318
+ _waring.value = (_a = params.waring) != null ? _a : null;
319
+ const defaultFloor = params.defaultFloor ? params.defaultFloor : listFloor.value[0];
320
+ (_b = refFloor.value) == null ? void 0 : _b.init(listFloor.value, defaultFloor);
321
+ const floorList = listFloor.value.map((item) => item.floor);
322
+ listAllDevice.value.filter((ls) => ls.floor != null && floorList.includes(ls.floor)).forEach((item) => {
323
+ if (item.deviceTypeName) deviceTypeSet.add(item.deviceTypeName);
324
+ if (item.manufacturerName) manufacturerSet.add(item.manufacturerName);
325
+ if (item.deviceModelName) deviceModelSet.add(item.deviceModelName);
326
+ });
327
+ configOptionsDeviceType.value = Array.from(deviceTypeSet).map((type) => ({
328
+ label: type,
329
+ value: type,
330
+ key: type
331
+ })).filter((e) => !lodashEs.isNil(e.label));
332
+ configOptionsManufacturer.value = Array.from(manufacturerSet).map((manufacturer) => ({
333
+ label: manufacturer,
334
+ value: manufacturer,
335
+ key: manufacturer
336
+ })).filter((e) => !lodashEs.isNil(e.label));
337
+ configOptionsDeviceModel.value = Array.from(deviceModelSet).map((deviceModel) => ({
338
+ label: deviceModel,
339
+ value: deviceModel,
340
+ key: deviceModel
341
+ })).filter((e) => !lodashEs.isNil(e.label));
342
+ if (mapReady.value) {
343
+ initMap(activatedFloor.value || defaultFloor);
344
+ } else {
345
+ activatedFloor.value = defaultFloor;
346
+ pendingInit.value = defaultFloor;
347
+ }
348
+ }, "open");
349
+ const handleMapReady = /* @__PURE__ */ __name(() => {
350
+ mapReady.value = true;
351
+ const floor = pendingInit.value || activatedFloor.value;
352
+ if (floor) {
353
+ pendingInit.value = null;
354
+ initMap(floor);
355
+ }
356
+ }, "handleMapReady");
357
+ const locateWaringFeature = /* @__PURE__ */ __name((centerOnWarning) => {
358
+ if (!hasWaring.value || !rrefMap.value) return;
359
+ const features = rrefMap.value.getVectorSource().getFeatures();
360
+ const target = features.find(
361
+ (feature) => isWaringCode(feature.get("code"))
362
+ );
363
+ if (!target) return;
364
+ const position = target.getGeometry().getCoordinates();
365
+ activatedPositionOverlayWaring.value = position;
366
+ if (centerOnWarning) {
367
+ activatedPositionOverlay.value = position;
368
+ activatedPropertiesOverlay.value = target.getProperties();
369
+ setTimeout(() => {
370
+ var _a, _b;
371
+ (_b = (_a = rrefMap.value) == null ? void 0 : _a.getView()) == null ? void 0 : _b.setCenter(position);
372
+ }, 0);
373
+ }
374
+ }, "locateWaringFeature");
375
+ function loadFeaturesAndHandleWarning(geojson, centerOnWarning = true) {
376
+ var _a, _b;
377
+ const features = new GeoJSON().readFeatures(geojson);
378
+ activatedArrayFeatures.value = features;
379
+ (_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().addFeatures(features);
380
+ (_b = rrefMap.value) == null ? void 0 : _b.getVectorSource().on("addfeature", (event) => {
381
+ });
382
+ setTimeout(() => {
383
+ locateWaringFeature(centerOnWarning);
384
+ });
385
+ }
386
+ __name(loadFeaturesAndHandleWarning, "loadFeaturesAndHandleWarning");
387
+ async function initMap(defaultFloor) {
388
+ var _a, _b, _c, _d;
389
+ (_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().clear();
390
+ await loadingSource(defaultFloor);
391
+ (_b = rrefMap.value) == null ? void 0 : _b.getMap().on("pointermove", (evt) => {
392
+ var _a2, _b2, _c2, _d2, _e;
393
+ const pixel = (_a2 = rrefMap.value) == null ? void 0 : _a2.getMap().getEventPixel(evt.originalEvent);
394
+ const viewCoordinate = (_b2 = rrefMap.value) == null ? void 0 : _b2.getMap().getCoordinateFromPixel(pixel);
395
+ if (viewCoordinate) {
396
+ move1.value = viewCoordinate;
397
+ }
398
+ if (activatedBottomBar.value === "\u7F16\u8F91") {
399
+ return;
400
+ }
401
+ let feature;
402
+ if ((_c2 = rrefMap.value) == null ? void 0 : _c2.getMap().hasFeatureAtPixel(pixel)) {
403
+ if (hasWaring.value) {
404
+ activatedPositionOverlay.value = [];
405
+ }
406
+ const viewCoordinate2 = (_d2 = rrefMap.value) == null ? void 0 : _d2.getMap().getCoordinateFromPixel(pixel);
407
+ if (viewCoordinate2) {
408
+ activatedPositionOverlay.value = viewCoordinate2;
409
+ }
410
+ feature = (_e = rrefMap.value) == null ? void 0 : _e.getMap().forEachFeatureAtPixel(
411
+ pixel,
412
+ (feature2, layer) => {
413
+ return feature2;
414
+ }
415
+ );
416
+ if (feature) {
417
+ activatedPropertiesOverlay.value = feature.getProperties();
418
+ }
419
+ } else {
420
+ if (activatedMode.value === "edit") {
421
+ activatedPositionOverlay.value = [];
422
+ }
423
+ }
424
+ });
425
+ (_c = rrefMap.value) == null ? void 0 : _c.getMap().on("contextmenu", (event) => {
426
+ var _a2;
427
+ activatedFeature.value = ((_a2 = rrefMap.value) == null ? void 0 : _a2.getMap().forEachFeatureAtPixel(
428
+ event.pixel,
429
+ (feature) => feature
430
+ )) || null;
431
+ activatedBottomBar.value = "\u9009\u62E9";
432
+ });
433
+ (_d = rrefMap.value) == null ? void 0 : _d.getVectorSource().on("change", (item) => {
434
+ var _a2;
435
+ const features = ((_a2 = rrefMap.value) == null ? void 0 : _a2.getVectorSource().getFeatures()) || [];
436
+ activatedArrayFeatures.value = features;
437
+ });
438
+ vue.nextTick(() => {
439
+ initAdvancedModify();
440
+ initTranslate();
441
+ initDraw(currentDrawType.value);
442
+ });
443
+ }
444
+ __name(initMap, "initMap");
445
+ const imageDimensionsCache = /* @__PURE__ */ new Map();
446
+ const getImageDimensions = /* @__PURE__ */ __name((imageUrl) => {
447
+ const cached = imageDimensionsCache.get(imageUrl);
448
+ if (cached) return Promise.resolve(cached);
449
+ return new Promise((resolve, reject) => {
450
+ const img = new Image();
451
+ img.onload = () => {
452
+ const dims = { width: img.naturalWidth, height: img.naturalHeight };
453
+ imageDimensionsCache.set(imageUrl, dims);
454
+ resolve(dims);
455
+ };
456
+ img.onerror = reject;
457
+ img.src = imageUrl;
458
+ });
459
+ }, "getImageDimensions");
460
+ const loadingSource = /* @__PURE__ */ __name(async (data, centerOnWarning = true) => {
461
+ var _a, _b, _c;
462
+ activatedPositionOverlay.value = [];
463
+ activatedPositionOverlayWaring.value = [];
464
+ activatedPropertiesOverlay.value = {};
465
+ activatedFeature.value = null;
466
+ (_a = rrefMap.value) == null ? void 0 : _a.calculateAutoZoom();
467
+ if (!data) {
468
+ listDevice.value = [];
469
+ activatedFloor.value = void 0;
470
+ (_b = rrefMap.value) == null ? void 0 : _b.getVectorSource().clear();
471
+ imgUrl.value = "";
472
+ return;
473
+ }
474
+ listDevice.value = listAllDevice.value.filter((item) => {
475
+ return item.floor === data.floor;
476
+ });
477
+ activatedFloor.value = data;
478
+ (_c = rrefMap.value) == null ? void 0 : _c.getVectorSource().clear();
479
+ const url = data.bucketName || _default.default;
480
+ let dims;
481
+ try {
482
+ dims = await getImageDimensions(url);
483
+ imgUrl.value = url;
484
+ } catch {
485
+ try {
486
+ dims = await getImageDimensions(_default.default);
487
+ imgUrl.value = _default.default;
488
+ } catch {
489
+ dims = { width: 800, height: 600 };
490
+ imgUrl.value = "";
491
+ }
492
+ }
493
+ size.value = [dims.width, dims.height];
494
+ extent.value = [0, 0, dims.width, dims.height];
495
+ center.value = [dims.width / 2, dims.height / 2];
496
+ if (rrefMap.value) {
497
+ const view = rrefMap.value.getView();
498
+ if (view) {
499
+ view.setCenter(center.value);
500
+ view.setZoom(zoom.value);
501
+ }
502
+ rrefMap.value.calculateAutoZoom && rrefMap.value.calculateAutoZoom();
503
+ }
504
+ if (data == null ? void 0 : data.bucketName) {
505
+ if (filtrationType.value && filtrationType.value.length > 0) {
506
+ const geoConfig = {
507
+ Areas: { geojson: data == null ? void 0 : data.geojson, geomType: "Polygon" },
508
+ Devices: { geojson: data == null ? void 0 : data.geojson, geomType: "Point" },
509
+ Facilities: { geojson: data == null ? void 0 : data.facilityGeoJson, geomType: "Point" },
510
+ Cameras: { geojson: data == null ? void 0 : data.videoGeoJson, geomType: "Point" }
511
+ };
512
+ filtrationType.value.forEach((element) => {
513
+ const conf = geoConfig[element];
514
+ if (!(conf == null ? void 0 : conf.geojson)) return;
515
+ const filtered = JSON.parse(conf.geojson).features.filter(
516
+ (feature) => feature.geometry && feature.geometry.type === conf.geomType
517
+ );
518
+ loadFeaturesAndHandleWarning(
519
+ JSON.stringify({ type: "FeatureCollection", features: filtered }),
520
+ centerOnWarning
521
+ );
522
+ });
523
+ } else {
524
+ if ((data == null ? void 0 : data.videoGeoJson) && alarmType.value === "video") {
525
+ if (!(data == null ? void 0 : data.videoGeoJson)) {
526
+ return;
527
+ }
528
+ loadFeaturesAndHandleWarning(data == null ? void 0 : data.videoGeoJson, centerOnWarning);
529
+ } else {
530
+ if (!(data == null ? void 0 : data.geojson)) {
531
+ return;
532
+ }
533
+ loadFeaturesAndHandleWarning(data == null ? void 0 : data.geojson, centerOnWarning);
534
+ }
535
+ }
536
+ }
537
+ }, "loadingSource");
538
+ const FnUpdateFloor = /* @__PURE__ */ __name((item) => {
539
+ loadingSource(item, false);
540
+ }, "FnUpdateFloor");
541
+ const FnUpdateDrawFeature2 = /* @__PURE__ */ __name((event) => {
542
+ event.feature.set("color", defaultColor.value);
543
+ event.feature.set("drawType", "lineString");
544
+ }, "FnUpdateDrawFeature2");
545
+ const FnUpdateDrawFeature = /* @__PURE__ */ __name((event) => {
546
+ event.feature.set("color", defaultColor.value);
547
+ event.feature.set("text", "\u91CD\u70B9\u9632\u63A7\u533A\u57DF");
548
+ }, "FnUpdateDrawFeature");
549
+ const FnOverrideStyle = /* @__PURE__ */ __name((feature, style) => {
550
+ var _a, _b, _c, _d, _e, _f;
551
+ const code = (_a = feature.getProperties()) == null ? void 0 : _a.code;
552
+ const iconUrl = configIcon.value[code] || ___.default;
553
+ if (code && iconUrl) {
554
+ const isWarningOrEdit = isWaringCode(code) || activatedMode.value === "edit";
555
+ const scale = isWarningOrEdit ? 1 : 0.8;
556
+ const deviceState = (_e = (_d = (_b = listDevice.value.find((item) => item.code === code)) == null ? void 0 : _b.state) != null ? _d : (_c = feature.get("other")) == null ? void 0 : _c.state) != null ? _e : feature.get("state");
557
+ const iconStyle = (_f = rrefMap.value) == null ? void 0 : _f.createIcon(iconUrl, scale, deviceState);
558
+ feature.setStyle(iconStyle);
559
+ } else {
560
+ updateFeatureStyle(feature);
561
+ }
562
+ return style;
563
+ }, "FnOverrideStyle");
564
+ const deleteFeature = /* @__PURE__ */ __name((feature) => {
565
+ var _a;
566
+ (_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().removeFeature(feature);
567
+ }, "deleteFeature");
568
+ const updateFeatureStyle = /* @__PURE__ */ __name((feature = activatedFeature.value, isSelected = false, _offset = 0.4) => {
569
+ if (!feature) {
570
+ return;
571
+ }
572
+ const text = new style.Text({
573
+ overflow: true,
574
+ textBaseline: "middle",
575
+ font: "normal 14px \u5FAE\u8F6F\u96C5\u9ED1",
576
+ text: feature.get("text") || "\u91CD\u70B9\u533A\u57DF",
577
+ fill: new style.Fill({
578
+ color: "red"
579
+ }),
580
+ backgroundFill: new style.Fill({
581
+ color: "white"
582
+ }),
583
+ padding: [2, 5, 2, 5]
584
+ });
585
+ const textStyle = new Style({
586
+ text,
587
+ fill: new style.Fill({
588
+ color: feature.get("color") || "rgba(255,255,51,0.2)"
589
+ }),
590
+ stroke: new style.Stroke({
591
+ color: feature.get("color") || "rgba(255,255,51,0.2)",
592
+ width: isSelected ? 4 : 1
593
+ })
594
+ });
595
+ feature.setStyle(textStyle);
596
+ }, "updateFeatureStyle");
597
+ const FnSetColor = /* @__PURE__ */ __name((color) => {
598
+ defaultColor.value = color;
599
+ if (activatedFeature.value) {
600
+ activatedFeature.value.set("color", color);
601
+ updateFeatureStyle(activatedFeature.value, true);
602
+ }
603
+ activatedBottomBar.value = "\u9009\u62E9";
604
+ }, "FnSetColor");
605
+ const handlerChecked = /* @__PURE__ */ __name((key) => {
606
+ var _a, _b, _c, _d, _e, _f;
607
+ activatedBottomBar.value = key;
608
+ switch (key) {
609
+ case "\u4FDD\u5B58":
610
+ FnSaveMain();
611
+ break;
612
+ case "\u91CD\u7F6E":
613
+ (_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().clear();
614
+ break;
615
+ case "\u653E\u5927": {
616
+ const view = (_b = rrefMap.value) == null ? void 0 : _b.getView();
617
+ if (view) view.setZoom(((_c = view.getZoom()) != null ? _c : 1) + 1);
618
+ break;
619
+ }
620
+ case "\u7F29\u5C0F": {
621
+ const view = (_d = rrefMap.value) == null ? void 0 : _d.getView();
622
+ if (view) view.setZoom(((_e = view.getZoom()) != null ? _e : 1) - 1);
623
+ break;
624
+ }
625
+ case "\u533A\u57DF\u6A21\u677F":
626
+ (function() {
627
+ var _a2;
628
+ const feature = new Feature({
629
+ geometry: new Polygon([
630
+ [
631
+ [786.3792005168201, 338.76241851619795],
632
+ [745.2306619461384, 268.6210691239884],
633
+ [720.3979398123276, 226.2914822164155],
634
+ [689.3061489176491, 181.81733917636961],
635
+ [650.6757212309868, 224.32142350364663],
636
+ [635.9358768302526, 239.17937425863389],
637
+ [628.3098681327549, 250.58557144777728],
638
+ [607.7260105988584, 269.24237742792496],
639
+ [657.7235396817343, 346.765203291549],
640
+ [667.2401356802386, 362.85727288146916],
641
+ [709.1159873844781, 428.26685621909996],
642
+ [786.3792005168201, 338.76241851619795]
643
+ ]
644
+ ]),
645
+ text: "\u91CD\u70B9\u6D88\u9632\u533A\u57DF\u4ED3\u5E93",
646
+ color: defaultColor.value
647
+ });
648
+ (_a2 = rrefMap.value) == null ? void 0 : _a2.getVectorSource().addFeature(feature);
649
+ })();
650
+ break;
651
+ case "\u539F\u59CB\u5C3A\u5BF8":
652
+ (_f = rrefMap.value) == null ? void 0 : _f.getView().setZoom(1);
653
+ break;
654
+ default:
655
+ break;
656
+ }
657
+ }, "handlerChecked");
658
+ const dragStart = /* @__PURE__ */ __name((item) => {
659
+ activatedDragItem.value = item;
660
+ }, "dragStart");
661
+ const dragEnd = /* @__PURE__ */ __name((evt) => {
662
+ setTimeout(() => {
663
+ var _a;
664
+ const viewCoordinate = move1.value;
665
+ if (activatedDragItem.value && viewCoordinate) {
666
+ const feature = new Feature({
667
+ geometry: new Point([viewCoordinate[0], viewCoordinate[1]]),
668
+ type: "\u706D\u706B\u5668",
669
+ deviceType: activatedDragItem.value.deviceType,
670
+ code: activatedDragItem.value.code,
671
+ other: activatedDragItem.value
672
+ });
673
+ (_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().addFeature(feature);
674
+ }
675
+ }, 100);
676
+ }, "dragEnd");
677
+ const listUnitDevice = vue.computed(() => {
678
+ const codeArr = activatedArrayFeatures.value.reduce(
679
+ (acc, item) => {
680
+ if (item.values_.geometry.getType() === "Point") {
681
+ acc.push(item.values_.code);
682
+ }
683
+ return acc;
684
+ },
685
+ []
686
+ );
687
+ let _listUnitDevice = listDevice.value.filter((item) => {
688
+ return !codeArr.some((code) => item.code === code);
689
+ });
690
+ if (queryDeviceList.value.activatedDeviceModel) {
691
+ _listUnitDevice = _listUnitDevice.filter((item) => {
692
+ return item.deviceModelName === queryDeviceList.value.activatedDeviceModel;
693
+ });
694
+ }
695
+ if (queryDeviceList.value.activatedDeviceType) {
696
+ _listUnitDevice = _listUnitDevice.filter((item) => {
697
+ return item.deviceTypeName === queryDeviceList.value.activatedDeviceType;
698
+ });
699
+ }
700
+ if (queryDeviceList.value.activatedManufacturer) {
701
+ _listUnitDevice = _listUnitDevice.filter((item) => {
702
+ return item.manufacturerName === queryDeviceList.value.activatedManufacturer;
703
+ });
704
+ }
705
+ return _listUnitDevice;
706
+ });
707
+ const FnCloseMain = /* @__PURE__ */ __name(() => {
708
+ emit("closeMain");
709
+ }, "FnCloseMain");
710
+ const FnSaveMain = /* @__PURE__ */ __name(() => {
711
+ var _a;
712
+ document.documentElement.classList.remove("dark");
713
+ const features = ((_a = rrefMap.value) == null ? void 0 : _a.getVectorSource().getFeatures()) || [];
714
+ const jsonObj = new GeoJSON().writeFeatures(features);
715
+ emit("saveMain", { geojson: jsonObj, floor: activatedFloor.value });
716
+ }, "FnSaveMain");
717
+ const configMenuItems = vue.ref([
718
+ {
719
+ text: "\u5220\u9664",
720
+ icon: __.default,
721
+ callback: /* @__PURE__ */ __name((val) => {
722
+ if (rrefMap.value.getVectorSource()) {
723
+ rrefMap.value.getVectorSource().removeFeature(activatedFeature.value);
724
+ }
725
+ }, "callback")
726
+ },
727
+ {
728
+ text: "\u7F16\u8F91",
729
+ icon: __$1.default,
730
+ classname: "some-style-class",
731
+ callback: /* @__PURE__ */ __name((val) => {
732
+ activatedBottomBar.value = "\u7F16\u8F91";
733
+ }, "callback")
734
+ },
735
+ {
736
+ text: "\u989C\u8272",
737
+ icon: __$2.default,
738
+ classname: "some-style-class",
739
+ callback: /* @__PURE__ */ __name((val) => {
740
+ activatedBottomBar.value = "\u989C\u8272";
741
+ }, "callback")
742
+ },
743
+ {
744
+ text: "\u4FDD\u5B58",
745
+ icon: __$3.default,
746
+ classname: "some-style-class",
747
+ callback: /* @__PURE__ */ __name((val) => {
748
+ FnSaveMain();
749
+ }, "callback")
750
+ }
751
+ ]);
752
+ __expose({
753
+ open
754
+ });
755
+ return (_ctx, _cache) => {
756
+ const _component_el_card = vue.resolveComponent("el-card");
757
+ const _component_el_popover = vue.resolveComponent("el-popover");
758
+ const _component_el_option = vue.resolveComponent("el-option");
759
+ const _component_el_select = vue.resolveComponent("el-select");
760
+ const _component_el_input = vue.resolveComponent("el-input");
761
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
762
+ vue.createVNode(
763
+ floor_vue_vue_type_script_setup_true_lang.default,
764
+ {
765
+ ref_key: "refFloor",
766
+ ref: refFloor,
767
+ onChangeFloor: FnUpdateFloor
768
+ },
769
+ null,
770
+ 512
771
+ /* NEED_PATCH */
772
+ ),
773
+ activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
774
+ key: 0,
775
+ style: { "height": "50px", "width": "680px", "z-index": "999999999 !important", "top": "5px", "left": "5px" },
776
+ class: "absolute tob-6"
777
+ }, {
778
+ default: vue.withCtx(() => [
779
+ vue.createElementVNode("div", _hoisted_2, [
780
+ (vue.openBlock(true), vue.createElementBlock(
781
+ vue.Fragment,
782
+ null,
783
+ vue.renderList(configTopBar.value, (o) => {
784
+ return vue.openBlock(), vue.createElementBlock("div", {
785
+ key: o.name,
786
+ class: "mr-3 cursor-pointer text item t truncate ...",
787
+ onClick: _cache[0] || (_cache[0] = ($event) => FnCloseMain())
788
+ }, [
789
+ vue.createElementVNode(
790
+ "i",
791
+ {
792
+ class: vue.normalizeClass(["iconfont", [o.icon]])
793
+ },
794
+ null,
795
+ 2
796
+ /* CLASS */
797
+ ),
798
+ vue.createTextVNode(
799
+ " " + vue.toDisplayString(o.name) + " ",
800
+ 1
801
+ /* TEXT */
802
+ ),
803
+ o.name !== "\u9000\u51FA" ? (vue.openBlock(), vue.createElementBlock(
804
+ "span",
805
+ _hoisted_3,
806
+ vue.toDisplayString(o.value),
807
+ 1
808
+ /* TEXT */
809
+ )) : vue.createCommentVNode("v-if", true)
810
+ ]);
811
+ }),
812
+ 128
813
+ /* KEYED_FRAGMENT */
814
+ ))
815
+ ])
816
+ ]),
817
+ _: 1
818
+ /* STABLE */
819
+ })) : vue.createCommentVNode("v-if", true),
820
+ activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
821
+ key: 1,
822
+ style: { "height": "50px", "width": "920px", "z-index": "999999999 !important", "transform": "translateX(-50%)", "left": "50%" },
823
+ class: "absolute bottom-6"
824
+ }, {
825
+ default: vue.withCtx(() => [
826
+ vue.createElementVNode("div", _hoisted_4, [
827
+ (vue.openBlock(true), vue.createElementBlock(
828
+ vue.Fragment,
829
+ null,
830
+ vue.renderList(configBottomBar.value, (o) => {
831
+ return vue.openBlock(), vue.createElementBlock(
832
+ vue.Fragment,
833
+ {
834
+ key: o.name
835
+ },
836
+ [
837
+ o.name !== "\u989C\u8272" && o.name !== "\u533A\u57DF\u8BBE\u7F6E" ? (vue.openBlock(), vue.createElementBlock("div", {
838
+ key: 0,
839
+ class: vue.normalizeClass(["mr-3 cursor-pointer text item", [activatedBottomBar.value === o.name ? "bg-red-600" : ""]]),
840
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
841
+ }, [
842
+ vue.createElementVNode("span", null, [
843
+ vue.createElementVNode(
844
+ "i",
845
+ {
846
+ class: vue.normalizeClass(["iconfont", [o.icon]])
847
+ },
848
+ null,
849
+ 2
850
+ /* CLASS */
851
+ ),
852
+ vue.createTextVNode(
853
+ " " + vue.toDisplayString(o.name),
854
+ 1
855
+ /* TEXT */
856
+ )
857
+ ])
858
+ ], 10, _hoisted_5)) : o.name === "\u533A\u57DF\u8BBE\u7F6E" ? (vue.openBlock(), vue.createBlock(
859
+ _component_el_popover,
860
+ {
861
+ key: 1,
862
+ width: 250,
863
+ style: { "height": "350px !important" },
864
+ placement: "top",
865
+ trigger: "click",
866
+ "popper-class": "t-popper"
867
+ },
868
+ {
869
+ reference: vue.withCtx(() => [
870
+ vue.createElementVNode("div", {
871
+ class: vue.normalizeClass(["mr-3 cursor-pointer text item", [activatedBottomBar.value === o.name ? "bg-red-600" : ""]]),
872
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
873
+ }, [
874
+ vue.createElementVNode("span", null, [
875
+ vue.createElementVNode(
876
+ "i",
877
+ {
878
+ class: vue.normalizeClass(["iconfont", [o.icon]])
879
+ },
880
+ null,
881
+ 2
882
+ /* CLASS */
883
+ ),
884
+ vue.createTextVNode(
885
+ " " + vue.toDisplayString(o.name),
886
+ 1
887
+ /* TEXT */
888
+ )
889
+ ])
890
+ ], 10, _hoisted_6)
891
+ ]),
892
+ default: vue.withCtx(() => [
893
+ (vue.openBlock(true), vue.createElementBlock(
894
+ vue.Fragment,
895
+ null,
896
+ vue.renderList(configBottomBar2.value, (o2) => {
897
+ return vue.openBlock(), vue.createElementBlock("div", {
898
+ key: o2.name,
899
+ class: vue.normalizeClass(["mr-3 cursor-pointer text item", [activatedBottomBar.value === o2.name ? "bg-red-600" : ""]]),
900
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o2.name), "onClick")
901
+ }, [
902
+ vue.createElementVNode("span", null, [
903
+ vue.createElementVNode(
904
+ "i",
905
+ {
906
+ class: vue.normalizeClass(["iconfont", [o2.icon]])
907
+ },
908
+ null,
909
+ 2
910
+ /* CLASS */
911
+ ),
912
+ vue.createTextVNode(
913
+ " " + vue.toDisplayString(o2.name),
914
+ 1
915
+ /* TEXT */
916
+ )
917
+ ])
918
+ ], 10, _hoisted_7);
919
+ }),
920
+ 128
921
+ /* KEYED_FRAGMENT */
922
+ ))
923
+ ]),
924
+ _: 2
925
+ /* DYNAMIC */
926
+ },
927
+ 1024
928
+ /* DYNAMIC_SLOTS */
929
+ )) : (vue.openBlock(), vue.createBlock(
930
+ _component_el_popover,
931
+ {
932
+ key: 2,
933
+ width: 250,
934
+ style: { "height": "350px !important" },
935
+ placement: "top",
936
+ trigger: "click",
937
+ "popper-class": "t-popper"
938
+ },
939
+ {
940
+ reference: vue.withCtx(() => [
941
+ vue.createElementVNode("div", {
942
+ class: vue.normalizeClass(["mr-3 cursor-pointer text item", [activatedBottomBar.value === o.name ? "bg-red-600" : ""]]),
943
+ onClick: /* @__PURE__ */ __name(($event) => handlerChecked(o.name), "onClick")
944
+ }, [
945
+ vue.createElementVNode("span", null, [
946
+ vue.createElementVNode(
947
+ "i",
948
+ {
949
+ class: vue.normalizeClass(["iconfont", [o.icon]])
950
+ },
951
+ null,
952
+ 2
953
+ /* CLASS */
954
+ ),
955
+ vue.createTextVNode(
956
+ " " + vue.toDisplayString(o.name),
957
+ 1
958
+ /* TEXT */
959
+ )
960
+ ])
961
+ ], 10, _hoisted_8)
962
+ ]),
963
+ default: vue.withCtx(() => [
964
+ vue.createElementVNode("div", _hoisted_9, [
965
+ (vue.openBlock(true), vue.createElementBlock(
966
+ vue.Fragment,
967
+ null,
968
+ vue.renderList(colorList.value, (c) => {
969
+ return vue.openBlock(), vue.createElementBlock("div", {
970
+ key: c.value,
971
+ class: "flex flex-col items-center cursor-pointer",
972
+ onClick: /* @__PURE__ */ __name(($event) => FnSetColor(c.value), "onClick")
973
+ }, [
974
+ vue.createElementVNode(
975
+ "span",
976
+ {
977
+ class: "w-8 h-8 rounded border border-gray-300",
978
+ style: vue.normalizeStyle({ backgroundColor: c.value })
979
+ },
980
+ null,
981
+ 4
982
+ /* STYLE */
983
+ ),
984
+ vue.createElementVNode(
985
+ "span",
986
+ _hoisted_11,
987
+ vue.toDisplayString(c.name),
988
+ 1
989
+ /* TEXT */
990
+ )
991
+ ], 8, _hoisted_10);
992
+ }),
993
+ 128
994
+ /* KEYED_FRAGMENT */
995
+ ))
996
+ ])
997
+ ]),
998
+ _: 2
999
+ /* DYNAMIC */
1000
+ },
1001
+ 1024
1002
+ /* DYNAMIC_SLOTS */
1003
+ ))
1004
+ ],
1005
+ 64
1006
+ /* STABLE_FRAGMENT */
1007
+ );
1008
+ }),
1009
+ 128
1010
+ /* KEYED_FRAGMENT */
1011
+ ))
1012
+ ])
1013
+ ]),
1014
+ _: 1
1015
+ /* STABLE */
1016
+ })) : vue.createCommentVNode("v-if", true),
1017
+ activatedMode.value === "edit" ? (vue.openBlock(), vue.createBlock(_component_el_card, {
1018
+ key: 2,
1019
+ style: { "width": "500px", "z-index": "999999999 !important" },
1020
+ class: vue.normalizeClass(["absolute right-6", [activatedFold.value === true ? "t-fold " : "t-unfold open-info-list"]]),
1021
+ "body-style": { height: "100%" }
1022
+ }, {
1023
+ default: vue.withCtx(() => [
1024
+ vue.createElementVNode("div", _hoisted_12, [
1025
+ vue.createElementVNode("div", _hoisted_13, [
1026
+ vue.createElementVNode(
1027
+ "span",
1028
+ {
1029
+ class: vue.normalizeClass(["flex items-center mr-5 cursor-pointer", [activatedList.value ? "text-primary" : ""]]),
1030
+ onClick: _cache[1] || (_cache[1] = ($event) => activatedList.value = true)
1031
+ },
1032
+ vue.toDisplayString(list_title.value),
1033
+ 3
1034
+ /* TEXT, CLASS */
1035
+ ),
1036
+ vue.createElementVNode(
1037
+ "span",
1038
+ {
1039
+ class: vue.normalizeClass(["flex items-center cursor-pointer", [!activatedList.value ? "text-primary" : ""]]),
1040
+ onClick: _cache[2] || (_cache[2] = ($event) => activatedList.value = false)
1041
+ },
1042
+ " \u6807\u6CE8\u4FE1\u606F\u5217\u8868 ",
1043
+ 2
1044
+ /* CLASS */
1045
+ )
1046
+ ]),
1047
+ activatedFold.value ? (vue.openBlock(), vue.createElementBlock("span", {
1048
+ key: 0,
1049
+ class: "flex items-center cursor-pointer text-primary",
1050
+ onClick: FnUpdateActivatedFold
1051
+ }, " \u5C55\u5F00 ")) : (vue.openBlock(), vue.createElementBlock("span", {
1052
+ key: 1,
1053
+ class: "flex items-center cursor-pointer text-primary",
1054
+ onClick: FnUpdateActivatedFold
1055
+ }, " \u6536\u8D77 "))
1056
+ ]),
1057
+ vue.createVNode(_component_el_select, {
1058
+ modelValue: queryDeviceList.value.activatedDeviceType,
1059
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => queryDeviceList.value.activatedDeviceType = $event),
1060
+ clearable: "",
1061
+ style: { "width": "32%" },
1062
+ class: "mr-2",
1063
+ placeholder: "\u8BF7\u9009\u62E9\u7C7B\u578B",
1064
+ teleported: false
1065
+ }, {
1066
+ default: vue.withCtx(() => [
1067
+ (vue.openBlock(true), vue.createElementBlock(
1068
+ vue.Fragment,
1069
+ null,
1070
+ vue.renderList(configOptionsDeviceType.value, (item) => {
1071
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
1072
+ key: item.value,
1073
+ label: item.label,
1074
+ value: item.value
1075
+ }, null, 8, ["label", "value"]);
1076
+ }),
1077
+ 128
1078
+ /* KEYED_FRAGMENT */
1079
+ ))
1080
+ ]),
1081
+ _: 1
1082
+ /* STABLE */
1083
+ }, 8, ["modelValue"]),
1084
+ vue.createVNode(_component_el_select, {
1085
+ modelValue: queryDeviceList.value.activatedDeviceModel,
1086
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => queryDeviceList.value.activatedDeviceModel = $event),
1087
+ clearable: "",
1088
+ style: { "width": "32%" },
1089
+ class: "mr-2",
1090
+ placeholder: "\u8BF7\u9009\u62E9\u578B\u53F7",
1091
+ teleported: false
1092
+ }, {
1093
+ default: vue.withCtx(() => [
1094
+ (vue.openBlock(true), vue.createElementBlock(
1095
+ vue.Fragment,
1096
+ null,
1097
+ vue.renderList(configOptionsDeviceModel.value, (item) => {
1098
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
1099
+ key: item.value,
1100
+ label: item.label,
1101
+ value: item.value
1102
+ }, null, 8, ["label", "value"]);
1103
+ }),
1104
+ 128
1105
+ /* KEYED_FRAGMENT */
1106
+ ))
1107
+ ]),
1108
+ _: 1
1109
+ /* STABLE */
1110
+ }, 8, ["modelValue"]),
1111
+ vue.createVNode(_component_el_select, {
1112
+ modelValue: queryDeviceList.value.activatedManufacturer,
1113
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => queryDeviceList.value.activatedManufacturer = $event),
1114
+ clearable: "",
1115
+ style: { "width": "32%" },
1116
+ placeholder: "\u8BF7\u9009\u62E9\u5382\u5546",
1117
+ teleported: false
1118
+ }, {
1119
+ default: vue.withCtx(() => [
1120
+ (vue.openBlock(true), vue.createElementBlock(
1121
+ vue.Fragment,
1122
+ null,
1123
+ vue.renderList(configOptionsManufacturer.value, (item) => {
1124
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
1125
+ key: item.value,
1126
+ label: item.label,
1127
+ value: item.value
1128
+ }, null, 8, ["label", "value"]);
1129
+ }),
1130
+ 128
1131
+ /* KEYED_FRAGMENT */
1132
+ ))
1133
+ ]),
1134
+ _: 1
1135
+ /* STABLE */
1136
+ }, 8, ["modelValue"]),
1137
+ activatedList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
1138
+ _cache[6] || (_cache[6] = vue.createElementVNode(
1139
+ "span",
1140
+ { class: "col-span-1" },
1141
+ "\u56FE\u6807",
1142
+ -1
1143
+ /* CACHED */
1144
+ )),
1145
+ _cache[7] || (_cache[7] = vue.createElementVNode(
1146
+ "span",
1147
+ { class: "col-span-4" },
1148
+ "\u7F16\u53F7",
1149
+ -1
1150
+ /* CACHED */
1151
+ )),
1152
+ vue.createCommentVNode(' <span class="col-span-2 text-center">\u697C\u5C42</span> '),
1153
+ vue.createElementVNode(
1154
+ "span",
1155
+ _hoisted_15,
1156
+ vue.toDisplayString(list_title.value === "\u8BBE\u5907\u4FE1\u606F\u5217\u8868" ? "\u8BBE\u5907\u7C7B\u578B" : "\u8BBE\u65BD\u7C7B\u578B"),
1157
+ 1
1158
+ /* TEXT */
1159
+ ),
1160
+ _cache[8] || (_cache[8] = vue.createElementVNode(
1161
+ "span",
1162
+ { class: "col-span-3" },
1163
+ "\u4F4D\u7F6E",
1164
+ -1
1165
+ /* CACHED */
1166
+ ))
1167
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, _cache[9] || (_cache[9] = [
1168
+ vue.createElementVNode(
1169
+ "span",
1170
+ { class: "col-span-1" },
1171
+ "\u5E8F\u53F7",
1172
+ -1
1173
+ /* CACHED */
1174
+ ),
1175
+ vue.createElementVNode(
1176
+ "span",
1177
+ { class: "col-span-1" },
1178
+ "\u56FE\u6807",
1179
+ -1
1180
+ /* CACHED */
1181
+ ),
1182
+ vue.createElementVNode(
1183
+ "span",
1184
+ { class: "col-span-8" },
1185
+ "\u540D\u79F0",
1186
+ -1
1187
+ /* CACHED */
1188
+ ),
1189
+ vue.createElementVNode(
1190
+ "span",
1191
+ { class: "col-span-2" },
1192
+ "\u64CD\u4F5C",
1193
+ -1
1194
+ /* CACHED */
1195
+ )
1196
+ ]))),
1197
+ activatedList.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
1198
+ vue.createCommentVNode(" {{ listUnitDevice.length }} "),
1199
+ (vue.openBlock(true), vue.createElementBlock(
1200
+ vue.Fragment,
1201
+ null,
1202
+ vue.renderList(listUnitDevice.value, (item, index) => {
1203
+ return vue.openBlock(), vue.createElementBlock("div", {
1204
+ key: index,
1205
+ class: "grid gap-1 mt-4 px-3.5 w-full grid-cols-12",
1206
+ title: item.deviceTypeName
1207
+ }, [
1208
+ vue.createElementVNode("span", _hoisted_19, [
1209
+ vue.createVNode(DragIcon_vue_vue_type_script_setup_true_lang.default, {
1210
+ icon: configIcon.value[item.code] || vue.unref(___.default),
1211
+ item,
1212
+ "map-ref": rrefMap.value,
1213
+ move1: move1.value,
1214
+ onDragstart: dragStart,
1215
+ onDragend: dragEnd
1216
+ }, null, 8, ["icon", "item", "map-ref", "move1"])
1217
+ ]),
1218
+ vue.createElementVNode(
1219
+ "span",
1220
+ _hoisted_20,
1221
+ vue.toDisplayString(item.code),
1222
+ 1
1223
+ /* TEXT */
1224
+ ),
1225
+ vue.createElementVNode("span", {
1226
+ class: "col-span-4 break-words",
1227
+ title: item.remark || item.deviceTypeName || item.videoName
1228
+ }, vue.toDisplayString(item.remark || item.deviceTypeName || item.videoName), 9, _hoisted_21),
1229
+ vue.createElementVNode("span", {
1230
+ class: "col-span-3 break-words",
1231
+ title: item.locationDesc
1232
+ }, vue.toDisplayString(item.locationDesc || item.addressDesc), 9, _hoisted_22)
1233
+ ], 8, _hoisted_18);
1234
+ }),
1235
+ 128
1236
+ /* KEYED_FRAGMENT */
1237
+ ))
1238
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
1239
+ (vue.openBlock(true), vue.createElementBlock(
1240
+ vue.Fragment,
1241
+ null,
1242
+ vue.renderList(activatedArrayFeatures.value, (item, index) => {
1243
+ return vue.openBlock(), vue.createElementBlock("div", {
1244
+ key: item,
1245
+ class: "grid gap-1 mt-4 px-3.5 w-full grid-cols-12"
1246
+ }, [
1247
+ vue.createElementVNode(
1248
+ "span",
1249
+ _hoisted_24,
1250
+ vue.toDisplayString(index + 1),
1251
+ 1
1252
+ /* TEXT */
1253
+ ),
1254
+ vue.createElementVNode("span", _hoisted_25, [
1255
+ item.values_.geometry.getType() === "Point" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26)) : (vue.openBlock(), vue.createElementBlock(
1256
+ "div",
1257
+ {
1258
+ key: 1,
1259
+ class: "!w-8 h-full",
1260
+ style: vue.normalizeStyle(`background-color:${item.values_.color}`)
1261
+ },
1262
+ null,
1263
+ 4
1264
+ /* STYLE */
1265
+ ))
1266
+ ]),
1267
+ vue.createElementVNode("span", _hoisted_27, [
1268
+ item.values_.geometry.getType() === "Point" ? (vue.openBlock(), vue.createBlock(_component_el_input, {
1269
+ key: 0,
1270
+ modelValue: item.values_.type,
1271
+ "onUpdate:modelValue": /* @__PURE__ */ __name(($event) => item.values_.type = $event, "onUpdate:modelValue"),
1272
+ size: "large",
1273
+ clearable: ""
1274
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (vue.openBlock(), vue.createBlock(_component_el_input, {
1275
+ key: 1,
1276
+ modelValue: item.values_.text,
1277
+ "onUpdate:modelValue": /* @__PURE__ */ __name(($event) => item.values_.text = $event, "onUpdate:modelValue"),
1278
+ size: "large",
1279
+ clearable: "",
1280
+ onChange: /* @__PURE__ */ __name(($event) => updateFeatureStyle(item), "onChange")
1281
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"]))
1282
+ ]),
1283
+ vue.createElementVNode("span", {
1284
+ class: "flex items-center justify-center col-span-2 cursor-pointer",
1285
+ onClick: /* @__PURE__ */ __name(($event) => deleteFeature(item), "onClick")
1286
+ }, _cache[10] || (_cache[10] = [
1287
+ vue.createElementVNode(
1288
+ "i",
1289
+ { class: "iconfont icon-shanchu" },
1290
+ null,
1291
+ -1
1292
+ /* CACHED */
1293
+ )
1294
+ ]), 8, _hoisted_28)
1295
+ ]);
1296
+ }),
1297
+ 128
1298
+ /* KEYED_FRAGMENT */
1299
+ ))
1300
+ ]))
1301
+ ]),
1302
+ _: 1
1303
+ /* STABLE */
1304
+ }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
1305
+ listFloor.value.length > 0 && activatedFloor.value ? (vue.openBlock(), vue.createBlock(openMap_vue_vue_type_script_setup_true_lang.default, {
1306
+ key: 3,
1307
+ ref_key: "rrefMap",
1308
+ ref: rrefMap,
1309
+ "api-key": "AjtUzWJBHlI3Ma_Ke6Qv2fGRXEs0ua5hUQi54ECwfXTiWsitll4AkETZDihjcfeI",
1310
+ center: center.value,
1311
+ zoom: zoom.value,
1312
+ projection: projection.value,
1313
+ "img-url": imgUrl.value,
1314
+ size: size.value,
1315
+ extent: extent.value,
1316
+ "config-menu-items": configMenuItems.value,
1317
+ "activated-bottom-bar": activatedBottomBar.value,
1318
+ onReady: handleMapReady,
1319
+ _waring: hasWaring.value ? _waring.value : null,
1320
+ "activated-position-overlay-waring": activatedPositionOverlayWaring.value,
1321
+ "activated-position-overlay": activatedPositionOverlay.value,
1322
+ "activated-properties-overlay": activatedPropertiesOverlay.value,
1323
+ list_title: list_title.value,
1324
+ "alarm-type": alarmType.value,
1325
+ "svg-overlay": vue.unref(___$1.default),
1326
+ "waring-icon": vue.unref(waring.default),
1327
+ FnUpdateDrawFeature,
1328
+ FnUpdateDrawFeature2,
1329
+ FnOverrideStyle
1330
+ }, {
1331
+ overlay: vue.withCtx(() => {
1332
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
1333
+ return [
1334
+ activatedPropertiesOverlay.value.type && list_title.value === "\u8BBE\u5907\u4FE1\u606F\u5217\u8868" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_29, [
1335
+ vue.createElementVNode("img", {
1336
+ src: vue.unref(___$1.default),
1337
+ alt: "",
1338
+ class: "absolute w-full h-full"
1339
+ }, null, 8, _hoisted_30),
1340
+ vue.createElementVNode(
1341
+ "div",
1342
+ _hoisted_31,
1343
+ " \u8BBE\u5907\u7F16\u7801\uFF1A " + vue.toDisplayString((_a = activatedPropertiesOverlay.value.other) == null ? void 0 : _a.code),
1344
+ 1
1345
+ /* TEXT */
1346
+ ),
1347
+ vue.createElementVNode(
1348
+ "div",
1349
+ _hoisted_32,
1350
+ " \u521B\u5EFA\u65E5\u671F\uFF1A " + vue.toDisplayString((_b = activatedPropertiesOverlay.value.other) == null ? void 0 : _b.createTime),
1351
+ 1
1352
+ /* TEXT */
1353
+ ),
1354
+ vue.createElementVNode("div", _hoisted_33, [
1355
+ _cache[11] || (_cache[11] = vue.createTextVNode(
1356
+ " \u8BBE\u5907\u4F4D\u7F6E\uFF1A ",
1357
+ -1
1358
+ /* CACHED */
1359
+ )),
1360
+ vue.createElementVNode("div", {
1361
+ class: "w-52 flex justify-start items-center text-gradient2 truncate ...",
1362
+ title: ((_c = activatedPropertiesOverlay.value.other) == null ? void 0 : _c.videoName) || ((_d = activatedPropertiesOverlay.value.other) == null ? void 0 : _d.addressDesc)
1363
+ }, vue.toDisplayString(alarmType.value === "video" ? (_e = activatedPropertiesOverlay.value.other) == null ? void 0 : _e.videoName : (_f = activatedPropertiesOverlay.value.other) == null ? void 0 : _f.addressDesc), 9, _hoisted_34)
1364
+ ]),
1365
+ vue.createElementVNode("div", _hoisted_35, [
1366
+ _cache[12] || (_cache[12] = vue.createTextVNode(
1367
+ " \u8BBE\u5907\u7C7B\u578B\uFF1A ",
1368
+ -1
1369
+ /* CACHED */
1370
+ )),
1371
+ vue.createElementVNode("div", {
1372
+ class: "w-52 flex justify-start items-center text-gradient2 truncate ...",
1373
+ title: ((_g = activatedPropertiesOverlay.value.other) == null ? void 0 : _g.remark) || ((_h = activatedPropertiesOverlay.value.other) == null ? void 0 : _h.deviceTypeName) || ((_i = activatedPropertiesOverlay.value.other) == null ? void 0 : _i.facilityTypeName)
1374
+ }, vue.toDisplayString(alarmType.value === "video" ? "\u6444\u50CF\u5934" : ((_j = activatedPropertiesOverlay.value.other) == null ? void 0 : _j.remark) || ((_k = activatedPropertiesOverlay.value.other) == null ? void 0 : _k.facilityTypeName) || ((_l = activatedPropertiesOverlay.value.other) == null ? void 0 : _l.deviceTypeName)), 9, _hoisted_36)
1375
+ ])
1376
+ ])) : vue.createCommentVNode("v-if", true),
1377
+ vue.createCommentVNode(" \u8BBE\u65BD\u4FE1\u606F\u5F39\u7A97 "),
1378
+ activatedPropertiesOverlay.value.type && list_title.value === "\u8BBE\u65BD\u4FE1\u606F\u5217\u8868" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_37, [
1379
+ vue.createElementVNode("img", {
1380
+ src: vue.unref(___$1.default),
1381
+ alt: "",
1382
+ class: "absolute w-full h-full"
1383
+ }, null, 8, _hoisted_38),
1384
+ vue.createElementVNode(
1385
+ "div",
1386
+ _hoisted_39,
1387
+ " \u8BBE\u65BD\u7F16\u7801\uFF1A " + vue.toDisplayString((_m = activatedPropertiesOverlay.value.other) == null ? void 0 : _m.code),
1388
+ 1
1389
+ /* TEXT */
1390
+ ),
1391
+ vue.createElementVNode(
1392
+ "div",
1393
+ _hoisted_40,
1394
+ " \u521B\u5EFA\u65E5\u671F\uFF1A " + vue.toDisplayString((_n = activatedPropertiesOverlay.value.other) == null ? void 0 : _n.createTime),
1395
+ 1
1396
+ /* TEXT */
1397
+ ),
1398
+ vue.createElementVNode(
1399
+ "div",
1400
+ _hoisted_41,
1401
+ " \u8BBE\u65BD\u578B\u53F7\uFF1A " + vue.toDisplayString((_o = activatedPropertiesOverlay.value.other) == null ? void 0 : _o.deviceModelName),
1402
+ 1
1403
+ /* TEXT */
1404
+ ),
1405
+ vue.createElementVNode(
1406
+ "div",
1407
+ _hoisted_42,
1408
+ " \u8BBE\u65BD\u5382\u5546\uFF1A " + vue.toDisplayString((_p = activatedPropertiesOverlay.value.other) == null ? void 0 : _p.manufacturerName),
1409
+ 1
1410
+ /* TEXT */
1411
+ )
1412
+ ])) : vue.createCommentVNode("v-if", true)
1413
+ ];
1414
+ }),
1415
+ _: 1
1416
+ /* STABLE */
1417
+ }, 8, ["center", "zoom", "projection", "img-url", "size", "extent", "config-menu-items", "activated-bottom-bar", "_waring", "activated-position-overlay-waring", "activated-position-overlay", "activated-properties-overlay", "list_title", "alarm-type", "svg-overlay", "waring-icon"])) : (vue.openBlock(), vue.createElementBlock("img", {
1418
+ key: 4,
1419
+ src: vue.unref(_default.default),
1420
+ alt: "\u9ED8\u8BA4\u5E95\u56FE",
1421
+ style: vue.normalizeStyle({ width: `${size.value[0]}px`, height: `${size.value[1]}px` })
1422
+ }, null, 12, _hoisted_43))
1423
+ ]);
1424
+ };
1425
+ }
1426
+ });
1427
+
1428
+ exports.default = _sfc_main;
1429
+ //# sourceMappingURL=geoMark.vue2.js.map