@mobilon-dev/chotto 0.3.77 → 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.
@@ -1,22 +1,24 @@
1
- import { ref as m, computed as u, watch as H, onMounted as Ve, onUnmounted as He, resolveComponent as We, createElementBlock as l, openBlock as s, createElementVNode as f, 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 Ue, nextTick as he } from "vue";
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 Ge } from "./composables/useCommunicationChannels.js";
4
- import { useCommunicationMenu as Je } from "./composables/useCommunicationMenu.js";
5
- import { useCommunicationAttributes as Ke, isAttributeBlocked as Qe, getAttributeStatusClass as ve, isAttributeConfirming as ye } from "./composables/useCommunicationAttributes.js";
6
- import { useCommunicationActions as Xe } from "./composables/useCommunicationActions.js";
7
- import { useCommunicationSubMenu as Ye } from "./composables/useCommunicationSubMenu.js";
8
- import { useCommunicationDialogSync as Ze } from "./composables/useCommunicationDialogSync.js";
9
- import { useCommunicationPlaceholder as et } from "./composables/useCommunicationPlaceholder.js";
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
- /* empty css */
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" }, ct = { class: "attribute-value" }, rt = { class: "menu-icon" }, dt = {
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 = {
@@ -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 = m(null), ge = m(null), O = m(null), z = m(null), _ = m(null), $ = m({}), C = m(!1), M = m(null), p = m(null), S = m(null), b = u(
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) => Qe(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(() => {
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 d = t.id ?? t.attributeId;
120
- return o === d;
121
+ const e = t.id ?? t.attributeId;
122
+ return o === e;
121
123
  }, Z = (t) => {
122
- const o = Ae.value, d = (t == null ? void 0 : t.attributeId) ?? (t == null ? void 0 : t.id);
123
- if (d != null) {
124
- const e = o[String(d)];
125
- if (e)
126
- return e;
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
- } = Ge({
141
+ } = Ue({
140
142
  channels: F,
141
143
  channelTooltips: ke,
142
144
  selectedChannelType: _
143
145
  }), {
144
- activeChannelType: c,
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
- } = Je({
153
+ } = Ge({
152
154
  panelRef: N,
153
155
  selectedChannelType: _,
154
156
  frozenAttribute: z
155
157
  }), V = u(() => i.contactAttributes ?? []), se = (t) => {
156
- var a;
158
+ var m;
157
159
  if (!t || !Q.value) return !0;
158
- const o = (a = Ie.value) == null ? void 0 : a.chatId;
160
+ const o = (m = Ie.value) == null ? void 0 : m.chatId;
159
161
  return o ? !Q.value.filter(
160
- (r) => {
162
+ (p) => {
161
163
  var pe;
162
- return r.chatId === o && r.dialogId === ((pe = i.selectedDialog) == null ? void 0 : pe.dialogId);
164
+ return p.chatId === o && p.dialogId === ((pe = i.selectedDialog) == null ? void 0 : pe.dialogId);
163
165
  }
164
166
  ).some(
165
- (r) => r.type !== "message.system" && r.type !== "message.delimiter" && r.type !== "system" && r.type !== "system_message" && r.type !== "notification"
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(p.value) ? p.value[0] : p.value;
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), p.value) {
176
- const t = Array.isArray(p.value) ? p.value[0] : p.value;
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
- } = Ke({
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
- } = Xe({
192
- activeChannelType: c,
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: ce,
215
+ closeSubMenu: re,
214
216
  alignSubMenuWithTarget: $e
215
- } = Ye({
216
- activeChannelType: c,
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 && c.value === t || J("reset-blocked-attributes"), qe(t);
224
- }, re = (t) => {
225
+ x.value && r.value === t || J("reset-blocked-attributes"), qe(t);
226
+ }, ce = (t) => {
225
227
  g(t) || Pe(t);
226
228
  };
227
- Ze({
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
- } = et({
242
+ } = Ze({
241
243
  showMenu: x,
242
- activeChannelType: c,
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 && fe.value.length > 0 && c.value !== "phone" && k(c.value)
251
+ () => L.value && O.value && fe.value.length > 0 && r.value !== "phone" && k(r.value)
250
252
  ), me = async (t, o) => {
251
- const d = ze(t, o.currentTarget);
252
- await he(), d instanceof HTMLElement && $e(N, d);
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,182 +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((d) => d.id === t);
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
- const d = We("CommunicationPanelCheckIcon");
269
- return s(), l("div", {
270
- ref_key: "panelRef",
271
- ref: N,
272
- class: "communication-panel"
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
- f("div", {
275
- ref_key: "channelsPanelRef",
276
- ref: ge,
277
- class: "channels-panel"
278
- }, [
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(c) === e.type
287
- }]),
288
- onClick: (r) => je(e.type),
289
- onMouseenter: (r) => R.value = e.type,
290
- onMouseleave: o[0] || (o[0] = (r) => R.value = null)
291
- }, [
292
- n(D)(e.type) ? (s(), l(A, { key: 0 }, [
293
- P(G, {
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
- f("span", ot, [
306
- (s(), y(I(e.component)))
307
- ])
308
- ]),
309
- _: 2
310
- }, 1032, ["text", "trigger", "auto-show-duration"]),
311
- o[5] || (o[5] = f("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
- f("span", st, [
305
+ c("span", ot, [
320
306
  (s(), y(I(e.component)))
321
307
  ])
322
308
  ]),
323
309
  _: 2
324
- }, 1032, ["text"]))
325
- ], 42, nt);
326
- }), 128))
327
- ], 512),
328
- n(x) && n(c) ? (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(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
- f("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) => re(e)
351
- }, [
352
- f("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
- f("span", ct, E(e.value), 1)
361
- ]),
362
- f("span", rt, [
363
- n(k)(n(c)) ? (s(), l("span", dt)) : T.showChannelIcons ? (s(), l("span", {
364
- key: 1,
365
- class: v(["channel-icon-small", { "menu-icon-grey": n(c) !== "sms" }])
366
- }, [
367
- (s(), y(I(n(ee)(n(c)))))
368
- ], 2)) : h("", !0)
369
- ])
370
- ], 42, at)
319
+ c("span", st, [
320
+ (s(), y(I(e.component)))
321
+ ])
371
322
  ]),
372
323
  _: 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) => re(e)
385
- }, [
386
- f("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
- f("span", pt, E(e.value), 1)
395
- ]),
396
- f("span", ht, [
397
- n(k)(n(c)) ? (s(), l("span", vt)) : T.showChannelIcons ? (s(), l("span", {
398
- key: 1,
399
- class: v(["channel-icon-small", { "menu-icon-grey": n(c) !== "sms" }])
400
- }, [
401
- (s(), y(I(n(ee)(n(c)))))
402
- ], 2)) : h("", !0)
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: Ue({ top: n(Oe) + "px" }),
410
- onMouseenter: o[3] || (o[3] = (...e) => n(ue) && n(ue)(...e)),
411
- onMouseleave: o[4] || (o[4] = (...e) => n(ce) && n(ce)(...e))
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)
412
385
  }, [
413
- o[6] || (o[6] = f("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(d)
421
- ])) : h("", !0),
422
- f("span", bt, E(e.title || e.channelId), 1),
423
- T.showChannelIcons ? (s(), l("span", {
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", {
424
398
  key: 1,
425
- class: v(["sub-menu-icon", { "menu-icon-grey": n(De)(e.channelId) !== "sms" }])
399
+ class: v(["channel-icon-small", { "menu-icon-grey": n(r) !== "sms" }])
426
400
  }, [
427
- (s(), y(I(n(xe)(e.channelId))))
401
+ (s(), y(I(n(ee)(n(r)))))
428
402
  ], 2)) : h("", !0)
429
- ], 10, yt))), 128))
430
- ], 36)) : h("", !0)
431
- ])) : h("", !0)
432
- ], 512);
433
- };
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));
434
433
  }
435
- }, Bt = /* @__PURE__ */ tt(gt, [["__scopeId", "data-v-2f47f482"]]);
434
+ }, Et = /* @__PURE__ */ tt(gt, [["__scopeId", "data-v-a451969d"]]);
436
435
  export {
437
- Bt as default
436
+ Et as default
438
437
  };