@mobilon-dev/chotto 0.3.76 → 0.3.78
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.
- package/dist/chotto.css +1 -1
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +198 -205
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/components/2_blocks/CommunicationPanel/styles/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as d, computed as u, watch as H, onMounted as Ve, onUnmounted as He, createElementBlock as l, openBlock as s, createElementVNode as c, createCommentVNode as h, Fragment as A, renderList as W, unref as n, normalizeClass as v, createBlock as y, createVNode as P, withCtx as U, resolveDynamicComponent as I, toDisplayString as E, normalizeStyle as We, nextTick as he } from "vue";
|
|
2
2
|
import G from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
3
|
-
import { useCommunicationChannels as
|
|
4
|
-
import { useCommunicationMenu as
|
|
5
|
-
import { useCommunicationAttributes as
|
|
6
|
-
import { useCommunicationActions as
|
|
7
|
-
import { useCommunicationSubMenu as
|
|
8
|
-
import { useCommunicationDialogSync as
|
|
9
|
-
import { useCommunicationPlaceholder as
|
|
3
|
+
import { useCommunicationChannels as Ue } from "./composables/useCommunicationChannels.js";
|
|
4
|
+
import { useCommunicationMenu as Ge } from "./composables/useCommunicationMenu.js";
|
|
5
|
+
import { useCommunicationAttributes as Je, isAttributeBlocked as Ke, getAttributeStatusClass as ve, isAttributeConfirming as ye } from "./composables/useCommunicationAttributes.js";
|
|
6
|
+
import { useCommunicationActions as Qe } from "./composables/useCommunicationActions.js";
|
|
7
|
+
import { useCommunicationSubMenu as Xe } from "./composables/useCommunicationSubMenu.js";
|
|
8
|
+
import { useCommunicationDialogSync as Ye } from "./composables/useCommunicationDialogSync.js";
|
|
9
|
+
import { useCommunicationPlaceholder as Ze } from "./composables/useCommunicationPlaceholder.js";
|
|
10
10
|
import Ce from "./CommunicationPanelAttributeIndicator.vue.js";
|
|
11
|
-
|
|
11
|
+
import et from "./icons/CommunicationPanelCheckIcon.vue.js";
|
|
12
|
+
/* empty css */
|
|
12
13
|
import tt from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
14
|
+
/* empty css */
|
|
13
15
|
const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { class: "channel-icon" }, lt = {
|
|
14
16
|
key: 0,
|
|
15
17
|
class: "attributes-menu"
|
|
16
18
|
}, it = {
|
|
17
19
|
key: 0,
|
|
18
20
|
class: "empty-channels-placeholder"
|
|
19
|
-
}, at = ["data-attribute-status", "onMouseenter", "onClick"], ut = { class: "attribute-info" },
|
|
21
|
+
}, at = ["data-attribute-status", "onMouseenter", "onClick"], ut = { class: "attribute-info" }, rt = { class: "attribute-value" }, ct = { class: "menu-icon" }, dt = {
|
|
20
22
|
key: 0,
|
|
21
23
|
class: "menu-icon-arrow"
|
|
22
|
-
},
|
|
24
|
+
}, ft = ["data-attribute-status", "onMouseenter", "onClick"], mt = { class: "attribute-info" }, pt = { class: "attribute-value" }, ht = { class: "menu-icon" }, vt = {
|
|
23
25
|
key: 0,
|
|
24
26
|
class: "menu-icon-arrow"
|
|
25
27
|
}, yt = ["onClick"], Ct = {
|
|
@@ -104,9 +106,9 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
104
106
|
"reset-blocked-attributes"
|
|
105
107
|
],
|
|
106
108
|
setup(T, { emit: be }) {
|
|
107
|
-
const i = T, J = be, N =
|
|
109
|
+
const i = T, J = be, N = d(null), ge = d(null), O = d(null), z = d(null), _ = d(null), $ = d({}), C = d(!1), M = d(null), f = d(null), S = d(null), b = u(
|
|
108
110
|
() => i.confirmingAttributeId ?? S.value
|
|
109
|
-
), j = u(() => i.blockedAttributeIds ?? []), g = (t) =>
|
|
111
|
+
), j = u(() => i.blockedAttributeIds ?? []), g = (t) => Ke(t, j.value), F = u(() => i.channels ?? []), ke = u(() => i.channelTooltips ?? {}), Ae = u(() => i.attributeTooltips ?? {}), K = u(() => i.attributeIndicatorTooltips ?? {}), Q = u(() => i.messages ?? []), Ie = u(() => i.selectedChat ?? null), X = u(() => i.isNewDialog ?? !1), Te = u(() => {
|
|
110
112
|
var t;
|
|
111
113
|
return ((t = i.selectedDialog) == null ? void 0 : t.channelId) ?? null;
|
|
112
114
|
}), Y = (t) => Te.value === t, _e = u(() => {
|
|
@@ -116,14 +118,14 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
116
118
|
const o = _e.value;
|
|
117
119
|
if (!o || !t)
|
|
118
120
|
return !1;
|
|
119
|
-
const
|
|
120
|
-
return o ===
|
|
121
|
+
const e = t.id ?? t.attributeId;
|
|
122
|
+
return o === e;
|
|
121
123
|
}, Z = (t) => {
|
|
122
|
-
const o = Ae.value,
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
return
|
|
124
|
+
const o = Ae.value, e = (t == null ? void 0 : t.attributeId) ?? (t == null ? void 0 : t.id);
|
|
125
|
+
if (e != null) {
|
|
126
|
+
const a = o[String(e)];
|
|
127
|
+
if (a)
|
|
128
|
+
return a;
|
|
127
129
|
}
|
|
128
130
|
return t != null && t.value ? o[String(t.value)] ?? "" : "";
|
|
129
131
|
}, Me = (t) => !!Z(t), {
|
|
@@ -136,44 +138,44 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
136
138
|
getMenuChannelIconComponentForChannelId: xe,
|
|
137
139
|
getSingleMenuChannelIconComponent: ee,
|
|
138
140
|
getAvailableChannels: te
|
|
139
|
-
} =
|
|
141
|
+
} = Ue({
|
|
140
142
|
channels: F,
|
|
141
143
|
channelTooltips: ke,
|
|
142
144
|
selectedChannelType: _
|
|
143
145
|
}), {
|
|
144
|
-
activeChannelType:
|
|
146
|
+
activeChannelType: r,
|
|
145
147
|
hoveredChannel: R,
|
|
146
148
|
showMenu: x,
|
|
147
149
|
showSubMenu: L,
|
|
148
150
|
handleChannelClick: qe,
|
|
149
151
|
closeMenu: ne,
|
|
150
152
|
handleClickOutside: oe
|
|
151
|
-
} =
|
|
153
|
+
} = Ge({
|
|
152
154
|
panelRef: N,
|
|
153
155
|
selectedChannelType: _,
|
|
154
156
|
frozenAttribute: z
|
|
155
157
|
}), V = u(() => i.contactAttributes ?? []), se = (t) => {
|
|
156
|
-
var
|
|
158
|
+
var m;
|
|
157
159
|
if (!t || !Q.value) return !0;
|
|
158
|
-
const o = (
|
|
160
|
+
const o = (m = Ie.value) == null ? void 0 : m.chatId;
|
|
159
161
|
return o ? !Q.value.filter(
|
|
160
|
-
(
|
|
162
|
+
(p) => {
|
|
161
163
|
var pe;
|
|
162
|
-
return
|
|
164
|
+
return p.chatId === o && p.dialogId === ((pe = i.selectedDialog) == null ? void 0 : pe.dialogId);
|
|
163
165
|
}
|
|
164
166
|
).some(
|
|
165
|
-
(
|
|
167
|
+
(p) => p.type !== "message.system" && p.type !== "message.delimiter" && p.type !== "system" && p.type !== "system_message" && p.type !== "notification"
|
|
166
168
|
) : !0;
|
|
167
169
|
}, le = () => {
|
|
168
170
|
q(), C.value = !0, he(() => {
|
|
169
|
-
const t = Array.isArray(
|
|
171
|
+
const t = Array.isArray(f.value) ? f.value[0] : f.value;
|
|
170
172
|
t && typeof t.startAutoShow == "function" ? t.startAutoShow() : console.log("startAutoShow method not found on tooltipRef");
|
|
171
173
|
}), M.value = setTimeout(() => {
|
|
172
174
|
C.value = !1;
|
|
173
175
|
}, 5e3);
|
|
174
176
|
}, q = () => {
|
|
175
|
-
if (M.value && (clearTimeout(M.value), M.value = null),
|
|
176
|
-
const t = Array.isArray(
|
|
177
|
+
if (M.value && (clearTimeout(M.value), M.value = null), f.value) {
|
|
178
|
+
const t = Array.isArray(f.value) ? f.value[0] : f.value;
|
|
177
179
|
t && typeof t.clearAutoTimer == "function" && t.clearAutoTimer();
|
|
178
180
|
}
|
|
179
181
|
C.value = !1;
|
|
@@ -181,15 +183,15 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
181
183
|
organizedContactAttributes: ie,
|
|
182
184
|
organizeContactAttributes: Be,
|
|
183
185
|
isAttributeFrozen: ae
|
|
184
|
-
} =
|
|
186
|
+
} = Je({
|
|
185
187
|
contactAttributes: V,
|
|
186
188
|
frozenAttribute: z
|
|
187
189
|
}), {
|
|
188
190
|
handleAttributeClick: Pe,
|
|
189
191
|
selectChannel: Ee,
|
|
190
192
|
availableChannels: Ne
|
|
191
|
-
} =
|
|
192
|
-
activeChannelType:
|
|
193
|
+
} = Qe({
|
|
194
|
+
activeChannelType: r,
|
|
193
195
|
channels: F,
|
|
194
196
|
selectedChannel: $,
|
|
195
197
|
selectedChannelType: _,
|
|
@@ -210,21 +212,21 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
210
212
|
handleAttributeMouseEnter: ze,
|
|
211
213
|
handleAttributeMouseLeave: B,
|
|
212
214
|
keepSubMenuOpen: ue,
|
|
213
|
-
closeSubMenu:
|
|
215
|
+
closeSubMenu: re,
|
|
214
216
|
alignSubMenuWithTarget: $e
|
|
215
|
-
} =
|
|
216
|
-
activeChannelType:
|
|
217
|
+
} = Xe({
|
|
218
|
+
activeChannelType: r,
|
|
217
219
|
showSubMenu: L,
|
|
218
220
|
frozenAttribute: z,
|
|
219
221
|
hoveredAttribute: O,
|
|
220
222
|
hasMultipleChannels: k,
|
|
221
223
|
isAttributeBlocked: g
|
|
222
224
|
}), je = (t) => {
|
|
223
|
-
x.value &&
|
|
224
|
-
},
|
|
225
|
+
x.value && r.value === t || J("reset-blocked-attributes"), qe(t);
|
|
226
|
+
}, ce = (t) => {
|
|
225
227
|
g(t) || Pe(t);
|
|
226
228
|
};
|
|
227
|
-
|
|
229
|
+
Ye({
|
|
228
230
|
selectedChannelType: _,
|
|
229
231
|
selectedChannel: $,
|
|
230
232
|
channels: F,
|
|
@@ -237,19 +239,19 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
237
239
|
const {
|
|
238
240
|
emptyChannelsPlaceholderText: Fe,
|
|
239
241
|
shouldShowEmptyChannelsPlaceholder: de
|
|
240
|
-
} =
|
|
242
|
+
} = Ze({
|
|
241
243
|
showMenu: x,
|
|
242
|
-
activeChannelType:
|
|
244
|
+
activeChannelType: r,
|
|
243
245
|
emptyChannelsPlaceholder: u(() => i.emptyChannelsPlaceholder ?? {}),
|
|
244
246
|
getAvailableChannels: te,
|
|
245
247
|
organizedContactAttributes: ie
|
|
246
|
-
}),
|
|
248
|
+
}), fe = u(
|
|
247
249
|
() => Ne()
|
|
248
250
|
), Le = u(
|
|
249
|
-
() => L.value && O.value &&
|
|
250
|
-
),
|
|
251
|
-
const
|
|
252
|
-
await he(),
|
|
251
|
+
() => L.value && O.value && fe.value.length > 0 && r.value !== "phone" && k(r.value)
|
|
252
|
+
), me = async (t, o) => {
|
|
253
|
+
const e = ze(t, o.currentTarget);
|
|
254
|
+
await he(), e instanceof HTMLElement && $e(N, e);
|
|
253
255
|
};
|
|
254
256
|
return H(() => i.confirmingAttributeId, (t) => {
|
|
255
257
|
t || (S.value = null);
|
|
@@ -257,188 +259,179 @@ const nt = ["onClick", "onMouseenter"], ot = { class: "channel-icon" }, st = { c
|
|
|
257
259
|
const t = b.value;
|
|
258
260
|
if (!t)
|
|
259
261
|
return;
|
|
260
|
-
const o = V.value.find((
|
|
262
|
+
const o = V.value.find((e) => e.id === t);
|
|
261
263
|
(o == null ? void 0 : o.status) === "confirmed" && (S.value = null, ne());
|
|
262
264
|
}, { deep: !0 }), H(() => i.selectedDialog, () => {
|
|
263
265
|
}, { deep: !0 }), Ve(() => {
|
|
264
266
|
document.addEventListener("click", oe), Be();
|
|
265
267
|
}), He(() => {
|
|
266
268
|
document.removeEventListener("click", oe), q();
|
|
267
|
-
}), (t, o) => {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
269
|
+
}), (t, o) => (s(), l("div", {
|
|
270
|
+
ref_key: "panelRef",
|
|
271
|
+
ref: N,
|
|
272
|
+
class: "communication-panel"
|
|
273
|
+
}, [
|
|
274
|
+
c("div", {
|
|
275
|
+
ref_key: "channelsPanelRef",
|
|
276
|
+
ref: ge,
|
|
277
|
+
class: "channels-panel"
|
|
273
278
|
}, [
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
ref_for: !0,
|
|
295
|
-
ref: (r) => {
|
|
296
|
-
r && (p.value = r);
|
|
297
|
-
},
|
|
298
|
-
text: C.value ? "Выбран канал по умолчанию, можно изменить в настройках профиля" : (a = $.value) == null ? void 0 : a.title,
|
|
299
|
-
position: "bottom-left",
|
|
300
|
-
offset: 8,
|
|
301
|
-
trigger: C.value ? "auto" : "hover",
|
|
302
|
-
"auto-show-duration": C.value ? 5e3 : 0
|
|
303
|
-
}, {
|
|
304
|
-
default: U(() => [
|
|
305
|
-
m("span", ot, [
|
|
306
|
-
(s(), y(I(e.component)))
|
|
307
|
-
])
|
|
308
|
-
]),
|
|
309
|
-
_: 2
|
|
310
|
-
}, 1032, ["text", "trigger", "auto-show-duration"]),
|
|
311
|
-
o[5] || (o[5] = m("span", { class: "active-indicator" }, null, -1))
|
|
312
|
-
], 64)) : (s(), y(G, {
|
|
313
|
-
key: 1,
|
|
314
|
-
text: n(we)(e.type),
|
|
279
|
+
(s(!0), l(A, null, W(n(Se), (e) => {
|
|
280
|
+
var a;
|
|
281
|
+
return s(), l("button", {
|
|
282
|
+
key: e.type,
|
|
283
|
+
class: v(["channel-btn", {
|
|
284
|
+
active: n(D)(e.type),
|
|
285
|
+
hover: n(R) === e.type && !n(D)(e.type) || n(R) === e.type && n(D)(e.type),
|
|
286
|
+
menuOpen: n(x) && n(r) === e.type
|
|
287
|
+
}]),
|
|
288
|
+
onClick: (m) => je(e.type),
|
|
289
|
+
onMouseenter: (m) => R.value = e.type,
|
|
290
|
+
onMouseleave: o[0] || (o[0] = (m) => R.value = null)
|
|
291
|
+
}, [
|
|
292
|
+
n(D)(e.type) ? (s(), l(A, { key: 0 }, [
|
|
293
|
+
P(G, {
|
|
294
|
+
ref_for: !0,
|
|
295
|
+
ref: (m) => {
|
|
296
|
+
m && (f.value = m);
|
|
297
|
+
},
|
|
298
|
+
text: C.value ? "Выбран канал по умолчанию, можно изменить в настройках профиля" : (a = $.value) == null ? void 0 : a.title,
|
|
315
299
|
position: "bottom-left",
|
|
316
|
-
offset: 8
|
|
300
|
+
offset: 8,
|
|
301
|
+
trigger: C.value ? "auto" : "hover",
|
|
302
|
+
"auto-show-duration": C.value ? 5e3 : 0
|
|
317
303
|
}, {
|
|
318
304
|
default: U(() => [
|
|
319
|
-
|
|
305
|
+
c("span", ot, [
|
|
320
306
|
(s(), y(I(e.component)))
|
|
321
307
|
])
|
|
322
308
|
]),
|
|
323
309
|
_: 2
|
|
324
|
-
}, 1032, ["text"])
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
n(de) ? (s(), l("div", it, E(n(Fe)), 1)) : h("", !0),
|
|
330
|
-
n(de) ? h("", !0) : (s(!0), l(A, { key: 1 }, W(n(ie)[n(c)], (e) => (s(), l(A, {
|
|
331
|
-
key: e.attributeId
|
|
332
|
-
}, [
|
|
333
|
-
Me(e) ? (s(), y(G, {
|
|
334
|
-
key: 0,
|
|
335
|
-
text: Z(e),
|
|
310
|
+
}, 1032, ["text", "trigger", "auto-show-duration"]),
|
|
311
|
+
o[5] || (o[5] = c("span", { class: "active-indicator" }, null, -1))
|
|
312
|
+
], 64)) : (s(), y(G, {
|
|
313
|
+
key: 1,
|
|
314
|
+
text: n(we)(e.type),
|
|
336
315
|
position: "bottom-left",
|
|
337
316
|
offset: 8
|
|
338
317
|
}, {
|
|
339
318
|
default: U(() => [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
selected: w(e),
|
|
344
|
-
confirming: n(ye)(e, b.value),
|
|
345
|
-
blocked: g(e)
|
|
346
|
-
}]),
|
|
347
|
-
"data-attribute-status": e.status,
|
|
348
|
-
onMouseenter: (a) => fe(e, a),
|
|
349
|
-
onMouseleave: o[1] || (o[1] = (...a) => n(B) && n(B)(...a)),
|
|
350
|
-
onClick: (a) => re(e)
|
|
351
|
-
}, [
|
|
352
|
-
m("div", ut, [
|
|
353
|
-
P(Ce, {
|
|
354
|
-
attribute: e,
|
|
355
|
-
"is-selected": w(e),
|
|
356
|
-
"confirming-attribute-id": b.value,
|
|
357
|
-
"blocked-attribute-ids": j.value,
|
|
358
|
-
"indicator-tooltips": K.value
|
|
359
|
-
}, null, 8, ["attribute", "is-selected", "confirming-attribute-id", "blocked-attribute-ids", "indicator-tooltips"]),
|
|
360
|
-
m("span", {
|
|
361
|
-
class: "attribute-value",
|
|
362
|
-
title: e.value
|
|
363
|
-
}, E(e.value), 9, ct)
|
|
364
|
-
]),
|
|
365
|
-
m("span", rt, [
|
|
366
|
-
n(k)(n(c)) ? (s(), l("span", dt)) : T.showChannelIcons ? (s(), l("span", {
|
|
367
|
-
key: 1,
|
|
368
|
-
class: v(["channel-icon-small", { "menu-icon-grey": n(c) !== "sms" }])
|
|
369
|
-
}, [
|
|
370
|
-
(s(), y(I(n(ee)(n(c)))))
|
|
371
|
-
], 2)) : h("", !0)
|
|
372
|
-
])
|
|
373
|
-
], 42, at)
|
|
319
|
+
c("span", st, [
|
|
320
|
+
(s(), y(I(e.component)))
|
|
321
|
+
])
|
|
374
322
|
]),
|
|
375
323
|
_: 2
|
|
376
|
-
}, 1032, ["text"]))
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
"
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
324
|
+
}, 1032, ["text"]))
|
|
325
|
+
], 42, nt);
|
|
326
|
+
}), 128))
|
|
327
|
+
], 512),
|
|
328
|
+
n(x) && n(r) ? (s(), l("div", lt, [
|
|
329
|
+
n(de) ? (s(), l("div", it, E(n(Fe)), 1)) : h("", !0),
|
|
330
|
+
n(de) ? h("", !0) : (s(!0), l(A, { key: 1 }, W(n(ie)[n(r)], (e) => (s(), l(A, {
|
|
331
|
+
key: e.attributeId
|
|
332
|
+
}, [
|
|
333
|
+
Me(e) ? (s(), y(G, {
|
|
334
|
+
key: 0,
|
|
335
|
+
text: Z(e),
|
|
336
|
+
position: "bottom-left",
|
|
337
|
+
offset: 8
|
|
338
|
+
}, {
|
|
339
|
+
default: U(() => [
|
|
340
|
+
c("div", {
|
|
341
|
+
class: v(["attribute-item", n(ve)(e), {
|
|
342
|
+
"frozen-hover": n(ae)(e),
|
|
343
|
+
selected: w(e),
|
|
344
|
+
confirming: n(ye)(e, b.value),
|
|
345
|
+
blocked: g(e)
|
|
346
|
+
}]),
|
|
347
|
+
"data-attribute-status": e.status,
|
|
348
|
+
onMouseenter: (a) => me(e, a),
|
|
349
|
+
onMouseleave: o[1] || (o[1] = (...a) => n(B) && n(B)(...a)),
|
|
350
|
+
onClick: (a) => ce(e)
|
|
351
|
+
}, [
|
|
352
|
+
c("div", ut, [
|
|
353
|
+
P(Ce, {
|
|
354
|
+
attribute: e,
|
|
355
|
+
"is-selected": w(e),
|
|
356
|
+
"confirming-attribute-id": b.value,
|
|
357
|
+
"blocked-attribute-ids": j.value,
|
|
358
|
+
"indicator-tooltips": K.value
|
|
359
|
+
}, null, 8, ["attribute", "is-selected", "confirming-attribute-id", "blocked-attribute-ids", "indicator-tooltips"]),
|
|
360
|
+
c("span", rt, E(e.value), 1)
|
|
361
|
+
]),
|
|
362
|
+
c("span", ct, [
|
|
363
|
+
n(k)(n(r)) ? (s(), l("span", dt)) : T.showChannelIcons ? (s(), l("span", {
|
|
364
|
+
key: 1,
|
|
365
|
+
class: v(["channel-icon-small", { "menu-icon-grey": n(r) !== "sms" }])
|
|
366
|
+
}, [
|
|
367
|
+
(s(), y(I(n(ee)(n(r)))))
|
|
368
|
+
], 2)) : h("", !0)
|
|
369
|
+
])
|
|
370
|
+
], 42, at)
|
|
371
|
+
]),
|
|
372
|
+
_: 2
|
|
373
|
+
}, 1032, ["text"])) : (s(), l("div", {
|
|
374
|
+
key: 1,
|
|
375
|
+
class: v(["attribute-item", n(ve)(e), {
|
|
376
|
+
"frozen-hover": n(ae)(e),
|
|
377
|
+
selected: w(e),
|
|
378
|
+
confirming: n(ye)(e, b.value),
|
|
379
|
+
blocked: g(e)
|
|
380
|
+
}]),
|
|
381
|
+
"data-attribute-status": e.status,
|
|
382
|
+
onMouseenter: (a) => me(e, a),
|
|
383
|
+
onMouseleave: o[2] || (o[2] = (...a) => n(B) && n(B)(...a)),
|
|
384
|
+
onClick: (a) => ce(e)
|
|
418
385
|
}, [
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
386
|
+
c("div", mt, [
|
|
387
|
+
P(Ce, {
|
|
388
|
+
attribute: e,
|
|
389
|
+
"is-selected": w(e),
|
|
390
|
+
"confirming-attribute-id": b.value,
|
|
391
|
+
"blocked-attribute-ids": j.value,
|
|
392
|
+
"indicator-tooltips": K.value
|
|
393
|
+
}, null, 8, ["attribute", "is-selected", "confirming-attribute-id", "blocked-attribute-ids", "indicator-tooltips"]),
|
|
394
|
+
c("span", pt, E(e.value), 1)
|
|
395
|
+
]),
|
|
396
|
+
c("span", ht, [
|
|
397
|
+
n(k)(n(r)) ? (s(), l("span", vt)) : T.showChannelIcons ? (s(), l("span", {
|
|
430
398
|
key: 1,
|
|
431
|
-
class: v(["
|
|
399
|
+
class: v(["channel-icon-small", { "menu-icon-grey": n(r) !== "sms" }])
|
|
432
400
|
}, [
|
|
433
|
-
(s(), y(I(n(
|
|
401
|
+
(s(), y(I(n(ee)(n(r)))))
|
|
434
402
|
], 2)) : h("", !0)
|
|
435
|
-
]
|
|
436
|
-
],
|
|
437
|
-
]))
|
|
438
|
-
|
|
439
|
-
|
|
403
|
+
])
|
|
404
|
+
], 42, ft))
|
|
405
|
+
], 64))), 128)),
|
|
406
|
+
n(L) && Le.value ? (s(), l("div", {
|
|
407
|
+
key: 2,
|
|
408
|
+
class: "sub-menu left",
|
|
409
|
+
style: We({ top: n(Oe) + "px" }),
|
|
410
|
+
onMouseenter: o[3] || (o[3] = (...e) => n(ue) && n(ue)(...e)),
|
|
411
|
+
onMouseleave: o[4] || (o[4] = (...e) => n(re) && n(re)(...e))
|
|
412
|
+
}, [
|
|
413
|
+
o[6] || (o[6] = c("div", { class: "sub-menu-header" }, " Канал связи ", -1)),
|
|
414
|
+
(s(!0), l(A, null, W(fe.value, (e) => (s(), l("div", {
|
|
415
|
+
key: e.channelId,
|
|
416
|
+
class: v(["sub-menu-item", { selected: Y(e.channelId) }]),
|
|
417
|
+
onClick: (a) => n(Ee)(e.channelId)
|
|
418
|
+
}, [
|
|
419
|
+
Y(e.channelId) ? (s(), l("span", Ct, [
|
|
420
|
+
P(n(et))
|
|
421
|
+
])) : h("", !0),
|
|
422
|
+
c("span", bt, E(e.title || e.channelId), 1),
|
|
423
|
+
T.showChannelIcons ? (s(), l("span", {
|
|
424
|
+
key: 1,
|
|
425
|
+
class: v(["sub-menu-icon", { "menu-icon-grey": n(De)(e.channelId) !== "sms" }])
|
|
426
|
+
}, [
|
|
427
|
+
(s(), y(I(n(xe)(e.channelId))))
|
|
428
|
+
], 2)) : h("", !0)
|
|
429
|
+
], 10, yt))), 128))
|
|
430
|
+
], 36)) : h("", !0)
|
|
431
|
+
])) : h("", !0)
|
|
432
|
+
], 512));
|
|
440
433
|
}
|
|
441
|
-
},
|
|
434
|
+
}, Et = /* @__PURE__ */ tt(gt, [["__scopeId", "data-v-a451969d"]]);
|
|
442
435
|
export {
|
|
443
|
-
|
|
436
|
+
Et as default
|
|
444
437
|
};
|