@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.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 (36) hide show
  1. package/dist/{AnnotationTool-BvFG1vTX.mjs → AnnotationTool-CgiAUuLM.mjs} +12 -12
  2. package/dist/BIMX_Viewer_Lib.es.js +4 -4
  3. package/dist/BIMX_Viewer_Lib.umd.js +86 -91
  4. package/dist/CommentTool-BeT1ECI-.mjs +338 -0
  5. package/dist/HiddenTool-qqISJ_uV.mjs +58 -0
  6. package/dist/InspectorTool-CLPjV6WW.mjs +609 -0
  7. package/dist/MeasureTool-Be-rmUeb.mjs +1540 -0
  8. package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-C-VsKB0k.mjs} +7 -7
  9. package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-DdHBNeVg.mjs} +20 -20
  10. package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-Da7D2dkW.mjs} +67 -67
  11. package/dist/SectionTool-CHcmUQul.mjs +624 -0
  12. package/dist/SettingTool-CkR1F4x_.mjs +525 -0
  13. package/dist/StructureTree-DBu9xTue.mjs +1438 -0
  14. package/dist/{debounce-Cg3LHv0T.mjs → debounce-DLzt_q3i.mjs} +13 -13
  15. package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-DsUGOsl_.mjs} +46 -46
  16. package/dist/{el-input-Bwqgf3wZ.mjs → el-input-UdjCNTtW.mjs} +66 -68
  17. package/dist/{el-input-number-0OWyX276.mjs → el-input-number-ySU-dVGM.mjs} +75 -75
  18. package/dist/{index-CQ8depiU.mjs → index-BfLgpvcd.mjs} +3 -3
  19. package/dist/{index-CYEu_kT4.mjs → index-DQKkZiNH.mjs} +1 -1
  20. package/dist/{index-DX-eYsBm.mjs → index-DyFDTMAw.mjs} +1795 -1794
  21. package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BWlMaoTp.mjs} +9 -9
  22. package/dist/panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs +96 -0
  23. package/dist/style.css +1 -1
  24. package/dist/tallPanel-Cz_n6AsB.mjs +49 -0
  25. package/package.json +1 -1
  26. package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
  27. package/types/services/fileApi/fileManager.d.ts +5 -5
  28. package/types/store/themeManager.d.ts +1 -1
  29. package/dist/CommentTool-B6ruuuGV.mjs +0 -338
  30. package/dist/HiddenTool-DW-lRdW5.mjs +0 -58
  31. package/dist/InspectorTool-Cc288ySp.mjs +0 -515
  32. package/dist/MeasureTool-DdfM3U_3.mjs +0 -1542
  33. package/dist/SectionTool-jSjWX32j.mjs +0 -630
  34. package/dist/SettingTool-CVMZAx2H.mjs +0 -536
  35. package/dist/StructureTree-4OCdRRPG.mjs +0 -2672
  36. package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs +0 -82
