@xtctwins/tctwins-bimx-engine 0.2.54 → 0.3.0

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