@mobilon-dev/chotto 0.3.35 → 0.3.36

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 (36) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +7 -0
  3. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +114 -0
  4. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +23 -19
  5. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
  6. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +62 -34
  7. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +262 -203
  8. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +56 -52
  9. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +20 -17
  10. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +27 -23
  11. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +7 -0
  12. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +18 -0
  13. package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +13 -11
  14. package/dist/index.js +239 -235
  15. package/dist/themes/dark.css +1 -1
  16. package/dist/themes/default.css +1 -1
  17. package/dist/themes/glass.css +1 -1
  18. package/dist/themes/green.css +1 -1
  19. package/dist/themes/mobilon1.css +1 -1
  20. package/dist/types/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.d.ts +59 -0
  21. package/dist/types/components/1_atoms/ContactContextMenu/stories/ContactContextMenu.stories.d.ts +10 -0
  22. package/dist/types/components/1_atoms/ContactContextMenu/styles/types.d.ts +67 -0
  23. package/dist/types/components/1_atoms/ContextMenu/styles/types.d.ts +6 -0
  24. package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +22 -1
  25. package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +6 -0
  26. package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.d.ts +6 -2
  27. package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.d.ts +10 -2
  28. package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +6 -0
  29. package/dist/types/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.d.ts +13 -0
  30. package/dist/types/components/2_feed_elements/DelimiterMessage/stories/DelimiterMessage.stories.d.ts +6 -0
  31. package/dist/types/components/2_feed_elements/DelimiterMessage/styles/types.d.ts +27 -0
  32. package/dist/types/components/2_feed_elements/types/messages.d.ts +4 -0
  33. package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +1 -1
  34. package/dist/types/components/4_layouts/BaseLayout/styles/types.d.ts +6 -0
  35. package/dist/types/components/index.d.ts +2 -0
  36. package/package.json +1 -1
@@ -1,20 +1,23 @@
1
- import { ref as m, computed as p, watch as Re, onMounted as Ee, onUnmounted as xe, createElementBlock as l, openBlock as o, createElementVNode as a, createCommentVNode as r, Fragment as E, renderList as q, unref as e, normalizeClass as c, createBlock as d, createVNode as Se, withCtx as H, resolveDynamicComponent as v, normalizeStyle as te, toDisplayString as f } from "vue";
2
- import F from "../../1_atoms/Tooltip/Tooltip.vue.js";
3
- import { useCommunicationChannels as ze } from "./composables/useCommunicationChannels.js";
4
- import { useCommunicationMenu as _e } from "./composables/useCommunicationMenu.js";
5
- import { useCommunicationAttributes as Le } from "./composables/useCommunicationAttributes.js";
6
- import { useCommunicationActions as De } from "./composables/useCommunicationActions.js";
7
- import { useCommunicationSubMenu as $e } from "./composables/useCommunicationSubMenu.js";
8
- import { useCommunicationDialogSync as qe } from "./composables/useCommunicationDialogSync.js";
1
+ import { ref as d, computed as m, watch as He, onMounted as $e, onUnmounted as Oe, createElementBlock as l, openBlock as o, createElementVNode as u, createCommentVNode as f, Fragment as q, renderList as W, unref as e, normalizeClass as v, createBlock as h, createVNode as Be, withCtx as V, resolveDynamicComponent as C, normalizeStyle as re, toDisplayString as L, nextTick as Fe } from "vue";
2
+ import U from "../../1_atoms/Tooltip/Tooltip.vue.js";
3
+ import { useCommunicationChannels as je } from "./composables/useCommunicationChannels.js";
4
+ import { useCommunicationMenu as Pe } from "./composables/useCommunicationMenu.js";
5
+ import { useCommunicationAttributes as We } from "./composables/useCommunicationAttributes.js";
6
+ import { useCommunicationActions as Ve } from "./composables/useCommunicationActions.js";
7
+ import { useCommunicationSubMenu as Ue } from "./composables/useCommunicationSubMenu.js";
8
+ import { useCommunicationDialogSync as Ge } from "./composables/useCommunicationDialogSync.js";
9
9
  /* empty css */