@@ -0,0 +1,1540 @@
1
+ import { o as It, p as yl, q as Et, t as kt, s as Cl, v as Sl, x as wl, y as et, z as tt, c as Y, d as Rt, A as Ol, u as pe, _ as we, w as Dt, i as re, C as $t, D as te, F as ne, G as Ae, H as Ct, I as Ml, J as Qe, E as Tl, e as Vl, K as _e, L as Il, M as El, N as kl, m as Bt, P as Rl, Q as Dl, R as At, j as $l, T as Ye, l as Bl, k as x, O as Je, V as Al } from "./index-DyFDTMAw.mjs";
2
+ import { _ as _l } from "./panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs";
3
+ import { c as Ll, u as _t, E as je, b as Pl, d as Nl, e as Fl, f as Hl, V as zl, U as ue, C as Lt, g as Wl, i as St, a as Kl } from "./el-input-UdjCNTtW.mjs";
4
+ import { getCurrentInstance as Le, inject as Se, ref as T, computed as g, defineComponent as J, openBlock as f, createElementBlock as M, normalizeClass as h, unref as R, normalizeStyle as fe, createElementVNode as u, renderSlot as _, createBlock as F, withModifiers as N, withCtx as $, createVNode as L, createCommentVNode as B, Transition as Ul, toRaw as Pt, watch as se, reactive as Pe, toRefs as Nt, onBeforeUnmount as Gl, nextTick as le, withDirectives as Ce, toDisplayString as H, vShow as lt, onMounted as Ne, watchEffect as ql, provide as Ft, resolveComponent as ee, resolveDirective as Ql, toHandlerKey as Yl, Fragment as ce, renderList as de, createTextVNode as wt, withKeys as ye, vModelText as Jl, resolveDynamicComponent as Xe } from "vue";
5
+ import { M as Ot } from "./const-CbUmfuHy.mjs";
6
+ import { Close as Mt, CircleClose as Xl, ArrowDown as jl } from "@element-plus/icons-vue";
7
+ import { s as Fe, a as Ht } from "./token-UNVJeAU8.mjs";
8
+ import { g as q, u as Zl } from "./index-BfLgpvcd.mjs";
9
+ import { S as xl, b as zt, k as en, i as Ze } from "./isEqual-BWlMaoTp.mjs";
10
+ import { d as tn } from "./debounce-DLzt_q3i.mjs";
11
+ function ln(e, n, s, r) {
12
+ e.length;
13
+ for (var a = s + 1; a--; )
14
+ if (n(e[a], a, e))
15
+ return a;
16
+ return -1;
17
+ }
18
+ function Q() {
19
+ if (!arguments.length)
20
+ return [];
21
+ var e = arguments[0];
22
+ return It(e) ? e : [e];
23
+ }
24
+ var nn = 1, sn = 2;
25
+ function on(e, n, s, r) {
26
+ var a = s.length, p = a;
27
+ if (e == null)
28
+ return !p;
29
+ for (e = Object(e); a--; ) {
30
+ var l = s[a];
31
+ if (l[2] ? l[1] !== e[l[0]] : !(l[0] in e))
32
+ return !1;
33
+ }
34
+ for (; ++a < p; ) {
35
+ l = s[a];
36
+ var d = l[0], i = e[d], v = l[1];
37
+ if (l[2]) {
38
+ if (i === void 0 && !(d in e))
39
+ return !1;
40
+ } else {
41
+ var b = new xl(), w;
42
+ if (!(w === void 0 ? zt(v, i, nn | sn, r, b) : w))
43
+ return !1;
44
+ }
45
+ }
46
+ return !0;
47
+ }
48
+ function Wt(e) {
49
+ return e === e && !yl(e);
50
+ }
51
+ function an(e) {
52
+ for (var n = en(e), s = n.length; s--; ) {
53
+ var r = n[s], a = e[r];
54
+ n[s] = [r, a, Wt(a)];
55
+ }
56
+ return n;
57
+ }
58
+ function Kt(e, n) {
59
+ return function(s) {
60
+ return s == null ? !1 : s[e] === n && (n !== void 0 || e in Object(s));
61
+ };
62
+ }
63
+ function un(e) {
64
+ var n = an(e);
65
+ return n.length == 1 && n[0][2] ? Kt(n[0][0], n[0][1]) : function(s) {
66
+ return s === e || on(s, e, n);
67
+ };
68
+ }
69
+ var rn = 1, cn = 2;
70
+ function dn(e, n) {
71
+ return Et(e) && Wt(n) ? Kt(kt(e), n) : function(s) {
72
+ var r = q(s, e);
73
+ return r === void 0 && r === n ? Cl(s, e) : zt(n, r, rn | cn);
74
+ };
75
+ }
76
+ function fn(e) {
77
+ return function(n) {
78
+ return n == null ? void 0 : n[e];
79
+ };
80
+ }
81
+ function pn(e) {
82
+ return function(n) {
83
+ return Sl(n, e);
84
+ };
85
+ }
86
+ function vn(e) {
87
+ return Et(e) ? fn(kt(e)) : pn(e);
88
+ }
89
+ function mn(e) {
90
+ return typeof e == "function" ? e : e == null ? wl : typeof e == "object" ? It(e) ? dn(e[0], e[1]) : un(e) : vn(e);
91
+ }
92
+ function hn(e, n, s) {
93
+ var r = e == null ? 0 : e.length;
94
+ if (!r)
95
+ return -1;
96
+ var a = r - 1;
97
+ return ln(e, mn(n), a);
98
+ }
99
+ const gn = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
100
+ function bn(e, n) {
101
+ if (!et)
102
+ return;
103
+ if (!n) {
104
+ e.scrollTop = 0;
105
+ return;
106
+ }
107
+ const s = [];
108
+ let r = n.offsetParent;
109
+ for (; r !== null && e !== r && e.contains(r); )
110
+ s.push(r), r = r.offsetParent;
111
+ const a = n.offsetTop + s.reduce((i, v) => i + v.offsetTop, 0), p = a + n.offsetHeight, l = e.scrollTop, d = l + e.clientHeight;
112
+ a < l ? e.scrollTop = a : p > d && (e.scrollTop = p - e.clientHeight);
113
+ }
114
+ const yn = Symbol("emptyValuesContextKey"), Cn = "use-empty-values", Sn = ["", void 0, null], wn = void 0, On = tt({
115
+ emptyValues: Array,
116
+ valueOnClear: {
117
+ type: [String, Number, Boolean, Function],
118
+ default: void 0,
119
+ validator: (e) => Y(e) ? !e() : !e
120
+ }
121
+ }), Mn = (e, n) => {
122
+ const s = Le() ? Se(yn, T({})) : T({}), r = g(() => e.emptyValues || s.value.emptyValues || Sn), a = g(() => Y(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : Y(s.value.valueOnClear) ? s.value.valueOnClear() : s.value.valueOnClear !== void 0 ? s.value.valueOnClear : wn), p = (l) => r.value.includes(l);
123
+ return r.value.includes(a.value) || Rt(Cn, "value-on-clear should be a value of empty-values"), {
124
+ emptyValues: r,
125
+ valueOnClear: a,
126
+ isEmptyValue: p
127
+ };
128
+ }, G = /* @__PURE__ */ new Map();
129
+ if (et) {
130
+ let e;
131
+ document.addEventListener("mousedown", (n) => e = n), document.addEventListener("mouseup", (n) => {
132
+ if (e) {
133
+ for (const s of G.values())
134
+ for (const { documentHandler: r } of s)
135
+ r(n, e);
136
+ e = void 0;
137
+ }
138
+ });
139
+ }
140
+ function Tt(e, n) {
141
+ let s = [];
142
+ return Array.isArray(n.arg) ? s = n.arg : Ol(n.arg) && s.push(n.arg), function(r, a) {
143
+ const p = n.instance.popperRef, l = r.target, d = a == null ? void 0 : a.target, i = !n || !n.instance, v = !l || !d, b = e.contains(l) || e.contains(d), w = e === l, V = s.length && s.some((S) => S == null ? void 0 : S.contains(l)) || s.length && s.includes(d), y = p && (p.contains(l) || p.contains(d));
144
+ i || v || b || w || V || y || n.value(r, a);
145
+ };
146
+ }
147
+ const Tn = {
148
+ beforeMount(e, n) {
149
+ G.has(e) || G.set(e, []), G.get(e).push({
150
+ documentHandler: Tt(e, n),
151
+ bindingFn: n.value
152
+ });
153
+ },
154
+ updated(e, n) {
155
+ G.has(e) || G.set(e, []);
156
+ const s = G.get(e), r = s.findIndex((p) => p.bindingFn === n.oldValue), a = {
157
+ documentHandler: Tt(e, n),
158
+ bindingFn: n.value
159
+ };
160
+ r >= 0 ? s.splice(r, 1, a) : s.push(a);
161
+ },
162
+ unmounted(e) {
163
+ G.delete(e);
164
+ }
165
+ }, xe = tt({
166
+ type: {
167
+ type: String,
168
+ values: ["primary", "success", "info", "warning", "danger"],
169
+ default: "primary"
170
+ },
171
+ closable: Boolean,
172
+ disableTransitions: Boolean,
173
+ hit: Boolean,
174
+ color: String,
175
+ size: {
176
+ type: String,
177
+ values: Ll
178
+ },
179
+ effect: {
180
+ type: String,
181
+ values: ["dark", "light", "plain"],
182
+ default: "light"
183
+ },
184
+ round: Boolean
185
+ }), Vn = {
186
+ close: (e) => e instanceof MouseEvent,
187
+ click: (e) => e instanceof MouseEvent
188
+ }, In = J({
189
+ name: "ElTag"
190
+ }), En = /* @__PURE__ */ J({
191
+ ...In,
192
+ props: xe,
193
+ emits: Vn,
194
+ setup(e, { emit: n }) {
195
+ const s = e, r = _t(), a = pe("tag"), p = g(() => {
196
+ const { type: i, hit: v, effect: b, closable: w, round: V } = s;
197
+ return [
198
+ a.b(),
199
+ a.is("closable", w),
200
+ a.m(i || "primary"),
201
+ a.m(r.value),
202
+ a.m(b),
203
+ a.is("hit", v),
204
+ a.is("round", V)
205
+ ];
206
+ }), l = (i) => {
207
+ n("close", i);
208
+ }, d = (i) => {
209
+ n("click", i);
210
+ };
211
+ return (i, v) => i.disableTransitions ? (f(), M("span", {
212
+ key: 0,
213
+ class: h(R(p)),
214
+ style: fe({ backgroundColor: i.color }),
215
+ onClick: d
216
+ }, [
217
+ u("span", {
218
+ class: h(R(a).e("content"))
219
+ }, [
220
+ _(i.$slots, "default")
221
+ ], 2),
222
+ i.closable ? (f(), F(R(je), {
223
+ key: 0,
224
+ class: h(R(a).e("close")),
225
+ onClick: N(l, ["stop"])
226
+ }, {
227
+ default: $(() => [
228
+ L(R(Mt))
229
+ ]),
230
+ _: 1
231
+ }, 8, ["class", "onClick"])) : B("v-if", !0)
232
+ ], 6)) : (f(), F(Ul, {
233
+ key: 1,
234
+ name: `${R(a).namespace.value}-zoom-in-center`,
235
+ appear: ""
236
+ }, {
237
+ default: $(() => [
238
+ u("span", {
239
+ class: h(R(p)),
240
+ style: fe({ backgroundColor: i.color }),
241
+ onClick: d
242
+ }, [
243
+ u("span", {
244
+ class: h(R(a).e("content"))
245
+ }, [
246
+ _(i.$slots, "default")
247
+ ], 2),
248
+ i.closable ? (f(), F(R(je), {
249
+ key: 0,
250
+ class: h(R(a).e("close")),
251
+ onClick: N(l, ["stop"])
252
+ }, {
253
+ default: $(() => [
254
+ L(R(Mt))
255
+ ]),
256
+ _: 1
257
+ }, 8, ["class", "onClick"])) : B("v-if", !0)
258
+ ], 6)
259
+ ]),
260
+ _: 3
261
+ }, 8, ["name"]));
262
+ }
263
+ });
264
+ var kn = /* @__PURE__ */ we(En, [["__file", "tag.vue"]]);
265
+ const Rn = Dt(kn);
266
+ function Dn(e, n) {
267
+ const s = Se(Fe), r = Se(Ht, { disabled: !1 }), a = g(() => b(Q(s.props.modelValue), e.value)), p = g(() => {
268
+ var y;
269
+ if (s.props.multiple) {
270
+ const S = Q((y = s.props.modelValue) != null ? y : []);
271
+ return !a.value && S.length >= s.props.multipleLimit && s.props.multipleLimit > 0;
272
+ } else
273
+ return !1;
274
+ }), l = g(() => e.label || (re(e.value) ? "" : e.value)), d = g(() => e.value || e.label || ""), i = g(() => e.disabled || n.groupDisabled || p.value), v = Le(), b = (y = [], S) => {
275
+ if (re(e.value)) {
276
+ const m = s.props.valueKey;
277
+ return y && y.some((k) => Pt(q(k, m)) === q(S, m));
278
+ } else
279
+ return y && y.includes(S);
280
+ }, w = () => {
281
+ !e.disabled && !r.disabled && (s.states.hoveringIndex = s.optionsArray.indexOf(v.proxy));
282
+ }, V = (y) => {
283
+ const S = new RegExp(gn(y), "i");
284
+ n.visible = S.test(l.value) || e.created;
285
+ };
286
+ return se(() => l.value, () => {
287
+ !e.created && !s.props.remote && s.setSelected();
288
+ }), se(() => e.value, (y, S) => {
289
+ const { remote: m, valueKey: k } = s.props;
290
+ if (y !== S && (s.onOptionDestroy(S, v.proxy), s.onOptionCreate(v.proxy)), !e.created && !m) {
291
+ if (k && re(y) && re(S) && y[k] === S[k])
292
+ return;
293
+ s.setSelected();
294
+ }
295
+ }), se(() => r.disabled, () => {
296
+ n.groupDisabled = r.disabled;
297
+ }, { immediate: !0 }), {
298
+ select: s,
299
+ currentLabel: l,
300
+ currentValue: d,
301
+ itemSelected: a,
302
+ isDisabled: i,
303
+ hoverItem: w,
304
+ updateOption: V
305
+ };
306
+ }
307
+ const $n = J({
308
+ name: "ElOption",
309
+ componentName: "ElOption",
310
+ props: {
311
+ value: {
312
+ required: !0,
313
+ type: [String, Number, Boolean, Object]
314
+ },
315
+ label: [String, Number],
316
+ created: Boolean,
317
+ disabled: Boolean
318
+ },
319
+ setup(e) {
320
+ const n = pe("select"), s = $t(), r = g(() => [
321
+ n.be("dropdown", "item"),
322
+ n.is("disabled", R(d)),
323
+ n.is("selected", R(l)),
324
+ n.is("hovering", R(V))
325
+ ]), a = Pe({
326
+ index: -1,
327
+ groupDisabled: !1,
328
+ visible: !0,
329
+ hover: !1
330
+ }), {
331
+ currentLabel: p,
332
+ itemSelected: l,
333
+ isDisabled: d,
334
+ select: i,
335
+ hoverItem: v,
336
+ updateOption: b
337
+ } = Dn(e, a), { visible: w, hover: V } = Nt(a), y = Le().proxy;
338
+ i.onOptionCreate(y), Gl(() => {
339
+ const m = y.value, { selected: k } = i.states, P = (i.props.multiple ? k : [k]).some((oe) => oe.value === y.value);
340
+ le(() => {
341
+ i.states.cachedOptions.get(m) === y && !P && i.states.cachedOptions.delete(m);
342
+ }), i.onOptionDestroy(m, y);
343
+ });
344
+ function S() {
345
+ d.value || i.handleOptionSelect(y);
346
+ }
347
+ return {
348
+ ns: n,
349
+ id: s,
350
+ containerKls: r,
351
+ currentLabel: p,
352
+ itemSelected: l,
353
+ isDisabled: d,
354
+ select: i,
355
+ hoverItem: v,
356
+ updateOption: b,
357
+ visible: w,
358
+ hover: V,
359
+ selectOptionClick: S,
360
+ states: a
361
+ };
362
+ }
363
+ });
364
+ function Bn(e, n, s, r, a, p) {
365
+ return Ce((f(), M("li", {
366
+ id: e.id,
367
+ class: h(e.containerKls),
368
+ role: "option",
369
+ "aria-disabled": e.isDisabled || void 0,
370
+ "aria-selected": e.itemSelected,
371
+ onMouseenter: e.hoverItem,
372
+ onClick: N(e.selectOptionClick, ["stop"])
373
+ }, [
374
+ _(e.$slots, "default", {}, () => [
375
+ u("span", null, H(e.currentLabel), 1)
376
+ ])
377
+ ], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"])), [
378
+ [lt, e.visible]
379
+ ]);
380
+ }
381
+ var nt = /* @__PURE__ */ we($n, [["render", Bn], ["__file", "option.vue"]]);
382
+ const An = J({
383
+ name: "ElSelectDropdown",
384
+ componentName: "ElSelectDropdown",
385
+ setup() {
386
+ const e = Se(Fe), n = pe("select"), s = g(() => e.props.popperClass), r = g(() => e.props.multiple), a = g(() => e.props.fitInputWidth), p = T("");
387
+ function l() {
388
+ var d;
389
+ p.value = `${(d = e.selectRef) == null ? void 0 : d.offsetWidth}px`;
390
+ }
391
+ return Ne(() => {
392
+ l(), te(e.selectRef, l);
393
+ }), {
394
+ ns: n,
395
+ minWidth: p,
396
+ popperClass: s,
397
+ isMultiple: r,
398
+ isFitInputWidth: a
399
+ };
400
+ }
401
+ });
402
+ function _n(e, n, s, r, a, p) {
403
+ return f(), M("div", {
404
+ class: h([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
405
+ style: fe({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
406
+ }, [
407
+ e.$slots.header ? (f(), M("div", {
408
+ key: 0,
409
+ class: h(e.ns.be("dropdown", "header"))
410
+ }, [
411
+ _(e.$slots, "header")
412
+ ], 2)) : B("v-if", !0),
413
+ _(e.$slots, "default"),
414
+ e.$slots.footer ? (f(), M("div", {
415
+ key: 1,
416
+ class: h(e.ns.be("dropdown", "footer"))
417
+ }, [
418
+ _(e.$slots, "footer")
419
+ ], 2)) : B("v-if", !0)
420
+ ], 6);
421
+ }
422
+ var Ln = /* @__PURE__ */ we(An, [["render", _n], ["__file", "select-dropdown.vue"]]);
423
+ const Pn = 11, Nn = (e, n) => {
424
+ const { t: s } = Zl(), r = $t(), a = pe("select"), p = pe("input"), l = Pe({
425
+ inputValue: "",
426
+ options: /* @__PURE__ */ new Map(),
427
+ cachedOptions: /* @__PURE__ */ new Map(),
428
+ disabledOptions: /* @__PURE__ */ new Map(),
429
+ optionValues: [],
430
+ selected: e.multiple ? [] : {},
431
+ selectionWidth: 0,
432
+ calculatorWidth: 0,
433
+ collapseItemWidth: 0,
434
+ selectedLabel: "",
435
+ hoveringIndex: -1,
436
+ previousQuery: null,
437
+ inputHovering: !1,
438
+ menuVisibleOnFocus: !1,
439
+ isBeforeHide: !1
440
+ }), d = T(null), i = T(null), v = T(null), b = T(null), w = T(null), V = T(null), y = T(null), S = T(null), m = T(null), k = T(null), X = T(null), P = T(null), {
441
+ isComposing: oe,
442
+ handleCompositionStart: Oe,
443
+ handleCompositionUpdate: Me,
444
+ handleCompositionEnd: K
445
+ } = Pl({
446
+ afterComposition: (t) => dt(t)
447
+ }), { wrapperRef: Te, isFocused: ve, handleBlur: He } = Nl(w, {
448
+ afterFocus() {
449
+ e.automaticDropdown && !E.value && (E.value = !0, l.menuVisibleOnFocus = !0);
450
+ },
451
+ beforeBlur(t) {
452
+ var o, C;
453
+ return ((o = v.value) == null ? void 0 : o.isFocusInsideContent(t)) || ((C = b.value) == null ? void 0 : C.isFocusInsideContent(t));
454
+ },
455
+ afterBlur() {
456
+ E.value = !1, l.menuVisibleOnFocus = !1;
457
+ }
458
+ }), E = T(!1), z = T(), { form: Ve, formItem: j } = Fl(), { inputId: ze } = Hl(e, {
459
+ formItemContext: j
460
+ }), { valueOnClear: We, isEmptyValue: Ke } = Mn(e), ae = g(() => e.disabled || (Ve == null ? void 0 : Ve.disabled)), me = g(() => ne(e.modelValue) ? e.modelValue.length > 0 : !Ke(e.modelValue)), c = g(() => e.clearable && !ae.value && l.inputHovering && me.value), D = g(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Ue = g(() => a.is("reverse", D.value && E.value)), he = g(() => (j == null ? void 0 : j.validateState) || ""), Ie = g(() => zl[he.value]), Ge = g(() => e.remote ? 300 : 0), Ee = g(() => e.loading ? e.loadingText || s("el.select.loading") : e.remote && !l.inputValue && l.options.size === 0 ? !1 : e.filterable && l.inputValue && l.options.size > 0 && O.value === 0 ? e.noMatchText || s("el.select.noMatch") : l.options.size === 0 ? e.noDataText || s("el.select.noData") : null), O = g(() => A.value.filter((t) => t.visible).length), A = g(() => {
461
+ const t = Array.from(l.options.values()), o = [];
462
+ return l.optionValues.forEach((C) => {
463
+ const I = t.findIndex((U) => U.value === C);
464
+ I > -1 && o.push(t[I]);
465
+ }), o.length >= t.length ? o : t;
466
+ }), Gt = g(() => Array.from(l.cachedOptions.values())), qt = g(() => {
467
+ const t = A.value.filter((o) => !o.created).some((o) => o.currentLabel === l.inputValue);
468
+ return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
469
+ }), st = () => {
470
+ e.filterable && Y(e.filterMethod) || e.filterable && e.remote && Y(e.remoteMethod) || A.value.forEach((t) => {
471
+ var o;
472
+ (o = t.updateOption) == null || o.call(t, l.inputValue);
473
+ });
474
+ }, ot = _t(), Qt = g(() => ["small"].includes(ot.value) ? "small" : "default"), Yt = g({
475
+ get() {
476
+ return E.value && Ee.value !== !1;
477
+ },
478
+ set(t) {
479
+ E.value = t;
480
+ }
481
+ }), Jt = g(() => {
482
+ if (e.multiple && !Ae(e.modelValue))
483
+ return Q(e.modelValue).length === 0 && !l.inputValue;
484
+ const t = ne(e.modelValue) ? e.modelValue[0] : e.modelValue;
485
+ return e.filterable || Ae(t) ? !l.inputValue : !0;
486
+ }), Xt = g(() => {
487
+ var t;
488
+ const o = (t = e.placeholder) != null ? t : s("el.select.placeholder");
489
+ return e.multiple || !me.value ? o : l.selectedLabel;
490
+ }), jt = g(() => Ct ? null : "mouseenter");
491
+ se(() => e.modelValue, (t, o) => {
492
+ e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", ke("")), Re(), !Ze(t, o) && e.validateEvent && (j == null || j.validate("change").catch((C) => Rt(C)));
493
+ }, {
494
+ flush: "post",
495
+ deep: !0
496
+ }), se(() => E.value, (t) => {
497
+ t ? ke(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0), n("visible-change", t);
498
+ }), se(() => l.options.entries(), () => {
499
+ var t;
500
+ if (!et)
501
+ return;
502
+ const o = ((t = d.value) == null ? void 0 : t.querySelectorAll("input")) || [];
503
+ (!e.filterable && !e.defaultFirstOption && !Ae(e.modelValue) || !Array.from(o).includes(document.activeElement)) && Re(), e.defaultFirstOption && (e.filterable || e.remote) && O.value && at();
504
+ }, {
505
+ flush: "post"
506
+ }), se(() => l.hoveringIndex, (t) => {
507
+ Ml(t) && t > -1 ? z.value = A.value[t] || {} : z.value = {}, A.value.forEach((o) => {
508
+ o.hover = z.value === o;
509
+ });
510
+ }), ql(() => {
511
+ l.isBeforeHide || st();
512
+ });
513
+ const ke = (t) => {
514
+ l.previousQuery === t || oe.value || (l.previousQuery = t, e.filterable && Y(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && Y(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && O.value ? le(at) : le(Zt));
515
+ }, at = () => {
516
+ const t = A.value.filter((I) => I.visible && !I.disabled && !I.states.groupDisabled), o = t.find((I) => I.created), C = t[0];
517
+ l.hoveringIndex = mt(A.value, o || C);
518
+ }, Re = () => {
519
+ if (e.multiple)
520
+ l.selectedLabel = "";
521
+ else {
522
+ const o = ne(e.modelValue) ? e.modelValue[0] : e.modelValue, C = it(o);
523
+ l.selectedLabel = C.currentLabel, l.selected = C;
524
+ return;
525
+ }
526
+ const t = [];
527
+ Ae(e.modelValue) || Q(e.modelValue).forEach((o) => {
528
+ t.push(it(o));
529
+ }), l.selected = t;
530
+ }, it = (t) => {
531
+ let o;
532
+ const C = Qe(t).toLowerCase() === "object", I = Qe(t).toLowerCase() === "null", U = Qe(t).toLowerCase() === "undefined";
533
+ for (let Z = l.cachedOptions.size - 1; Z >= 0; Z--) {
534
+ const W = Gt.value[Z];
535
+ if (C ? q(W.value, e.valueKey) === q(t, e.valueKey) : W.value === t) {
536
+ o = {
537
+ value: t,
538
+ currentLabel: W.currentLabel,
539
+ get isDisabled() {
540
+ return W.isDisabled;
541
+ }
542
+ };
543
+ break;
544
+ }
545
+ }
546
+ if (o)
547
+ return o;
548
+ const ie = C ? t.label : !I && !U ? t : "";
549
+ return {
550
+ value: t,
551
+ currentLabel: ie
552
+ };
553
+ }, Zt = () => {
554
+ e.multiple ? l.hoveringIndex = A.value.findIndex((t) => l.selected.some((o) => be(o) === be(t))) : l.hoveringIndex = A.value.findIndex((t) => be(t) === be(l.selected));
555
+ }, xt = () => {
556
+ l.selectionWidth = i.value.getBoundingClientRect().width;
557
+ }, ut = () => {
558
+ l.calculatorWidth = V.value.getBoundingClientRect().width;
559
+ }, el = () => {
560
+ l.collapseItemWidth = X.value.getBoundingClientRect().width;
561
+ }, qe = () => {
562
+ var t, o;
563
+ (o = (t = v.value) == null ? void 0 : t.updatePopper) == null || o.call(t);
564
+ }, rt = () => {
565
+ var t, o;
566
+ (o = (t = b.value) == null ? void 0 : t.updatePopper) == null || o.call(t);
567
+ }, ct = () => {
568
+ l.inputValue.length > 0 && !E.value && (E.value = !0), ke(l.inputValue);
569
+ }, dt = (t) => {
570
+ if (l.inputValue = t.target.value, e.remote)
571
+ ft();
572
+ else
573
+ return ct();
574
+ }, ft = tn(() => {
575
+ ct();
576
+ }, Ge.value), ge = (t) => {
577
+ Ze(e.modelValue, t) || n(Lt, t);
578
+ }, tl = (t) => hn(t, (o) => !l.disabledOptions.has(o)), ll = (t) => {
579
+ if (e.multiple && t.code !== Tl.delete && t.target.value.length <= 0) {
580
+ const o = Q(e.modelValue).slice(), C = tl(o);
581
+ if (C < 0)
582
+ return;
583
+ const I = o[C];
584
+ o.splice(C, 1), n(ue, o), ge(o), n("remove-tag", I);
585
+ }
586
+ }, nl = (t, o) => {
587
+ const C = l.selected.indexOf(o);
588
+ if (C > -1 && !ae.value) {
589
+ const I = Q(e.modelValue).slice();
590
+ I.splice(C, 1), n(ue, I), ge(I), n("remove-tag", o.value);
591
+ }
592
+ t.stopPropagation(), $e();
593
+ }, pt = (t) => {
594
+ t.stopPropagation();
595
+ const o = e.multiple ? [] : We.value;
596
+ if (e.multiple)
597
+ for (const C of l.selected)
598
+ C.isDisabled && o.push(C.value);
599
+ n(ue, o), ge(o), l.hoveringIndex = -1, E.value = !1, n("clear"), $e();
600
+ }, vt = (t) => {
601
+ var o;
602
+ if (e.multiple) {
603
+ const C = Q((o = e.modelValue) != null ? o : []).slice(), I = mt(C, t.value);
604
+ I > -1 ? C.splice(I, 1) : (e.multipleLimit <= 0 || C.length < e.multipleLimit) && C.push(t.value), n(ue, C), ge(C), t.created && ke(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
605
+ } else
606
+ n(ue, t.value), ge(t.value), E.value = !1;
607
+ $e(), !E.value && le(() => {
608
+ De(t);
609
+ });
610
+ }, mt = (t = [], o) => {
611
+ if (!re(o))
612
+ return t.indexOf(o);
613
+ const C = e.valueKey;
614
+ let I = -1;
615
+ return t.some((U, ie) => Pt(q(U, C)) === q(o, C) ? (I = ie, !0) : !1), I;
616
+ }, De = (t) => {
617
+ var o, C, I, U, ie;
618
+ const Be = ne(t) ? t[0] : t;
619
+ let Z = null;
620
+ if (Be != null && Be.value) {
621
+ const W = A.value.filter((yt) => yt.value === Be.value);
622
+ W.length > 0 && (Z = W[0].$el);
623
+ }
624
+ if (v.value && Z) {
625
+ const W = (U = (I = (C = (o = v.value) == null ? void 0 : o.popperRef) == null ? void 0 : C.contentRef) == null ? void 0 : I.querySelector) == null ? void 0 : U.call(I, `.${a.be("dropdown", "wrap")}`);
626
+ W && bn(W, Z);
627
+ }
628
+ (ie = P.value) == null || ie.handleScroll();
629
+ }, sl = (t) => {
630
+ l.options.set(t.value, t), l.cachedOptions.set(t.value, t), t.disabled && l.disabledOptions.set(t.value, t);
631
+ }, ol = (t, o) => {
632
+ l.options.get(t) === o && l.options.delete(t);
633
+ }, al = g(() => {
634
+ var t, o;
635
+ return (o = (t = v.value) == null ? void 0 : t.popperRef) == null ? void 0 : o.contentRef;
636
+ }), il = () => {
637
+ l.isBeforeHide = !1, le(() => De(l.selected));
638
+ }, $e = () => {
639
+ var t;
640
+ (t = w.value) == null || t.focus();
641
+ }, ul = () => {
642
+ ht();
643
+ }, rl = (t) => {
644
+ pt(t);
645
+ }, ht = (t) => {
646
+ if (E.value = !1, ve.value) {
647
+ const o = new FocusEvent("focus", t);
648
+ le(() => He(o));
649
+ }
650
+ }, cl = () => {
651
+ l.inputValue.length > 0 ? l.inputValue = "" : E.value = !1;
652
+ }, gt = () => {
653
+ ae.value || (Ct && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : E.value = !E.value);
654
+ }, dl = () => {
655
+ E.value ? A.value[l.hoveringIndex] && vt(A.value[l.hoveringIndex]) : gt();
656
+ }, be = (t) => re(t.value) ? q(t.value, e.valueKey) : t.value, fl = g(() => A.value.filter((t) => t.visible).every((t) => t.disabled)), pl = g(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), vl = g(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), bt = (t) => {
657
+ if (!E.value) {
658
+ E.value = !0;
659
+ return;
660
+ }
661
+ if (!(l.options.size === 0 || l.filteredOptionsCount === 0 || oe.value) && !fl.value) {
662
+ t === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : t === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
663
+ const o = A.value[l.hoveringIndex];
664
+ (o.disabled === !0 || o.states.groupDisabled === !0 || !o.visible) && bt(t), le(() => De(z.value));
665
+ }
666
+ }, ml = () => {
667
+ if (!i.value)
668
+ return 0;
669
+ const t = window.getComputedStyle(i.value);
670
+ return Number.parseFloat(t.gap || "6px");
671
+ }, hl = g(() => {
672
+ const t = ml();
673
+ return { maxWidth: `${X.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t : l.selectionWidth}px` };
674
+ }), gl = g(() => ({ maxWidth: `${l.selectionWidth}px` })), bl = g(() => ({
675
+ width: `${Math.max(l.calculatorWidth, Pn)}px`
676
+ }));
677
+ return te(i, xt), te(V, ut), te(m, qe), te(Te, qe), te(k, rt), te(X, el), Ne(() => {
678
+ Re();
679
+ }), {
680
+ inputId: ze,
681
+ contentId: r,
682
+ nsSelect: a,
683
+ nsInput: p,
684
+ states: l,
685
+ isFocused: ve,
686
+ expanded: E,
687
+ optionsArray: A,
688
+ hoverOption: z,
689
+ selectSize: ot,
690
+ filteredOptionsCount: O,
691
+ resetCalculatorWidth: ut,
692
+ updateTooltip: qe,
693
+ updateTagTooltip: rt,
694
+ debouncedOnInputChange: ft,
695
+ onInput: dt,
696
+ deletePrevTag: ll,
697
+ deleteTag: nl,
698
+ deleteSelected: pt,
699
+ handleOptionSelect: vt,
700
+ scrollToOption: De,
701
+ hasModelValue: me,
702
+ shouldShowPlaceholder: Jt,
703
+ currentPlaceholder: Xt,
704
+ mouseEnterEventName: jt,
705
+ showClose: c,
706
+ iconComponent: D,
707
+ iconReverse: Ue,
708
+ validateState: he,
709
+ validateIcon: Ie,
710
+ showNewOption: qt,
711
+ updateOptions: st,
712
+ collapseTagSize: Qt,
713
+ setSelected: Re,
714
+ selectDisabled: ae,
715
+ emptyText: Ee,
716
+ handleCompositionStart: Oe,
717
+ handleCompositionUpdate: Me,
718
+ handleCompositionEnd: K,
719
+ onOptionCreate: sl,
720
+ onOptionDestroy: ol,
721
+ handleMenuEnter: il,
722
+ focus: $e,
723
+ blur: ul,
724
+ handleClearClick: rl,
725
+ handleClickOutside: ht,
726
+ handleEsc: cl,
727
+ toggleMenu: gt,
728
+ selectOption: dl,
729
+ getValueKey: be,
730
+ navigateOptions: bt,
731
+ dropdownMenuVisible: Yt,
732
+ showTagList: pl,
733
+ collapseTagList: vl,
734
+ tagStyle: hl,
735
+ collapseTagStyle: gl,
736
+ inputStyle: bl,
737
+ popperRef: al,
738
+ inputRef: w,
739
+ tooltipRef: v,
740
+ tagTooltipRef: b,
741
+ calculatorRef: V,
742
+ prefixRef: y,
743
+ suffixRef: S,
744
+ selectRef: d,
745
+ wrapperRef: Te,
746
+ selectionRef: i,
747
+ scrollbarRef: P,
748
+ menuRef: m,
749
+ tagMenuRef: k,
750
+ collapseItemRef: X
751
+ };
752
+ };
753
+ var Fn = J({
754
+ name: "ElOptions",
755
+ setup(e, { slots: n }) {
756
+ const s = Se(Fe);
757
+ let r = [];
758
+ return () => {
759
+ var a, p;
760
+ const l = (a = n.default) == null ? void 0 : a.call(n), d = [];
761
+ function i(v) {
762
+ ne(v) && v.forEach((b) => {
763
+ var w, V, y, S;
764
+ const m = (w = (b == null ? void 0 : b.type) || {}) == null ? void 0 : w.name;
765
+ m === "ElOptionGroup" ? i(!Vl(b.children) && !ne(b.children) && Y((V = b.children) == null ? void 0 : V.default) ? (y = b.children) == null ? void 0 : y.default() : b.children) : m === "ElOption" ? d.push((S = b.props) == null ? void 0 : S.value) : ne(b.children) && i(b.children);
766
+ });
767
+ }
768
+ return l.length && i((p = l[0]) == null ? void 0 : p.children), Ze(d, r) || (r = d, s && (s.states.optionValues = d)), l;
769
+ };
770
+ }
771
+ });
772
+ const Hn = tt({
773
+ name: String,
774
+ id: String,
775
+ modelValue: {
776
+ type: [Array, String, Number, Boolean, Object],
777
+ default: void 0
778
+ },
779
+ autocomplete: {
780
+ type: String,
781
+ default: "off"
782
+ },
783
+ automaticDropdown: Boolean,
784
+ size: Wl,
785
+ effect: {
786
+ type: _e(String),
787
+ default: "light"
788
+ },
789
+ disabled: Boolean,
790
+ clearable: Boolean,
791
+ filterable: Boolean,
792
+ allowCreate: Boolean,
793
+ loading: Boolean,
794
+ popperClass: {
795
+ type: String,
796
+ default: ""
797
+ },
798
+ popperOptions: {
799
+ type: _e(Object),
800
+ default: () => ({})
801
+ },
802
+ remote: Boolean,
803
+ loadingText: String,
804
+ noMatchText: String,
805
+ noDataText: String,
806
+ remoteMethod: Function,
807
+ filterMethod: Function,
808
+ multiple: Boolean,
809
+ multipleLimit: {
810
+ type: Number,
811
+ default: 0
812
+ },
813
+ placeholder: {
814
+ type: String
815
+ },
816
+ defaultFirstOption: Boolean,
817
+ reserveKeyword: {
818
+ type: Boolean,
819
+ default: !0
820
+ },
821
+ valueKey: {
822
+ type: String,
823
+ default: "value"
824
+ },
825
+ collapseTags: Boolean,
826
+ collapseTagsTooltip: Boolean,
827
+ maxCollapseTags: {
828
+ type: Number,
829
+ default: 1
830
+ },
831
+ teleported: Il.teleported,
832
+ persistent: {
833
+ type: Boolean,
834
+ default: !0
835
+ },
836
+ clearIcon: {
837
+ type: St,
838
+ default: Xl
839
+ },
840
+ fitInputWidth: Boolean,
841
+ suffixIcon: {
842
+ type: St,
843
+ default: jl
844
+ },
845
+ tagType: { ...xe.type, default: "info" },
846
+ tagEffect: { ...xe.effect, default: "light" },
847
+ validateEvent: {
848
+ type: Boolean,
849
+ default: !0
850
+ },
851
+ remoteShowSuffix: Boolean,
852
+ placement: {
853
+ type: _e(String),
854
+ values: El,
855
+ default: "bottom-start"
856
+ },
857
+ fallbackPlacements: {
858
+ type: _e(Array),
859
+ default: ["bottom-start", "top-start", "right", "left"]
860
+ },
861
+ ...On,
862
+ ...kl(["ariaLabel"])
863
+ }), Vt = "ElSelect", zn = J({
864
+ name: Vt,
865
+ componentName: Vt,
866
+ components: {
867
+ ElSelectMenu: Ln,
868
+ ElOption: nt,
869
+ ElOptions: Fn,
870
+ ElTag: Rn,
871
+ ElScrollbar: Bt,
872
+ ElTooltip: Rl,
873
+ ElIcon: je
874
+ },
875
+ directives: { ClickOutside: Tn },
876
+ props: Hn,
877
+ emits: [
878
+ ue,
879
+ Lt,
880
+ "remove-tag",
881
+ "clear",
882
+ "visible-change",
883
+ "focus",
884
+ "blur"
885
+ ],
886
+ setup(e, { emit: n }) {
887
+ const s = Nn(e, n);
888
+ return Ft(Fe, Pe({
889
+ props: e,
890
+ states: s.states,
891
+ optionsArray: s.optionsArray,
892
+ handleOptionSelect: s.handleOptionSelect,
893
+ onOptionCreate: s.onOptionCreate,
894
+ onOptionDestroy: s.onOptionDestroy,
895
+ selectRef: s.selectRef,
896
+ setSelected: s.setSelected
897
+ })), {
898
+ ...s
899
+ };
900
+ }
901
+ });
902
+ function Wn(e, n, s, r, a, p) {
903
+ const l = ee("el-tag"), d = ee("el-tooltip"), i = ee("el-icon"), v = ee("el-option"), b = ee("el-options"), w = ee("el-scrollbar"), V = ee("el-select-menu"), y = Ql("click-outside");
904
+ return Ce((f(), M("div", {
905
+ ref: "selectRef",
906
+ class: h([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
907
+ [Yl(e.mouseEnterEventName)]: (S) => e.states.inputHovering = !0,
908
+ onMouseleave: (S) => e.states.inputHovering = !1
909
+ }, [
910
+ L(d, {
911
+ ref: "tooltipRef",
912
+ visible: e.dropdownMenuVisible,
913
+ placement: e.placement,
914
+ teleported: e.teleported,
915
+ "popper-class": [e.nsSelect.e("popper"), e.popperClass],
916
+ "popper-options": e.popperOptions,
917
+ "fallback-placements": e.fallbackPlacements,
918
+ effect: e.effect,
919
+ pure: "",
920
+ trigger: "click",
921
+ transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
922
+ "stop-popper-mouse-event": !1,
923
+ "gpu-acceleration": !1,
924
+ persistent: e.persistent,
925
+ onBeforeShow: e.handleMenuEnter,
926
+ onHide: (S) => e.states.isBeforeHide = !1
927
+ }, {
928
+ default: $(() => {
929
+ var S;
930
+ return [
931
+ u("div", {
932
+ ref: "wrapperRef",
933
+ class: h([
934
+ e.nsSelect.e("wrapper"),
935
+ e.nsSelect.is("focused", e.isFocused),
936
+ e.nsSelect.is("hovering", e.states.inputHovering),
937
+ e.nsSelect.is("filterable", e.filterable),
938
+ e.nsSelect.is("disabled", e.selectDisabled)
939
+ ]),
940
+ onClick: N(e.toggleMenu, ["prevent", "stop"])
941
+ }, [
942
+ e.$slots.prefix ? (f(), M("div", {
943
+ key: 0,
944
+ ref: "prefixRef",
945
+ class: h(e.nsSelect.e("prefix"))
946
+ }, [
947
+ _(e.$slots, "prefix")
948
+ ], 2)) : B("v-if", !0),
949
+ u("div", {
950
+ ref: "selectionRef",
951
+ class: h([
952
+ e.nsSelect.e("selection"),
953
+ e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)
954
+ ])
955
+ }, [
956
+ e.multiple ? _(e.$slots, "tag", { key: 0 }, () => [
957
+ (f(!0), M(ce, null, de(e.showTagList, (m) => (f(), M("div", {
958
+ key: e.getValueKey(m),
959
+ class: h(e.nsSelect.e("selected-item"))
960
+ }, [
961
+ L(l, {
962
+ closable: !e.selectDisabled && !m.isDisabled,
963
+ size: e.collapseTagSize,
964
+ type: e.tagType,
965
+ effect: e.tagEffect,
966
+ "disable-transitions": "",
967
+ style: fe(e.tagStyle),
968
+ onClose: (k) => e.deleteTag(k, m)
969
+ }, {
970
+ default: $(() => [
971
+ u("span", {
972
+ class: h(e.nsSelect.e("tags-text"))
973
+ }, [
974
+ _(e.$slots, "label", {
975
+ label: m.currentLabel,
976
+ value: m.value
977
+ }, () => [
978
+ wt(H(m.currentLabel), 1)
979
+ ])
980
+ ], 2)
981
+ ]),
982
+ _: 2
983
+ }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
984
+ ], 2))), 128)),
985
+ e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (f(), F(d, {
986
+ key: 0,
987
+ ref: "tagTooltipRef",
988
+ disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
989
+ "fallback-placements": ["bottom", "top", "right", "left"],
990
+ effect: e.effect,
991
+ placement: "bottom",
992
+ teleported: e.teleported
993
+ }, {
994
+ default: $(() => [
995
+ u("div", {
996
+ ref: "collapseItemRef",
997
+ class: h(e.nsSelect.e("selected-item"))
998
+ }, [
999
+ L(l, {
1000
+ closable: !1,
1001
+ size: e.collapseTagSize,
1002
+ type: e.tagType,
1003
+ effect: e.tagEffect,
1004
+ "disable-transitions": "",
1005
+ style: fe(e.collapseTagStyle)
1006
+ }, {
1007
+ default: $(() => [
1008
+ u("span", {
1009
+ class: h(e.nsSelect.e("tags-text"))
1010
+ }, " + " + H(e.states.selected.length - e.maxCollapseTags), 3)
1011
+ ]),
1012
+ _: 1
1013
+ }, 8, ["size", "type", "effect", "style"])
1014
+ ], 2)
1015
+ ]),
1016
+ content: $(() => [
1017
+ u("div", {
1018
+ ref: "tagMenuRef",
1019
+ class: h(e.nsSelect.e("selection"))
1020
+ }, [
1021
+ (f(!0), M(ce, null, de(e.collapseTagList, (m) => (f(), M("div", {
1022
+ key: e.getValueKey(m),
1023
+ class: h(e.nsSelect.e("selected-item"))
1024
+ }, [
1025
+ L(l, {
1026
+ class: "in-tooltip",
1027
+ closable: !e.selectDisabled && !m.isDisabled,
1028
+ size: e.collapseTagSize,
1029
+ type: e.tagType,
1030
+ effect: e.tagEffect,
1031
+ "disable-transitions": "",
1032
+ onClose: (k) => e.deleteTag(k, m)
1033
+ }, {
1034
+ default: $(() => [
1035
+ u("span", {
1036
+ class: h(e.nsSelect.e("tags-text"))
1037
+ }, [
1038
+ _(e.$slots, "label", {
1039
+ label: m.currentLabel,
1040
+ value: m.value
1041
+ }, () => [
1042
+ wt(H(m.currentLabel), 1)
1043
+ ])
1044
+ ], 2)
1045
+ ]),
1046
+ _: 2
1047
+ }, 1032, ["closable", "size", "type", "effect", "onClose"])
1048
+ ], 2))), 128))
1049
+ ], 2)
1050
+ ]),
1051
+ _: 3
1052
+ }, 8, ["disabled", "effect", "teleported"])) : B("v-if", !0)
1053
+ ]) : B("v-if", !0),
1054
+ e.selectDisabled ? B("v-if", !0) : (f(), M("div", {
1055
+ key: 1,
1056
+ class: h([
1057
+ e.nsSelect.e("selected-item"),
1058
+ e.nsSelect.e("input-wrapper"),
1059
+ e.nsSelect.is("hidden", !e.filterable)
1060
+ ])
1061
+ }, [
1062
+ Ce(u("input", {
1063
+ id: e.inputId,
1064
+ ref: "inputRef",
1065
+ "onUpdate:modelValue": (m) => e.states.inputValue = m,
1066
+ type: "text",
1067
+ name: e.name,
1068
+ class: h([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
1069
+ disabled: e.selectDisabled,
1070
+ autocomplete: e.autocomplete,
1071
+ style: fe(e.inputStyle),
1072
+ role: "combobox",
1073
+ readonly: !e.filterable,
1074
+ spellcheck: "false",
1075
+ "aria-activedescendant": ((S = e.hoverOption) == null ? void 0 : S.id) || "",
1076
+ "aria-controls": e.contentId,
1077
+ "aria-expanded": e.dropdownMenuVisible,
1078
+ "aria-label": e.ariaLabel,
1079
+ "aria-autocomplete": "none",
1080
+ "aria-haspopup": "listbox",
1081
+ onKeydown: [
1082
+ ye(N((m) => e.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
1083
+ ye(N((m) => e.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
1084
+ ye(N(e.handleEsc, ["stop", "prevent"]), ["esc"]),
1085
+ ye(N(e.selectOption, ["stop", "prevent"]), ["enter"]),
1086
+ ye(N(e.deletePrevTag, ["stop"]), ["delete"])
1087
+ ],
1088
+ onCompositionstart: e.handleCompositionStart,
1089
+ onCompositionupdate: e.handleCompositionUpdate,
1090
+ onCompositionend: e.handleCompositionEnd,
1091
+ onInput: e.onInput,
1092
+ onClick: N(e.toggleMenu, ["stop"])
1093
+ }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
1094
+ [Jl, e.states.inputValue]
1095
+ ]),
1096
+ e.filterable ? (f(), M("span", {
1097
+ key: 0,
1098
+ ref: "calculatorRef",
1099
+ "aria-hidden": "true",
1100
+ class: h(e.nsSelect.e("input-calculator")),
1101
+ textContent: H(e.states.inputValue)
1102
+ }, null, 10, ["textContent"])) : B("v-if", !0)
1103
+ ], 2)),
1104
+ e.shouldShowPlaceholder ? (f(), M("div", {
1105
+ key: 2,
1106
+ class: h([
1107
+ e.nsSelect.e("selected-item"),
1108
+ e.nsSelect.e("placeholder"),
1109
+ e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
1110
+ ])
1111
+ }, [
1112
+ e.hasModelValue ? _(e.$slots, "label", {
1113
+ key: 0,
1114
+ label: e.currentPlaceholder,
1115
+ value: e.modelValue
1116
+ }, () => [
1117
+ u("span", null, H(e.currentPlaceholder), 1)
1118
+ ]) : (f(), M("span", { key: 1 }, H(e.currentPlaceholder), 1))
1119
+ ], 2)) : B("v-if", !0)
1120
+ ], 2),
1121
+ u("div", {
1122
+ ref: "suffixRef",
1123
+ class: h(e.nsSelect.e("suffix"))
1124
+ }, [
1125
+ e.iconComponent && !e.showClose ? (f(), F(i, {
1126
+ key: 0,
1127
+ class: h([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
1128
+ }, {
1129
+ default: $(() => [
1130
+ (f(), F(Xe(e.iconComponent)))
1131
+ ]),
1132
+ _: 1
1133
+ }, 8, ["class"])) : B("v-if", !0),
1134
+ e.showClose && e.clearIcon ? (f(), F(i, {
1135
+ key: 1,
1136
+ class: h([e.nsSelect.e("caret"), e.nsSelect.e("icon")]),
1137
+ onClick: e.handleClearClick
1138
+ }, {
1139
+ default: $(() => [
1140
+ (f(), F(Xe(e.clearIcon)))
1141
+ ]),
1142
+ _: 1
1143
+ }, 8, ["class", "onClick"])) : B("v-if", !0),
1144
+ e.validateState && e.validateIcon ? (f(), F(i, {
1145
+ key: 2,
1146
+ class: h([e.nsInput.e("icon"), e.nsInput.e("validateIcon")])
1147
+ }, {
1148
+ default: $(() => [
1149
+ (f(), F(Xe(e.validateIcon)))
1150
+ ]),
1151
+ _: 1
1152
+ }, 8, ["class"])) : B("v-if", !0)
1153
+ ], 2)
1154
+ ], 10, ["onClick"])
1155
+ ];
1156
+ }),
1157
+ content: $(() => [
1158
+ L(V, { ref: "menuRef" }, {
1159
+ default: $(() => [
1160
+ e.$slots.header ? (f(), M("div", {
1161
+ key: 0,
1162
+ class: h(e.nsSelect.be("dropdown", "header")),
1163
+ onClick: N(() => {
1164
+ }, ["stop"])
1165
+ }, [
1166
+ _(e.$slots, "header")
1167
+ ], 10, ["onClick"])) : B("v-if", !0),
1168
+ Ce(L(w, {
1169
+ id: e.contentId,
1170
+ ref: "scrollbarRef",
1171
+ tag: "ul",
1172
+ "wrap-class": e.nsSelect.be("dropdown", "wrap"),
1173
+ "view-class": e.nsSelect.be("dropdown", "list"),
1174
+ class: h([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
1175
+ role: "listbox",
1176
+ "aria-label": e.ariaLabel,
1177
+ "aria-orientation": "vertical"
1178
+ }, {
1179
+ default: $(() => [
1180
+ e.showNewOption ? (f(), F(v, {
1181
+ key: 0,
1182
+ value: e.states.inputValue,
1183
+ created: !0
1184
+ }, null, 8, ["value"])) : B("v-if", !0),
1185
+ L(b, null, {
1186
+ default: $(() => [
1187
+ _(e.$slots, "default")
1188
+ ]),
1189
+ _: 3
1190
+ })
1191
+ ]),
1192
+ _: 3
1193
+ }, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [
1194
+ [lt, e.states.options.size > 0 && !e.loading]
1195
+ ]),
1196
+ e.$slots.loading && e.loading ? (f(), M("div", {
1197
+ key: 1,
1198
+ class: h(e.nsSelect.be("dropdown", "loading"))
1199
+ }, [
1200
+ _(e.$slots, "loading")
1201
+ ], 2)) : e.loading || e.filteredOptionsCount === 0 ? (f(), M("div", {
1202
+ key: 2,
1203
+ class: h(e.nsSelect.be("dropdown", "empty"))
1204
+ }, [
1205
+ _(e.$slots, "empty", {}, () => [
1206
+ u("span", null, H(e.emptyText), 1)
1207
+ ])
1208
+ ], 2)) : B("v-if", !0),
1209
+ e.$slots.footer ? (f(), M("div", {
1210
+ key: 3,
1211
+ class: h(e.nsSelect.be("dropdown", "footer")),
1212
+ onClick: N(() => {
1213
+ }, ["stop"])
1214
+ }, [
1215
+ _(e.$slots, "footer")
1216
+ ], 10, ["onClick"])) : B("v-if", !0)
1217
+ ]),
1218
+ _: 3
1219
+ }, 512)
1220
+ ]),
1221
+ _: 3
1222
+ }, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "onBeforeShow", "onHide"])
1223
+ ], 16, ["onMouseleave"])), [
1224
+ [y, e.handleClickOutside, e.popperRef]
1225
+ ]);
1226
+ }
1227
+ var Kn = /* @__PURE__ */ we(zn, [["render", Wn], ["__file", "select.vue"]]);
1228
+ const Un = J({
1229
+ name: "ElOptionGroup",
1230
+ componentName: "ElOptionGroup",
1231
+ props: {
1232
+ label: String,
1233
+ disabled: Boolean
1234
+ },
1235
+ setup(e) {
1236
+ const n = pe("select"), s = T(null), r = Le(), a = T([]);
1237
+ Ft(Ht, Pe({
1238
+ ...Nt(e)
1239
+ }));
1240
+ const p = g(() => a.value.some((v) => v.visible === !0)), l = (v) => {
1241
+ var b, w;
1242
+ return ((b = v.type) == null ? void 0 : b.name) === "ElOption" && !!((w = v.component) != null && w.proxy);
1243
+ }, d = (v) => {
1244
+ const b = Q(v), w = [];
1245
+ return b.forEach((V) => {
1246
+ var y, S;
1247
+ l(V) ? w.push(V.component.proxy) : (y = V.children) != null && y.length ? w.push(...d(V.children)) : (S = V.component) != null && S.subTree && w.push(...d(V.component.subTree));
1248
+ }), w;
1249
+ }, i = () => {
1250
+ a.value = d(r.subTree);
1251
+ };
1252
+ return Ne(() => {
1253
+ i();
1254
+ }), Dl(s, i, {
1255
+ attributes: !0,
1256
+ subtree: !0,
1257
+ childList: !0
1258
+ }), {
1259
+ groupRef: s,
1260
+ visible: p,
1261
+ ns: n
1262
+ };
1263
+ }
1264
+ });
1265
+ function Gn(e, n, s, r, a, p) {
1266
+ return Ce((f(), M("ul", {
1267
+ ref: "groupRef",
1268
+ class: h(e.ns.be("group", "wrap"))
1269
+ }, [
1270
+ u("li", {
1271
+ class: h(e.ns.be("group", "title"))
1272
+ }, H(e.label), 3),
1273
+ u("li", null, [
1274
+ u("ul", {
1275
+ class: h(e.ns.b("group"))
1276
+ }, [
1277
+ _(e.$slots, "default")
1278
+ ], 2)
1279
+ ])
1280
+ ], 2)), [
1281
+ [lt, e.visible]
1282
+ ]);
1283
+ }
1284
+ var Ut = /* @__PURE__ */ we(Un, [["render", Gn], ["__file", "option-group.vue"]]);
1285
+ const qn = Dt(Kn, {
1286
+ Option: nt,
1287
+ OptionGroup: Ut
1288
+ }), Qn = At(nt);
1289
+ At(Ut);
1290
+ const Yn = {
1291
+ key: 0,
1292
+ class: "measure_panel_content"
1293
+ }, Jn = { class: "measurement_type" }, Xn = ["onClick"], jn = ["src"], Zn = {
1294
+ key: 0,
1295
+ class: "measurement_data"
1296
+ }, xn = { class: "data_box" }, es = /* @__PURE__ */ u("div", null, "总长度:", -1), ts = { style: { color: "#0065fc" } }, ls = /* @__PURE__ */ u("div", { class: "data_box" }, [
1297
+ /* @__PURE__ */ u("div", null, "X值:"),
1298
+ /* @__PURE__ */ u("div", { style: { color: "#fe4444" } }, "~")
1299
+ ], -1), ns = /* @__PURE__ */ u("div", { class: "data_box" }, [
1300
+ /* @__PURE__ */ u("div", null, "Y值:"),
1301
+ /* @__PURE__ */ u("div", { style: { color: "#4ed17a" } }, "~")
1302
+ ], -1), ss = {
1303
+ key: 1,
1304
+ class: "measurement_data"
1305
+ }, os = { class: "data_box" }, as = /* @__PURE__ */ u("div", null, "角度", -1), is = { style: { color: "#0065fc" } }, us = {
1306
+ key: 1,
1307
+ class: "setMeasurePanel"
1308
+ }, rs = { class: "set_content_par" }, cs = { class: "set_content_" }, ds = { class: "set_content scale" }, fs = /* @__PURE__ */ u("span", null, "比例:", -1), ps = /* @__PURE__ */ u("span", null, "1:", -1), vs = { class: "set_content unit" }, ms = /* @__PURE__ */ u("span", null, "单位:", -1), hs = { class: "set_content precision" }, gs = /* @__PURE__ */ u("span", null, "精度:", -1), bs = {
1309
+ key: 1,
1310
+ class: "measure-box"
1311
+ }, ys = /* @__PURE__ */ u("div", { class: "measure-title-box" }, [
1312
+ /* @__PURE__ */ u("div", { class: "measure-title" }, "测量")
1313
+ ], -1), Cs = { class: "measure-list" }, Ss = ["onClick"], ws = { class: "measure-icon" }, Os = ["src"], Ms = { class: "measure-name" }, Ts = { class: "measure-icon" }, Vs = ["src"], Is = /* @__PURE__ */ u("div", {
1314
+ class: "measure-name",
1315
+ style: { color: "#df1c1c" }
1316
+ }, " 删除 ", -1), Ns = /* @__PURE__ */ J({
1317
+ __name: "MeasureTool",
1318
+ props: ["componentId"],
1319
+ emits: ["closePanel", "emitHandler"],
1320
+ setup(e, { emit: n }) {
1321
+ const s = $l(), r = e, a = T(0);
1322
+ Ne(() => {
1323
+ s.setReadyById(r.componentId), Ye.currentTheme == "blue" ? a.value = 224 : Ye.currentTheme == "light-gray" && (a.value = 202);
1324
+ });
1325
+ let p, l, d;
1326
+ const i = T(1), v = T(), b = T(), w = T(), V = T(), y = T(1), S = T("m"), m = T(2), k = T(!1), X = [{ value: "m" }, { value: "cm" }, { value: "mm" }], P = T(!1), oe = [
1327
+ { label: "0", value: 0 },
1328
+ { label: "0.0", value: 1 },
1329
+ { label: "0.00", value: 2 },
1330
+ { label: "0.000", value: 3 }
1331
+ ], Oe = n, Me = (c) => {
1332
+ Oe("emitHandler", c);
1333
+ };
1334
+ Bl.on("BimViewer", () => {
1335
+ l = window.BimViewer.measureAngleTool, p = window.BimViewer.measureDistanceTool, d = window.BimViewer.eventTrigger, x("isMobile") && (d.on("newAngleMeasure", (c) => {
1336
+ P.value = !1;
1337
+ }), d.on("newDistanceMeasure", (c) => {
1338
+ P.value = !1;
1339
+ })), d.on("clickDistanceMeasure", (c) => {
1340
+ Ke(c.id), ae(c.id, !0), x("isMobile") && (P.value = !0), K("clickDistanceMeasure", { id: c.id });
1341
+ }), d.on("clickAngleMeasure", (c) => {
1342
+ j(c.id), ze(c.id, !0), x("isMobile") && (P.value = !0), K("clickAngleMeasure", { id: c.id });
1343
+ }), d.on("createAngleMeasure", (c) => {
1344
+ V.value = c.id, w.value = c.result, x("isMobile") && (P.value = !0), K("createAngleMeasure", { newMeasure: c });
1345
+ }), d.on("createDistanceMeasure", (c) => {
1346
+ b.value = c.id, v.value = c.result, x("isMobile") && (P.value = !0), K("createAngleMeasure", { newMeasure: c });
1347
+ });
1348
+ });
1349
+ const K = (c, D) => {
1350
+ Me({
1351
+ isTool: !0,
1352
+ event_name: c,
1353
+ event_target: "MeasureTool",
1354
+ content: D
1355
+ });
1356
+ }, Te = () => {
1357
+ Oe("closePanel"), window.BimViewer.SetMeasureDistanceActive(!1), window.BimViewer.SetMeasureAngleActive(!1), k.value === !0 && z();
1358
+ }, ve = (c) => {
1359
+ i.value !== c && (i.value = c, Al.SaveViewerState({ measure: c }), He(i.value), x("isMobile") && (P.value = !1));
1360
+ }, He = (c) => {
1361
+ v.value = "", w.value = "";
1362
+ let D = "distance";
1363
+ c == 1 ? (window.BimViewer.SetMeasureAngleActive(!1), window.BimViewer.SetMeasureDistanceActive(!0), D = "distance") : c == 2 && (window.BimViewer.SetMeasureDistanceActive(!1), window.BimViewer.SetMeasureAngleActive(!0), D = "angle"), Me({
1364
+ isTool: !0,
1365
+ event_name: "",
1366
+ event_target: "MeasureTool",
1367
+ content: {
1368
+ measureTool: D
1369
+ }
1370
+ });
1371
+ }, E = () => {
1372
+ v.value = "", w.value = "", i.value === 1 ? (me(b.value), K("destroyMeasureDistance", { id: b.value })) : i.value === 2 && (We(V.value), K("destroyMeasurementAngle", { id: b.value })), P.value = !1;
1373
+ }, z = () => {
1374
+ k.value = !k.value;
1375
+ }, Ve = () => {
1376
+ z(), l.precision = m.value, p.precision = m.value, p.unit = S.value, p.scale = y.value, K("updateMeasureSet", {
1377
+ measurePrefer: {
1378
+ angle_precision: m.value,
1379
+ distance_precision: m.value,
1380
+ distance_unit: S.value,
1381
+ distance_scale: y.value
1382
+ }
1383
+ });
1384
+ }, j = (c) => {
1385
+ V.value = c, w.value = l.getMeasureResultByID(c);
1386
+ }, ze = (c, D) => l.setMeasureHightlighted(c, D), We = (c) => l.destroyMeasurementById(c), Ke = (c) => {
1387
+ b.value = c, v.value = p.getMeasureResultByID(c);
1388
+ }, ae = (c, D) => (console.log("高亮measureDistanceTool.setMeasureHightlighted(id, highlighted)", p.setMeasureHightlighted(c, D)), p.setMeasureHightlighted(c, D)), me = (c) => p.destroyMeasurementById(c);
1389
+ return (c, D) => {
1390
+ const Ue = Kl, he = Qn, Ie = qn, Ge = _l, Ee = Bt;
1391
+ return R(x)("isMobile") ? (f(), M("div", bs, [
1392
+ ys,
1393
+ L(Ee, null, {
1394
+ default: $(() => [
1395
+ u("div", Cs, [
1396
+ (f(!0), M(ce, null, de(R(Ot), (O) => (f(), M("div", {
1397
+ key: O.id,
1398
+ class: h(["measure-item", {
1399
+ "measure-item-active": i.value === O.id
1400
+ }]),
1401
+ onClick: (A) => ve(O.id)
1402
+ }, [
1403
+ u("div", null, [
1404
+ u("div", ws, [
1405
+ u("img", {
1406
+ src: R(Je) + `/bim-viewer/measure-bar/${i.value === O.id ? O.svgActive : O.svg}.svg`,
1407
+ alt: ""
1408
+ }, null, 8, Os)
1409
+ ]),
1410
+ u("div", Ms, H(O.name), 1)
1411
+ ])
1412
+ ], 10, Ss))), 128)),
1413
+ P.value ? (f(), M("div", {
1414
+ key: 0,
1415
+ class: "measure-item",
1416
+ onClick: E
1417
+ }, [
1418
+ u("div", null, [
1419
+ u("div", Ts, [
1420
+ u("img", {
1421
+ src: R(Je) + "/bim-viewer/delete.svg",
1422
+ alt: ""
1423
+ }, null, 8, Vs)
1424
+ ]),
1425
+ Is
1426
+ ])
1427
+ ])) : B("", !0)
1428
+ ])
1429
+ ]),
1430
+ _: 1
1431
+ })
1432
+ ])) : (f(), F(Ge, {
1433
+ key: 0,
1434
+ class: "measure_panel",
1435
+ width: a.value,
1436
+ panelTitle: k.value ? "测量设置" : "测量",
1437
+ "click-handle": Te
1438
+ }, {
1439
+ default: $(() => [
1440
+ k.value ? (f(), M("div", us, [
1441
+ u("div", rs, [
1442
+ u("div", cs, [
1443
+ u("div", ds, [
1444
+ fs,
1445
+ ps,
1446
+ L(Ue, {
1447
+ modelValue: y.value,
1448
+ "onUpdate:modelValue": D[0] || (D[0] = (O) => y.value = O),
1449
+ style: { width: "122px", height: "28px" },
1450
+ placeholder: "1"
1451
+ }, null, 8, ["modelValue"])
1452
+ ]),
1453
+ u("div", vs, [
1454
+ ms,
1455
+ L(Ie, {
1456
+ modelValue: S.value,
1457
+ "onUpdate:modelValue": D[1] || (D[1] = (O) => S.value = O),
1458
+ placeholder: "单位",
1459
+ style: { width: "136px", height: "28px" }
1460
+ }, {
1461
+ default: $(() => [
1462
+ (f(), M(ce, null, de(X, (O) => L(he, {
1463
+ key: O.value,
1464
+ value: O.value
1465
+ }, null, 8, ["value"])), 64))
1466
+ ]),
1467
+ _: 1
1468
+ }, 8, ["modelValue"])
1469
+ ]),
1470
+ u("div", hs, [
1471
+ gs,
1472
+ L(Ie, {
1473
+ modelValue: m.value,
1474
+ "onUpdate:modelValue": D[2] || (D[2] = (O) => m.value = O),
1475
+ placeholder: "精度",
1476
+ style: { width: "136px", height: "28px" }
1477
+ }, {
1478
+ default: $(() => [
1479
+ (f(), M(ce, null, de(oe, (O) => L(he, {
1480
+ key: O.value,
1481
+ label: O.label,
1482
+ value: O.value
1483
+ }, null, 8, ["label", "value"])), 64))
1484
+ ]),
1485
+ _: 1
1486
+ }, 8, ["modelValue"])
1487
+ ])
1488
+ ])
1489
+ ]),
1490
+ u("div", { class: "footer" }, [
1491
+ u("div", {
1492
+ class: "measure_footer_button measure_footer_button_cancel",
1493
+ onClick: z
1494
+ }, " 取消 "),
1495
+ u("div", {
1496
+ class: "measure_footer_button measure_footer_button_save",
1497
+ onClick: Ve
1498
+ }, " 保存 ")
1499
+ ])
1500
+ ])) : (f(), M("div", Yn, [
1501
+ u("div", Jn, [
1502
+ (f(!0), M(ce, null, de(R(Ot), (O) => (f(), M("div", {
1503
+ key: O.id,
1504
+ class: h(["measurement_box", { measurement_box_active: i.value === O.id }]),
1505
+ onClick: (A) => ve(O.id)
1506
+ }, [
1507
+ u("img", {
1508
+ class: "measurement_img",
1509
+ src: R(Je) + `/bim-viewer/${i.value === O.id && R(Ye).currentTheme == "blue" ? O.imgActive : O.img}.png`,
1510
+ alt: ""
1511
+ }, null, 8, jn)
1512
+ ], 10, Xn))), 128))
1513
+ ]),
1514
+ i.value == 1 ? (f(), M("div", Zn, [
1515
+ u("div", xn, [
1516
+ es,
1517
+ u("div", ts, H(v.value ? v.value.toFixed(3) : "~"), 1)
1518
+ ]),
1519
+ ls,
1520
+ ns
1521
+ ])) : (f(), M("div", ss, [
1522
+ u("div", os, [
1523
+ as,
1524
+ u("div", is, H(w.value ? w.value.toFixed(3) + "°" : "~"), 1)
1525
+ ])
1526
+ ])),
1527
+ u("div", { class: "footer" }, [
1528
+ u("span", { onClick: E }, "删除"),
1529
+ u("span", { onClick: z }, "设置")
1530
+ ])
1531
+ ]))
1532
+ ]),
1533
+ _: 1
1534
+ }, 8, ["width", "panelTitle"]));
1535
+ };
1536
+ }
1537
+ });
1538
+ export {
1539
+ Ns as default
1540
+ };