@xtctwins/tctwins-industry-engine 0.1.3 → 0.1.5

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 (41) hide show
  1. package/README.md +198 -196
  2. package/dist/01.xtc +0 -0
  3. package/dist/02.xtc +0 -0
  4. package/dist/03.xtc +0 -0
  5. package/dist/{AnnotationTool-C7l6-OOY.mjs → AnnotationTool-CoLMXBdq.mjs} +3 -3
  6. package/dist/{CameraViewTool-D_EQ41Z1.mjs → CameraViewTool-URv93Kvz.mjs} +2 -2
  7. package/dist/CommentTool-UvHetlan.mjs +1573 -0
  8. package/dist/{HiddenTool-CIeAjgxq.mjs → HiddenTool-Bvko4ogj.mjs} +2 -2
  9. package/dist/Industry_Viewer_Lib.es.js +1 -1
  10. package/dist/Industry_Viewer_Lib.umd.js +107 -107
  11. package/dist/{InspectorTool-CZod-iTj.mjs → InspectorTool-sVk_2fxa.mjs} +4 -4
  12. package/dist/{MeasureTool-D4LogF0O.mjs → MeasureTool-BLPeIWQ0.mjs} +7 -7
  13. package/dist/{MouseTool-zmgqeZnH.mjs → MouseTool-BYLqcN6s.mjs} +1 -1
  14. package/dist/{NavigateTool-CS2EopuR.mjs → NavigateTool-BX44kuRa.mjs} +1 -1
  15. package/dist/{OperateTool-CG2aVzKk.mjs → OperateTool-C4OvDyBU.mjs} +28 -31
  16. package/dist/{RoamTool-BFL8VDlB.mjs → RoamTool-BMxm_pjN.mjs} +14 -14
  17. package/dist/{ScreenShotTool-Dz5RLoqN.mjs → ScreenShotTool-D-PrWABE.mjs} +2 -2
  18. package/dist/{SectionTool-IkA1bJ2y.mjs → SectionTool-DZGMljTJ.mjs} +4 -4
  19. package/dist/{SettingTool-DCIDMjRW.mjs → SettingTool-CLE-zJnu.mjs} +3 -3
  20. package/dist/{StructureTree-BT4rCLqe.mjs → StructureTree-BUAf_TKJ.mjs} +4 -4
  21. package/dist/{alert-LKnose49.mjs → alert-CuD0g-0E.mjs} +13 -13
  22. package/dist/{index-BDeMc4ft.mjs → index-B0z3YGL6.mjs} +11662 -11665
  23. package/dist/index.html +17 -0
  24. package/dist/{panel.vue_vue_type_style_index_0_lang-CCRmuixj.mjs → panel.vue_vue_type_style_index_0_lang-BiGK4hwS.mjs} +1 -1
  25. package/dist/style.css +1 -1
  26. package/dist/{tallPanel-D4xjdoyB.mjs → tallPanel-CNUByaaS.mjs} +6 -6
  27. package/package.json +85 -85
  28. package/types/components/BimViewerComponents/CommentTool.vue.d.ts +27 -0
  29. package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +14 -14
  30. package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +14 -14
  31. package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +3 -1
  32. package/types/components/BimViewerComponents/StructureTree.vue.d.ts +184 -184
  33. package/types/components/BimxViewerComp.vue.d.ts +25 -0
  34. package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +14 -14
  35. package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +14 -14
  36. package/types/components/utilsComponents/tallPanel.vue.d.ts +1 -1
  37. package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +1 -1
  38. package/types/pages/BimxViewerEntry.vue.d.ts +71 -0
  39. package/types/pages/IndustryViewerEntry.vue.d.ts +6 -1
  40. package/types/store/initConfigs.d.ts +1 -1
  41. package/dist/CommentTool-p6Un2NpR.mjs +0 -1528