10
- import He from "../../../_virtual/_plugin-vue_export-helper.js";
11
- const Fe = ["onClick", "onMouseenter"], Oe = { class: "channel-icon" }, Be = { class: "channel-icon" }, Pe = { class: "menu-header" }, je = { class: "attribute-info" }, Ne = { class: "attribute-value" }, Ve = { class: "attribute-info" }, We = { class: "attribute-value" }, Ue = {
12
- key: 2,
10
+ import Je from "../../../_virtual/_plugin-vue_export-helper.js";
11
+ const Ke = ["onClick", "onMouseenter"], Qe = { class: "channel-icon" }, Xe = { class: "channel-icon" }, Ye = {
12
+ key: 0,
13
+ class: "menu-header"
14
+ }, Ze = { class: "attribute-info" }, et = { class: "attribute-value" }, tt = { class: "attribute-info" }, nt = { class: "attribute-value" }, ot = {
15
+ key: 3,
13
16
  class: "menu-divider"
14
- }, Ge = ["onMouseenter", "onClick"], Je = { class: "attribute-info" }, Ke = { class: "attribute-value" }, Qe = { class: "menu-icon" }, Xe = {
17
+ }, st = ["onMouseenter", "onClick"], lt = { class: "attribute-info" }, at = { class: "attribute-value" }, it = { class: "menu-icon" }, ut = {
15
18
  key: 0,
16
19
  class: "menu-icon-arrow"
17
- }, Ye = ["onClick"], Ze = { class: "sub-menu-title" }, et = {
20
+ }, rt = ["onClick"], ct = { class: "sub-menu-title" }, dt = {
18
21
  __name: "CommunicationPanel",
19
22
  props: {
20
23
  contactAttributes: {
@@ -42,6 +45,21 @@ const Fe = ["onClick", "onMouseenter"], Oe = { class: "channel-icon" }, Be = { c
42
45
  required: !1,
43
46
  default: () => ({})
44
47
  },
48
+ messages: {
49
+ type: Array,
50
+ required: !1,
51
+ default: () => []
52
+ },
53
+ selectedChat: {
54
+ type: Object,
55
+ required: !1,
56
+ default: null
57
+ },
58
+ isNewDialog: {
59
+ type: Boolean,
60
+ required: !1,
61
+ default: !1
62
+ },
45
63
  showChannelIcons: {
46
64
  type: Boolean,
47
65
  required: !1,
@@ -49,267 +67,308 @@ const Fe = ["onClick", "onMouseenter"], Oe = { class: "channel-icon" }, Be = { c
49
67
  }
50
68
  },
51
69
  emits: ["select-attribute-channel", "phone-call"],
52
- setup(h, { emit: ne }) {
53
- const u = h, oe = ne, y = m(null), O = m(null), x = m(null), S = m(null), b = m(!1), M = m(null), z = m({}), _ = p(() => u.channels ?? []), se = p(() => u.channelTooltips ?? {}), {
54
- channelsTypes: le,
55
- getTooltipText: ie,
56
- getChannelTypeFromId: ae,
57
- hasMultipleChannels: A,
58
- isChannelActive: k,
59
- getSingleChannelForType: ue,
60
- getMenuChannelIconComponent: B,
61
- getMenuChannelIconComponentForChannelId: re,
62
- getSingleMenuChannelIconComponent: ce,
63
- getAvailableChannels: de
64
- } = ze({
65
- channels: _,
66
- channelTooltips: se,
67
- selectedChannelType: M
70
+ setup(g, { emit: ce }) {
71
+ const r = g, de = ce, T = d(null), G = d(null), H = d(null), $ = d(null), A = d(!1), w = d(null), O = d({}), y = d(!1), R = d(null), p = d(null), B = m(() => r.channels ?? []), me = m(() => r.channelTooltips ?? {}), J = m(() => r.messages ?? []), fe = m(() => r.selectedChat ?? null), K = m(() => r.isNewDialog ?? !1), {
72
+ channelsTypes: pe,
73
+ getTooltipText: ve,
74
+ getChannelTypeFromId: he,
75
+ hasMultipleChannels: I,
76
+ isChannelActive: S,
77
+ getSingleChannelForType: ye,
78
+ getMenuChannelIconComponent: Q,
79
+ getMenuChannelIconComponentForChannelId: be,
80
+ getSingleMenuChannelIconComponent: Ce,
81
+ getAvailableChannels: ge
82
+ } = je({
83
+ channels: B,
84
+ channelTooltips: me,
85
+ selectedChannelType: w
68
86
  }), {
69
87
  activeChannelType: s,
70
- hoveredChannel: g,
71
- showMenu: me,
72
- showSubMenu: L,
73
- menuWidth: pe,
74
- updateMenuWidth: D,
75
- handleChannelClick: ve,
76
- closeMenu: he,
77
- handleClickOutside: P
78
- } = _e({
79
- panelRef: y,
80
- channelsPanelRef: O,
81
- selectedChannelType: M,
82
- frozenAttribute: S,
83
- isRecentAttributeHovered: b
84
- }), be = p(() => u.contactAttributes ?? []), j = p(() => u.recentAttributeChannels ?? {}), {
85
- organizedContactAttributes: N,
86
- organizeContactAttributes: Ce,
87
- recentAttribute: T,
88
- showRecentAttribute: $,
89
- isAttributeFrozen: fe
90
- } = Le({
91
- contactAttributes: be,
92
- recentAttributeChannels: j,
88
+ hoveredChannel: D,
89
+ showMenu: Ae,
90
+ showSubMenu: F,
91
+ menuWidth: Me,
92
+ updateMenuWidth: j,
93
+ handleChannelClick: ke,
94
+ closeMenu: Te,
95
+ handleClickOutside: X
96
+ } = Pe({
97
+ panelRef: T,
98
+ channelsPanelRef: G,
99
+ selectedChannelType: w,
100
+ frozenAttribute: $,
101
+ isRecentAttributeHovered: A
102
+ }), we = m(() => r.contactAttributes ?? []), Y = m(() => r.recentAttributeChannels ?? {}), Z = (i) => {
103
+ var M;
104
+ if (!i || !J.value) return !0;
105
+ const n = (M = fe.value) == null ? void 0 : M.chatId;
106
+ return n ? !J.value.filter(
107
+ (c) => {
108
+ var t;
109
+ return c.chatId === n && c.dialogId === ((t = r.selectedDialog) == null ? void 0 : t.dialogId);
110
+ }
111
+ ).some(
112
+ (c) => c.type !== "message.system" && c.type !== "message.delimiter" && c.type !== "system" && c.type !== "system_message" && c.type !== "notification"
113
+ ) : !0;
114
+ }, ee = () => {
115
+ E(), y.value = !0, Fe(() => {
116
+ const i = Array.isArray(p.value) ? p.value[0] : p.value;
117
+ i && typeof i.startAutoShow == "function" ? i.startAutoShow() : console.log("startAutoShow method not found on tooltipRef");
118
+ }), R.value = setTimeout(() => {
119
+ y.value = !1;
120
+ }, 5e3);
121
+ }, E = () => {
122
+ if (R.value && (clearTimeout(R.value), R.value = null), p.value) {
123
+ const i = Array.isArray(p.value) ? p.value[0] : p.value;
124
+ i && typeof i.clearAutoTimer == "function" && i.clearAutoTimer();
125
+ }
126
+ y.value = !1;
127
+ }, {
128
+ organizedContactAttributes: te,
129
+ organizeContactAttributes: Re,
130
+ recentAttribute: x,
131
+ showRecentAttribute: _,
132
+ isAttributeFrozen: Ie
133
+ } = We({
134
+ contactAttributes: we,
135
+ recentAttributeChannels: Y,
93
136
  activeChannelType: s,
94
- frozenAttribute: S
137
+ frozenAttribute: $
95
138
  }), {
96
- handleRecentAttributeClick: V,
97
- handleAttributeClick: ye,
98
- selectChannel: Me,
99
- availableChannels: Ae
100
- } = De({
139
+ handleRecentAttributeClick: Se,
140
+ handleAttributeClick: De,
141
+ selectChannel: Ee,
142
+ availableChannels: xe
143
+ } = Ve({
101
144
  activeChannelType: s,
102
- channels: _,
103
- recentAttributeChannels: j,
104
- selectedChannel: z,
105
- selectedChannelType: M,
106
- isRecentAttributeHovered: b,
107
- hoveredAttribute: x,
108
- closeMenu: he,
109
- hasMultipleChannels: A,
110
- getSingleChannelForType: ue,
111
- getAvailableChannels: de,
112
- emit: oe
113
- }), {
114
- subMenuTop: ke,
115
- resetRegularAttributeHover: w,
116
- handleRecentAttributeMouseEnter: ge,
117
- handleRecentAttributeMouseLeave: I,
118
- handleAttributeMouseEnter: Te,
119
- handleAttributeMouseLeave: W,
120
- keepSubMenuOpen: U,
121
- closeSubMenu: G,
122
- alignSubMenuWithTarget: J
123
- } = $e({
145
+ channels: B,
146
+ recentAttributeChannels: Y,
147
+ selectedChannel: O,
148
+ selectedChannelType: w,
149
+ isRecentAttributeHovered: A,
150
+ hoveredAttribute: H,
151
+ closeMenu: Te,
152
+ hasMultipleChannels: I,
153
+ getSingleChannelForType: ye,
154
+ getAvailableChannels: ge,
155
+ isChannelEmpty: Z,
156
+ isNewDialog: K,
157
+ showDefaultChannelTooltipWithTimer: ee,
158
+ clearDefaultChannelTooltip: E,
159
+ emit: de
160
+ }), ne = () => {
161
+ Se(x.value);
162
+ }, {
163
+ subMenuTop: _e,
164
+ resetRegularAttributeHover: z,
165
+ handleRecentAttributeMouseEnter: ze,
166
+ handleRecentAttributeMouseLeave: N,
167
+ handleAttributeMouseEnter: Ne,
168
+ handleAttributeMouseLeave: oe,
169
+ keepSubMenuOpen: se,
170
+ closeSubMenu: le,
171
+ alignSubMenuWithTarget: ae
172
+ } = Ue({
124
173
  activeChannelType: s,
125
- showSubMenu: L,
126
- frozenAttribute: S,
127
- hoveredAttribute: x,
128
- isRecentAttributeHovered: b,
129
- hasMultipleChannels: A
174
+ showSubMenu: F,
175
+ frozenAttribute: $,
176
+ hoveredAttribute: H,
177
+ isRecentAttributeHovered: A,
178
+ hasMultipleChannels: I
130
179
  });
131
- qe({
132
- selectedChannelType: M,
133
- selectedChannel: z,
134
- channels: _,
135
- selectedDialog: p(() => u.selectedDialog ?? null)
180
+ Ge({
181
+ selectedChannelType: w,
182
+ selectedChannel: O,
183
+ channels: B,
184
+ selectedDialog: m(() => r.selectedDialog ?? null),
185
+ isChannelEmpty: Z,
186
+ isNewDialog: K,
187
+ showDefaultChannelTooltipWithTimer: ee,
188
+ clearDefaultChannelTooltip: E
136
189
  });
137
- const K = p(
138
- () => Ae()
139
- ), we = p(
140
- () => L.value && x.value && K.value.length > 0 && s.value !== "phone" && A(s.value)
141
- ), Q = (R) => {
142
- const n = ge(R.currentTarget);
143
- n instanceof HTMLElement && J(y, n);
144
- }, Ie = (R, n) => {
145
- const C = Te(R, n.currentTarget);
146
- C instanceof HTMLElement && J(y, C);
190
+ const ie = m(
191
+ () => xe()
192
+ ), qe = m(
193
+ () => F.value && H.value && ie.value.length > 0 && s.value !== "phone" && I(s.value)
194
+ ), ue = (i) => {
195
+ const n = ze(i.currentTarget);
196
+ n instanceof HTMLElement && ae(T, n);
197
+ }, Le = (i, n) => {
198
+ const b = Ne(i, n.currentTarget);
199
+ b instanceof HTMLElement && ae(T, b);
147
200
  };
148
- return Re(() => u.selectedDialog, () => {
149
- }, { deep: !0 }), Ee(() => {
150
- D(), window.addEventListener("resize", D), document.addEventListener("click", P), Ce();
151
- }), xe(() => {
152
- window.removeEventListener("resize", D), document.removeEventListener("click", P);
153
- }), (R, n) => {
154
- var C, X, Y, Z;
201
+ return He(() => r.selectedDialog, () => {
202
+ }, { deep: !0 }), $e(() => {
203
+ j(), window.addEventListener("resize", j), document.addEventListener("click", X), Re();
204
+ }), Oe(() => {
205
+ window.removeEventListener("resize", j), document.removeEventListener("click", X), E();
206
+ }), (i, n) => {
207
+ var b, P, M, c;
155
208
  return o(), l("div", {
156
209
  ref_key: "panelRef",
157
- ref: y,
210
+ ref: T,
158
211
  class: "communication-panel"
159
212
  }, [
160
- a("div", {
213
+ u("div", {
161
214
  ref_key: "channelsPanelRef",
162
- ref: O,
215
+ ref: G,
163
216
  class: "channels-panel"
164
217
  }, [
165
- (o(!0), l(E, null, q(e(le), (t) => {
166
- var i;
218
+ (o(!0), l(q, null, W(e(pe), (t) => {
219
+ var a;
167
220
  return o(), l("button", {
168
221
  key: t.type,
169
- class: c(["channel-btn", {
170
- active: e(k)(t.type),
171
- hover: e(g) === t.type && !e(k)(t.type) || e(g) === t.type && e(k)(t.type)
222
+ class: v(["channel-btn", {
223
+ active: e(S)(t.type),
224
+ hover: e(D) === t.type && !e(S)(t.type) || e(D) === t.type && e(S)(t.type)
172
225
  }]),
173
- onClick: (ee) => e(ve)(t.type),
174
- onMouseenter: (ee) => g.value = t.type,
175
- onMouseleave: n[0] || (n[0] = (ee) => g.value = null)
226
+ onClick: (k) => e(ke)(t.type),
227
+ onMouseenter: (k) => D.value = t.type,
228
+ onMouseleave: n[0] || (n[0] = (k) => D.value = null)
176
229
  }, [
177
- e(k)(t.type) ? (o(), l(E, { key: 0 }, [
178
- Se(F, {
179
- text: (i = z.value) == null ? void 0 : i.title,
180
- position: "bottom",
181
- offset: 8
230
+ e(S)(t.type) ? (o(), l(q, { key: 0 }, [
231
+ Be(U, {
232
+ ref_for: !0,
233
+ ref: (k) => {
234
+ k && (p.value = k);
235
+ },
236
+ text: y.value ? "Выбран канал по умолчанию, можно изменить в настройках профиля" : (a = O.value) == null ? void 0 : a.title,
237
+ position: "bottom-left",
238
+ offset: 8,
239
+ trigger: y.value ? "auto" : "hover",
240
+ "auto-show-duration": y.value ? 5e3 : 0
182
241
  }, {
183
- default: H(() => [
184
- a("span", Oe, [
185
- (o(), d(v(t.component)))
242
+ default: V(() => [
243
+ u("span", Qe, [
244
+ (o(), h(C(t.component)))
186
245
  ])
187
246
  ]),
188
247
  _: 2
189
- }, 1032, ["text"]),
190
- n[12] || (n[12] = a("span", { class: "active-indicator" }, null, -1))
191
- ], 64)) : (o(), d(F, {
248
+ }, 1032, ["text", "trigger", "auto-show-duration"]),
249
+ n[12] || (n[12] = u("span", { class: "active-indicator" }, null, -1))
250
+ ], 64)) : (o(), h(U, {
192
251
  key: 1,
193
- text: e(ie)(t.type),
194
- position: "bottom",
252
+ text: e(ve)(t.type),
253
+ position: "bottom-left",
195
254
  offset: 8
196
255
  }, {
197
- default: H(() => [
198
- a("span", Be, [
199
- (o(), d(v(t.component)))
256
+ default: V(() => [
257
+ u("span", Xe, [
258
+ (o(), h(C(t.component)))
200
259
  ])
201
260
  ]),
202
261
  _: 2
203
262
  }, 1032, ["text"]))
204
- ], 42, Fe);
263
+ ], 42, Ke);
205
264
  }), 128))
206
265
  ], 512),
207
- e(me) && e(s) ? (o(), l("div", {
266
+ e(Ae) && e(s) ? (o(), l("div", {
208
267
  key: 0,
209
268
  class: "attributes-menu",
210
- style: te({ width: e(pe) })
269
+ style: re({ width: e(Me) })
211
270
  }, [
212
- a("div", Pe, f(e(s) === "phone" ? "Телефон" : "Недавний"), 1),
213
- e($) && ((C = u.recentAttributeChannels[e(s)]) != null && C.tooltip) ? (o(), d(F, {
214
- key: 0,
215
- text: (X = u.recentAttributeChannels[e(s)]) == null ? void 0 : X.tooltip,
271
+ e(_) ? (o(), l("div", Ye, " Недавний ")) : f("", !0),
272
+ e(_) && ((b = r.recentAttributeChannels[e(s)]) != null && b.tooltip) ? (o(), h(U, {
273
+ key: 1,
274
+ text: (P = r.recentAttributeChannels[e(s)]) == null ? void 0 : P.tooltip,
216
275
  position: "bottom",
217
276
  offset: 8
218
277
  }, {
219
- default: H(() => {
278
+ default: V(() => {
220
279
  var t;
221
280
  return [
222
- a("div", {
223
- class: c(["recent-attribute", {
224
- "frozen-hover": b.value
281
+ u("div", {
282
+ class: v(["recent-attribute", {
283
+ "frozen-hover": A.value
225
284
  }]),
226
- onMouseenter: n[1] || (n[1] = (i) => Q(i)),
227
- onMouseleave: n[2] || (n[2] = (...i) => e(I) && e(I)(...i)),
228
- onMouseover: n[3] || (n[3] = (...i) => e(w) && e(w)(...i)),
229
- onClick: n[4] || (n[4] = (i) => e(V)(e(T)))
285
+ onMouseenter: n[1] || (n[1] = (a) => ue(a)),
286
+ onMouseleave: n[2] || (n[2] = (...a) => e(N) && e(N)(...a)),
287
+ onMouseover: n[3] || (n[3] = (...a) => e(z) && e(z)(...a)),
288
+ onClick: n[4] || (n[4] = (a) => ne())
230
289
  }, [
231
- a("div", je, [
232
- a("span", Ne, f((t = e(T)) == null ? void 0 : t.value), 1)
290
+ u("div", Ze, [
291
+ u("span", et, L((t = e(x)) == null ? void 0 : t.value), 1)
233
292
  ]),
234
- h.showChannelIcons ? (o(), l("span", {
293
+ g.showChannelIcons ? (o(), l("span", {
235
294
  key: 0,
236
- class: c(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
295
+ class: v(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
237
296
  }, [
238
- (o(), d(v(e(B)(e(s)))))
239
- ], 2)) : r("", !0)
297
+ (o(), h(C(e(Q)(e(s)))))
298
+ ], 2)) : f("", !0)
240
299
  ], 34)
241
300
  ];
242
301
  }),
243
302
  _: 1
244
- }, 8, ["text"])) : e($) ? (o(), l("div", {
245
- key: 1,
246
- class: c(["recent-attribute", {
247
- "frozen-hover": b.value
303
+ }, 8, ["text"])) : e(_) ? (o(), l("div", {
304
+ key: 2,
305
+ class: v(["recent-attribute", {
306
+ "frozen-hover": A.value
248
307
  }]),
249
- onMouseenter: n[5] || (n[5] = (t) => Q(t)),
250
- onMouseleave: n[6] || (n[6] = (...t) => e(I) && e(I)(...t)),
251
- onMouseover: n[7] || (n[7] = (...t) => e(w) && e(w)(...t)),
252
- onClick: n[8] || (n[8] = (t) => e(V)(e(T)))
308
+ onMouseenter: n[5] || (n[5] = (t) => ue(t)),
309
+ onMouseleave: n[6] || (n[6] = (...t) => e(N) && e(N)(...t)),
310
+ onMouseover: n[7] || (n[7] = (...t) => e(z) && e(z)(...t)),
311
+ onClick: n[8] || (n[8] = (t) => ne(e(x)))
253
312
  }, [
254
- a("div", Ve, [
255
- a("span", We, f((Y = e(T)) == null ? void 0 : Y.value), 1)
313
+ u("div", tt, [
314
+ u("span", nt, L((M = e(x)) == null ? void 0 : M.value), 1)
256
315
  ]),
257
- h.showChannelIcons ? (o(), l("span", {
316
+ g.showChannelIcons ? (o(), l("span", {
258
317
  key: 0,
259
- class: c(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
318
+ class: v(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
260
319
  }, [
261
- (o(), d(v(e(B)(e(s)))))
262
- ], 2)) : r("", !0)
263
- ], 34)) : r("", !0),
264
- e($) && ((Z = e(N)[e(s)]) != null && Z.length) && e(s) !== "phone" ? (o(), l("div", Ue)) : r("", !0),
265
- (o(!0), l(E, null, q(e(N)[e(s)], (t) => (o(), l("div", {
320
+ (o(), h(C(e(Q)(e(s)))))
321
+ ], 2)) : f("", !0)
322
+ ], 34)) : f("", !0),
323
+ e(_) && ((c = e(te)[e(s)]) != null && c.length) && e(s) !== "phone" ? (o(), l("div", ot)) : f("", !0),
324
+ (o(!0), l(q, null, W(e(te)[e(s)], (t) => (o(), l("div", {
266
325
  key: t.attributeId,
267
- class: c(["attribute-item", {
268
- "frozen-hover": e(fe)(t)
326
+ class: v(["attribute-item", {
327
+ "frozen-hover": e(Ie)(t)
269
328
  }]),
270
- onMouseenter: (i) => Ie(t, i),
271
- onMouseleave: n[9] || (n[9] = (...i) => e(W) && e(W)(...i)),
272
- onClick: (i) => e(ye)(t)
329
+ onMouseenter: (a) => Le(t, a),
330
+ onMouseleave: n[9] || (n[9] = (...a) => e(oe) && e(oe)(...a)),
331
+ onClick: (a) => e(De)(t)
273
332
  }, [
274
- a("div", Je, [
275
- a("span", Ke, f(t.value), 1)
333
+ u("div", lt, [
334
+ u("span", at, L(t.value), 1)
276
335
  ]),
277
- a("span", Qe, [
278
- e(A)(e(s)) ? (o(), l("span", Xe)) : h.showChannelIcons ? (o(), l("span", {
336
+ u("span", it, [
337
+ e(I)(e(s)) ? (o(), l("span", ut)) : g.showChannelIcons ? (o(), l("span", {
279
338
  key: 1,
280
- class: c(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
339
+ class: v(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
281
340
  }, [
282
- (o(), d(v(e(ce)(e(s)))))
283
- ], 2)) : r("", !0)
341
+ (o(), h(C(e(Ce)(e(s)))))
342
+ ], 2)) : f("", !0)
284
343
  ])
285
- ], 42, Ge))), 128)),
286
- e(L) && we.value ? (o(), l("div", {
287
- key: 3,
344
+ ], 42, st))), 128)),
345
+ e(F) && qe.value ? (o(), l("div", {
346
+ key: 4,
288
347
  class: "sub-menu left",
289
- style: te({ top: e(ke) + "px" }),
290
- onMouseenter: n[10] || (n[10] = (...t) => e(U) && e(U)(...t)),
291
- onMouseleave: n[11] || (n[11] = (...t) => e(G) && e(G)(...t))
348
+ style: re({ top: e(_e) + "px" }),
349
+ onMouseenter: n[10] || (n[10] = (...t) => e(se) && e(se)(...t)),
350
+ onMouseleave: n[11] || (n[11] = (...t) => e(le) && e(le)(...t))
292
351
  }, [
293
- n[13] || (n[13] = a("div", { class: "sub-menu-header" }, " Канал связи ", -1)),
294
- (o(!0), l(E, null, q(K.value, (t) => (o(), l("div", {
352
+ n[13] || (n[13] = u("div", { class: "sub-menu-header" }, " Канал связи ", -1)),
353
+ (o(!0), l(q, null, W(ie.value, (t) => (o(), l("div", {
295
354
  key: t.channelId,
296
355
  class: "sub-menu-item",
297
- onClick: (i) => e(Me)(t.channelId)
356
+ onClick: (a) => e(Ee)(t.channelId)
298
357
  }, [
299
- a("span", Ze, f(t.title || t.channelId), 1),
300
- h.showChannelIcons ? (o(), l("span", {
358
+ u("span", ct, L(t.title || t.channelId), 1),
359
+ g.showChannelIcons ? (o(), l("span", {
301
360
  key: 0,
302
- class: c(["sub-menu-icon", { "menu-icon-grey": e(ae)(t.channelId) !== "sms" }])
361
+ class: v(["sub-menu-icon", { "menu-icon-grey": e(he)(t.channelId) !== "sms" }])
303
362
  }, [
304
- (o(), d(v(e(re)(t.channelId))))
305
- ], 2)) : r("", !0)
306
- ], 8, Ye))), 128))
307
- ], 36)) : r("", !0)
308
- ], 4)) : r("", !0)
363
+ (o(), h(C(e(be)(t.channelId))))
364
+ ], 2)) : f("", !0)
365
+ ], 8, rt))), 128))
366
+ ], 36)) : f("", !0)
367
+ ], 4)) : f("", !0)
309
368
  ], 512);
310
369
  };
311
370
  }
312
- }, dt = /* @__PURE__ */ He(et, [["__scopeId", "data-v-06f38e2d"]]);
371
+ }, Mt = /* @__PURE__ */ Je(dt, [["__scopeId", "data-v-31679be9"]]);
313
372
  export {
314
- dt as default
373
+ Mt as default
315
374
  };