@xtctwins/tctwins-bimx-engine 0.3.15 → 0.3.16

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 (92) hide show
  1. package/dist/01.xtc +0 -0
  2. package/dist/02.xtc +0 -0
  3. package/dist/03.xtc +0 -0
  4. package/dist/{AnnotationTool-B6og2Glz.mjs → AnnotationTool-nASKNjgr.mjs} +19 -19
  5. package/dist/BIMX_Viewer_Lib.es.js +6 -6
  6. package/dist/BIMX_Viewer_Lib.umd.js +166 -216
  7. package/dist/{CameraViewTool-DHsH_nT2.mjs → CameraViewTool-DhAfiKWu.mjs} +31 -31
  8. package/dist/{CommentTool-FNv2gMNk.mjs → CommentTool-a-BELMsU.mjs} +189 -189
  9. package/dist/{HiddenTool-BDSk2sdn.mjs → HiddenTool-CqWfECbU.mjs} +13 -13
  10. package/dist/{InspectorTool-1sTEP0Ws.mjs → InspectorTool-x0VVNWza.mjs} +12 -12
  11. package/dist/{MeasureTool-GbBIX0Yk.mjs → MeasureTool-DznYUEiR.mjs} +120 -120
  12. package/dist/{MouseTool-BteU7vCT.mjs → MouseTool-D8x8R2Hl.mjs} +8 -8
  13. package/dist/{NavigateTool-BG3JKhQg.mjs → NavigateTool-D16vm_Ng.mjs} +8 -8
  14. package/dist/{OperateTool-D3gf6bCT.mjs → OperateTool-_E-8qp5I.mjs} +38 -38
  15. package/dist/{RoamTool-V9vWQIDB.mjs → RoamTool-ClbGAw0m.mjs} +15 -15
  16. package/dist/ScreenShotTool-BLHWBbYl.mjs +356 -0
  17. package/dist/{SectionTool-DMFA7ztx.mjs → SectionTool-BduU5qr3.mjs} +70 -70
  18. package/dist/SettingTool-Dd-fS2IZ.mjs +1508 -0
  19. package/dist/StructureTree-Byfx-R9w.mjs +1582 -0
  20. package/dist/{alert-CbVefMZQ.mjs → alert-GVU1wFz1.mjs} +5 -5
  21. package/dist/{index-DpV5VBf5.mjs → index-CdBeaeTl.mjs} +55562 -58943
  22. package/dist/{panel.vue_vue_type_style_index_0_lang-CcDA1fsF.mjs → panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs} +1 -1
  23. package/dist/style.css +3 -3
  24. package/dist/{tallPanel-Br-fRsqc.mjs → tallPanel-B5pNGD_G.mjs} +10 -10
  25. package/package.json +2 -2
  26. package/types/App.vue.d.ts +1 -3
  27. package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
  28. package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
  29. package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
  30. package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
  31. package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
  32. package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
  33. package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
  34. package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
  35. package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
  36. package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
  37. package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
  38. package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
  39. package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
  40. package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
  41. package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
  42. package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
  43. package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
  44. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
  45. package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
  46. package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +8 -6
  47. package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
  48. package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
  49. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -270
  50. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -291
  51. package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
  52. package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
  53. package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
  54. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
  55. package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
  56. package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
  57. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -11642
  58. package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
  59. package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
  60. package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +10 -0
  61. package/types/components/BimxViewerComp.vue.d.ts +23 -7
  62. package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
  63. package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
  64. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -291
  65. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -270
  66. package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
  67. package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
  68. package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
  69. package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
  70. package/types/components/bimxViewer.vue.d.ts +27 -0
  71. package/types/components/utilsComponents/alert.vue.d.ts +1 -1
  72. package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
  73. package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
  74. package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
  75. package/types/components/utilsComponents/loading.vue.d.ts +1 -1
  76. package/types/components/utilsComponents/panel.vue.d.ts +2 -8
  77. package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
  78. package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
  79. package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
  80. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
  81. package/types/i18n/index.d.ts +16 -0
  82. package/types/i18n/locales/en-US.d.ts +4 -0
  83. package/types/i18n/locales/zh-CN.d.ts +4 -0
  84. package/types/pages/BimxViewerEntry.vue.d.ts +66 -4
  85. package/types/pages/viewerEntry.vue.d.ts +116 -0
  86. package/types/store/toolbars.d.ts +50 -50
  87. package/types/tests/cmt.d.ts +1 -0
  88. package/types/viewerManager/load/loadModel.d.ts +28 -6
  89. package/types/viewerManager/sectionManager.d.ts +25 -25
  90. package/dist/ScreenShotTool-DwZpoH2C.mjs +0 -429
  91. package/dist/SettingTool-dR6DkE24.mjs +0 -1787
  92. package/dist/StructureTree-w9pdtGNu.mjs +0 -1685
