@xtctwins/tctwins-bimx-engine 0.2.52 → 0.2.54

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