@@ -0,0 +1,1573 @@
1
+ import { defineComponent as ne, ref as o, openBlock as i, createElementBlock as c, createElementVNode as e, unref as s, toDisplayString as n, withModifiers as G, Fragment as V, renderList as Q, createCommentVNode as U, createVNode as X, withCtx as de, toRefs as Ue, onMounted as he, watch as _e, normalizeStyle as te, createTextVNode as pe, createBlock as ae, computed as De, withDirectives as $e, vShow as ye, onBeforeUnmount as Le, normalizeClass as me, nextTick as He } from "vue";
2
+ import { P as L, M as ce, a5 as Me, F as re, K as xe, a6 as Oe, a7 as ze, a8 as Re, a9 as Ne, aa as Se, ab as Ce, ac as we, H, J as Pe, ad as Ee, a4 as We, ae as Ye, af as Je, ag as Ze, Z as Ge, $ as Ve, I as j, G as Be, ah as Ae, ai as je, aj as Xe, ak as qe } from "./index-B0z3YGL6.mjs";
3
+ import { T as Ke } from "./timer-DoTiGoWP.mjs";
4
+ import { ElMessage as Qe } from "element-plus";
5
+ const et = { class: "prompt_wrapper" }, tt = { class: "prompt_box" }, st = ["src"], ot = { class: "text" }, lt = /* @__PURE__ */ ne({
6
+ __name: "prompt",
7
+ props: ["text", "type"],
8
+ setup(W) {
9
+ const Y = W, N = o(Y.type), b = o(Y.text);
10
+ return (p, v) => (i(), c("div", et, [
11
+ e("div", tt, [
12
+ e("img", {
13
+ src: `${s(L)}/bim-viewer/prompt-${N.value}.svg`
14
+ }, null, 8, st),
15
+ e("div", ot, n(b.value), 1)
16
+ ])
17
+ ]));
18
+ }
19
+ }), it = /* @__PURE__ */ ce(lt, [["__scopeId", "data-v-72fc7693"]]), at = {
20
+ key: 0,
21
+ class: "mobile-cmt-filter-container"
22
+ }, nt = {
23
+ key: 0,
24
+ class: "search-container"
25
+ }, ct = { class: "search-header" }, rt = { class: "title" }, ut = ["src"], dt = { class: "search-body" }, vt = { class: "search-list" }, mt = { class: "item-left" }, _t = { class: "title" }, pt = { class: "item-right" }, ht = { class: "item-value" }, ft = { class: "item-img" }, gt = ["src"], bt = { class: "item-left" }, kt = { class: "title" }, Ct = { class: "item-right" }, $t = { class: "item-value" }, yt = { class: "item-img" }, wt = ["src"], xt = { class: "item-left" }, It = { class: "title" }, Tt = { class: "item-right" }, Dt = { class: "item-value" }, St = { class: "item-img" }, Lt = ["src"], Mt = { class: "item-left" }, Pt = { class: "title" }, Bt = { class: "item-right" }, Et = { class: "item-value" }, Ot = { class: "item-img" }, zt = ["src"], Rt = { class: "item-left" }, Nt = { class: "title" }, At = { class: "item-right" }, Ft = { class: "item-tags" }, Ut = { class: "item-img" }, Ht = ["src"], Wt = { class: "search-footer" }, Yt = { class: "search-btn-group" }, Jt = {
26
+ key: 1,
27
+ class: "filter-container"
28
+ }, Zt = { class: "filter-header" }, Gt = { class: "title" }, Vt = ["src"], jt = { class: "filter-body" }, Xt = {
29
+ key: 0,
30
+ class: "filter-list"
31
+ }, qt = ["onClick"], Kt = { class: "item-left" }, Qt = { class: "title" }, es = { class: "item-right" }, ts = {
32
+ key: 0,
33
+ class: "check-selected"
34
+ }, ss = ["src"], os = {
35
+ key: 1,
36
+ class: "check-select"
37
+ }, ls = {
38
+ key: 1,
39
+ class: "filter-list"
40
+ }, is = ["onClick"], as = { class: "item-left" }, ns = { class: "title" }, cs = { class: "item-right" }, rs = {
41
+ key: 0,
42
+ class: "check-selected"
43
+ }, us = ["src"], ds = {
44
+ key: 1,
45
+ class: "check-select"
46
+ }, vs = {
47
+ key: 2,
48
+ class: "filter-list"
49
+ }, ms = ["onClick"], _s = { class: "item-left" }, ps = { class: "title" }, hs = { class: "item-right" }, fs = {
50
+ key: 0,
51
+ class: "check-selected"
52
+ }, gs = ["src"], bs = {
53
+ key: 1,
54
+ class: "check-select"
55
+ }, ks = { class: "filter-footer" }, Cs = /* @__PURE__ */ ne({
56
+ __name: "filter",
57
+ setup(W, { expose: Y }) {
58
+ const N = Me(), b = re(), p = o(!1), v = o(!0), w = o(!1), I = o(N.staffList), a = o({
59
+ cmt_priority: "",
60
+ cmt_status: "",
61
+ cmt_createDate: "",
62
+ cmt_authorId: {
63
+ key: "",
64
+ value: ""
65
+ },
66
+ cmt_tag: []
67
+ }), R = o({
68
+ confirm: (t) => {
69
+ }
70
+ }), M = o(), S = o(""), P = o(""), h = o(""), m = o([]), T = (t) => {
71
+ switch (S.value = t, t) {
72
+ case "priority":
73
+ P.value = b("mobileComments.filter.priority"), m.value = Ne, h.value = a.value.cmt_priority, v.value = !1, w.value = !0;
74
+ break;
75
+ case "status":
76
+ P.value = b("mobileComments.filter.status"), m.value = Re, h.value = a.value.cmt_status, v.value = !1, w.value = !0;
77
+ break;
78
+ case "createDate":
79
+ M.value.handleOpen();
80
+ break;
81
+ case "authorId":
82
+ P.value = b("mobileComments.filter.author"), m.value = I.value, h.value = a.value.cmt_authorId, v.value = !1, w.value = !0;
83
+ break;
84
+ case "tag":
85
+ P.value = b("mobileComments.filter.tag"), m.value = ze, h.value = a.value.cmt_tag, v.value = !1, w.value = !0;
86
+ break;
87
+ }
88
+ }, f = (t) => {
89
+ S.value === "tag" ? h.value.includes(t) ? h.value = h.value.filter((l) => l !== t) : h.value.push(t) : S.value === "authorId" ? h.value.key === t.userId ? h.value = { key: "", value: "" } : h.value = { key: t.userId, value: t.userName } : h.value !== t ? h.value = t : h.value = "";
90
+ }, Z = () => {
91
+ switch (S.value) {
92
+ case "priority":
93
+ a.value.cmt_priority = h.value;
94
+ break;
95
+ case "status":
96
+ a.value.cmt_status = h.value;
97
+ break;
98
+ case "createDate":
99
+ a.value.cmt_createDate = h.value;
100
+ break;
101
+ case "authorId":
102
+ a.value.cmt_authorId = h.value;
103
+ break;
104
+ case "tag":
105
+ a.value.cmt_tag = h.value;
106
+ break;
107
+ }
108
+ A();
109
+ }, A = () => {
110
+ w.value = !1, v.value = !0;
111
+ }, D = (t) => {
112
+ M.value.handleClose(), a.value.cmt_createDate = t, v.value = !0;
113
+ }, k = () => {
114
+ M.value.handleClose(), v.value = !0;
115
+ }, $ = () => {
116
+ O(), R.value.confirm(a.value);
117
+ }, C = () => {
118
+ a.value = {
119
+ cmt_priority: "",
120
+ cmt_status: "",
121
+ cmt_createDate: "",
122
+ cmt_authorId: {
123
+ key: "",
124
+ value: ""
125
+ },
126
+ cmt_tag: []
127
+ }, $();
128
+ }, E = (t) => {
129
+ R.value = t, p.value = !0;
130
+ }, O = () => {
131
+ p.value = !1;
132
+ };
133
+ return Y({
134
+ open: E,
135
+ close: O,
136
+ refresh: () => {
137
+ a.value = {
138
+ cmt_priority: "",
139
+ cmt_status: "",
140
+ cmt_createDate: "",
141
+ cmt_authorId: {
142
+ key: "",
143
+ value: ""
144
+ },
145
+ cmt_tag: []
146
+ };
147
+ }
148
+ }), (t, l) => {
149
+ const x = xe, z = Oe;
150
+ return p.value ? (i(), c("div", at, [
151
+ v.value ? (i(), c("div", nt, [
152
+ e("div", ct, [
153
+ e("div", rt, n(s(b)("mobileComments.filter.title")), 1),
154
+ e("div", {
155
+ class: "close-box",
156
+ onClick: G(O, ["stop"])
157
+ }, [
158
+ e("img", {
159
+ class: "close-img",
160
+ src: `${s(L)}/bim-viewer/close_black.png`,
161
+ alt: ""
162
+ }, null, 8, ut)
163
+ ])
164
+ ]),
165
+ e("div", dt, [
166
+ e("div", vt, [
167
+ e("div", {
168
+ class: "search-item",
169
+ onClick: l[0] || (l[0] = G((d) => T("priority"), ["stop"]))
170
+ }, [
171
+ e("div", mt, [
172
+ e("div", _t, n(s(b)("bcf.priority")), 1)
173
+ ]),
174
+ e("div", pt, [
175
+ e("div", ht, n(a.value.cmt_priority), 1),
176
+ e("div", ft, [
177
+ e("img", {
178
+ class: "img",
179
+ src: `${s(L)}/bim-viewer/bcf-images/back-right-gray.png`,
180
+ alt: ""
181
+ }, null, 8, gt)
182
+ ])
183
+ ])
184
+ ]),
185
+ e("div", {
186
+ class: "search-item",
187
+ onClick: l[1] || (l[1] = G((d) => T("status"), ["stop"]))
188
+ }, [
189
+ e("div", bt, [
190
+ e("div", kt, n(s(b)("bcf.status")), 1)
191
+ ]),
192
+ e("div", Ct, [
193
+ e("div", $t, n(a.value.cmt_status), 1),
194
+ e("div", yt, [
195
+ e("img", {
196
+ class: "img",
197
+ src: `${s(L)}/bim-viewer/bcf-images/back-right-gray.png`,
198
+ alt: ""
199
+ }, null, 8, wt)
200
+ ])
201
+ ])
202
+ ]),
203
+ e("div", {
204
+ class: "search-item",
205
+ onClick: l[2] || (l[2] = G((d) => T("createDate"), ["stop"]))
206
+ }, [
207
+ e("div", xt, [
208
+ e("div", It, n(s(b)("bcf.createDate")), 1)
209
+ ]),
210
+ e("div", Tt, [
211
+ e("div", Dt, n(a.value.cmt_createDate), 1),
212
+ e("div", St, [
213
+ e("img", {
214
+ class: "img",
215
+ src: `${s(L)}/bim-viewer/bcf-images/back-right-gray.png`,
216
+ alt: ""
217
+ }, null, 8, Lt)
218
+ ])
219
+ ])
220
+ ]),
221
+ e("div", {
222
+ class: "search-item",
223
+ onClick: l[3] || (l[3] = G((d) => T("authorId"), ["stop"]))
224
+ }, [
225
+ e("div", Mt, [
226
+ e("div", Pt, n(s(b)("bcf.creator")), 1)
227
+ ]),
228
+ e("div", Bt, [
229
+ e("div", Et, n(a.value.cmt_authorId.value), 1),
230
+ e("div", Ot, [
231
+ e("img", {
232
+ class: "img",
233
+ src: `${s(L)}/bim-viewer/bcf-images/back-right-gray.png`,
234
+ alt: ""
235
+ }, null, 8, zt)
236
+ ])
237
+ ])
238
+ ]),
239
+ e("div", {
240
+ class: "search-item",
241
+ onClick: l[4] || (l[4] = G((d) => T("tag"), ["stop"]))
242
+ }, [
243
+ e("div", Rt, [
244
+ e("div", Nt, n(s(b)("bcf.labels")), 1)
245
+ ]),
246
+ e("div", At, [
247
+ e("div", Ft, [
248
+ (i(!0), c(V, null, Q(a.value.cmt_tag, (d, _) => (i(), c("div", {
249
+ key: _,
250
+ class: "tag"
251
+ }, n(d), 1))), 128))
252
+ ]),
253
+ e("div", Ut, [
254
+ e("img", {
255
+ class: "img",
256
+ src: `${s(L)}/bim-viewer/bcf-images/back-right-gray.png`,
257
+ alt: ""
258
+ }, null, 8, Ht)
259
+ ])
260
+ ])
261
+ ])
262
+ ])
263
+ ]),
264
+ e("div", Wt, [
265
+ e("div", Yt, [
266
+ e("div", {
267
+ class: "search-btn btn-cancel",
268
+ onClick: G(C, ["stop"])
269
+ }, n(s(b)("common.reset")), 1),
270
+ e("div", {
271
+ class: "search-btn btn-submit",
272
+ onClick: G($, ["stop"])
273
+ }, n(s(b)("common.search")), 1)
274
+ ])
275
+ ])
276
+ ])) : U("", !0),
277
+ w.value ? (i(), c("div", Jt, [
278
+ e("div", Zt, [
279
+ e("div", Gt, n(P.value), 1),
280
+ e("div", {
281
+ class: "close-box",
282
+ onClick: A
283
+ }, [
284
+ e("img", {
285
+ class: "close-img",
286
+ src: `${s(L)}/bim-viewer/close_black.png`,
287
+ alt: ""
288
+ }, null, 8, Vt)
289
+ ])
290
+ ]),
291
+ e("div", jt, [
292
+ X(x, null, {
293
+ default: de(() => [
294
+ S.value === "authorId" ? (i(), c("div", Xt, [
295
+ (i(!0), c(V, null, Q(m.value, (d, _) => (i(), c("div", {
296
+ key: _,
297
+ class: "filter-item",
298
+ onClick: G((y) => f(d), ["stop"])
299
+ }, [
300
+ e("div", Kt, [
301
+ e("div", Qt, n(d.userName) + "(" + n(d.mobile) + ")", 1)
302
+ ]),
303
+ e("div", es, [
304
+ d.userId === h.value.key ? (i(), c("div", ts, [
305
+ e("img", {
306
+ class: "select-img",
307
+ src: `${s(L)}/bim-viewer/check-selected.png`,
308
+ alt: ""
309
+ }, null, 8, ss)
310
+ ])) : (i(), c("div", os))
311
+ ])
312
+ ], 8, qt))), 128))
313
+ ])) : S.value === "tag" ? (i(), c("div", ls, [
314
+ (i(!0), c(V, null, Q(m.value, (d, _) => (i(), c("div", {
315
+ key: _,
316
+ class: "filter-item",
317
+ onClick: G((y) => f(d), ["stop"])
318
+ }, [
319
+ e("div", as, [
320
+ e("div", ns, n(d), 1)
321
+ ]),
322
+ e("div", cs, [
323
+ h.value.includes(d) ? (i(), c("div", rs, [
324
+ e("img", {
325
+ class: "select-img",
326
+ src: `${s(L)}/bim-viewer/check-selected.png`,
327
+ alt: ""
328
+ }, null, 8, us)
329
+ ])) : (i(), c("div", ds))
330
+ ])
331
+ ], 8, is))), 128))
332
+ ])) : (i(), c("div", vs, [
333
+ (i(!0), c(V, null, Q(m.value, (d, _) => (i(), c("div", {
334
+ key: _,
335
+ class: "filter-item",
336
+ onClick: G((y) => f(d), ["stop"])
337
+ }, [
338
+ e("div", _s, [
339
+ e("div", ps, n(d), 1)
340
+ ]),
341
+ e("div", hs, [
342
+ d === h.value ? (i(), c("div", fs, [
343
+ e("img", {
344
+ class: "select-img",
345
+ src: `${s(L)}/bim-viewer/check-selected.png`,
346
+ alt: ""
347
+ }, null, 8, gs)
348
+ ])) : (i(), c("div", bs))
349
+ ])
350
+ ], 8, ms))), 128))
351
+ ]))
352
+ ]),
353
+ _: 1
354
+ })
355
+ ]),
356
+ e("div", ks, [
357
+ e("div", {
358
+ class: "filter-btn",
359
+ onClick: G(Z, ["stop"])
360
+ }, n(s(b)("common.confirm")), 1)
361
+ ])
362
+ ])) : U("", !0),
363
+ X(z, {
364
+ ref_key: "cmtCreateDateRef",
365
+ ref: M,
366
+ modelValue: a.value.cmt_createDate,
367
+ "onUpdate:modelValue": l[5] || (l[5] = (d) => a.value.cmt_createDate = d),
368
+ "popper-class": "mobile_cmt_create_date",
369
+ type: "date",
370
+ placeholder: "Pick a day",
371
+ style: {
372
+ width: "100%",
373
+ display: "none"
374
+ },
375
+ format: "YYYY/MM/DD",
376
+ "value-format": "YYYY-MM-DD",
377
+ onBlur: k,
378
+ onChange: D
379
+ }, null, 8, ["modelValue"])
380
+ ])) : U("", !0);
381
+ };
382
+ }
383
+ }), $s = /* @__PURE__ */ ce(Cs, [["__scopeId", "data-v-3f21c922"]]), ys = { class: "mobile_CMT_search" }, ws = { class: "search_icon" }, xs = ["src"], Is = { class: "mobile_CMT_table_list" }, Ts = { class: "table_list_title" }, Ds = { class: "sort_buttons" }, Ss = ["src"], Ls = ["src"], Ms = ["src"], Ps = { class: "sort_total" }, Bs = ["src"], Es = ["src"], Os = {
384
+ key: 0,
385
+ class: "table_list_content"
386
+ }, zs = { class: "table_list" }, Rs = ["onClick"], Ns = { class: "CMT_img" }, As = { class: "CMT_info" }, Fs = { class: "CMT_info1" }, Us = { class: "title" }, Hs = { class: "CMT_info2" }, Ws = { class: "username" }, Ys = {
387
+ key: 1,
388
+ class: "empty_wrapper"
389
+ }, Js = /* @__PURE__ */ ne({
390
+ __name: "list",
391
+ props: {
392
+ instruction: {},
393
+ CMTList: {}
394
+ },
395
+ emits: ["checkCmtDetail"],
396
+ setup(W, { emit: Y }) {
397
+ const N = Y, b = Me(), p = W, { CMTList: v } = Ue(p), w = re(), I = o([]), a = o(), R = {
398
+ indexSort: ["default", "down", "up"],
399
+ titleSort: ["default", "down", "up"],
400
+ timeSort: ["default", "down", "up"]
401
+ }, M = o(), S = o();
402
+ he(() => {
403
+ v.value && (I.value = v.value.slice().sort((t, l) => l.index - t.index), a.value = v.value.slice().sort((t, l) => l.index - t.index));
404
+ }), _e(
405
+ () => p,
406
+ (t) => {
407
+ t && t.CMTList && (I.value = t.CMTList.slice().sort((l, x) => x.index - l.index), O());
408
+ },
409
+ { deep: !0 }
410
+ );
411
+ const P = o(!0), h = o(""), m = o(0), T = o(0), f = o(0), Z = o(!0);
412
+ _e(
413
+ () => S.value,
414
+ (t) => {
415
+ var l;
416
+ t && (t != null && t.cmt_priority || t != null && t.cmt_status || t != null && t.cmt_createDate || (l = t == null ? void 0 : t.cmt_authorId) != null && l.key || t != null && t.cmt_tag && (t == null ? void 0 : t.cmt_tag.length) > 0) ? P.value = !0 : P.value = !1;
417
+ },
418
+ { deep: !0, immediate: !0 }
419
+ );
420
+ const A = () => {
421
+ a.value = v.value.slice().sort((t, l) => l.index - t.index), I.value = v.value.slice().sort((t, l) => l.index - t.index), Z.value = !0;
422
+ }, D = () => {
423
+ h.value == "" ? A() : I.value = a.value.filter((t) => t.title.includes(h.value));
424
+ }, k = (t) => {
425
+ if (t > 2 && (m.value = 0), t == 1) {
426
+ let l = a.value.slice().sort((x, z) => z.index - x.index);
427
+ I.value = l, Z.value = !1;
428
+ } else if (t == 2) {
429
+ let l = a.value.slice().sort((x, z) => x.index - z.index);
430
+ I.value = l;
431
+ } else
432
+ A();
433
+ T.value = 0, f.value = 0;
434
+ }, $ = (t) => {
435
+ if (t > 2 && (T.value = 0), t == 1) {
436
+ let l = a.value.slice().sort((x, z) => z.title.localeCompare(x.title));
437
+ I.value = l;
438
+ } else if (t == 2) {
439
+ let l = a.value.slice().sort((x, z) => x.title.localeCompare(z.title));
440
+ I.value = l;
441
+ } else
442
+ A();
443
+ m.value = 0, f.value = 0;
444
+ }, C = (t) => {
445
+ if (t > 2 && (f.value = 0), t == 1) {
446
+ let l = a.value.slice().sort((x, z) => {
447
+ const d = new Date(x.createDate), _ = new Date(z.createDate);
448
+ return d < _ ? 1 : -1;
449
+ });
450
+ I.value = l;
451
+ } else if (t == 2) {
452
+ let l = a.value.slice().sort((x, z) => {
453
+ const d = new Date(x.createDate), _ = new Date(z.createDate);
454
+ return d > _ ? 1 : -1;
455
+ });
456
+ I.value = l;
457
+ } else
458
+ A();
459
+ m.value = 0, T.value = 0;
460
+ }, E = () => {
461
+ M.value.open({
462
+ confirm: (t) => {
463
+ S.value = t, O();
464
+ }
465
+ });
466
+ }, O = () => {
467
+ var l, x, z;
468
+ let t = S.value;
469
+ if (!t && !(t != null && t.cmt_priority) && !(t != null && t.cmt_status) && !(t != null && t.cmt_createDate) && !((l = t == null ? void 0 : t.cmt_authorId) != null && l.key) && (!(t != null && t.cmt_tag) || (t == null ? void 0 : t.cmt_tag.length) == 0))
470
+ A(), a.value = JSON.parse(JSON.stringify(v.value)).slice(), m.value + T.value + f.value != 0 && (m.value != 0 && k(m.value), T.value != 0 && $(T.value), f.value != 0 && C(f.value));
471
+ else {
472
+ let d = JSON.parse(JSON.stringify(v.value)).slice();
473
+ t.cmt_priority && (d = d.filter((_) => _.priority && Se(_.priority) == t.cmt_priority), console.log(d.filter((_) => _.priority && Se(_.priority) == t.cmt_priority))), (x = t.cmt_authorId) != null && x.key && (d = d.filter((_) => {
474
+ var y, g, F;
475
+ return typeof _.author == "string" ? Ce.getStaffId(_.author) == ((y = t.cmt_authorId) == null ? void 0 : y.key) || Ce.getStaffName((g = t.cmt_authorId) == null ? void 0 : g.key) == _.author : _.author == ((F = t.cmt_authorId) == null ? void 0 : F.key);
476
+ })), t.cmt_status && (d = d.filter((_) => _.status == t.cmt_status)), t.cmt_createDate && (d = d.filter((_) => we(_.createDate) == t.cmt_createDate)), (z = t.CMT_asignToId) != null && z.key && (d = d.filter((_) => {
477
+ var y, g, F;
478
+ return typeof _.assignedTo == "string" ? Ce.getStaffId(_.assignedTo) == ((y = t.CMT_asignToId) == null ? void 0 : y.key) || Ce.getStaffName((g = t.CMT_asignToId) == null ? void 0 : g.key) == _.assignedTo : _.assignedTo == ((F = t.CMT_asignToId) == null ? void 0 : F.key);
479
+ })), t.cmt_tag && t.cmt_tag.length > 0 && (d = d.filter((_) => !!(_.tags && _.tags.find((y) => {
480
+ var g;
481
+ return (g = t.cmt_tag) == null ? void 0 : g.includes(y);
482
+ })))), a.value = d, m.value + T.value + f.value != 0 ? (m.value != 0 && k(m.value), T.value != 0 && $(T.value), f.value != 0 && C(f.value)) : I.value = a.value.slice().sort((_, y) => y.index - _.index);
483
+ }
484
+ }, q = (t) => {
485
+ N("checkCmtDetail", t);
486
+ };
487
+ return (t, l) => {
488
+ const x = Pe, z = xe, d = We, _ = $s;
489
+ return i(), c("div", {
490
+ class: "cmt_wrapper",
491
+ style: te({ top: `${(s(H)("topHeight") + 52) / 50}rem` })
492
+ }, [
493
+ e("div", ys, [
494
+ e("div", ws, [
495
+ e("img", {
496
+ src: s(L) + "/bim-viewer/search.png",
497
+ alt: ""
498
+ }, null, 8, xs)
499
+ ]),
500
+ X(x, {
501
+ modelValue: h.value,
502
+ "onUpdate:modelValue": l[0] || (l[0] = (y) => h.value = y),
503
+ placeholder: s(w)("common.placeholder_search"),
504
+ onInput: D,
505
+ onChange: D
506
+ }, null, 8, ["modelValue", "placeholder"])
507
+ ]),
508
+ e("div", Is, [
509
+ e("div", Ts, [
510
+ e("div", Ds, [
511
+ e("div", {
512
+ class: "sort_button",
513
+ onClick: l[1] || (l[1] = (y) => k(m.value += 1))
514
+ }, [
515
+ e("span", null, n(s(w)("bcf.index")), 1),
516
+ e("img", {
517
+ class: "order_icon",
518
+ src: `${s(L)}/bim-viewer/bcf-images/order-${R.indexSort[m.value]}.png`,
519
+ alt: ""
520
+ }, null, 8, Ss)
521
+ ]),
522
+ e("div", {
523
+ class: "sort_button",
524
+ onClick: l[2] || (l[2] = (y) => $(T.value += 1))
525
+ }, [
526
+ e("span", null, n(s(w)("bcf.title")), 1),
527
+ e("img", {
528
+ class: "order_icon",
529
+ src: `${s(L)}/bim-viewer/bcf-images/order-${R.titleSort[T.value]}.png`,
530
+ alt: ""
531
+ }, null, 8, Ls)
532
+ ]),
533
+ e("div", {
534
+ class: "sort_button",
535
+ onClick: l[3] || (l[3] = (y) => C(f.value += 1))
536
+ }, [
537
+ e("span", null, n(s(w)("bcf.time")), 1),
538
+ e("img", {
539
+ class: "order_icon",
540
+ src: `${s(L)}/bim-viewer/bcf-images/order-${R.timeSort[f.value]}.png`,
541
+ alt: ""
542
+ }, null, 8, Ms)
543
+ ])
544
+ ]),
545
+ e("div", Ps, [
546
+ e("div", {
547
+ class: "sort_button",
548
+ onClick: G(E, ["stop"])
549
+ }, [
550
+ P.value ? (i(), c("img", {
551
+ key: 1,
552
+ class: "order_filter_icon",
553
+ src: `${s(L)}/bim-viewer/bcf-images/order-active-mobile.png`,
554
+ alt: ""
555
+ }, null, 8, Es)) : (i(), c("img", {
556
+ key: 0,
557
+ class: "order_filter_icon",
558
+ src: `${s(L)}/bim-viewer/bcf-images/order-default-mobile.png`,
559
+ alt: ""
560
+ }, null, 8, Bs)),
561
+ e("span", null, n(s(w)("mobileComments.filter.title")), 1)
562
+ ])
563
+ ])
564
+ ]),
565
+ I.value && I.value.length > 0 ? (i(), c("div", Os, [
566
+ X(z, null, {
567
+ default: de(() => [
568
+ e("div", zs, [
569
+ (i(!0), c(V, null, Q(I.value, (y, g) => (i(), c("div", {
570
+ key: g,
571
+ class: "CMT_card",
572
+ onClick: G((F) => q(y._id), ["stop"])
573
+ }, [
574
+ e("div", Ns, [
575
+ e("div", {
576
+ style: te({
577
+ width: "100%",
578
+ height: "100%",
579
+ backgroundImage: `url(
580
+ data:image/png;base64,${y.imgData ? y.imgData : ""}
581
+ )`,
582
+ backgroundSize: "cover",
583
+ backgroundPosition: "center",
584
+ borderRadius: "0.12rem"
585
+ })
586
+ }, null, 4)
587
+ ]),
588
+ e("div", As, [
589
+ e("div", Fs, [
590
+ e("span", {
591
+ style: te({ color: y.priority ? s(Ee)(y.priority) : s(Ee)("low") }),
592
+ class: "index"
593
+ }, " #" + n(y.index), 5),
594
+ e("span", Us, n(y.title), 1)
595
+ ]),
596
+ e("div", Hs, [
597
+ e("span", Ws, n(typeof y.author == "string" && y.author != "" ? y.author : s(b).getStuffName(y.userId)), 1),
598
+ e("span", null, n(y.createDate ? s(we)(y.createDate) : ""), 1)
599
+ ])
600
+ ])
601
+ ], 8, Rs))), 128))
602
+ ])
603
+ ]),
604
+ _: 1
605
+ })
606
+ ])) : (i(), c("div", Ys, [
607
+ X(d, {
608
+ title: s(w)("mobileComments.empty"),
609
+ type: "model"
610
+ }, null, 8, ["title"])
611
+ ]))
612
+ ]),
613
+ X(_, {
614
+ ref_key: "CMTFilterRef",
615
+ ref: M
616
+ }, null, 512)
617
+ ], 4);
618
+ };
619
+ }
620
+ }), Zs = /* @__PURE__ */ ce(Js, [["__scopeId", "data-v-d96084d8"]]), Gs = ["src"], Vs = /* @__PURE__ */ ne({
621
+ __name: "zoomIn",
622
+ props: {
623
+ imgContent: {}
624
+ },
625
+ emits: ["closeImg"],
626
+ setup(W, { emit: Y }) {
627
+ const N = Y, p = o(W.imgContent), v = re(), w = () => {
628
+ N("closeImg");
629
+ };
630
+ return (I, a) => (i(), c("div", {
631
+ class: "image_zoomin_wrapper",
632
+ onClick: w
633
+ }, [
634
+ e("div", {
635
+ class: "back_btn",
636
+ onClick: w
637
+ }, n(s(v)("common.back")), 1),
638
+ e("div", {
639
+ class: "img_wrapper",
640
+ onClick: w
641
+ }, [
642
+ e("img", { src: p.value }, null, 8, Gs)
643
+ ])
644
+ ]));
645
+ }
646
+ }), Fe = /* @__PURE__ */ ce(Vs, [["__scopeId", "data-v-0a31700d"]]), js = { class: "content_scrollbar" }, Xs = { class: "cmt_detail_content" }, qs = { class: "cmt_id_time" }, Ks = { class: "snpshot_wrapper" }, Qs = { class: "snapshot_container" }, eo = ["src"], to = ["src"], so = ["src"], oo = { class: "cmt_content" }, lo = { class: "content" }, io = { class: "select_item" }, ao = { class: "item_title" }, no = { class: "select_wrapper" }, co = { class: "select_item" }, ro = { class: "item_title" }, uo = { class: "select_item" }, vo = { class: "item_title" }, mo = { class: "select_wrapper" }, _o = { class: "select_item" }, po = { class: "item_title" }, ho = {
647
+ key: 0,
648
+ class: "tag_list"
649
+ }, fo = { class: "tag_span" }, go = {
650
+ key: 1,
651
+ class: "select_wrapper"
652
+ }, bo = { class: "select_item_descript" }, ko = { class: "item_title" }, Co = { class: "descript" }, $o = { class: "bottom_buttons" }, yo = { class: "btns" }, wo = /* @__PURE__ */ ne({
653
+ __name: "detail",
654
+ props: {
655
+ cmtContent: {}
656
+ },
657
+ emits: ["delete", "back"],
658
+ setup(W, { emit: Y }) {
659
+ const N = Y, b = W, p = o(b.cmtContent), v = o(""), w = o(!1), I = () => {
660
+ w.value = !0;
661
+ }, a = o(), R = o(), M = o(), S = o(), P = o(), h = o(), m = o(), T = o(), f = re();
662
+ he(() => {
663
+ const D = /* @__PURE__ */ new Date();
664
+ let k = D.getDate(), $ = D.getFullYear(), C = D.getMonth();
665
+ v.value = `${$}-${C + 1}-${k}`, p.value || console.log("no cmtContent!"), Z();
666
+ }), _e(
667
+ () => b.cmtContent,
668
+ (D) => {
669
+ D && (p.value = JSON.parse(JSON.stringify(D)), Z());
670
+ }
671
+ );
672
+ const Z = () => {
673
+ a.value = p.value.index, R.value = p.value.title, M.value = p.value.priority ? Se(p.value.priority) : "", S.value = p.value.status ? p.value.status : "", P.value = p.value.deadline ? we(p.value.deadline) : "", h.value = p.value.description ? p.value.description : "", m.value = p.value.tags ? p.value.tags : [], T.value = p.value.imgData;
674
+ }, A = () => {
675
+ N("delete", p.value.guid);
676
+ };
677
+ return (D, k) => {
678
+ const $ = xe, C = Fe;
679
+ return i(), c(V, null, [
680
+ e("div", {
681
+ class: "cmt_detail_wrapper",
682
+ style: te({ top: `${(s(H)("topHeight") + 52) / 50}rem` })
683
+ }, [
684
+ e("div", js, [
685
+ X($, null, {
686
+ default: de(() => [
687
+ e("div", Xs, [
688
+ e("div", qs, [
689
+ e("div", {
690
+ style: te({ backgroundColor: s(Ye)(p.value && p.value.priority ? p.value.priority : "low"), color: "#fff" })
691
+ }, n(a.value), 5),
692
+ e("div", null, [
693
+ pe(n(p.value && p.value.createDate && s(we)(p.value.createDate)) + " ", 1),
694
+ e("span", null, n(s(f)("common.created")), 1)
695
+ ])
696
+ ]),
697
+ e("div", Ks, [
698
+ e("div", Qs, [
699
+ e("img", {
700
+ class: "cmt_img",
701
+ src: `data:image/png;base64,${T.value}`
702
+ }, null, 8, eo),
703
+ S.value ? (i(), c("div", {
704
+ key: 0,
705
+ class: "stage",
706
+ style: te({ backgroundColor: s(Je)(S.value) })
707
+ }, [
708
+ e("img", {
709
+ src: s(L) + "/bim-viewer/bcf-images/bulb.png"
710
+ }, null, 8, to),
711
+ e("span", null, n(S.value), 1)
712
+ ], 4)) : U("", !0),
713
+ e("div", {
714
+ class: "zoomIn",
715
+ onClick: I
716
+ }, [
717
+ e("img", {
718
+ src: s(L) + "/bim-viewer/annotations/zoomin.svg"
719
+ }, null, 8, so),
720
+ pe(" " + n(s(f)("common.view")), 1)
721
+ ])
722
+ ])
723
+ ]),
724
+ e("div", oo, [
725
+ e("div", lo, [
726
+ e("div", io, [
727
+ e("span", ao, n(s(f)("bcf.status")), 1),
728
+ k[2] || (k[2] = e("span", null, ":", -1)),
729
+ e("div", no, n(S.value), 1)
730
+ ]),
731
+ e("div", co, [
732
+ e("span", ro, n(s(f)("bcf.priority")), 1),
733
+ k[3] || (k[3] = e("span", null, ":", -1)),
734
+ e("div", {
735
+ class: "select_wrapper",
736
+ style: te({ color: s(Ze)(M.value) })
737
+ }, n(M.value), 5)
738
+ ]),
739
+ e("div", uo, [
740
+ e("span", vo, n(s(f)("bcf.dueDate")), 1),
741
+ k[4] || (k[4] = e("span", null, ":", -1)),
742
+ e("div", mo, n(P.value), 1)
743
+ ]),
744
+ e("div", _o, [
745
+ e("span", po, n(s(f)("bcf.labels")), 1),
746
+ k[5] || (k[5] = e("span", null, ":", -1)),
747
+ m.value && m.value.length > 0 ? (i(), c("div", ho, [
748
+ (i(!0), c(V, null, Q(m.value, (E, O) => (i(), c("div", {
749
+ key: O,
750
+ class: "tag"
751
+ }, [
752
+ e("span", fo, n(E), 1)
753
+ ]))), 128))
754
+ ])) : (i(), c("div", go))
755
+ ]),
756
+ e("div", bo, [
757
+ e("span", ko, n(s(f)("bcf.description")), 1),
758
+ k[6] || (k[6] = e("span", null, ":", -1)),
759
+ e("div", Co, n(h.value), 1)
760
+ ])
761
+ ])
762
+ ])
763
+ ])
764
+ ]),
765
+ _: 1
766
+ })
767
+ ]),
768
+ e("div", $o, [
769
+ k[7] || (k[7] = e("div", { class: "split" }, null, -1)),
770
+ e("div", yo, [
771
+ e("div", {
772
+ class: "backModel",
773
+ onClick: k[0] || (k[0] = (E) => N("back"))
774
+ }, n(s(f)("mobileComments.backToModel")), 1),
775
+ s(H)("editPrivilege") == 0 ? (i(), c("div", {
776
+ key: 0,
777
+ class: "delete",
778
+ onClick: A
779
+ }, n(s(f)("mobileComments.deleteComment")), 1)) : U("", !0)
780
+ ])
781
+ ])
782
+ ], 4),
783
+ w.value ? (i(), ae(C, {
784
+ key: 0,
785
+ "img-content": `data:image/png;base64,${T.value}`,
786
+ onCloseImg: k[1] || (k[1] = () => {
787
+ w.value = !1;
788
+ })
789
+ }, null, 8, ["img-content"])) : U("", !0)
790
+ ], 64);
791
+ };
792
+ }
793
+ }), xo = /* @__PURE__ */ ce(wo, [["__scopeId", "data-v-18a6bb74"]]), Io = { class: "image" }, To = { class: "fill" }, Do = { class: "screenshot" }, So = ["src"], Lo = ["src"], Mo = ["src"], Po = { class: "content" }, Bo = { class: "select_item" }, Eo = { class: "select_wrapper" }, Oo = { class: "select_item" }, zo = { class: "select_wrapper" }, Ro = { class: "select_item" }, No = { class: "select_wrapper" }, Ao = { class: "select_item" }, Fo = { class: "select_wrapper" }, Uo = { class: "select_item" }, Ho = { class: "select_wrapper" }, Wo = { class: "select_item" }, Yo = { class: "select_wrapper" }, Jo = { class: "bottom" }, Zo = /* @__PURE__ */ ne({
794
+ __name: "add",
795
+ props: {
796
+ imageData: {},
797
+ userId: {}
798
+ },
799
+ emits: ["cancel", "emitHandler", "createNew"],
800
+ setup(W, { emit: Y }) {
801
+ const N = Y, b = W, p = o(b.imageData), v = re(), w = o(!1), I = o(""), a = o(""), R = o(""), M = o(""), S = o(), P = o(""), h = o([]), m = De(() => Ne()), T = De(() => Re()), f = De(() => ze());
802
+ he(() => {
803
+ const k = /* @__PURE__ */ new Date();
804
+ let $ = k.getDate(), C = k.getFullYear(), E = k.getMonth();
805
+ I.value = `${C}-${E + 1}-${$}`;
806
+ });
807
+ const Z = () => {
808
+ N("cancel");
809
+ }, A = () => {
810
+ w.value = !0;
811
+ }, D = () => {
812
+ a.value === "" ? j.emit("prompt", { type: "warn", text: v("bcf.messages.pleaseInputTitle") }) : N("createNew", {
813
+ author: b.userId,
814
+ title: a.value,
815
+ priority: R.value,
816
+ status: M.value,
817
+ deadline: S.value,
818
+ createDate: (/* @__PURE__ */ new Date()).toISOString(),
819
+ description: P.value,
820
+ imgData: p.value,
821
+ tags: h.value
822
+ });
823
+ };
824
+ return (k, $) => {
825
+ const C = Pe, E = Ve, O = Ge, q = Oe, t = Fe;
826
+ return i(), c(V, null, [
827
+ e("div", {
828
+ class: "comment_add",
829
+ style: te({ top: `${(s(H)("topHeight") + 52) / 50}rem` })
830
+ }, [
831
+ e("div", Io, [
832
+ e("div", To, [
833
+ e("div", Do, [
834
+ e("img", {
835
+ src: `data:image/png;base64,${p.value}`
836
+ }, null, 8, So)
837
+ ]),
838
+ e("div", {
839
+ class: "del",
840
+ onClick: Z
841
+ }, [
842
+ e("img", {
843
+ src: s(L) + "/bim-viewer/delete-white.svg"
844
+ }, null, 8, Lo),
845
+ pe(" " + n(s(v)("common.edit")), 1)
846
+ ]),
847
+ e("div", {
848
+ class: "zoomIn",
849
+ onClick: A
850
+ }, [
851
+ e("img", {
852
+ src: s(L) + "/bim-viewer/annotations/zoomin.svg"
853
+ }, null, 8, Mo),
854
+ pe(" " + n(s(v)("common.view")), 1)
855
+ ])
856
+ ])
857
+ ]),
858
+ e("div", Po, [
859
+ e("div", Bo, [
860
+ e("div", null, [
861
+ pe(n(s(v)("common.title")) + " ", 1),
862
+ $[7] || ($[7] = e("span", { style: { color: "#f54d4d" } }, "*", -1))
863
+ ]),
864
+ e("div", Eo, [
865
+ X(C, {
866
+ modelValue: a.value,
867
+ "onUpdate:modelValue": $[0] || ($[0] = (l) => a.value = l),
868
+ placeholder: s(v)("common.placeholder_input")
869
+ }, null, 8, ["modelValue", "placeholder"])
870
+ ])
871
+ ]),
872
+ e("div", Oo, [
873
+ e("span", null, n(s(v)("bcf.priority")), 1),
874
+ e("div", zo, [
875
+ X(O, {
876
+ modelValue: R.value,
877
+ "onUpdate:modelValue": $[1] || ($[1] = (l) => R.value = l),
878
+ clearable: "",
879
+ placeholder: s(v)("common.placeholder_select")
880
+ }, {
881
+ default: de(() => [
882
+ (i(!0), c(V, null, Q(m.value, (l, x) => (i(), ae(E, {
883
+ key: x,
884
+ value: l
885
+ }, null, 8, ["value"]))), 128))
886
+ ]),
887
+ _: 1
888
+ }, 8, ["modelValue", "placeholder"])
889
+ ])
890
+ ]),
891
+ e("div", Ro, [
892
+ e("span", null, n(s(v)("bcf.status")), 1),
893
+ e("div", No, [
894
+ X(O, {
895
+ modelValue: M.value,
896
+ "onUpdate:modelValue": $[2] || ($[2] = (l) => M.value = l),
897
+ clearable: "",
898
+ placeholder: s(v)("common.placeholder_select")
899
+ }, {
900
+ default: de(() => [
901
+ (i(!0), c(V, null, Q(T.value, (l, x) => (i(), ae(E, {
902
+ key: x,
903
+ value: l
904
+ }, null, 8, ["value"]))), 128))
905
+ ]),
906
+ _: 1
907
+ }, 8, ["modelValue", "placeholder"])
908
+ ])
909
+ ]),
910
+ e("div", Ao, [
911
+ e("span", null, n(s(v)("bcf.dueDate")), 1),
912
+ e("div", Fo, [
913
+ $e(X(q, {
914
+ modelValue: S.value,
915
+ "onUpdate:modelValue": $[3] || ($[3] = (l) => S.value = l),
916
+ type: "datetime",
917
+ placeholder: s(v)("common.placeholder_date"),
918
+ editable: !1
919
+ }, null, 8, ["modelValue", "placeholder"]), [
920
+ [ye, !1]
921
+ ])
922
+ ])
923
+ ]),
924
+ e("div", Uo, [
925
+ e("span", null, n(s(v)("bcf.description")), 1),
926
+ e("div", Ho, [
927
+ X(C, {
928
+ modelValue: P.value,
929
+ "onUpdate:modelValue": $[4] || ($[4] = (l) => P.value = l),
930
+ type: "textarea",
931
+ placeholder: s(v)("common.placeholder_input")
932
+ }, null, 8, ["modelValue", "placeholder"])
933
+ ])
934
+ ]),
935
+ e("div", Wo, [
936
+ e("span", null, n(s(v)("bcf.labels")), 1),
937
+ e("div", Yo, [
938
+ X(O, {
939
+ modelValue: h.value,
940
+ "onUpdate:modelValue": $[5] || ($[5] = (l) => h.value = l),
941
+ multiple: "",
942
+ placeholder: s(v)("common.placeholder_select")
943
+ }, {
944
+ default: de(() => [
945
+ (i(!0), c(V, null, Q(f.value, (l, x) => (i(), ae(E, {
946
+ key: x,
947
+ value: l
948
+ }, null, 8, ["value"]))), 128))
949
+ ]),
950
+ _: 1
951
+ }, 8, ["modelValue", "placeholder"])
952
+ ])
953
+ ])
954
+ ]),
955
+ e("div", Jo, [
956
+ $[8] || ($[8] = e("div", { class: "line" }, null, -1)),
957
+ e("div", {
958
+ class: "create",
959
+ onClick: D
960
+ }, n(s(v)("bcf.createNow")), 1)
961
+ ])
962
+ ], 4),
963
+ w.value ? (i(), ae(t, {
964
+ key: 0,
965
+ "img-content": `data:image/png;base64,${p.value}`,
966
+ onCloseImg: $[6] || ($[6] = () => {
967
+ w.value = !1;
968
+ })
969
+ }, null, 8, ["img-content"])) : U("", !0)
970
+ ], 64);
971
+ };
972
+ }
973
+ }), Go = /* @__PURE__ */ ce(Zo, [["__scopeId", "data-v-d4ddf289"]]), Vo = { class: "mobile_comments_toolbar" }, jo = { class: "enter" }, Xo = { class: "comment_toolbar" }, qo = { class: "comment-list" }, Ko = ["onClick"], Qo = { class: "comment-icon" }, el = ["src"], tl = { class: "comment-name" }, sl = { class: "comment-icon" }, ol = ["src"], ll = {
974
+ class: "comment-name",
975
+ style: { color: "#df1c1c" }
976
+ }, il = { class: "buttons" }, al = {
977
+ key: 0,
978
+ class: "comment_create_text_box"
979
+ }, nl = { class: "label-text-edit" }, cl = { class: "text-edit-head" }, rl = ["src"], ul = { class: "text-edit-title" }, dl = { class: "text-edit-body" }, vl = { class: "text-edit-input" }, ml = /* @__PURE__ */ ne({
980
+ __name: "draw",
981
+ props: ["componentId"],
982
+ emits: ["emitHandler", "cancel", "confirm"],
983
+ setup(W, { expose: Y, emit: N }) {
984
+ const b = re(), p = Be(), v = W;
985
+ he(() => {
986
+ p.setReadyById(v.componentId);
987
+ });
988
+ let w, I;
989
+ const a = o(0), R = o(1), M = o(1), S = o(), P = o(!1), h = o(!1), m = o(!1), T = o(!1), f = o(""), Z = o(), A = o({
990
+ show: !1,
991
+ // 是否显示
992
+ title: b("mobileComments.notice.title"),
993
+ // 弹窗标题
994
+ content: "",
995
+ // 弹窗内容
996
+ submitName: b("common.confirm"),
997
+ // 弹窗按钮
998
+ confirm: () => {
999
+ console.log("点击了确认"), A.value.show = !1;
1000
+ },
1001
+ close: () => {
1002
+ console.log("点击了关闭"), A.value.show = !1;
1003
+ }
1004
+ }), D = () => {
1005
+ w = window.bimViewer.commentTool, I = window.bimViewer.eventTrigger, _(""), I.on("createNew", () => {
1006
+ a.value = 0, _("");
1007
+ }), I.on("newState", () => {
1008
+ P.value = !0, h.value = !1;
1009
+ }), I.on("noPreviousState", () => {
1010
+ P.value = !1;
1011
+ }), I.on("noNewState", () => {
1012
+ h.value = !1;
1013
+ }), I.on("choseTarget", (g) => {
1014
+ m.value = !0, a.value = 0, _("");
1015
+ });
1016
+ };
1017
+ j.on("BimViewer", D), Le(() => {
1018
+ j.off("BimViewer", D);
1019
+ });
1020
+ const k = N, $ = () => {
1021
+ a.value = 1, _("path"), setTimeout(() => {
1022
+ var g;
1023
+ (g = document.getElementById("svgImage")) == null || g.addEventListener("touchstart", E);
1024
+ }, 200);
1025
+ }, C = () => {
1026
+ var g;
1027
+ (g = document.getElementById("svgImage")) == null || g.removeEventListener("touchstart", E);
1028
+ }, E = (g) => {
1029
+ g.target.tagName == "image" && (a.value === 5 ? (f.value = "", Z.value = g, T.value = !0) : m.value = !1);
1030
+ }, O = () => {
1031
+ f.value ? (w.clickCreateText(Z.value, f.value), T.value = !1) : q(b("mobileComments.pleaseInputContent"));
1032
+ }, q = (g, F) => {
1033
+ A.value = {
1034
+ show: !0,
1035
+ // 是否显示
1036
+ title: b("common.info"),
1037
+ // 弹窗标题
1038
+ content: g,
1039
+ // 弹窗内容
1040
+ submitName: b("common.confirm"),
1041
+ // 弹窗按钮
1042
+ confirm: () => {
1043
+ console.log("点击了确认"), A.value.show = !1;
1044
+ },
1045
+ close: () => {
1046
+ console.log("点击了关闭"), A.value.show = !1;
1047
+ }
1048
+ };
1049
+ }, t = (g) => {
1050
+ a.value === g.id && (a.value = 0), R.value = 1, M.value = 1, S.value = g.buttontype, a.value = g.id, _(g.buttontype);
1051
+ }, l = o(), x = new Ke(0.1), z = () => {
1052
+ w.saveComments();
1053
+ const g = document.getElementById("svgImage");
1054
+ if (g) {
1055
+ const F = new XMLSerializer().serializeToString(g), ie = document.createElement("canvas"), oe = ie.getContext("2d"), J = window.devicePixelRatio || 1, le = new Image();
1056
+ le.onload = function() {
1057
+ ie.width = g.clientWidth * J, ie.height = g.clientHeight * J, oe && (oe.scale(J, J), oe.drawImage(le, 0, 0)), l.value = ie.toDataURL("image/png").split(",")[1], u();
1058
+ function u() {
1059
+ l.value ? k("confirm", l.value) : x.start(() => {
1060
+ u();
1061
+ });
1062
+ }
1063
+ }, le.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(F)}`;
1064
+ }
1065
+ }, d = () => {
1066
+ window.bimViewer.commentTool.deleteCurrentComments(), m.value = !1;
1067
+ }, _ = (g) => {
1068
+ w.setCurrentMode(g);
1069
+ }, y = () => {
1070
+ k("cancel");
1071
+ };
1072
+ return Y({ handleOpen: $, handleClose: C }), (g, F) => {
1073
+ const ie = xe, oe = Pe;
1074
+ return i(), c(V, null, [
1075
+ e("div", Vo, [
1076
+ e("div", jo, [
1077
+ e("div", Xo, [
1078
+ X(ie, null, {
1079
+ default: de(() => [
1080
+ e("div", qo, [
1081
+ (i(!0), c(V, null, Q(s(Ae), (J, le) => (i(), c("div", {
1082
+ key: le,
1083
+ class: me(["comment-item", {
1084
+ "comment-item-active": a.value === J.id
1085
+ }]),
1086
+ onClick: (u) => t(J)
1087
+ }, [
1088
+ e("div", Qo, [
1089
+ e("img", {
1090
+ src: s(L) + `/industry-viewer/comment-bar/${a.value === J.id ? J.svgActive : J.svg}.svg`
1091
+ }, null, 8, el),
1092
+ e("div", tl, n(s(b)(J.label)), 1)
1093
+ ])
1094
+ ], 10, Ko))), 128)),
1095
+ m.value ? (i(), c("div", {
1096
+ key: 0,
1097
+ class: "comment-item",
1098
+ onClick: d
1099
+ }, [
1100
+ e("div", sl, [
1101
+ e("img", {
1102
+ src: s(L) + "/industry-viewer/delete.svg"
1103
+ }, null, 8, ol),
1104
+ e("div", ll, n(s(b)("common.delete")), 1)
1105
+ ])
1106
+ ])) : U("", !0)
1107
+ ])
1108
+ ]),
1109
+ _: 1
1110
+ })
1111
+ ]),
1112
+ e("div", il, [
1113
+ e("div", {
1114
+ class: "cancel",
1115
+ onClick: y
1116
+ }, n(s(b)("common.cancel")), 1),
1117
+ e("div", {
1118
+ class: "add",
1119
+ onClick: z
1120
+ }, n(s(b)("bcf.addComment")), 1)
1121
+ ])
1122
+ ])
1123
+ ]),
1124
+ T.value ? (i(), c("div", al, [
1125
+ e("div", nl, [
1126
+ e("div", cl, [
1127
+ e("img", {
1128
+ class: "text-edit-back",
1129
+ src: s(L) + "/bim-viewer/back_gray.svg",
1130
+ onClick: F[0] || (F[0] = (J) => T.value = !1)
1131
+ }, null, 8, rl),
1132
+ e("div", ul, n(s(b)("mobileComments.createText")), 1),
1133
+ e("div", {
1134
+ class: "text-edit-finish",
1135
+ onClick: O
1136
+ }, n(s(b)("common.done")), 1)
1137
+ ]),
1138
+ e("div", dl, [
1139
+ e("div", vl, [
1140
+ X(oe, {
1141
+ modelValue: f.value,
1142
+ "onUpdate:modelValue": F[1] || (F[1] = (J) => f.value = J),
1143
+ type: "textarea",
1144
+ placeholder: s(b)("common.placeholder_input"),
1145
+ autosize: { minRows: 2 }
1146
+ }, null, 8, ["modelValue", "placeholder"])
1147
+ ])
1148
+ ])
1149
+ ])
1150
+ ])) : U("", !0)
1151
+ ], 64);
1152
+ };
1153
+ }
1154
+ }), _l = /* @__PURE__ */ ce(ml, [["__scopeId", "data-v-bb8e86c8"]]), pl = {
1155
+ id: "comments_toolbar",
1156
+ class: "comments_toolbar"
1157
+ }, hl = { class: "comments_toolbar_wrapper" }, fl = { class: "comments_toolbar_content" }, gl = { class: "comments_toolbar_group" }, bl = ["onClick"], kl = ["src"], Cl = {
1158
+ key: 0,
1159
+ class: "edit-tips"
1160
+ }, $l = { class: "edit_tips_content" }, yl = {
1161
+ key: 0,
1162
+ class: "tips-weight"
1163
+ }, wl = ["onClick"], xl = {
1164
+ key: 1,
1165
+ class: "tips-weight"
1166
+ }, Il = ["onClick"], Tl = { class: "tips-color" }, Dl = ["onClick"], Sl = { class: "comments_toolbar_group" }, Ll = ["src"], Ml = ["src"], Pl = { class: "comments_toolbar_group" }, Bl = ["aria-disabled"], El = /* @__PURE__ */ ne({
1167
+ __name: "pcdraw",
1168
+ props: ["componentId", "instruction"],
1169
+ emits: ["closePanel", "emitHandler"],
1170
+ setup(W, { expose: Y, emit: N }) {
1171
+ const b = re(), p = Be(), v = W, w = N, I = (r) => {
1172
+ w("emitHandler", r);
1173
+ };
1174
+ let a, R;
1175
+ const M = o(!1), S = o(!1), P = () => {
1176
+ a = window.bimViewer.commentTool, R = window.bimViewer.eventTrigger, k(""), R.on("createNew", () => {
1177
+ m.value = 0, k("");
1178
+ }), R.on("newState", () => {
1179
+ M.value = !0, S.value = !1;
1180
+ }), R.on("noPreviousState", () => {
1181
+ M.value = !1;
1182
+ }), R.on("noNewState", () => {
1183
+ S.value = !1;
1184
+ }), R.on("choseTarget", (r) => {
1185
+ m.value = 0, k("");
1186
+ });
1187
+ };
1188
+ j.on("BimViewer", P), Le(() => {
1189
+ j.off("BimViewer", P);
1190
+ }), Y({ startDrawing: () => {
1191
+ E++, C.value = !1, M.value = !1, S.value = !1, m.value = 1, D.value = "path", k("path");
1192
+ } });
1193
+ const m = o(0), T = o(1), f = o(1), Z = o(1), A = o(Ae), D = o(), k = (r) => {
1194
+ a.setCurrentMode(r);
1195
+ }, $ = (r) => {
1196
+ m.value === r.id && (m.value = 0), T.value = 1, f.value = 1, D.value = r.buttontype, m.value = r.id, k(r.buttontype);
1197
+ }, C = o(!1);
1198
+ let E = 0;
1199
+ _e(() => p.isToolActive(v.componentId), (r) => {
1200
+ r || (E++, C.value = !1);
1201
+ });
1202
+ const O = () => {
1203
+ C.value = !1, Qe.error("批注截图保存失败,请重试");
1204
+ }, q = () => {
1205
+ if (C.value) return;
1206
+ C.value = !0;
1207
+ const r = ++E;
1208
+ try {
1209
+ a.saveComments();
1210
+ const se = document.getElementById("svgImage");
1211
+ if (!se) throw new Error("批注画布不存在");
1212
+ const ee = se.cloneNode(!0);
1213
+ ee.querySelectorAll("foreignObject, #selectionBox_g").forEach((ke) => ke.remove());
1214
+ const B = new XMLSerializer().serializeToString(ee), ue = se.clientWidth, ve = se.clientHeight;
1215
+ if (!ue || !ve) throw new Error("批注画布尺寸无效");
1216
+ const fe = document.createElement("canvas"), Te = fe.getContext("2d");
1217
+ if (!Te) throw new Error("无法创建截图画布");
1218
+ const ge = window.devicePixelRatio || 1, be = new Image();
1219
+ be.onerror = () => {
1220
+ r === E && O();
1221
+ }, be.onload = () => {
1222
+ if (!(r !== E || !p.isToolActive(v.componentId)))
1223
+ try {
1224
+ fe.width = ue * ge, fe.height = ve * ge, Te.scale(ge, ge), Te.drawImage(be, 0, 0);
1225
+ const ke = fe.toDataURL("image/png").split(",")[1];
1226
+ C.value = !1, I({ isTool: !0, event_target: "CommentTool", event_name: "saveComment", content: { img_data: ke } });
1227
+ } catch {
1228
+ O();
1229
+ }
1230
+ }, be.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(B)}`;
1231
+ } catch {
1232
+ O();
1233
+ }
1234
+ }, t = () => {
1235
+ E++, C.value = !1, w("closePanel");
1236
+ }, l = (r) => {
1237
+ T.value = r.id, D.value === "path" ? ie(r.size) : D.value === "arrow" ? le(r.size) : D.value === "rect" ? J(r.size) : D.value === "ellipse" && oe(r.size);
1238
+ }, x = (r) => {
1239
+ f.value = r.id, D.value === "path" ? d(r.color) : D.value === "arrow" ? g(r.color) : D.value === "rect" ? y(r.color) : D.value === "ellipse" ? _(r.color) : D.value === "text" && F(r.color);
1240
+ }, z = (r) => {
1241
+ Z.value = r.id, u(r.fontSize);
1242
+ }, d = (r) => {
1243
+ a.pathColor = r;
1244
+ }, _ = (r) => {
1245
+ a.ellipseColor = r;
1246
+ }, y = (r) => {
1247
+ a.rectColor = r;
1248
+ }, g = (r) => {
1249
+ a.arrowColor = r;
1250
+ }, F = (r) => {
1251
+ a.textColor = r;
1252
+ }, ie = (r) => {
1253
+ a.pathStrokeWidth = r;
1254
+ }, oe = (r) => {
1255
+ a.ellipseStrokeWidth = r;
1256
+ }, J = (r) => {
1257
+ a.rectStrokeWidth = r;
1258
+ }, le = (r) => {
1259
+ a.arrowSize = r;
1260
+ }, u = (r) => {
1261
+ a.textFontSize = r;
1262
+ }, K = () => {
1263
+ a.ReDo(() => {
1264
+ }), M.value = !0;
1265
+ }, Ie = () => {
1266
+ a.UnDo(() => {
1267
+ }), S.value = !0;
1268
+ };
1269
+ return (r, se) => (i(), c("div", pl, [
1270
+ e("div", hl, [
1271
+ e("div", fl, [
1272
+ e("div", gl, [
1273
+ (i(!0), c(V, null, Q(A.value, (ee) => (i(), c("div", {
1274
+ key: ee.id,
1275
+ class: me(["comments_tool_btn", { comments_tool_btn_active: m.value === ee.id }]),
1276
+ onClick: (B) => $(ee)
1277
+ }, [
1278
+ e("img", {
1279
+ src: s(L) + `/bim-viewer/comments/${m.value === ee.id ? ee.imgActive : ee.img}.svg`
1280
+ }, null, 8, kl),
1281
+ m.value === ee.id ? (i(), c("div", Cl, [
1282
+ e("div", $l, [
1283
+ ee.buttontype === "text" ? (i(), c("div", yl, [
1284
+ (i(!0), c(V, null, Q(s(je), (B) => (i(), c("div", {
1285
+ key: B.id,
1286
+ class: me(["text1", { text2: Z.value === B.id }]),
1287
+ style: te({ "font-size": B.id === 0 ? "18px" : B.id === 1 ? "16px" : "12px" }),
1288
+ onClick: (ue) => z(B)
1289
+ }, n(s(b)(B.label)), 15, wl))), 128))
1290
+ ])) : (i(), c("div", xl, [
1291
+ (i(!0), c(V, null, Q(s(Xe), (B) => (i(), c("div", {
1292
+ key: B.id,
1293
+ class: me(["weight", { choose_weight: T.value === B.id }]),
1294
+ style: te({
1295
+ width: B.id === 0 ? "6px" : B.id === 1 ? "14px" : "20px",
1296
+ height: B.id === 0 ? "6px" : B.id === 1 ? "14px" : "20px"
1297
+ }),
1298
+ onClick: G((ue) => l(B), ["stop"])
1299
+ }, null, 14, Il))), 128))
1300
+ ])),
1301
+ e("div", Tl, [
1302
+ (i(!0), c(V, null, Q(s(qe), (B) => (i(), c("div", {
1303
+ key: B.id,
1304
+ class: me(["color-item", { choose_color: f.value === B.id }]),
1305
+ style: te({
1306
+ background: B.color,
1307
+ border: B.id === 5 ? "1px solid #CBCFD9" : "",
1308
+ width: (B.id === 5, "18px"),
1309
+ height: (B.id === 5, "18px")
1310
+ }),
1311
+ onClick: G((ue) => x(B), ["stop"])
1312
+ }, null, 14, Dl))), 128))
1313
+ ])
1314
+ ])
1315
+ ])) : U("", !0)
1316
+ ], 10, bl))), 128))
1317
+ ]),
1318
+ se[0] || (se[0] = e("div", { class: "splitLine" }, null, -1)),
1319
+ e("div", Sl, [
1320
+ e("div", {
1321
+ class: "comments_tool_btn",
1322
+ onClick: Ie
1323
+ }, [
1324
+ e("img", {
1325
+ src: s(L) + `/bim-viewer/annotations/${M.value ? "left-revoke-active" : "left-revoke"}.png`
1326
+ }, null, 8, Ll)
1327
+ ]),
1328
+ e("div", {
1329
+ class: "comments_tool_btn",
1330
+ onClick: K
1331
+ }, [
1332
+ e("img", {
1333
+ src: s(L) + `/bim-viewer/annotations/${S.value ? "right-revoke-active" : "right-revoke"}.png`
1334
+ }, null, 8, Ml)
1335
+ ])
1336
+ ]),
1337
+ se[1] || (se[1] = e("div", { class: "splitLine" }, null, -1)),
1338
+ e("div", Pl, [
1339
+ e("div", {
1340
+ class: "comments_cancel",
1341
+ onClick: t
1342
+ }, " 取消 "),
1343
+ e("div", {
1344
+ class: "comments_save",
1345
+ "aria-disabled": C.value,
1346
+ onClick: q
1347
+ }, n(C.value ? "保存中…" : "保存"), 9, Bl)
1348
+ ])
1349
+ ])
1350
+ ])
1351
+ ]));
1352
+ }
1353
+ }), Ol = /* @__PURE__ */ ce(El, [["__scopeId", "data-v-816dea2d"]]), zl = { key: 3 }, Rl = { class: "top" }, Nl = { class: "top_bar" }, Al = ["src"], Fl = {
1354
+ key: 0,
1355
+ class: "title_2"
1356
+ }, Ul = { class: "more" }, Hl = ["src"], Wl = {
1357
+ key: 4,
1358
+ class: "loading_shelter"
1359
+ }, Yl = /* @__PURE__ */ ne({
1360
+ __name: "CommentTool",
1361
+ props: ["componentId", "instruction"],
1362
+ emits: ["closePanel", "emitHandler"],
1363
+ setup(W, { emit: Y }) {
1364
+ const N = Be(), b = Me(), p = re(), v = W, w = (u) => {
1365
+ $.value = u;
1366
+ }, I = o(!1), a = o(""), R = o(""), M = o(!1), S = (u) => {
1367
+ a.value = u.type, R.value = u.text, M.value = !0, setTimeout(() => {
1368
+ M.value = !1;
1369
+ }, 1500);
1370
+ };
1371
+ j.on("cmtLoading", w), j.on("prompt", S), he(() => {
1372
+ N.setReadyById(v.componentId);
1373
+ }), Le(() => {
1374
+ j.off("cmtLoading", w), j.off("prompt", S), H("isMobile") || f();
1375
+ });
1376
+ const P = Y, h = (u) => {
1377
+ P("emitHandler", u);
1378
+ }, m = o(!1), T = o(), f = () => {
1379
+ var u;
1380
+ m.value = !1, (u = window.bimViewer) == null || u.SetCommentsToolActive(!1);
1381
+ }, Z = async () => {
1382
+ if (!(H("editPrivilege") !== 0 || !N.isToolActive(v.componentId) || m.value) && (m.value = !0, await He(), !(!m.value || !N.isToolActive(v.componentId))))
1383
+ try {
1384
+ const u = window.bimViewer;
1385
+ u.commentTool.getActive() ? u.commentTool.saveSVG() : u.SetCommentsToolActive(!0), T.value.startDrawing(), P("emitHandler", { isTool: !0, event_target: "CommentTool", event_name: "startComment", content: {} });
1386
+ } catch (u) {
1387
+ f(), console.error("批注绘制启动失败", u);
1388
+ }
1389
+ }, A = (u) => {
1390
+ u.event_name === "saveComment" && u.content.img_data && f(), h(u);
1391
+ }, D = o();
1392
+ _e(
1393
+ () => N.isToolActive(v.componentId),
1394
+ (u) => {
1395
+ H("isMobile") ? H("editPrivilege") == 0 ? u ? D.value.handleOpen() : (D.value.handleClose(), j.emit("hideToolbar", !1), d()) : H("editPrivilege") == 1 && (u ? F() : (j.emit("hideToolbar", !1), d())) : u || f();
1396
+ }
1397
+ );
1398
+ const k = o(!1);
1399
+ _e(
1400
+ () => v.instruction,
1401
+ (u) => {
1402
+ u && (u.instruct_name == "updateCmtList" && (E.value = u.content.cmtList, (u.content.msg && u.content.msg.show || C.value == 2) && F(!1)), u.instruct_name == "checkCmtDetail" && u.content.cmtDetail && (x.value = u.content.cmtDetail, O.value = x.value.title, g(x.value.guid, !1)), u.instruct_name == "newComment" && u.content.code == 200 && (k.value = !0, S({ type: "success", text: p("mobileComments.createSuccess") }), setTimeout(() => {
1403
+ g(u.content.guid);
1404
+ }, 200)), j.emit("cmtLoading", !1));
1405
+ },
1406
+ { deep: !0 }
1407
+ );
1408
+ const $ = o(!1), C = o(0), E = o([]), O = o(p("mobileComments.newComment")), q = o(!1), t = o(!1), l = o(!1), x = o(), z = o(""), d = () => {
1409
+ C.value = 0, q.value = !1, l.value = !1, t.value = !1, O.value = p("mobileComments.newComment");
1410
+ }, _ = (u) => {
1411
+ z.value = u, C.value = 1, t.value = !0;
1412
+ }, y = (u) => {
1413
+ j.emit("cmtLoading", !0), h({
1414
+ isTool: !0,
1415
+ event_name: "newComment",
1416
+ event_target: "CommentTool",
1417
+ content: { ...u }
1418
+ });
1419
+ }, g = (u, K = !0) => {
1420
+ K ? (j.emit("cmtLoading", !0), h({
1421
+ isTool: !0,
1422
+ event_target: "CommentTool",
1423
+ event_name: "checkCmtDetail",
1424
+ content: { id: u }
1425
+ })) : l.value = !0, t.value = !1, C.value = 2;
1426
+ }, F = (u = !0) => {
1427
+ u && (j.emit("cmtLoading", !0), h({
1428
+ isTool: !0,
1429
+ event_name: "refreshCmtList",
1430
+ event_target: "CommentTool",
1431
+ content: {}
1432
+ })), C.value = 3, O.value = "批注列表", q.value = !0, l.value = !1;
1433
+ }, ie = (u) => {
1434
+ h({
1435
+ isTool: !0,
1436
+ event_target: "CommentTool",
1437
+ event_name: "deleteComment",
1438
+ content: { id: u }
1439
+ });
1440
+ }, oe = () => {
1441
+ switch (C.value) {
1442
+ case 0:
1443
+ le();
1444
+ break;
1445
+ case 1:
1446
+ d();
1447
+ break;
1448
+ case 2:
1449
+ l.value = !1, O.value = "批注列表", C.value = 3, k.value ? F() : q.value = !0;
1450
+ break;
1451
+ case 3:
1452
+ H("editPrivilege") == 0 && (q.value = !1, d()), H("editPrivilege") == 1 && le();
1453
+ break;
1454
+ }
1455
+ }, J = () => {
1456
+ C.value == 2 && g(x.value.guid), C.value == 3 && F();
1457
+ }, le = () => {
1458
+ j.emit("hideToolbar", !1), P("closePanel");
1459
+ };
1460
+ return (u, K) => {
1461
+ const Ie = Ol, r = _l, se = Go, ee = xo, B = Zs, ue = it;
1462
+ return i(), c("div", {
1463
+ class: me(["comment_component", { "desktop-idle": !s(H)("isMobile") && !m.value }]),
1464
+ onPointerdown: K[3] || (K[3] = (ve) => I.value = !1)
1465
+ }, [
1466
+ !s(H)("isMobile") && !m.value && s(H)("editPrivilege") === 0 ? (i(), c("button", {
1467
+ key: 0,
1468
+ class: "add-comment-btn",
1469
+ type: "button",
1470
+ title: "添加批注",
1471
+ "aria-label": "添加批注",
1472
+ onClick: Z
1473
+ }, [...K[4] || (K[4] = [
1474
+ e("svg", {
1475
+ viewBox: "0 0 24 24",
1476
+ "aria-hidden": "true"
1477
+ }, [
1478
+ e("path", { d: "M12 5v14M5 12h14" })
1479
+ ], -1)
1480
+ ])])) : U("", !0),
1481
+ $e(e("div", {
1482
+ id: "comments_panel",
1483
+ class: "comments_panel",
1484
+ style: te({ background: s(H)("backgroundColor") })
1485
+ }, null, 4), [
1486
+ [ye, s(H)("isMobile") || m.value]
1487
+ ]),
1488
+ s(H)("isMobile") ? U("", !0) : $e((i(), ae(Ie, {
1489
+ key: 1,
1490
+ ref_key: "pcdrawRef",
1491
+ ref: T,
1492
+ "component-id": W.componentId,
1493
+ onEmitHandler: A,
1494
+ onClosePanel: f
1495
+ }, null, 8, ["component-id"])), [
1496
+ [ye, m.value]
1497
+ ]),
1498
+ s(H)("isMobile") ? (i(), ae(r, {
1499
+ key: 2,
1500
+ ref_key: "drawRef",
1501
+ ref: D,
1502
+ "component-id": W.componentId,
1503
+ onCancel: oe,
1504
+ onConfirm: _
1505
+ }, null, 8, ["component-id"])) : U("", !0),
1506
+ s(H)("isMobile") ? (i(), c("div", zl, [
1507
+ t.value ? (i(), ae(se, {
1508
+ key: 0,
1509
+ "image-data": z.value,
1510
+ "user-id": s(b).getUserId,
1511
+ onCreateNew: y,
1512
+ onCancel: K[0] || (K[0] = (ve) => t.value = !1),
1513
+ onEmitHandler: h
1514
+ }, null, 8, ["image-data", "user-id"])) : U("", !0),
1515
+ l.value ? (i(), ae(ee, {
1516
+ key: 1,
1517
+ "cmt-content": x.value,
1518
+ onDelete: ie,
1519
+ onBack: le
1520
+ }, null, 8, ["cmt-content"])) : U("", !0),
1521
+ $e(X(B, {
1522
+ "-c-m-t-list": E.value,
1523
+ instruction: v.instruction,
1524
+ onCheckCmtDetail: g,
1525
+ onBack: oe
1526
+ }, null, 8, ["-c-m-t-list", "instruction"]), [
1527
+ [ye, q.value]
1528
+ ]),
1529
+ e("div", Rl, [
1530
+ e("div", {
1531
+ class: "top_height",
1532
+ style: te({ width: "100%", height: `${s(H)("topHeight") / 50}rem` })
1533
+ }, null, 4),
1534
+ e("div", Nl, [
1535
+ e("img", {
1536
+ class: "back",
1537
+ onClick: oe,
1538
+ src: s(L) + "/bim-viewer/bcf-images/back.png"
1539
+ }, null, 8, Al),
1540
+ e("div", {
1541
+ class: "title",
1542
+ onClick: K[1] || (K[1] = G((ve) => I.value = !I.value, ["stop"]))
1543
+ }, n(O.value), 1),
1544
+ I.value ? (i(), c("span", Fl, n(O.value), 1)) : U("", !0),
1545
+ e("div", Ul, [
1546
+ C.value == 0 ? (i(), c("div", {
1547
+ key: 0,
1548
+ class: "history",
1549
+ onClick: K[2] || (K[2] = (ve) => F())
1550
+ }, n(s(p)("mobileComments.list")), 1)) : U("", !0),
1551
+ C.value == 2 || C.value == 3 ? (i(), c("img", {
1552
+ key: 1,
1553
+ class: "refresh",
1554
+ onClick: J,
1555
+ src: s(L) + "/bim-viewer/bcf-images/refresh.png"
1556
+ }, null, 8, Hl)) : U("", !0)
1557
+ ])
1558
+ ])
1559
+ ])
1560
+ ])) : U("", !0),
1561
+ $.value ? (i(), c("div", Wl)) : U("", !0),
1562
+ M.value ? (i(), ae(ue, {
1563
+ key: 5,
1564
+ type: a.value,
1565
+ text: R.value
1566
+ }, null, 8, ["type", "text"])) : U("", !0)
1567
+ ], 34);
1568
+ };
1569
+ }
1570
+ }), jl = /* @__PURE__ */ ce(Yl, [["__scopeId", "data-v-75414f00"]]);
1571
+ export {
1572
+ jl as default
1573
+ };