@mobilon-dev/chotto 0.3.34 → 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.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +7 -0
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +114 -0
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +23 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +62 -34
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +262 -203
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +56 -52
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +20 -17
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +27 -23
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +18 -0
- package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +13 -11
- package/dist/index.js +239 -235
- 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/1_atoms/ContactContextMenu/ContactContextMenu.vue.d.ts +59 -0
- package/dist/types/components/1_atoms/ContactContextMenu/stories/ContactContextMenu.stories.d.ts +10 -0
- package/dist/types/components/1_atoms/ContactContextMenu/styles/types.d.ts +67 -0
- package/dist/types/components/1_atoms/ContextMenu/styles/types.d.ts +6 -0
- package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +22 -1
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +6 -0
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.d.ts +6 -2
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.d.ts +10 -2
- package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +6 -0
- package/dist/types/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.d.ts +13 -0
- package/dist/types/components/2_feed_elements/DelimiterMessage/stories/DelimiterMessage.stories.d.ts +6 -0
- package/dist/types/components/2_feed_elements/DelimiterMessage/styles/types.d.ts +27 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +4 -0
- package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +1 -1
- package/dist/types/components/4_layouts/BaseLayout/styles/types.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import { useCommunicationChannels as
|
|
4
|
-
import { useCommunicationMenu as
|
|
5
|
-
import { useCommunicationAttributes as
|
|
6
|
-
import { useCommunicationActions as
|
|
7
|
-
import { useCommunicationSubMenu as
|
|
8
|
-
import { useCommunicationDialogSync as
|
|
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
|
|
11
|
-
const
|
|
12
|
-
key:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
53
|
-
const
|
|
54
|
-
channelsTypes:
|
|
55
|
-
getTooltipText:
|
|
56
|
-
getChannelTypeFromId:
|
|
57
|
-
hasMultipleChannels:
|
|
58
|
-
isChannelActive:
|
|
59
|
-
getSingleChannelForType:
|
|
60
|
-
getMenuChannelIconComponent:
|
|
61
|
-
getMenuChannelIconComponentForChannelId:
|
|
62
|
-
getSingleMenuChannelIconComponent:
|
|
63
|
-
getAvailableChannels:
|
|
64
|
-
} =
|
|
65
|
-
channels:
|
|
66
|
-
channelTooltips:
|
|
67
|
-
selectedChannelType:
|
|
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:
|
|
71
|
-
showMenu:
|
|
72
|
-
showSubMenu:
|
|
73
|
-
menuWidth:
|
|
74
|
-
updateMenuWidth:
|
|
75
|
-
handleChannelClick:
|
|
76
|
-
closeMenu:
|
|
77
|
-
handleClickOutside:
|
|
78
|
-
} =
|
|
79
|
-
panelRef:
|
|
80
|
-
channelsPanelRef:
|
|
81
|
-
selectedChannelType:
|
|
82
|
-
frozenAttribute:
|
|
83
|
-
isRecentAttributeHovered:
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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:
|
|
137
|
+
frozenAttribute: $
|
|
95
138
|
}), {
|
|
96
|
-
handleRecentAttributeClick:
|
|
97
|
-
handleAttributeClick:
|
|
98
|
-
selectChannel:
|
|
99
|
-
availableChannels:
|
|
100
|
-
} =
|
|
139
|
+
handleRecentAttributeClick: Se,
|
|
140
|
+
handleAttributeClick: De,
|
|
141
|
+
selectChannel: Ee,
|
|
142
|
+
availableChannels: xe
|
|
143
|
+
} = Ve({
|
|
101
144
|
activeChannelType: s,
|
|
102
|
-
channels:
|
|
103
|
-
recentAttributeChannels:
|
|
104
|
-
selectedChannel:
|
|
105
|
-
selectedChannelType:
|
|
106
|
-
isRecentAttributeHovered:
|
|
107
|
-
hoveredAttribute:
|
|
108
|
-
closeMenu:
|
|
109
|
-
hasMultipleChannels:
|
|
110
|
-
getSingleChannelForType:
|
|
111
|
-
getAvailableChannels:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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:
|
|
126
|
-
frozenAttribute:
|
|
127
|
-
hoveredAttribute:
|
|
128
|
-
isRecentAttributeHovered:
|
|
129
|
-
hasMultipleChannels:
|
|
174
|
+
showSubMenu: F,
|
|
175
|
+
frozenAttribute: $,
|
|
176
|
+
hoveredAttribute: H,
|
|
177
|
+
isRecentAttributeHovered: A,
|
|
178
|
+
hasMultipleChannels: I
|
|
130
179
|
});
|
|
131
|
-
|
|
132
|
-
selectedChannelType:
|
|
133
|
-
selectedChannel:
|
|
134
|
-
channels:
|
|
135
|
-
selectedDialog:
|
|
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
|
|
138
|
-
() =>
|
|
139
|
-
),
|
|
140
|
-
() =>
|
|
141
|
-
),
|
|
142
|
-
const n =
|
|
143
|
-
n instanceof HTMLElement &&
|
|
144
|
-
},
|
|
145
|
-
const
|
|
146
|
-
|
|
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
|
|
149
|
-
}, { deep: !0 }),
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
-
window.removeEventListener("resize",
|
|
153
|
-
}), (
|
|
154
|
-
var
|
|
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:
|
|
210
|
+
ref: T,
|
|
158
211
|
class: "communication-panel"
|
|
159
212
|
}, [
|
|
160
|
-
|
|
213
|
+
u("div", {
|
|
161
214
|
ref_key: "channelsPanelRef",
|
|
162
|
-
ref:
|
|
215
|
+
ref: G,
|
|
163
216
|
class: "channels-panel"
|
|
164
217
|
}, [
|
|
165
|
-
(o(!0), l(
|
|
166
|
-
var
|
|
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:
|
|
170
|
-
active: e(
|
|
171
|
-
hover: e(
|
|
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: (
|
|
174
|
-
onMouseenter: (
|
|
175
|
-
onMouseleave: n[0] || (n[0] = (
|
|
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(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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:
|
|
184
|
-
|
|
185
|
-
(o(),
|
|
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] =
|
|
191
|
-
], 64)) : (o(),
|
|
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(
|
|
194
|
-
position: "bottom",
|
|
252
|
+
text: e(ve)(t.type),
|
|
253
|
+
position: "bottom-left",
|
|
195
254
|
offset: 8
|
|
196
255
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
|
|
199
|
-
(o(),
|
|
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,
|
|
263
|
+
], 42, Ke);
|
|
205
264
|
}), 128))
|
|
206
265
|
], 512),
|
|
207
|
-
e(
|
|
266
|
+
e(Ae) && e(s) ? (o(), l("div", {
|
|
208
267
|
key: 0,
|
|
209
268
|
class: "attributes-menu",
|
|
210
|
-
style:
|
|
269
|
+
style: re({ width: e(Me) })
|
|
211
270
|
}, [
|
|
212
|
-
|
|
213
|
-
e(
|
|
214
|
-
key:
|
|
215
|
-
text: (
|
|
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:
|
|
278
|
+
default: V(() => {
|
|
220
279
|
var t;
|
|
221
280
|
return [
|
|
222
|
-
|
|
223
|
-
class:
|
|
224
|
-
"frozen-hover":
|
|
281
|
+
u("div", {
|
|
282
|
+
class: v(["recent-attribute", {
|
|
283
|
+
"frozen-hover": A.value
|
|
225
284
|
}]),
|
|
226
|
-
onMouseenter: n[1] || (n[1] = (
|
|
227
|
-
onMouseleave: n[2] || (n[2] = (...
|
|
228
|
-
onMouseover: n[3] || (n[3] = (...
|
|
229
|
-
onClick: n[4] || (n[4] = (
|
|
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
|
-
|
|
232
|
-
|
|
290
|
+
u("div", Ze, [
|
|
291
|
+
u("span", et, L((t = e(x)) == null ? void 0 : t.value), 1)
|
|
233
292
|
]),
|
|
234
|
-
|
|
293
|
+
g.showChannelIcons ? (o(), l("span", {
|
|
235
294
|
key: 0,
|
|
236
|
-
class:
|
|
295
|
+
class: v(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
|
|
237
296
|
}, [
|
|
238
|
-
(o(),
|
|
239
|
-
], 2)) :
|
|
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(
|
|
245
|
-
key:
|
|
246
|
-
class:
|
|
247
|
-
"frozen-hover":
|
|
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) =>
|
|
250
|
-
onMouseleave: n[6] || (n[6] = (...t) => e(
|
|
251
|
-
onMouseover: n[7] || (n[7] = (...t) => e(
|
|
252
|
-
onClick: n[8] || (n[8] = (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
|
-
|
|
255
|
-
|
|
313
|
+
u("div", tt, [
|
|
314
|
+
u("span", nt, L((M = e(x)) == null ? void 0 : M.value), 1)
|
|
256
315
|
]),
|
|
257
|
-
|
|
316
|
+
g.showChannelIcons ? (o(), l("span", {
|
|
258
317
|
key: 0,
|
|
259
|
-
class:
|
|
318
|
+
class: v(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
|
|
260
319
|
}, [
|
|
261
|
-
(o(),
|
|
262
|
-
], 2)) :
|
|
263
|
-
], 34)) :
|
|
264
|
-
e(
|
|
265
|
-
(o(!0), l(
|
|
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:
|
|
268
|
-
"frozen-hover": e(
|
|
326
|
+
class: v(["attribute-item", {
|
|
327
|
+
"frozen-hover": e(Ie)(t)
|
|
269
328
|
}]),
|
|
270
|
-
onMouseenter: (
|
|
271
|
-
onMouseleave: n[9] || (n[9] = (...
|
|
272
|
-
onClick: (
|
|
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
|
-
|
|
275
|
-
|
|
333
|
+
u("div", lt, [
|
|
334
|
+
u("span", at, L(t.value), 1)
|
|
276
335
|
]),
|
|
277
|
-
|
|
278
|
-
e(
|
|
336
|
+
u("span", it, [
|
|
337
|
+
e(I)(e(s)) ? (o(), l("span", ut)) : g.showChannelIcons ? (o(), l("span", {
|
|
279
338
|
key: 1,
|
|
280
|
-
class:
|
|
339
|
+
class: v(["channel-icon-small", { "menu-icon-grey": e(s) !== "sms" }])
|
|
281
340
|
}, [
|
|
282
|
-
(o(),
|
|
283
|
-
], 2)) :
|
|
341
|
+
(o(), h(C(e(Ce)(e(s)))))
|
|
342
|
+
], 2)) : f("", !0)
|
|
284
343
|
])
|
|
285
|
-
], 42,
|
|
286
|
-
e(
|
|
287
|
-
key:
|
|
344
|
+
], 42, st))), 128)),
|
|
345
|
+
e(F) && qe.value ? (o(), l("div", {
|
|
346
|
+
key: 4,
|
|
288
347
|
class: "sub-menu left",
|
|
289
|
-
style:
|
|
290
|
-
onMouseenter: n[10] || (n[10] = (...t) => e(
|
|
291
|
-
onMouseleave: n[11] || (n[11] = (...t) => e(
|
|
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] =
|
|
294
|
-
(o(!0), l(
|
|
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: (
|
|
356
|
+
onClick: (a) => e(Ee)(t.channelId)
|
|
298
357
|
}, [
|
|
299
|
-
|
|
300
|
-
|
|
358
|
+
u("span", ct, L(t.title || t.channelId), 1),
|
|
359
|
+
g.showChannelIcons ? (o(), l("span", {
|
|
301
360
|
key: 0,
|
|
302
|
-
class:
|
|
361
|
+
class: v(["sub-menu-icon", { "menu-icon-grey": e(he)(t.channelId) !== "sms" }])
|
|
303
362
|
}, [
|
|
304
|
-
(o(),
|
|
305
|
-
], 2)) :
|
|
306
|
-
], 8,
|
|
307
|
-
], 36)) :
|
|
308
|
-
], 4)) :
|
|
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
|
-
},
|
|
371
|
+
}, Mt = /* @__PURE__ */ Je(dt, [["__scopeId", "data-v-31679be9"]]);
|
|
313
372
|
export {
|
|
314
|
-
|
|
373
|
+
Mt as default
|
|
315
374
|
};
|