@@ -0,0 +1,1508 @@
1
+ import { an as yt, a8 as Ae, ad as Xe, aa as te, ah as Ge, ac as we, ao as re, ap as Me, a9 as ne, l as ut, u as $e, aj as qe, aq as ze, d as he, ae as Ze, af as rt, c as be, ar as tt, t as Vt, _ as Oe, as as De, f as Ie, w as Je, at as Ce, au as dt, av as wt, g as Fe, aw as lt, j as St, F as ct, ak as vt, k as Le, ab as Ue, ax as kt, ay as nt, n as Et, z as Ct, o as It, T as at, p as ge, az as ke, q as Ee, V as Nt, E as Bt, aA as Tt, v as _t, x as Mt, y as xt } from "./index-CdBeaeTl.mjs";
2
+ import { _ as Pt } from "./panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs";
3
+ import { defineComponent as de, ref as $, reactive as Qe, computed as N, watch as ye, onMounted as Re, onUpdated as At, openBlock as g, createElementBlock as z, normalizeClass as X, unref as t, withModifiers as xe, withDirectives as ot, withKeys as _e, renderSlot as Ke, createVNode as M, withCtx as ee, createBlock as q, createCommentVNode as H, nextTick as Pe, shallowRef as $t, inject as zt, toRefs as je, normalizeStyle as se, createElementVNode as u, toDisplayString as _, h as Lt, provide as Ut, Fragment as pe, renderList as Ne, resolveDynamicComponent as Te, onBeforeUnmount as Ft, createTextVNode as ue } from "vue";
4
+ import { T as Kt } from "./timer-DoTiGoWP.mjs";
5
+ import { ArrowDown as Ot, Minus as Rt, ArrowUp as Yt, Plus as Wt, Loading as Xt } from "@element-plus/icons-vue";
6
+ const jt = (e) => ["", ...yt].includes(e), Ht = Ae({
7
+ id: {
8
+ type: String,
9
+ default: void 0
10
+ },
11
+ step: {
12
+ type: Number,
13
+ default: 1
14
+ },
15
+ stepStrictly: Boolean,
16
+ max: {
17
+ type: Number,
18
+ default: Number.POSITIVE_INFINITY
19
+ },
20
+ min: {
21
+ type: Number,
22
+ default: Number.NEGATIVE_INFINITY
23
+ },
24
+ modelValue: Number,
25
+ readonly: Boolean,
26
+ disabled: Boolean,
27
+ size: Xe,
28
+ controls: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ controlsPosition: {
33
+ type: String,
34
+ default: "",
35
+ values: ["", "right"]
36
+ },
37
+ valueOnClear: {
38
+ type: [String, Number, null],
39
+ validator: (e) => e === null || te(e) || ["min", "max"].includes(e),
40
+ default: null
41
+ },
42
+ name: String,
43
+ placeholder: String,
44
+ precision: {
45
+ type: Number,
46
+ validator: (e) => e >= 0 && e === Number.parseInt(`${e}`, 10)
47
+ },
48
+ validateEvent: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ ...Ge(["ariaLabel"])
53
+ }), Gt = {
54
+ [we]: (e, n) => n !== e,
55
+ blur: (e) => e instanceof FocusEvent,
56
+ focus: (e) => e instanceof FocusEvent,
57
+ [re]: (e) => te(e) || Me(e),
58
+ [ne]: (e) => te(e) || Me(e)
59
+ }, qt = de({
60
+ name: "ElInputNumber"
61
+ }), Zt = /* @__PURE__ */ de({
62
+ ...qt,
63
+ props: Ht,
64
+ emits: Gt,
65
+ setup(e, { expose: n, emit: s }) {
66
+ const a = e, { t: h } = ut(), V = $e("input-number"), d = $(), c = Qe({
67
+ currentValue: a.modelValue,
68
+ userInput: null
69
+ }), { formItem: y } = qe(), m = N(() => te(a.modelValue) && a.modelValue <= a.min), w = N(() => te(a.modelValue) && a.modelValue >= a.max), f = N(() => {
70
+ const o = S(a.step);
71
+ return ze(a.precision) ? Math.max(S(a.modelValue), o) : (o > a.precision && he("InputNumber", "precision should not be less than the decimal places of step"), a.precision);
72
+ }), T = N(() => a.controls && a.controlsPosition === "right"), W = Ze(), U = rt(), D = N(() => {
73
+ if (c.userInput !== null)
74
+ return c.userInput;
75
+ let o = c.currentValue;
76
+ if (Me(o))
77
+ return "";
78
+ if (te(o)) {
79
+ if (Number.isNaN(o))
80
+ return "";
81
+ ze(a.precision) || (o = o.toFixed(a.precision));
82
+ }
83
+ return o;
84
+ }), F = (o, v) => {
85
+ if (ze(v) && (v = f.value), v === 0)
86
+ return Math.round(o);
87
+ let k = String(o);
88
+ const L = k.indexOf(".");
89
+ if (L === -1 || !k.replace(".", "").split("")[L + v])
90
+ return o;
91
+ const G = k.length;
92
+ return k.charAt(G - 1) === "5" && (k = `${k.slice(0, Math.max(0, G - 1))}6`), Number.parseFloat(Number(k).toFixed(v));
93
+ }, S = (o) => {
94
+ if (Me(o))
95
+ return 0;
96
+ const v = o.toString(), k = v.indexOf(".");
97
+ let L = 0;
98
+ return k !== -1 && (L = v.length - k - 1), L;
99
+ }, K = (o, v = 1) => te(o) ? F(o + a.step * v) : c.currentValue, O = () => {
100
+ if (a.readonly || U.value || w.value)
101
+ return;
102
+ const o = Number(D.value) || 0, v = K(o);
103
+ x(v), s(re, c.currentValue), R();
104
+ }, Y = () => {
105
+ if (a.readonly || U.value || m.value)
106
+ return;
107
+ const o = Number(D.value) || 0, v = K(o, -1);
108
+ x(v), s(re, c.currentValue), R();
109
+ }, r = (o, v) => {
110
+ const { max: k, min: L, step: B, precision: A, stepStrictly: G, valueOnClear: b } = a;
111
+ k < L && De("InputNumber", "min should not be greater than max.");
112
+ let C = Number(o);
113
+ if (Me(o) || Number.isNaN(C))
114
+ return null;
115
+ if (o === "") {
116
+ if (b === null)
117
+ return null;
118
+ C = Ie(b) ? { min: L, max: k }[b] : b;
119
+ }
120
+ return G && (C = F(Math.round(C / B) * B, A)), ze(A) || (C = F(C, A)), (C > k || C < L) && (C = C > k ? k : L, v && s(ne, C)), C;
121
+ }, x = (o, v = !0) => {
122
+ var k;
123
+ const L = c.currentValue, B = r(o);
124
+ if (!v) {
125
+ s(ne, B);
126
+ return;
127
+ }
128
+ L === B && o || (c.userInput = null, s(ne, B), L !== B && s(we, B, L), a.validateEvent && ((k = y == null ? void 0 : y.validate) == null || k.call(y, "change").catch((A) => he(A))), c.currentValue = B);
129
+ }, Z = (o) => {
130
+ c.userInput = o;
131
+ const v = o === "" ? null : Number(o);
132
+ s(re, v), x(v, !1);
133
+ }, J = (o) => {
134
+ const v = o !== "" ? Number(o) : "";
135
+ (te(v) && !Number.isNaN(v) || o === "") && x(v), R(), c.userInput = null;
136
+ }, le = () => {
137
+ var o, v;
138
+ (v = (o = d.value) == null ? void 0 : o.focus) == null || v.call(o);
139
+ }, ce = () => {
140
+ var o, v;
141
+ (v = (o = d.value) == null ? void 0 : o.blur) == null || v.call(o);
142
+ }, ae = (o) => {
143
+ s("focus", o);
144
+ }, I = (o) => {
145
+ var v;
146
+ c.userInput = null, s("blur", o), a.validateEvent && ((v = y == null ? void 0 : y.validate) == null || v.call(y, "blur").catch((k) => he(k)));
147
+ }, R = () => {
148
+ c.currentValue !== a.modelValue && (c.currentValue = a.modelValue);
149
+ }, P = (o) => {
150
+ document.activeElement === o.target && o.preventDefault();
151
+ };
152
+ return ye(() => a.modelValue, (o, v) => {
153
+ const k = r(o, !0);
154
+ c.userInput === null && k !== v && (c.currentValue = k);
155
+ }, { immediate: !0 }), Re(() => {
156
+ var o;
157
+ const { min: v, max: k, modelValue: L } = a, B = (o = d.value) == null ? void 0 : o.input;
158
+ if (B.setAttribute("role", "spinbutton"), Number.isFinite(k) ? B.setAttribute("aria-valuemax", String(k)) : B.removeAttribute("aria-valuemax"), Number.isFinite(v) ? B.setAttribute("aria-valuemin", String(v)) : B.removeAttribute("aria-valuemin"), B.setAttribute("aria-valuenow", c.currentValue || c.currentValue === 0 ? String(c.currentValue) : ""), B.setAttribute("aria-disabled", String(U.value)), !te(L) && L != null) {
159
+ let A = Number(L);
160
+ Number.isNaN(A) && (A = null), s(ne, A);
161
+ }
162
+ B.addEventListener("wheel", P, { passive: !1 });
163
+ }), At(() => {
164
+ var o, v;
165
+ const k = (o = d.value) == null ? void 0 : o.input;
166
+ k == null || k.setAttribute("aria-valuenow", `${(v = c.currentValue) != null ? v : ""}`);
167
+ }), n({
168
+ focus: le,
169
+ blur: ce
170
+ }), (o, v) => (g(), z("div", {
171
+ class: X([
172
+ t(V).b(),
173
+ t(V).m(t(W)),
174
+ t(V).is("disabled", t(U)),
175
+ t(V).is("without-controls", !o.controls),
176
+ t(V).is("controls-right", t(T))
177
+ ]),
178
+ onDragstart: xe(() => {
179
+ }, ["prevent"])
180
+ }, [
181
+ o.controls ? ot((g(), z("span", {
182
+ key: 0,
183
+ role: "button",
184
+ "aria-label": t(h)("el.inputNumber.decrease"),
185
+ class: X([t(V).e("decrease"), t(V).is("disabled", t(m))]),
186
+ onKeydown: _e(Y, ["enter"])
187
+ }, [
188
+ Ke(o.$slots, "decrease-icon", {}, () => [
189
+ M(t(be), null, {
190
+ default: ee(() => [
191
+ t(T) ? (g(), q(t(Ot), { key: 0 })) : (g(), q(t(Rt), { key: 1 }))
192
+ ]),
193
+ _: 1
194
+ })
195
+ ])
196
+ ], 42, ["aria-label", "onKeydown"])), [
197
+ [t(tt), Y]
198
+ ]) : H("v-if", !0),
199
+ o.controls ? ot((g(), z("span", {
200
+ key: 1,
201
+ role: "button",
202
+ "aria-label": t(h)("el.inputNumber.increase"),
203
+ class: X([t(V).e("increase"), t(V).is("disabled", t(w))]),
204
+ onKeydown: _e(O, ["enter"])
205
+ }, [
206
+ Ke(o.$slots, "increase-icon", {}, () => [
207
+ M(t(be), null, {
208
+ default: ee(() => [
209
+ t(T) ? (g(), q(t(Yt), { key: 0 })) : (g(), q(t(Wt), { key: 1 }))
210
+ ]),
211
+ _: 1
212
+ })
213
+ ])
214
+ ], 42, ["aria-label", "onKeydown"])), [
215
+ [t(tt), O]
216
+ ]) : H("v-if", !0),
217
+ M(t(Vt), {
218
+ id: o.id,
219
+ ref_key: "input",
220
+ ref: d,
221
+ type: "number",
222
+ step: o.step,
223
+ "model-value": t(D),
224
+ placeholder: o.placeholder,
225
+ readonly: o.readonly,
226
+ disabled: t(U),
227
+ size: t(W),
228
+ max: o.max,
229
+ min: o.min,
230
+ name: o.name,
231
+ "aria-label": o.ariaLabel,
232
+ "validate-event": !1,
233
+ onKeydown: [
234
+ _e(xe(O, ["prevent"]), ["up"]),
235
+ _e(xe(Y, ["prevent"]), ["down"])
236
+ ],
237
+ onBlur: I,
238
+ onFocus: ae,
239
+ onInput: Z,
240
+ onChange: J
241
+ }, null, 8, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"])
242
+ ], 42, ["onDragstart"]));
243
+ }
244
+ });
245
+ var Dt = /* @__PURE__ */ Oe(Zt, [["__file", "input-number.vue"]]);
246
+ const Jt = Je(Dt), mt = Symbol("sliderContextKey"), Qt = Ae({
247
+ modelValue: {
248
+ type: Ce([Number, Array]),
249
+ default: 0
250
+ },
251
+ id: {
252
+ type: String,
253
+ default: void 0
254
+ },
255
+ min: {
256
+ type: Number,
257
+ default: 0
258
+ },
259
+ max: {
260
+ type: Number,
261
+ default: 100
262
+ },
263
+ step: {
264
+ type: Number,
265
+ default: 1
266
+ },
267
+ showInput: Boolean,
268
+ showInputControls: {
269
+ type: Boolean,
270
+ default: !0
271
+ },
272
+ size: Xe,
273
+ inputSize: Xe,
274
+ showStops: Boolean,
275
+ showTooltip: {
276
+ type: Boolean,
277
+ default: !0
278
+ },
279
+ formatTooltip: {
280
+ type: Ce(Function),
281
+ default: void 0
282
+ },
283
+ disabled: Boolean,
284
+ range: Boolean,
285
+ vertical: Boolean,
286
+ height: String,
287
+ debounce: {
288
+ type: Number,
289
+ default: 300
290
+ },
291
+ rangeStartLabel: {
292
+ type: String,
293
+ default: void 0
294
+ },
295
+ rangeEndLabel: {
296
+ type: String,
297
+ default: void 0
298
+ },
299
+ formatValueText: {
300
+ type: Ce(Function),
301
+ default: void 0
302
+ },
303
+ tooltipClass: {
304
+ type: String,
305
+ default: void 0
306
+ },
307
+ placement: {
308
+ type: String,
309
+ values: dt,
310
+ default: "top"
311
+ },
312
+ marks: {
313
+ type: Ce(Object)
314
+ },
315
+ validateEvent: {
316
+ type: Boolean,
317
+ default: !0
318
+ },
319
+ ...Ge(["ariaLabel"])
320
+ }), We = (e) => te(e) || wt(e) && e.every(te), el = {
321
+ [ne]: We,
322
+ [re]: We,
323
+ [we]: We
324
+ }, tl = (e, n, s) => {
325
+ const a = $();
326
+ return Re(async () => {
327
+ e.range ? (Array.isArray(e.modelValue) ? (n.firstValue = Math.max(e.min, e.modelValue[0]), n.secondValue = Math.min(e.max, e.modelValue[1])) : (n.firstValue = e.min, n.secondValue = e.max), n.oldValue = [n.firstValue, n.secondValue]) : (typeof e.modelValue != "number" || Number.isNaN(e.modelValue) ? n.firstValue = e.min : n.firstValue = Math.min(e.max, Math.max(e.min, e.modelValue)), n.oldValue = n.firstValue), Fe(window, "resize", s), await Pe(), s();
328
+ }), {
329
+ sliderWrapper: a
330
+ };
331
+ }, ll = (e) => N(() => e.marks ? Object.keys(e.marks).map(Number.parseFloat).sort((s, a) => s - a).filter((s) => s <= e.max && s >= e.min).map((s) => ({
332
+ point: s,
333
+ position: (s - e.min) * 100 / (e.max - e.min),
334
+ mark: e.marks[s]
335
+ })) : []), nl = (e, n, s) => {
336
+ const { form: a, formItem: h } = qe(), V = $t(), d = $(), c = $(), y = {
337
+ firstButton: d,
338
+ secondButton: c
339
+ }, m = N(() => e.disabled || (a == null ? void 0 : a.disabled) || !1), w = N(() => Math.min(n.firstValue, n.secondValue)), f = N(() => Math.max(n.firstValue, n.secondValue)), T = N(() => e.range ? `${100 * (f.value - w.value) / (e.max - e.min)}%` : `${100 * (n.firstValue - e.min) / (e.max - e.min)}%`), W = N(() => e.range ? `${100 * (w.value - e.min) / (e.max - e.min)}%` : "0%"), U = N(() => e.vertical ? { height: e.height } : {}), D = N(() => e.vertical ? {
340
+ height: T.value,
341
+ bottom: W.value
342
+ } : {
343
+ width: T.value,
344
+ left: W.value
345
+ }), F = () => {
346
+ V.value && (n.sliderSize = V.value[`client${e.vertical ? "Height" : "Width"}`]);
347
+ }, S = (I) => {
348
+ const R = e.min + I * (e.max - e.min) / 100;
349
+ if (!e.range)
350
+ return d;
351
+ let P;
352
+ return Math.abs(w.value - R) < Math.abs(f.value - R) ? P = n.firstValue < n.secondValue ? "firstButton" : "secondButton" : P = n.firstValue > n.secondValue ? "firstButton" : "secondButton", y[P];
353
+ }, K = (I) => {
354
+ const R = S(I);
355
+ return R.value.setPosition(I), R;
356
+ }, O = (I) => {
357
+ n.firstValue = I ?? e.min, r(e.range ? [w.value, f.value] : I ?? e.min);
358
+ }, Y = (I) => {
359
+ n.secondValue = I, e.range && r([w.value, f.value]);
360
+ }, r = (I) => {
361
+ s(ne, I), s(re, I);
362
+ }, x = async () => {
363
+ await Pe(), s(we, e.range ? [w.value, f.value] : e.modelValue);
364
+ }, Z = (I) => {
365
+ var R, P, o, v, k, L;
366
+ if (m.value || n.dragging)
367
+ return;
368
+ F();
369
+ let B = 0;
370
+ if (e.vertical) {
371
+ const A = (o = (P = (R = I.touches) == null ? void 0 : R.item(0)) == null ? void 0 : P.clientY) != null ? o : I.clientY;
372
+ B = (V.value.getBoundingClientRect().bottom - A) / n.sliderSize * 100;
373
+ } else {
374
+ const A = (L = (k = (v = I.touches) == null ? void 0 : v.item(0)) == null ? void 0 : k.clientX) != null ? L : I.clientX, G = V.value.getBoundingClientRect().left;
375
+ B = (A - G) / n.sliderSize * 100;
376
+ }
377
+ if (!(B < 0 || B > 100))
378
+ return K(B);
379
+ };
380
+ return {
381
+ elFormItem: h,
382
+ slider: V,
383
+ firstButton: d,
384
+ secondButton: c,
385
+ sliderDisabled: m,
386
+ minValue: w,
387
+ maxValue: f,
388
+ runwayStyle: U,
389
+ barStyle: D,
390
+ resetSize: F,
391
+ setPosition: K,
392
+ emitChange: x,
393
+ onSliderWrapperPrevent: (I) => {
394
+ var R, P;
395
+ ((R = y.firstButton.value) != null && R.dragging || (P = y.secondButton.value) != null && P.dragging) && I.preventDefault();
396
+ },
397
+ onSliderClick: (I) => {
398
+ Z(I) && x();
399
+ },
400
+ onSliderDown: async (I) => {
401
+ const R = Z(I);
402
+ R && (await Pe(), R.value.onButtonDown(I));
403
+ },
404
+ onSliderMarkerDown: (I) => {
405
+ m.value || n.dragging || K(I);
406
+ },
407
+ setFirstValue: O,
408
+ setSecondValue: Y
409
+ };
410
+ }, { left: al, down: ol, right: sl, up: il, home: ul, end: rl, pageUp: dl, pageDown: cl } = St, vl = (e, n, s) => {
411
+ const a = $(), h = $(!1), V = N(() => n.value instanceof Function), d = N(() => V.value && n.value(e.modelValue) || e.modelValue), c = lt(() => {
412
+ s.value && (h.value = !0);
413
+ }, 50), y = lt(() => {
414
+ s.value && (h.value = !1);
415
+ }, 50);
416
+ return {
417
+ tooltip: a,
418
+ tooltipVisible: h,
419
+ formatValue: d,
420
+ displayTooltip: c,
421
+ hideTooltip: y
422
+ };
423
+ }, ml = (e, n, s) => {
424
+ const {
425
+ disabled: a,
426
+ min: h,
427
+ max: V,
428
+ step: d,
429
+ showTooltip: c,
430
+ precision: y,
431
+ sliderSize: m,
432
+ formatTooltip: w,
433
+ emitChange: f,
434
+ resetSize: T,
435
+ updateDragging: W
436
+ } = zt(mt), { tooltip: U, tooltipVisible: D, formatValue: F, displayTooltip: S, hideTooltip: K } = vl(e, w, c), O = $(), Y = N(() => `${(e.modelValue - h.value) / (V.value - h.value) * 100}%`), r = N(() => e.vertical ? { bottom: Y.value } : { left: Y.value }), x = () => {
437
+ n.hovering = !0, S();
438
+ }, Z = () => {
439
+ n.hovering = !1, n.dragging || K();
440
+ }, J = (b) => {
441
+ a.value || (b.preventDefault(), L(b), window.addEventListener("mousemove", B), window.addEventListener("touchmove", B), window.addEventListener("mouseup", A), window.addEventListener("touchend", A), window.addEventListener("contextmenu", A), O.value.focus());
442
+ }, le = (b) => {
443
+ a.value || (n.newPosition = Number.parseFloat(Y.value) + b / (V.value - h.value) * 100, G(n.newPosition), f());
444
+ }, ce = () => {
445
+ le(-d.value);
446
+ }, ae = () => {
447
+ le(d.value);
448
+ }, I = () => {
449
+ le(-d.value * 4);
450
+ }, R = () => {
451
+ le(d.value * 4);
452
+ }, P = () => {
453
+ a.value || (G(0), f());
454
+ }, o = () => {
455
+ a.value || (G(100), f());
456
+ }, v = (b) => {
457
+ let C = !0;
458
+ [al, ol].includes(b.key) ? ce() : [sl, il].includes(b.key) ? ae() : b.key === ul ? P() : b.key === rl ? o() : b.key === cl ? I() : b.key === dl ? R() : C = !1, C && b.preventDefault();
459
+ }, k = (b) => {
460
+ let C, Q;
461
+ return b.type.startsWith("touch") ? (Q = b.touches[0].clientY, C = b.touches[0].clientX) : (Q = b.clientY, C = b.clientX), {
462
+ clientX: C,
463
+ clientY: Q
464
+ };
465
+ }, L = (b) => {
466
+ n.dragging = !0, n.isClick = !0;
467
+ const { clientX: C, clientY: Q } = k(b);
468
+ e.vertical ? n.startY = Q : n.startX = C, n.startPosition = Number.parseFloat(Y.value), n.newPosition = n.startPosition;
469
+ }, B = (b) => {
470
+ if (n.dragging) {
471
+ n.isClick = !1, S(), T();
472
+ let C;
473
+ const { clientX: Q, clientY: oe } = k(b);
474
+ e.vertical ? (n.currentY = oe, C = (n.startY - n.currentY) / m.value * 100) : (n.currentX = Q, C = (n.currentX - n.startX) / m.value * 100), n.newPosition = n.startPosition + C, G(n.newPosition);
475
+ }
476
+ }, A = () => {
477
+ n.dragging && (setTimeout(() => {
478
+ n.dragging = !1, n.hovering || K(), n.isClick || G(n.newPosition), f();
479
+ }, 0), window.removeEventListener("mousemove", B), window.removeEventListener("touchmove", B), window.removeEventListener("mouseup", A), window.removeEventListener("touchend", A), window.removeEventListener("contextmenu", A));
480
+ }, G = async (b) => {
481
+ if (b === null || Number.isNaN(+b))
482
+ return;
483
+ b < 0 ? b = 0 : b > 100 && (b = 100);
484
+ const C = 100 / ((V.value - h.value) / d.value);
485
+ let oe = Math.round(b / C) * C * (V.value - h.value) * 0.01 + h.value;
486
+ oe = Number.parseFloat(oe.toFixed(y.value)), oe !== e.modelValue && s(ne, oe), !n.dragging && e.modelValue !== n.oldValue && (n.oldValue = e.modelValue), await Pe(), n.dragging && S(), U.value.updatePopper();
487
+ };
488
+ return ye(() => n.dragging, (b) => {
489
+ W(b);
490
+ }), Fe(O, "touchstart", J, { passive: !1 }), {
491
+ disabled: a,
492
+ button: O,
493
+ tooltip: U,
494
+ tooltipVisible: D,
495
+ showTooltip: c,
496
+ wrapperStyle: r,
497
+ formatValue: F,
498
+ handleMouseEnter: x,
499
+ handleMouseLeave: Z,
500
+ onButtonDown: J,
501
+ onKeyDown: v,
502
+ setPosition: G
503
+ };
504
+ }, fl = (e, n, s, a) => ({
505
+ stops: N(() => {
506
+ if (!e.showStops || e.min > e.max)
507
+ return [];
508
+ if (e.step === 0)
509
+ return he("ElSlider", "step should not be 0."), [];
510
+ const d = (e.max - e.min) / e.step, c = 100 * e.step / (e.max - e.min), y = Array.from({ length: d - 1 }).map((m, w) => (w + 1) * c);
511
+ return e.range ? y.filter((m) => m < 100 * (s.value - e.min) / (e.max - e.min) || m > 100 * (a.value - e.min) / (e.max - e.min)) : y.filter((m) => m > 100 * (n.firstValue - e.min) / (e.max - e.min));
512
+ }),
513
+ getStopStyle: (d) => e.vertical ? { bottom: `${d}%` } : { left: `${d}%` }
514
+ }), gl = (e, n, s, a, h, V) => {
515
+ const d = (m) => {
516
+ h(ne, m), h(re, m);
517
+ }, c = () => e.range ? ![s.value, a.value].every((m, w) => m === n.oldValue[w]) : e.modelValue !== n.oldValue, y = () => {
518
+ var m, w;
519
+ e.min > e.max && De("Slider", "min should not be greater than max.");
520
+ const f = e.modelValue;
521
+ e.range && Array.isArray(f) ? f[1] < e.min ? d([e.min, e.min]) : f[0] > e.max ? d([e.max, e.max]) : f[0] < e.min ? d([e.min, f[1]]) : f[1] > e.max ? d([f[0], e.max]) : (n.firstValue = f[0], n.secondValue = f[1], c() && (e.validateEvent && ((m = V == null ? void 0 : V.validate) == null || m.call(V, "change").catch((T) => he(T))), n.oldValue = f.slice())) : !e.range && typeof f == "number" && !Number.isNaN(f) && (f < e.min ? d(e.min) : f > e.max ? d(e.max) : (n.firstValue = f, c() && (e.validateEvent && ((w = V == null ? void 0 : V.validate) == null || w.call(V, "change").catch((T) => he(T))), n.oldValue = f)));
522
+ };
523
+ y(), ye(() => n.dragging, (m) => {
524
+ m || y();
525
+ }), ye(() => e.modelValue, (m, w) => {
526
+ n.dragging || Array.isArray(m) && Array.isArray(w) && m.every((f, T) => f === w[T]) && n.firstValue === m[0] && n.secondValue === m[1] || y();
527
+ }, {
528
+ deep: !0
529
+ }), ye(() => [e.min, e.max], () => {
530
+ y();
531
+ });
532
+ }, bl = Ae({
533
+ modelValue: {
534
+ type: Number,
535
+ default: 0
536
+ },
537
+ vertical: Boolean,
538
+ tooltipClass: String,
539
+ placement: {
540
+ type: String,
541
+ values: dt,
542
+ default: "top"
543
+ }
544
+ }), pl = {
545
+ [ne]: (e) => te(e)
546
+ }, hl = de({
547
+ name: "ElSliderButton"
548
+ }), yl = /* @__PURE__ */ de({
549
+ ...hl,
550
+ props: bl,
551
+ emits: pl,
552
+ setup(e, { expose: n, emit: s }) {
553
+ const a = e, h = $e("slider"), V = Qe({
554
+ hovering: !1,
555
+ dragging: !1,
556
+ isClick: !1,
557
+ startX: 0,
558
+ currentX: 0,
559
+ startY: 0,
560
+ currentY: 0,
561
+ startPosition: 0,
562
+ newPosition: 0,
563
+ oldValue: a.modelValue
564
+ }), {
565
+ disabled: d,
566
+ button: c,
567
+ tooltip: y,
568
+ showTooltip: m,
569
+ tooltipVisible: w,
570
+ wrapperStyle: f,
571
+ formatValue: T,
572
+ handleMouseEnter: W,
573
+ handleMouseLeave: U,
574
+ onButtonDown: D,
575
+ onKeyDown: F,
576
+ setPosition: S
577
+ } = ml(a, V, s), { hovering: K, dragging: O } = je(V);
578
+ return n({
579
+ onButtonDown: D,
580
+ onKeyDown: F,
581
+ setPosition: S,
582
+ hovering: K,
583
+ dragging: O
584
+ }), (Y, r) => (g(), z("div", {
585
+ ref_key: "button",
586
+ ref: c,
587
+ class: X([t(h).e("button-wrapper"), { hover: t(K), dragging: t(O) }]),
588
+ style: se(t(f)),
589
+ tabindex: t(d) ? -1 : 0,
590
+ onMouseenter: t(W),
591
+ onMouseleave: t(U),
592
+ onMousedown: t(D),
593
+ onFocus: t(W),
594
+ onBlur: t(U),
595
+ onKeydown: t(F)
596
+ }, [
597
+ M(t(ct), {
598
+ ref_key: "tooltip",
599
+ ref: y,
600
+ visible: t(w),
601
+ placement: Y.placement,
602
+ "fallback-placements": ["top", "bottom", "right", "left"],
603
+ "stop-popper-mouse-event": !1,
604
+ "popper-class": Y.tooltipClass,
605
+ disabled: !t(m),
606
+ persistent: ""
607
+ }, {
608
+ content: ee(() => [
609
+ u("span", null, _(t(T)), 1)
610
+ ]),
611
+ default: ee(() => [
612
+ u("div", {
613
+ class: X([t(h).e("button"), { hover: t(K), dragging: t(O) }])
614
+ }, null, 2)
615
+ ]),
616
+ _: 1
617
+ }, 8, ["visible", "placement", "popper-class", "disabled"])
618
+ ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"]));
619
+ }
620
+ });
621
+ var st = /* @__PURE__ */ Oe(yl, [["__file", "button.vue"]]);
622
+ const Vl = Ae({
623
+ mark: {
624
+ type: Ce([String, Object]),
625
+ default: void 0
626
+ }
627
+ });
628
+ var wl = de({
629
+ name: "ElSliderMarker",
630
+ props: Vl,
631
+ setup(e) {
632
+ const n = $e("slider"), s = N(() => Ie(e.mark) ? e.mark : e.mark.label), a = N(() => Ie(e.mark) ? void 0 : e.mark.style);
633
+ return () => Lt("div", {
634
+ class: n.e("marks-text"),
635
+ style: a.value
636
+ }, s.value);
637
+ }
638
+ });
639
+ const Sl = de({
640
+ name: "ElSlider"
641
+ }), kl = /* @__PURE__ */ de({
642
+ ...Sl,
643
+ props: Qt,
644
+ emits: el,
645
+ setup(e, { expose: n, emit: s }) {
646
+ const a = e, h = $e("slider"), { t: V } = ut(), d = Qe({
647
+ firstValue: 0,
648
+ secondValue: 0,
649
+ oldValue: 0,
650
+ dragging: !1,
651
+ sliderSize: 1
652
+ }), {
653
+ elFormItem: c,
654
+ slider: y,
655
+ firstButton: m,
656
+ secondButton: w,
657
+ sliderDisabled: f,
658
+ minValue: T,
659
+ maxValue: W,
660
+ runwayStyle: U,
661
+ barStyle: D,
662
+ resetSize: F,
663
+ emitChange: S,
664
+ onSliderWrapperPrevent: K,
665
+ onSliderClick: O,
666
+ onSliderDown: Y,
667
+ onSliderMarkerDown: r,
668
+ setFirstValue: x,
669
+ setSecondValue: Z
670
+ } = nl(a, d, s), { stops: J, getStopStyle: le } = fl(a, d, T, W), { inputId: ce, isLabeledByFormItem: ae } = vt(a, {
671
+ formItemContext: c
672
+ }), I = Ze(), R = N(() => a.inputSize || I.value), P = N(() => a.ariaLabel || V("el.slider.defaultLabel", {
673
+ min: a.min,
674
+ max: a.max
675
+ })), o = N(() => a.range ? a.rangeStartLabel || V("el.slider.defaultRangeStartLabel") : P.value), v = N(() => a.formatValueText ? a.formatValueText(C.value) : `${C.value}`), k = N(() => a.rangeEndLabel || V("el.slider.defaultRangeEndLabel")), L = N(() => a.formatValueText ? a.formatValueText(Q.value) : `${Q.value}`), B = N(() => [
676
+ h.b(),
677
+ h.m(I.value),
678
+ h.is("vertical", a.vertical),
679
+ { [h.m("with-input")]: a.showInput }
680
+ ]), A = ll(a);
681
+ gl(a, d, T, W, s, c);
682
+ const G = N(() => {
683
+ const E = [a.min, a.max, a.step].map((Ve) => {
684
+ const ve = `${Ve}`.split(".")[1];
685
+ return ve ? ve.length : 0;
686
+ });
687
+ return Math.max.apply(null, E);
688
+ }), { sliderWrapper: b } = tl(a, d, F), { firstValue: C, secondValue: Q, sliderSize: oe } = je(d), Be = (E) => {
689
+ d.dragging = E;
690
+ };
691
+ return Fe(b, "touchstart", K, {
692
+ passive: !1
693
+ }), Fe(b, "touchmove", K, {
694
+ passive: !1
695
+ }), Ut(mt, {
696
+ ...je(a),
697
+ sliderSize: oe,
698
+ disabled: f,
699
+ precision: G,
700
+ emitChange: S,
701
+ resetSize: F,
702
+ updateDragging: Be
703
+ }), n({
704
+ onSliderClick: O
705
+ }), (E, Ve) => {
706
+ var ve, Se;
707
+ return g(), z("div", {
708
+ id: E.range ? t(ce) : void 0,
709
+ ref_key: "sliderWrapper",
710
+ ref: b,
711
+ class: X(t(B)),
712
+ role: E.range ? "group" : void 0,
713
+ "aria-label": E.range && !t(ae) ? t(P) : void 0,
714
+ "aria-labelledby": E.range && t(ae) ? (ve = t(c)) == null ? void 0 : ve.labelId : void 0
715
+ }, [
716
+ u("div", {
717
+ ref_key: "slider",
718
+ ref: y,
719
+ class: X([
720
+ t(h).e("runway"),
721
+ { "show-input": E.showInput && !E.range },
722
+ t(h).is("disabled", t(f))
723
+ ]),
724
+ style: se(t(U)),
725
+ onMousedown: t(Y),
726
+ onTouchstartPassive: t(Y)
727
+ }, [
728
+ u("div", {
729
+ class: X(t(h).e("bar")),
730
+ style: se(t(D))
731
+ }, null, 6),
732
+ M(st, {
733
+ id: E.range ? void 0 : t(ce),
734
+ ref_key: "firstButton",
735
+ ref: m,
736
+ "model-value": t(C),
737
+ vertical: E.vertical,
738
+ "tooltip-class": E.tooltipClass,
739
+ placement: E.placement,
740
+ role: "slider",
741
+ "aria-label": E.range || !t(ae) ? t(o) : void 0,
742
+ "aria-labelledby": !E.range && t(ae) ? (Se = t(c)) == null ? void 0 : Se.labelId : void 0,
743
+ "aria-valuemin": E.min,
744
+ "aria-valuemax": E.range ? t(Q) : E.max,
745
+ "aria-valuenow": t(C),
746
+ "aria-valuetext": t(v),
747
+ "aria-orientation": E.vertical ? "vertical" : "horizontal",
748
+ "aria-disabled": t(f),
749
+ "onUpdate:modelValue": t(x)
750
+ }, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
751
+ E.range ? (g(), q(st, {
752
+ key: 0,
753
+ ref_key: "secondButton",
754
+ ref: w,
755
+ "model-value": t(Q),
756
+ vertical: E.vertical,
757
+ "tooltip-class": E.tooltipClass,
758
+ placement: E.placement,
759
+ role: "slider",
760
+ "aria-label": t(k),
761
+ "aria-valuemin": t(C),
762
+ "aria-valuemax": E.max,
763
+ "aria-valuenow": t(Q),
764
+ "aria-valuetext": t(L),
765
+ "aria-orientation": E.vertical ? "vertical" : "horizontal",
766
+ "aria-disabled": t(f),
767
+ "onUpdate:modelValue": t(Z)
768
+ }, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : H("v-if", !0),
769
+ E.showStops ? (g(), z("div", { key: 1 }, [
770
+ (g(!0), z(pe, null, Ne(t(J), (ie, fe) => (g(), z("div", {
771
+ key: fe,
772
+ class: X(t(h).e("stop")),
773
+ style: se(t(le)(ie))
774
+ }, null, 6))), 128))
775
+ ])) : H("v-if", !0),
776
+ t(A).length > 0 ? (g(), z(pe, { key: 2 }, [
777
+ u("div", null, [
778
+ (g(!0), z(pe, null, Ne(t(A), (ie, fe) => (g(), z("div", {
779
+ key: fe,
780
+ style: se(t(le)(ie.position)),
781
+ class: X([t(h).e("stop"), t(h).e("marks-stop")])
782
+ }, null, 6))), 128))
783
+ ]),
784
+ u("div", {
785
+ class: X(t(h).e("marks"))
786
+ }, [
787
+ (g(!0), z(pe, null, Ne(t(A), (ie, fe) => (g(), q(t(wl), {
788
+ key: fe,
789
+ mark: ie.mark,
790
+ style: se(t(le)(ie.position)),
791
+ onMousedown: xe((p) => t(r)(ie.position), ["stop"])
792
+ }, null, 8, ["mark", "style", "onMousedown"]))), 128))
793
+ ], 2)
794
+ ], 64)) : H("v-if", !0)
795
+ ], 46, ["onMousedown", "onTouchstartPassive"]),
796
+ E.showInput && !E.range ? (g(), q(t(Jt), {
797
+ key: 0,
798
+ ref: "input",
799
+ "model-value": t(C),
800
+ class: X(t(h).e("input")),
801
+ step: E.step,
802
+ disabled: t(f),
803
+ controls: E.showInputControls,
804
+ min: E.min,
805
+ max: E.max,
806
+ precision: t(G),
807
+ debounce: E.debounce,
808
+ size: t(R),
809
+ "onUpdate:modelValue": t(x),
810
+ onChange: t(S)
811
+ }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "debounce", "size", "onUpdate:modelValue", "onChange"])) : H("v-if", !0)
812
+ ], 10, ["id", "role", "aria-label", "aria-labelledby"]);
813
+ };
814
+ }
815
+ });
816
+ var El = /* @__PURE__ */ Oe(kl, [["__file", "slider.vue"]]);
817
+ const Cl = Je(El), Il = Ae({
818
+ modelValue: {
819
+ type: [Boolean, String, Number],
820
+ default: !1
821
+ },
822
+ disabled: Boolean,
823
+ loading: Boolean,
824
+ size: {
825
+ type: String,
826
+ validator: jt
827
+ },
828
+ width: {
829
+ type: [String, Number],
830
+ default: ""
831
+ },
832
+ inlinePrompt: Boolean,
833
+ inactiveActionIcon: {
834
+ type: Le
835
+ },
836
+ activeActionIcon: {
837
+ type: Le
838
+ },
839
+ activeIcon: {
840
+ type: Le
841
+ },
842
+ inactiveIcon: {
843
+ type: Le
844
+ },
845
+ activeText: {
846
+ type: String,
847
+ default: ""
848
+ },
849
+ inactiveText: {
850
+ type: String,
851
+ default: ""
852
+ },
853
+ activeValue: {
854
+ type: [Boolean, String, Number],
855
+ default: !0
856
+ },
857
+ inactiveValue: {
858
+ type: [Boolean, String, Number],
859
+ default: !1
860
+ },
861
+ name: {
862
+ type: String,
863
+ default: ""
864
+ },
865
+ validateEvent: {
866
+ type: Boolean,
867
+ default: !0
868
+ },
869
+ beforeChange: {
870
+ type: Ce(Function)
871
+ },
872
+ id: String,
873
+ tabindex: {
874
+ type: [String, Number]
875
+ },
876
+ ...Ge(["ariaLabel"])
877
+ }), Nl = {
878
+ [ne]: (e) => Ue(e) || Ie(e) || te(e),
879
+ [we]: (e) => Ue(e) || Ie(e) || te(e),
880
+ [re]: (e) => Ue(e) || Ie(e) || te(e)
881
+ }, He = "ElSwitch", Bl = de({
882
+ name: He
883
+ }), Tl = /* @__PURE__ */ de({
884
+ ...Bl,
885
+ props: Il,
886
+ emits: Nl,
887
+ setup(e, { expose: n, emit: s }) {
888
+ const a = e, { formItem: h } = qe(), V = Ze(), d = $e("switch"), { inputId: c } = vt(a, {
889
+ formItemContext: h
890
+ }), y = rt(N(() => a.loading)), m = $(a.modelValue !== !1), w = $(), f = $(), T = N(() => [
891
+ d.b(),
892
+ d.m(V.value),
893
+ d.is("disabled", y.value),
894
+ d.is("checked", S.value)
895
+ ]), W = N(() => [
896
+ d.e("label"),
897
+ d.em("label", "left"),
898
+ d.is("active", !S.value)
899
+ ]), U = N(() => [
900
+ d.e("label"),
901
+ d.em("label", "right"),
902
+ d.is("active", S.value)
903
+ ]), D = N(() => ({
904
+ width: kt(a.width)
905
+ }));
906
+ ye(() => a.modelValue, () => {
907
+ m.value = !0;
908
+ });
909
+ const F = N(() => m.value ? a.modelValue : !1), S = N(() => F.value === a.activeValue);
910
+ [a.activeValue, a.inactiveValue].includes(F.value) || (s(ne, a.inactiveValue), s(we, a.inactiveValue), s(re, a.inactiveValue)), ye(S, (r) => {
911
+ var x;
912
+ w.value.checked = r, a.validateEvent && ((x = h == null ? void 0 : h.validate) == null || x.call(h, "change").catch((Z) => he(Z)));
913
+ });
914
+ const K = () => {
915
+ const r = S.value ? a.inactiveValue : a.activeValue;
916
+ s(ne, r), s(we, r), s(re, r), Pe(() => {
917
+ w.value.checked = S.value;
918
+ });
919
+ }, O = () => {
920
+ if (y.value)
921
+ return;
922
+ const { beforeChange: r } = a;
923
+ if (!r) {
924
+ K();
925
+ return;
926
+ }
927
+ const x = r();
928
+ [
929
+ nt(x),
930
+ Ue(x)
931
+ ].includes(!0) || De(He, "beforeChange must return type `Promise<boolean>` or `boolean`"), nt(x) ? x.then((J) => {
932
+ J && K();
933
+ }).catch((J) => {
934
+ he(He, `some error occurred: ${J}`);
935
+ }) : x && K();
936
+ }, Y = () => {
937
+ var r, x;
938
+ (x = (r = w.value) == null ? void 0 : r.focus) == null || x.call(r);
939
+ };
940
+ return Re(() => {
941
+ w.value.checked = S.value;
942
+ }), n({
943
+ focus: Y,
944
+ checked: S
945
+ }), (r, x) => (g(), z("div", {
946
+ class: X(t(T)),
947
+ onClick: xe(O, ["prevent"])
948
+ }, [
949
+ u("input", {
950
+ id: t(c),
951
+ ref_key: "input",
952
+ ref: w,
953
+ class: X(t(d).e("input")),
954
+ type: "checkbox",
955
+ role: "switch",
956
+ "aria-checked": t(S),
957
+ "aria-disabled": t(y),
958
+ "aria-label": r.ariaLabel,
959
+ name: r.name,
960
+ "true-value": r.activeValue,
961
+ "false-value": r.inactiveValue,
962
+ disabled: t(y),
963
+ tabindex: r.tabindex,
964
+ onChange: K,
965
+ onKeydown: _e(O, ["enter"])
966
+ }, null, 42, ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex", "onKeydown"]),
967
+ !r.inlinePrompt && (r.inactiveIcon || r.inactiveText) ? (g(), z("span", {
968
+ key: 0,
969
+ class: X(t(W))
970
+ }, [
971
+ r.inactiveIcon ? (g(), q(t(be), { key: 0 }, {
972
+ default: ee(() => [
973
+ (g(), q(Te(r.inactiveIcon)))
974
+ ]),
975
+ _: 1
976
+ })) : H("v-if", !0),
977
+ !r.inactiveIcon && r.inactiveText ? (g(), z("span", {
978
+ key: 1,
979
+ "aria-hidden": t(S)
980
+ }, _(r.inactiveText), 9, ["aria-hidden"])) : H("v-if", !0)
981
+ ], 2)) : H("v-if", !0),
982
+ u("span", {
983
+ ref_key: "core",
984
+ ref: f,
985
+ class: X(t(d).e("core")),
986
+ style: se(t(D))
987
+ }, [
988
+ r.inlinePrompt ? (g(), z("div", {
989
+ key: 0,
990
+ class: X(t(d).e("inner"))
991
+ }, [
992
+ r.activeIcon || r.inactiveIcon ? (g(), q(t(be), {
993
+ key: 0,
994
+ class: X(t(d).is("icon"))
995
+ }, {
996
+ default: ee(() => [
997
+ (g(), q(Te(t(S) ? r.activeIcon : r.inactiveIcon)))
998
+ ]),
999
+ _: 1
1000
+ }, 8, ["class"])) : r.activeText || r.inactiveText ? (g(), z("span", {
1001
+ key: 1,
1002
+ class: X(t(d).is("text")),
1003
+ "aria-hidden": !t(S)
1004
+ }, _(t(S) ? r.activeText : r.inactiveText), 11, ["aria-hidden"])) : H("v-if", !0)
1005
+ ], 2)) : H("v-if", !0),
1006
+ u("div", {
1007
+ class: X(t(d).e("action"))
1008
+ }, [
1009
+ r.loading ? (g(), q(t(be), {
1010
+ key: 0,
1011
+ class: X(t(d).is("loading"))
1012
+ }, {
1013
+ default: ee(() => [
1014
+ M(t(Xt))
1015
+ ]),
1016
+ _: 1
1017
+ }, 8, ["class"])) : t(S) ? Ke(r.$slots, "active-action", { key: 1 }, () => [
1018
+ r.activeActionIcon ? (g(), q(t(be), { key: 0 }, {
1019
+ default: ee(() => [
1020
+ (g(), q(Te(r.activeActionIcon)))
1021
+ ]),
1022
+ _: 1
1023
+ })) : H("v-if", !0)
1024
+ ]) : t(S) ? H("v-if", !0) : Ke(r.$slots, "inactive-action", { key: 2 }, () => [
1025
+ r.inactiveActionIcon ? (g(), q(t(be), { key: 0 }, {
1026
+ default: ee(() => [
1027
+ (g(), q(Te(r.inactiveActionIcon)))
1028
+ ]),
1029
+ _: 1
1030
+ })) : H("v-if", !0)
1031
+ ])
1032
+ ], 2)
1033
+ ], 6),
1034
+ !r.inlinePrompt && (r.activeIcon || r.activeText) ? (g(), z("span", {
1035
+ key: 1,
1036
+ class: X(t(U))
1037
+ }, [
1038
+ r.activeIcon ? (g(), q(t(be), { key: 0 }, {
1039
+ default: ee(() => [
1040
+ (g(), q(Te(r.activeIcon)))
1041
+ ]),
1042
+ _: 1
1043
+ })) : H("v-if", !0),
1044
+ !r.activeIcon && r.activeText ? (g(), z("span", {
1045
+ key: 1,
1046
+ "aria-hidden": !t(S)
1047
+ }, _(r.activeText), 9, ["aria-hidden"])) : H("v-if", !0)
1048
+ ], 2)) : H("v-if", !0)
1049
+ ], 10, ["onClick"]));
1050
+ }
1051
+ });
1052
+ var _l = /* @__PURE__ */ Oe(Tl, [["__file", "switch.vue"]]);
1053
+ const Ml = Je(_l), xl = { style: { height: "var(--setting-content-height)" } }, Pl = { class: "setting-title" }, Al = {
1054
+ key: 0,
1055
+ class: "color-list"
1056
+ }, $l = ["onClick"], zl = { class: "setting-effect" }, Ll = { class: "setting-effect" }, Ul = { class: "light-slider" }, Fl = {
1057
+ key: 1,
1058
+ class: "setting-title"
1059
+ }, Kl = {
1060
+ key: 2,
1061
+ class: "setting-effect"
1062
+ }, Ol = { class: "setting-effect" }, Rl = { style: { cursor: "help" } }, Yl = { class: "setting-title" }, Wl = { class: "setting-effect" }, Xl = { class: "setting-effect" }, jl = { class: "setting-effect" }, Hl = { class: "setting-effect" }, Gl = { class: "setting-effect" }, ql = { class: "setting-effect" }, Zl = {
1063
+ key: 1,
1064
+ class: "setting_panel"
1065
+ }, Dl = { class: "setting-title-box" }, Jl = { class: "setting-title" }, Ql = { class: "setting-title-icon" }, en = { class: "setting-color-box" }, tn = { class: "setting-color-list" }, ln = ["onClick"], nn = { class: "setting-config-box" }, an = { class: "setting-switch-item" }, on = { class: "setting-switch-item" }, sn = { class: "setting-switch-item" }, un = { class: "setting-switch-item" }, rn = { class: "setting-switch-item" }, dn = { class: "setting-switch-item" }, cn = { class: "setting-switch-item" }, vn = { class: "setting-switch-item" }, mn = { class: "light-slider" }, fn = { class: "setting-switch-item" }, gn = { class: "speed-slider" }, bn = { class: "setting-switch-item" }, pn = ["title"], it = "BIMX_PERF", hn = /* @__PURE__ */ de({
1066
+ __name: "SettingTool",
1067
+ props: {
1068
+ instruction: {},
1069
+ componentId: {}
1070
+ },
1071
+ emits: ["closePanel", "emitHandler"],
1072
+ setup(e, { emit: n }) {
1073
+ const s = Et(), a = Ct(), h = It(), V = e, d = $(0);
1074
+ Re(() => {
1075
+ h.setReadyById(V.componentId), at.currentTheme == "blue" ? d.value = 240 : at.currentTheme == "light-gray" && (d.value = 202);
1076
+ });
1077
+ let c;
1078
+ const y = $(!1), m = $(!1), w = $(!1), f = $(!1), T = $(!1), W = $(!0), U = $(!1), D = $(!1), F = $(1), S = $(50), K = $(!1), O = $(!1), Y = $(!1);
1079
+ try {
1080
+ Y.value = localStorage.getItem(it) === "1";
1081
+ } catch {
1082
+ }
1083
+ const r = new Kt(5), x = $(!1);
1084
+ ye(
1085
+ () => h.isToolActive(V.componentId),
1086
+ (p) => {
1087
+ p === !1 ? (r.stop(), K.value && o()) : x.value || (x.value = !0);
1088
+ }
1089
+ );
1090
+ const Z = $(50), J = $(["亮"]), le = $(["亮", "暗"]), ce = {
1091
+ 亮: "setting.spaceEffects.bright",
1092
+ 暗: "setting.spaceEffects.dark"
1093
+ }, ae = $("linear-gradient(180deg, #fffefb 0%, #daebff 100%)"), I = n;
1094
+ N({
1095
+ get: () => a.locale,
1096
+ set: (p) => a.setLocale(p)
1097
+ });
1098
+ const R = () => {
1099
+ c = window.bimViewer, c.viewer.scene.on("aabb", () => {
1100
+ Ve(U.value), Se(!0);
1101
+ });
1102
+ }, P = () => {
1103
+ x.value && (K.value = !0, r.start(() => {
1104
+ o();
1105
+ }));
1106
+ }, o = () => {
1107
+ var l, j;
1108
+ let p;
1109
+ ge("isMobile") ? p = {
1110
+ backgroundColor: ((l = ke.find((me) => me.id == F.value)) == null ? void 0 : l.name) ?? "渐变蓝",
1111
+ showEdges: w.value,
1112
+ lightIntensity: S.value,
1113
+ skyBox: f.value,
1114
+ orthoMode: T.value,
1115
+ modelType2D: W.value,
1116
+ yAxisDown: y.value,
1117
+ zAxisUp: m.value,
1118
+ showSpace: U.value,
1119
+ spaceEffect: O.value,
1120
+ touchDollySpeed: Z.value
1121
+ } : p = {
1122
+ backgroundColor: ((j = ke.find((me) => me.id == F.value)) == null ? void 0 : j.name) ?? "渐变蓝",
1123
+ showEdges: w.value,
1124
+ lightIntensity: S.value,
1125
+ skyBox: f.value,
1126
+ orthoMode: T.value,
1127
+ modelType2D: W.value,
1128
+ yAxisDown: y.value,
1129
+ zAxisUp: m.value,
1130
+ showSpace: U.value,
1131
+ spaceEffect: J.value[0],
1132
+ touchDollySpeed: Z.value
1133
+ }, k({
1134
+ isTool: !0,
1135
+ event_target: "SettingTool",
1136
+ event_name: "saveSetting",
1137
+ content: {
1138
+ newSets: p
1139
+ }
1140
+ }), K.value = !1;
1141
+ }, v = (p) => {
1142
+ const l = p.lastSet, j = ke.find((me) => me.name == l.backgroundColor);
1143
+ F.value = j ? j.id : 1, b(j ?? ke[0]), w.value = l.showEdges, Q(w.value), S.value = l.lightIntensity, C(S.value), T.value = l.orthoMode, E(T.value), W.value = l.modelType2D, Be(W.value), U.value = l.showSpace, Ve(U.value), ge("isMobile") ? (O.value = typeof l.spaceEffect == "string" ? l.spaceEffect == "亮" : typeof l.spaceEffect == "boolean" ? l.spaceEffect : !0, Se(O.value)) : (J.value = [l.spaceEffect], ve(J.value[0])), y.value = l.yAxisDown, y.value && G(), m.value = l.zAxisUp, m.value && A(), Z.value = l.touchDollySpeed ?? 50, ge("isMobile") ? fe(Z.value) : (f.value = l.skyBox, ie(f.value)), K.value = !1;
1144
+ };
1145
+ Ee.on("BimViewer", R), Ee.on("lastSetsContent", v), Ft(() => {
1146
+ Ee.off("BimViewer", R), Ee.off("lastSetsContent", v);
1147
+ });
1148
+ const k = (p) => {
1149
+ I("emitHandler", p);
1150
+ }, L = (p) => {
1151
+ p && p.target.id != "setting_back" || (Ee.emit("hideToolbar", !1), I("closePanel"), B(!1));
1152
+ }, B = (p = !D.value) => {
1153
+ D.value = p;
1154
+ }, A = () => {
1155
+ P(), m.value && (y.value = !1), window.bimViewer.setWorldAxisZUp(m.value), E(T.value);
1156
+ }, G = () => {
1157
+ P(), y.value && (m.value = !1), window.bimViewer.setWorldAxisYDown(y.value), E(T.value);
1158
+ }, b = (p) => {
1159
+ P(), F.value = p.id, ae.value = p.color, Ee.emit("changeBackgroundColor", p.color);
1160
+ }, C = (p) => {
1161
+ P(), c.setLightIntensity(p);
1162
+ }, Q = (p) => {
1163
+ P(), c.setAllObjectsEdges(p), p || c.setObjectsEdges(Nt.entityState.edgesObjectIds, !0);
1164
+ }, oe = () => {
1165
+ try {
1166
+ localStorage.setItem(it, Y.value ? "1" : "0");
1167
+ } catch {
1168
+ }
1169
+ location.reload();
1170
+ }, Be = (p) => {
1171
+ P(), c.SetThreeDModeActive(p), ge("isMobile") && (window.bimViewer.navCubeMode.visible = !1);
1172
+ }, E = (p) => {
1173
+ P(), c.SetOrthoModeActive(p);
1174
+ }, Ve = (p) => {
1175
+ P(), c.SetShowSpaceModeActive(p), ve(O.value ? 1 : 2);
1176
+ }, ve = (p) => {
1177
+ P(), p == "亮" ? window.bimViewer.setSpaceMaterialColor(1) : window.bimViewer.setSpaceMaterialColor(2), J.value = le.value.includes(p) ? [p] : [];
1178
+ }, Se = (p = !O.value) => {
1179
+ P(), window.bimViewer.setSpaceMaterialColor(p ? 2 : 1);
1180
+ }, ie = (p) => {
1181
+ P(), c.SetSkyBoxToolActive(p);
1182
+ }, fe = (p) => {
1183
+ P(), p == 0 ? c.viewer.cameraControl.customTouchDollyRate = 0.05 / 50 : c.viewer.cameraControl.customTouchDollyRate = p / 50;
1184
+ };
1185
+ return (p, l) => {
1186
+ const j = Ml, me = Cl, ft = ct, gt = Bt, bt = Tt, et = _t, pt = Pt, ht = Mt;
1187
+ return g(), z(pe, null, [
1188
+ t(ge)("isMobile") ? H("", !0) : (g(), q(pt, {
1189
+ key: 0,
1190
+ class: "setting_contaier",
1191
+ width: d.value,
1192
+ panelTitle: t(s)("setting.title"),
1193
+ "click-handle": L,
1194
+ style: { height: "var(--setting-panel-height)" }
1195
+ }, {
1196
+ default: ee(() => [
1197
+ u("div", xl, [
1198
+ M(et, null, {
1199
+ default: ee(() => [
1200
+ u("div", Pl, _(t(s)("setting.effect")), 1),
1201
+ u("div", {
1202
+ class: "setting-effect",
1203
+ onClick: l[0] || (l[0] = (i) => B())
1204
+ }, [
1205
+ ue(_(t(s)("setting.bgColor")) + " ", 1),
1206
+ u("div", {
1207
+ class: "choose-color",
1208
+ style: se({ background: ae.value })
1209
+ }, null, 4)
1210
+ ]),
1211
+ D.value ? (g(), z("div", Al, [
1212
+ (g(!0), z(pe, null, Ne(t(ke), (i) => (g(), z("div", {
1213
+ key: i.id,
1214
+ class: X(["color-item", { "color-item-active": F.value === i.id }]),
1215
+ onClick: (Ye) => b(i)
1216
+ }, [
1217
+ u("div", {
1218
+ class: "bg",
1219
+ style: se({ background: i.color, border: i.id === 4 ? "1px solid #F1F1F1" : "none" })
1220
+ }, null, 4),
1221
+ ue(" " + _(t(s)(i.label || i.name)), 1)
1222
+ ], 10, $l))), 128))
1223
+ ])) : H("", !0),
1224
+ u("div", zl, [
1225
+ ue(_(t(s)("setting.showEdges")) + " ", 1),
1226
+ M(j, {
1227
+ modelValue: w.value,
1228
+ "onUpdate:modelValue": l[1] || (l[1] = (i) => w.value = i),
1229
+ style: { "--el-switch-on-color": "#0065fc" },
1230
+ onChange: l[2] || (l[2] = (i) => Q())
1231
+ }, null, 8, ["modelValue"])
1232
+ ]),
1233
+ u("div", Ll, [
1234
+ ue(_(t(s)("setting.lightIntensity")) + " ", 1),
1235
+ u("div", Ul, [
1236
+ M(me, {
1237
+ modelValue: S.value,
1238
+ "onUpdate:modelValue": l[3] || (l[3] = (i) => S.value = i),
1239
+ onInput: l[4] || (l[4] = (i) => C(S.value))
1240
+ }, null, 8, ["modelValue"])
1241
+ ])
1242
+ ]),
1243
+ t(ge)("skyboxImg") ? (g(), z("div", Fl, _(t(s)("setting.appearance")), 1)) : H("", !0),
1244
+ t(ge)("skyboxImg") ? (g(), z("div", Kl, [
1245
+ ue(_(t(s)("setting.skybox")) + " ", 1),
1246
+ M(j, {
1247
+ modelValue: f.value,
1248
+ "onUpdate:modelValue": l[5] || (l[5] = (i) => f.value = i),
1249
+ style: { "--el-switch-on-color": "#0065fc" },
1250
+ onChange: l[6] || (l[6] = (i) => ie())
1251
+ }, null, 8, ["modelValue"])
1252
+ ])) : H("", !0),
1253
+ u("div", Ol, [
1254
+ M(ft, {
1255
+ content: t(s)("setting.perfModeTip"),
1256
+ placement: "top",
1257
+ effect: "light"
1258
+ }, {
1259
+ default: ee(() => [
1260
+ u("span", Rl, _(t(s)("setting.perfMode")), 1)
1261
+ ]),
1262
+ _: 1
1263
+ }, 8, ["content"]),
1264
+ M(j, {
1265
+ modelValue: Y.value,
1266
+ "onUpdate:modelValue": l[7] || (l[7] = (i) => Y.value = i),
1267
+ style: { "--el-switch-on-color": "#0065fc" },
1268
+ onChange: l[8] || (l[8] = (i) => oe())
1269
+ }, null, 8, ["modelValue"])
1270
+ ]),
1271
+ u("div", Yl, _(t(s)("setting.modelViewSwitch")), 1),
1272
+ u("div", Wl, [
1273
+ ue(_(t(s)("setting.perspective")) + " ", 1),
1274
+ M(j, {
1275
+ modelValue: T.value,
1276
+ "onUpdate:modelValue": l[9] || (l[9] = (i) => T.value = i),
1277
+ style: { "--el-switch-on-color": "#0065fc" },
1278
+ onChange: l[10] || (l[10] = (i) => E())
1279
+ }, null, 8, ["modelValue"])
1280
+ ]),
1281
+ u("div", Xl, [
1282
+ ue(_(t(s)("setting.mode2d3d")) + " ", 1),
1283
+ M(j, {
1284
+ modelValue: W.value,
1285
+ "onUpdate:modelValue": l[11] || (l[11] = (i) => W.value = i),
1286
+ style: { "--el-switch-on-color": "#0065fc" },
1287
+ onChange: l[12] || (l[12] = (i) => Be())
1288
+ }, null, 8, ["modelValue"])
1289
+ ]),
1290
+ u("div", jl, [
1291
+ u("div", null, _(t(s)("setting.modelInvert")), 1),
1292
+ u("div", null, [
1293
+ M(j, {
1294
+ modelValue: y.value,
1295
+ "onUpdate:modelValue": l[13] || (l[13] = (i) => y.value = i),
1296
+ style: { "--el-switch-on-color": "#0065fc" },
1297
+ onChange: l[14] || (l[14] = (i) => G())
1298
+ }, null, 8, ["modelValue"])
1299
+ ])
1300
+ ]),
1301
+ u("div", Hl, [
1302
+ u("div", null, _(t(s)("setting.zAxisUp")), 1),
1303
+ u("div", null, [
1304
+ M(j, {
1305
+ modelValue: m.value,
1306
+ "onUpdate:modelValue": l[15] || (l[15] = (i) => m.value = i),
1307
+ style: { "--el-switch-on-color": "#0065fc" },
1308
+ onChange: l[16] || (l[16] = (i) => A())
1309
+ }, null, 8, ["modelValue"])
1310
+ ])
1311
+ ]),
1312
+ u("div", Gl, [
1313
+ ue(_(t(s)("setting.modelSpace")) + " ", 1),
1314
+ M(j, {
1315
+ modelValue: U.value,
1316
+ "onUpdate:modelValue": l[17] || (l[17] = (i) => U.value = i),
1317
+ style: { "--el-switch-on-color": "#0065fc" },
1318
+ onChange: l[18] || (l[18] = (i) => Ve())
1319
+ }, null, 8, ["modelValue"])
1320
+ ]),
1321
+ u("div", ql, [
1322
+ ue(_(t(s)("setting.spaceEffect")) + " ", 1),
1323
+ M(bt, {
1324
+ modelValue: J.value,
1325
+ "onUpdate:modelValue": l[19] || (l[19] = (i) => J.value = i),
1326
+ size: "small"
1327
+ }, {
1328
+ default: ee(() => [
1329
+ (g(!0), z(pe, null, Ne(le.value, (i) => (g(), q(gt, {
1330
+ key: i,
1331
+ label: i,
1332
+ onChange: (Ye) => ve(i)
1333
+ }, {
1334
+ default: ee(() => [
1335
+ ue(_(t(s)(ce[i])), 1)
1336
+ ]),
1337
+ _: 2
1338
+ }, 1032, ["label", "onChange"]))), 128))
1339
+ ]),
1340
+ _: 1
1341
+ }, 8, ["modelValue"])
1342
+ ])
1343
+ ]),
1344
+ _: 1
1345
+ })
1346
+ ])
1347
+ ]),
1348
+ _: 1
1349
+ }, 8, ["width", "panelTitle"])),
1350
+ t(ge)("isMobile") ? (g(), z("div", Zl, [
1351
+ u("div", Dl, [
1352
+ u("div", Jl, _(t(s)("setting.title")), 1),
1353
+ u("div", Ql, [
1354
+ M(ht, {
1355
+ width: 0.4,
1356
+ "size-type": "rem",
1357
+ "click-handle": L
1358
+ })
1359
+ ])
1360
+ ]),
1361
+ u("div", en, [
1362
+ u("div", tn, [
1363
+ (g(!0), z(pe, null, Ne(t(ke), (i, Ye) => (g(), z("div", {
1364
+ key: Ye,
1365
+ class: X(["setting-color-item", {
1366
+ "setting-color-item-active": F.value === i.id
1367
+ }]),
1368
+ onClick: (yn) => b(i)
1369
+ }, [
1370
+ u("div", {
1371
+ class: "setting-color-icon",
1372
+ style: se({
1373
+ background: i.color,
1374
+ border: i.id === F.value ? "0.02rem solid #0065FC" : ""
1375
+ })
1376
+ }, null, 4),
1377
+ u("div", {
1378
+ class: "setting-color-name",
1379
+ style: se({ color: i.id === F.value ? "#0065FC" : "" })
1380
+ }, _(t(s)(i.label || i.name)), 5)
1381
+ ], 10, ln))), 128))
1382
+ ])
1383
+ ]),
1384
+ u("div", nn, [
1385
+ M(et, { height: "230" }, {
1386
+ default: ee(() => [
1387
+ u("div", an, [
1388
+ u("div", null, _(t(s)("setting.showEdges")), 1),
1389
+ u("div", null, [
1390
+ M(j, {
1391
+ modelValue: w.value,
1392
+ "onUpdate:modelValue": l[20] || (l[20] = (i) => w.value = i),
1393
+ size: "small",
1394
+ onChange: l[21] || (l[21] = (i) => Q())
1395
+ }, null, 8, ["modelValue"])
1396
+ ])
1397
+ ]),
1398
+ u("div", on, [
1399
+ u("div", null, _(t(s)("setting.perspective")), 1),
1400
+ u("div", null, [
1401
+ M(j, {
1402
+ modelValue: T.value,
1403
+ "onUpdate:modelValue": l[22] || (l[22] = (i) => T.value = i),
1404
+ size: "small",
1405
+ onChange: l[23] || (l[23] = (i) => E())
1406
+ }, null, 8, ["modelValue"])
1407
+ ])
1408
+ ]),
1409
+ u("div", sn, [
1410
+ u("div", null, _(t(s)("setting.mode2d3d")), 1),
1411
+ u("div", null, [
1412
+ M(j, {
1413
+ modelValue: W.value,
1414
+ "onUpdate:modelValue": l[24] || (l[24] = (i) => W.value = i),
1415
+ size: "small",
1416
+ onChange: l[25] || (l[25] = (i) => Be())
1417
+ }, null, 8, ["modelValue"])
1418
+ ])
1419
+ ]),
1420
+ u("div", un, [
1421
+ u("div", null, _(t(s)("setting.modelInvert")), 1),
1422
+ u("div", null, [
1423
+ M(j, {
1424
+ modelValue: y.value,
1425
+ "onUpdate:modelValue": l[26] || (l[26] = (i) => y.value = i),
1426
+ size: "small",
1427
+ onChange: l[27] || (l[27] = (i) => G())
1428
+ }, null, 8, ["modelValue"])
1429
+ ])
1430
+ ]),
1431
+ u("div", rn, [
1432
+ u("div", null, _(t(s)("setting.zAxisUp")), 1),
1433
+ u("div", null, [
1434
+ M(j, {
1435
+ modelValue: m.value,
1436
+ "onUpdate:modelValue": l[28] || (l[28] = (i) => m.value = i),
1437
+ size: "small",
1438
+ onChange: l[29] || (l[29] = (i) => A())
1439
+ }, null, 8, ["modelValue"])
1440
+ ])
1441
+ ]),
1442
+ u("div", dn, [
1443
+ u("div", null, _(t(s)("setting.modelSpace")), 1),
1444
+ u("div", null, [
1445
+ M(j, {
1446
+ modelValue: U.value,
1447
+ "onUpdate:modelValue": l[30] || (l[30] = (i) => U.value = i),
1448
+ size: "small",
1449
+ onChange: l[31] || (l[31] = (i) => Ve())
1450
+ }, null, 8, ["modelValue"])
1451
+ ])
1452
+ ]),
1453
+ u("div", cn, [
1454
+ u("div", null, _(t(s)("setting.spaceEffect")), 1),
1455
+ u("div", null, [
1456
+ M(j, {
1457
+ modelValue: O.value,
1458
+ "onUpdate:modelValue": l[32] || (l[32] = (i) => O.value = i),
1459
+ size: "small",
1460
+ onChange: l[33] || (l[33] = (i) => Se())
1461
+ }, null, 8, ["modelValue"])
1462
+ ])
1463
+ ]),
1464
+ u("div", vn, [
1465
+ u("div", null, _(t(s)("setting.lightIntensity")), 1),
1466
+ u("div", mn, [
1467
+ M(me, {
1468
+ modelValue: S.value,
1469
+ "onUpdate:modelValue": l[34] || (l[34] = (i) => S.value = i),
1470
+ onInput: l[35] || (l[35] = (i) => C(S.value))
1471
+ }, null, 8, ["modelValue"])
1472
+ ])
1473
+ ]),
1474
+ u("div", fn, [
1475
+ u("div", null, _(t(s)("setting.zoomSpeed")), 1),
1476
+ u("div", gn, [
1477
+ M(me, {
1478
+ modelValue: Z.value,
1479
+ "onUpdate:modelValue": l[36] || (l[36] = (i) => Z.value = i),
1480
+ onInput: l[37] || (l[37] = (i) => fe(Z.value))
1481
+ }, null, 8, ["modelValue"])
1482
+ ])
1483
+ ]),
1484
+ u("div", bn, [
1485
+ u("div", {
1486
+ title: t(s)("setting.perfModeTip")
1487
+ }, _(t(s)("setting.perfMode")), 9, pn),
1488
+ u("div", null, [
1489
+ M(j, {
1490
+ modelValue: Y.value,
1491
+ "onUpdate:modelValue": l[38] || (l[38] = (i) => Y.value = i),
1492
+ size: "small",
1493
+ onChange: l[39] || (l[39] = (i) => oe())
1494
+ }, null, 8, ["modelValue"])
1495
+ ])
1496
+ ])
1497
+ ]),
1498
+ _: 1
1499
+ })
1500
+ ])
1501
+ ])) : H("", !0)
1502
+ ], 64);
1503
+ };
1504
+ }
1505
+ }), Cn = /* @__PURE__ */ xt(hn, [["__scopeId", "data-v-8012e70e"]]);
1506
+ export {
1507
+ Cn as default
1508
+ };