@webitel/ui-sdk 26.6.34 → 26.6.35

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 (176) hide show
  1. package/dist/AgentStatus.enum-C3IGHtvR.js +9 -0
  2. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  3. package/dist/caseConverters-DXegZoCt.js +27 -0
  4. package/dist/chunk-CY3AvKd6.js +20 -0
  5. package/dist/clients-A6MHYfOX.js +36118 -0
  6. package/dist/components-B4aAS7wB.js +5391 -0
  7. package/dist/composables-DnDH-KUv.js +263 -0
  8. package/dist/convertDuration-1K7fuEpO.js +8 -0
  9. package/dist/debounce-DrmECuJ2.js +128 -0
  10. package/dist/deep-copy-CQw5yeEH.js +41 -0
  11. package/dist/displayText-CtaxzaBz.js +3 -0
  12. package/dist/dist-05Bf47Wg.js +87 -0
  13. package/dist/dist-BYiYpK00.js +7 -0
  14. package/dist/dist-Dz55hlwp.js +1371 -0
  15. package/dist/engineCallFileType-D7QVFOac.js +11 -0
  16. package/dist/enums-pbYAJNeb.js +158 -0
  17. package/dist/errors-SUXKojVW.js +69 -0
  18. package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
  19. package/dist/generateInstance-ppTIeLX4.js +2582 -0
  20. package/dist/isObject-Dgs_L5xI.js +11 -0
  21. package/dist/logger-hl3ueNok.js +47 -0
  22. package/dist/prod-Cp0BjuxI.js +775 -0
  23. package/dist/prod-DSuxcp5t.js +2 -0
  24. package/dist/side-channel-Cyte-MzW.js +833 -0
  25. package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
  26. package/dist/srt-parser-DdH5U08c.js +21 -0
  27. package/dist/ssa-parser-Bjs7yDD1.js +184 -0
  28. package/dist/ui-sdk.css +2 -1
  29. package/dist/ui-sdk.js +34541 -4
  30. package/dist/ui-sdk.umd.cjs +7740 -7606
  31. package/dist/useExpansion-DVdIpoOn.js +24 -0
  32. package/dist/useValidation-DG0tifBv.js +37 -0
  33. package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
  34. package/dist/useWtTable-tqmVOvve.js +12 -0
  35. package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
  36. package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
  37. package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
  38. package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
  39. package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
  40. package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
  41. package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
  42. package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
  43. package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
  44. package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
  45. package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
  46. package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
  47. package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
  48. package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
  49. package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
  50. package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
  51. package/dist/vidstack-audio-B58bvsna.js +23 -0
  52. package/dist/vidstack-dash-CX-LTHx3.js +332 -0
  53. package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
  54. package/dist/vidstack-hls-CLzdTFu6.js +269 -0
  55. package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
  56. package/dist/vidstack-video-XtP8iTBc.js +151 -0
  57. package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
  58. package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
  59. package/dist/vue-i18n-B8Px6VcD.js +2201 -0
  60. package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
  61. package/dist/wt-button-DENbrKdy.js +785 -0
  62. package/dist/wt-button-select-BnRHgJ4i.js +80 -0
  63. package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
  64. package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
  65. package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
  66. package/dist/wt-context-menu-yW52oF-2.js +89 -0
  67. package/dist/wt-copy-action-d9gVzAsB.js +38 -0
  68. package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
  69. package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
  70. package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
  71. package/dist/wt-dummy-CLjhRWZ6.js +59 -0
  72. package/dist/wt-error-page-vhu4lIyF.js +62 -0
  73. package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
  74. package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
  75. package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
  76. package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
  77. package/dist/wt-galleria-CWXKuZTD.js +224 -0
  78. package/dist/wt-icon-action-CQlZHMDB.js +100 -0
  79. package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
  80. package/dist/wt-icon-pxO7IjwV.js +1026 -0
  81. package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
  82. package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
  83. package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
  84. package/dist/wt-page-header-CDbd4aOh.js +59 -0
  85. package/dist/wt-pagination-BA_PZPIE.js +94 -0
  86. package/dist/wt-player-uidPXSTe.js +287 -0
  87. package/dist/wt-popover-CJZH3wMl.js +98 -0
  88. package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
  89. package/dist/wt-search-bar-CWZdvAOf.js +123 -0
  90. package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
  91. package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
  92. package/dist/wt-slider-BS3SoGht.js +68 -0
  93. package/dist/wt-start-page-eN1PEokc.js +86 -0
  94. package/dist/wt-status-select-A5t6Vjm4.js +101 -0
  95. package/dist/wt-stepper-B6zpd1Uh.js +41 -0
  96. package/dist/wt-table-D0FynxIE.js +364 -0
  97. package/dist/wt-table-actions-4-peSVkc.js +63 -0
  98. package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
  99. package/dist/wt-tabs-DuOgj-lZ.js +60 -0
  100. package/dist/wt-time-input-CO2cop3y.js +62 -0
  101. package/dist/wt-timepicker-BltFF1QD.js +145 -0
  102. package/dist/wt-tree-ZyoPrNOl.js +1206 -0
  103. package/dist/wt-tree-table-MLET4gIv.js +221 -0
  104. package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
  105. package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
  106. package/package.json +5 -5
  107. package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
  108. package/dist/contacts-DzLKP4GQ.js +0 -49654
  109. package/dist/displayText-Cbh4IOfM.js +0 -5
  110. package/dist/engineCallFileType-yaadA7-2.js +0 -8
  111. package/dist/errors-CTL-RV3B.js +0 -70
  112. package/dist/index-BgLoxAyu.js +0 -50
  113. package/dist/install-Cm-8fwtB.js +0 -53489
  114. package/dist/isObject-BSIwu4UO.js +0 -28
  115. package/dist/prod-BoQuiIB3.js +0 -973
  116. package/dist/srt-parser-CsN7bp5E.js +0 -26
  117. package/dist/ssa-parser-BJOOPeQF.js +0 -200
  118. package/dist/useExpansion-BrQ40HiR.js +0 -24
  119. package/dist/useVidstackSrc-DKXY5f7v.js +0 -1341
  120. package/dist/vidstack-Bq6c3Bam-BHF-0bv4.js +0 -426
  121. package/dist/vidstack-D2pY00kU-B8Mhvp0m.js +0 -136
  122. package/dist/vidstack-DDXt6fpN-D0eou9h7.js +0 -51
  123. package/dist/vidstack-D_-9AA6_-DYAfclN7.js +0 -21
  124. package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
  125. package/dist/vidstack-DqAw8m9J-b5BHkhrw.js +0 -22
  126. package/dist/vidstack-audio-CPu_TbjK.js +0 -28
  127. package/dist/vidstack-dash-VYriMjws.js +0 -393
  128. package/dist/vidstack-google-cast-Byp1cemB.js +0 -383
  129. package/dist/vidstack-hls-DdUQcmEx.js +0 -310
  130. package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
  131. package/dist/vidstack-video-BpSKQ3wb.js +0 -164
  132. package/dist/vidstack-vimeo-CgVJJm06.js +0 -452
  133. package/dist/vidstack-youtube-DuES80MV.js +0 -233
  134. package/dist/wt-action-bar-TMuck-q1.js +0 -102
  135. package/dist/wt-button-select-D1NP5Xw9.js +0 -105
  136. package/dist/wt-call-media-action-BsepfSVy.js +0 -60
  137. package/dist/wt-chat-emoji-B00dUXbP.js +0 -2909
  138. package/dist/wt-confirm-dialog-1hO851Da.js +0 -92
  139. package/dist/wt-context-menu-BrzRmoDw.js +0 -104
  140. package/dist/wt-copy-action-CEMOiYzN.js +0 -60
  141. package/dist/wt-datepicker-DHqZIkg2.js +0 -5660
  142. package/dist/wt-display-chip-items-D7kEAcOo.js +0 -47
  143. package/dist/wt-dual-panel-DEWR3-k-.js +0 -66
  144. package/dist/wt-dummy-DfgxciHw.js +0 -104
  145. package/dist/wt-error-page-DUSVxkXq.js +0 -89
  146. package/dist/wt-expansion-card-B8JKBMLa.js +0 -56
  147. package/dist/wt-expansion-panel-DL3eoj_b.js +0 -54
  148. package/dist/wt-filters-panel-wrapper-CGXQiRvh.js +0 -75
  149. package/dist/wt-galleria-Bahv6Mgq.js +0 -323
  150. package/dist/wt-inline-add-panel-B4RjHVDI.js +0 -49
  151. package/dist/wt-navigation-menu-DqCXAV8E.js +0 -159
  152. package/dist/wt-notifications-bar-CRIKdVai.js +0 -79
  153. package/dist/wt-page-header-DdsnoLgd.js +0 -115
  154. package/dist/wt-pagination-C_b3WmH1.js +0 -144
  155. package/dist/wt-player-B4GWEqdu.js +0 -291
  156. package/dist/wt-popover-Di-7_rDL.js +0 -4
  157. package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
  158. package/dist/wt-screen-recordings-action-B4OpN5kl.js +0 -54
  159. package/dist/wt-search-bar-B_0_YwCn.js +0 -144
  160. package/dist/wt-selection-popup-Boyw9_V_.js +0 -109
  161. package/dist/wt-send-message-popup-0C23Zocu.js +0 -579
  162. package/dist/wt-slider-BEkw4KGp.js +0 -4
  163. package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
  164. package/dist/wt-start-page-HQMIG05a.js +0 -99
  165. package/dist/wt-status-select-H_me1xwA.js +0 -138
  166. package/dist/wt-stepper-hJxqyiyo.js +0 -65
  167. package/dist/wt-table-Du6mtkPw.js +0 -426
  168. package/dist/wt-table-actions-ah_H6LY9.js +0 -79
  169. package/dist/wt-table-column-select-C2Nbic5-.js +0 -128
  170. package/dist/wt-tabs-D4aGEd_t.js +0 -74
  171. package/dist/wt-time-input-DYiW0ijt.js +0 -42
  172. package/dist/wt-timepicker-BE8POMhF.js +0 -118
  173. package/dist/wt-tree-table-BJxaXqKl.js +0 -285
  174. package/dist/wt-tree-u0Zp8nb5.js +0 -2777
  175. package/dist/wt-type-extension-value-input-C1VlNa4K.js +0 -121
  176. package/dist/wt-vidstack-player-C1eyCEzP.js +0 -9094
@@ -1,579 +0,0 @@
1
- import { defineComponent as B, inject as E, ref as z, onMounted as I, resolveComponent as M, createBlock as O, openBlock as Q, mergeProps as R, withCtx as b, createVNode as k, unref as G, createTextVNode as V, toDisplayString as F } from "vue";
2
- import { a as o, c as S, m, s as v, g as w, b as h, n as d, d as H, e as $ } from "./contacts-DzLKP4GQ.js";
3
- import "./index-BgLoxAyu.js";
4
- import "lodash-es";
5
- import U from "@aliasedDeps/api-services/axios";
6
- import { B as W, ad as J } from "./install-Cm-8fwtB.js";
7
- const _ = (
8
- // --- title end
9
- ((e = U) => ({
10
- searchAgent: (s, t) => e.get("/call_center/agents", {
11
- ...t,
12
- params: {
13
- ...s,
14
- ...t?.params
15
- }
16
- }),
17
- createAgent: (s, t) => e.post(
18
- "/call_center/agents",
19
- s,
20
- t
21
- ),
22
- searchAgentCallStatistics: (s, t) => e.get("/call_center/agents/reports/call", {
23
- ...t,
24
- params: {
25
- ...s,
26
- ...t?.params
27
- }
28
- }),
29
- searchAgentStatusStatistic: (s, t) => e.get("/call_center/agents/reports/status", {
30
- ...t,
31
- params: {
32
- ...s,
33
- ...t?.params
34
- }
35
- }),
36
- searchAgentStatusStatisticItem: (s, t, c) => e.get(
37
- `/call_center/agents/reports/status/${s}`,
38
- {
39
- ...c,
40
- params: {
41
- ...t,
42
- ...c?.params
43
- }
44
- }
45
- ),
46
- searchAgentStateHistory: (s, t) => e.get("/call_center/agents/states/history", {
47
- ...t,
48
- params: {
49
- ...s,
50
- ...t?.params
51
- }
52
- }),
53
- searchPauseCauseForAgent: (s, t, c) => e.get(
54
- `/call_center/agents/${s}/pause_causes`,
55
- {
56
- ...c,
57
- params: {
58
- ...t,
59
- ...c?.params
60
- }
61
- }
62
- ),
63
- agentStateHistory: (s, t, c) => e.get(
64
- `/call_center/agents/${s}/states/history`,
65
- {
66
- ...c,
67
- params: {
68
- ...t,
69
- ...c?.params
70
- }
71
- }
72
- ),
73
- agentSetState: (s, t, c) => e.patch(
74
- `/call_center/agents/${s}/states/waiting`,
75
- t,
76
- c
77
- ),
78
- searchAgentInQueueStatistics: (s, t, c) => e.get(
79
- `/call_center/agents/${s}/statistics/queues`,
80
- {
81
- ...c,
82
- params: {
83
- ...t,
84
- ...c?.params
85
- }
86
- }
87
- ),
88
- agentTodayStatistics: (s, t, c) => e.get(
89
- `/call_center/agents/${s}/statistics/today`,
90
- {
91
- ...c,
92
- params: {
93
- ...t,
94
- ...c?.params
95
- }
96
- }
97
- ),
98
- deleteAgent: (s, t, c) => e.delete(`/call_center/agents/${s}`, {
99
- ...c,
100
- params: {
101
- ...t,
102
- ...c?.params
103
- }
104
- }),
105
- readAgent: (s, t, c) => e.get(`/call_center/agents/${s}`, {
106
- ...c,
107
- params: {
108
- ...t,
109
- ...c?.params
110
- }
111
- }),
112
- patchAgent: (s, t, c) => e.patch(
113
- `/call_center/agents/${s}`,
114
- t,
115
- c
116
- ),
117
- updateAgent: (s, t, c) => e.put(
118
- `/call_center/agents/${s}`,
119
- t,
120
- c
121
- ),
122
- searchAgentInQueue: (s, t, c) => e.get(`/call_center/agents/${s}/queues`, {
123
- ...c,
124
- params: {
125
- ...t,
126
- ...c?.params
127
- }
128
- }),
129
- updateAgentStatus: (s, t, c) => e.patch(
130
- `/call_center/agents/${s}/status`,
131
- t,
132
- c
133
- ),
134
- searchAgentInTeam: (s, t, c) => e.get(`/call_center/agents/${s}/teams`, {
135
- ...c,
136
- params: {
137
- ...t,
138
- ...c?.params
139
- }
140
- }),
141
- searchLookupUsersAgentNotExists: (s, t) => e.get("/call_center/lookups/agents/users", {
142
- ...t,
143
- params: {
144
- ...s,
145
- ...t?.params
146
- }
147
- }),
148
- searchUserStatus: (s, t) => e.get("/call_center/users", {
149
- ...t,
150
- params: {
151
- ...s,
152
- ...t?.params
153
- }
154
- })
155
- }))
156
- ), j = (
157
- // --- title end
158
- ((e = U) => ({
159
- messagesServiceBroadcastMessage: (g, u) => e.post(
160
- "/chat/broadcast",
161
- g,
162
- u
163
- ),
164
- catalogGetCustomers: (g, u) => e.get("/chat/customers", {
165
- ...u,
166
- params: {
167
- ...g,
168
- ...u?.params
169
- }
170
- }),
171
- catalogGetDialogs: (g, u) => e.get("/chat/dialogs", {
172
- ...u,
173
- params: {
174
- ...g,
175
- ...u?.params
176
- }
177
- }),
178
- catalogGetMembers: (g, u, p) => e.get(`/chat/dialogs/${g}/members`, {
179
- ...p,
180
- params: {
181
- ...u,
182
- ...p?.params
183
- }
184
- }),
185
- catalogGetHistory: (g, u, p) => e.get(`/chat/dialogs/${g}/messages`, {
186
- ...p,
187
- params: {
188
- ...u,
189
- ...p?.params
190
- }
191
- }),
192
- catalogGetHistory2: (g, u) => e.get("/chat/peer.type}/peer.id}/messages", {
193
- ...u,
194
- params: {
195
- ...g,
196
- ...u?.params
197
- }
198
- })
199
- }))
200
- ), K = (e) => {
201
- if (!e) return "00:00:00";
202
- let r = `${Math.floor(e / 3600)}`, a = `${Math.floor(e % 3600 / 60)}`, n = `${Math.floor(e % 3600 % 60)}`;
203
- return r.length === 1 && (r = `0${r}`), a.length === 1 && (a = `0${a}`), n.length === 1 && (n = `0${n}`), `${r}:${a}:${n}`;
204
- }, X = (e) => e > 3600 * 24 ? ">24:00:00" : K(e), C = async (e) => {
205
- const r = (i) => i.map((l) => ({
206
- ...l,
207
- statusDuration: X(l.statusDuration)
208
- })), a = [
209
- "page",
210
- "size",
211
- "q",
212
- "sort",
213
- "fields",
214
- "id",
215
- "allow_channels",
216
- "team",
217
- "region_id",
218
- "auditor_id",
219
- "skill",
220
- "queue_id",
221
- "is_supervisor",
222
- "is_not_Supervisor",
223
- "user_id",
224
- "not_team_id",
225
- "supervisor_id",
226
- "not_skill_id",
227
- "not_user_id"
228
- ], n = o(e, [
229
- S(),
230
- m(w()),
231
- (i) => ({
232
- ...i,
233
- q: i.search
234
- }),
235
- v(a)
236
- ]);
237
- try {
238
- const i = await _().searchAgent(n), { items: l, next: y } = o(i.data, [
239
- h(),
240
- m(w())
241
- ]);
242
- return {
243
- items: o(l, [
244
- r
245
- ]),
246
- next: y
247
- };
248
- } catch (i) {
249
- throw o(i, [
250
- d
251
- ]);
252
- }
253
- }, Y = async ({ itemId: e }) => {
254
- const r = {
255
- user: {},
256
- team: {},
257
- supervisor: [],
258
- auditor: [],
259
- region: {},
260
- progressiveCount: 0,
261
- chatCount: 0,
262
- taskCount: 0,
263
- isSupervisor: !1,
264
- description: "",
265
- greetingMedia: {}
266
- };
267
- try {
268
- const a = await _().readAgent(e);
269
- return o(a.data, [
270
- h(),
271
- m(r)
272
- ]);
273
- } catch (a) {
274
- throw o(a, [
275
- d
276
- ]);
277
- }
278
- }, q = [
279
- "user",
280
- "team",
281
- "supervisor",
282
- "auditor",
283
- "region",
284
- "greetingMedia",
285
- "progressiveCount",
286
- "chatCount",
287
- "taskCount",
288
- "isSupervisor"
289
- ], Z = async ({ itemInstance: e }) => {
290
- const r = o(e, [
291
- v(q),
292
- S()
293
- ]);
294
- try {
295
- const a = await _().createAgent(r);
296
- return o(a.data, [
297
- h()
298
- ]);
299
- } catch (a) {
300
- throw o(a, [
301
- d
302
- ]);
303
- }
304
- }, x = async ({ changes: e, id: r }) => {
305
- const a = o(e, [
306
- v(q),
307
- S()
308
- ]);
309
- try {
310
- const n = await _().patchAgent(r, a);
311
- return o(n.data, [
312
- h()
313
- ]);
314
- } catch (n) {
315
- throw o(n, [
316
- d
317
- ]);
318
- }
319
- }, ee = async ({ itemInstance: e, itemId: r }) => {
320
- const a = o(e, [
321
- v(q),
322
- S()
323
- ]);
324
- try {
325
- const n = await _().updateAgent(r, a);
326
- return o(n.data, [
327
- h()
328
- ]);
329
- } catch (n) {
330
- throw o(n, [
331
- d
332
- ]);
333
- }
334
- }, te = async ({ id: e }) => {
335
- try {
336
- const r = await _().deleteAgent(e);
337
- return o(r.data, []);
338
- } catch (r) {
339
- throw o(r, [
340
- d
341
- ]);
342
- }
343
- }, se = (e) => C({
344
- ...e,
345
- fields: e.fields || [
346
- "id",
347
- "name"
348
- ]
349
- }), ae = async (e) => {
350
- const {
351
- parentId: r,
352
- from: a,
353
- to: n,
354
- page: i,
355
- size: l,
356
- sort: y = "-joined_at"
357
- } = o(e, [
358
- m($()),
359
- H("search")
360
- ]);
361
- try {
362
- const g = await _().searchAgentStateHistory({
363
- page: i,
364
- size: l,
365
- from: a,
366
- to: n,
367
- parentId: r,
368
- sort: y
369
- }), { items: u, next: p } = o(g.data, [
370
- h(),
371
- m(w())
372
- ]);
373
- return {
374
- items: u,
375
- next: p
376
- };
377
- } catch (g) {
378
- throw o(g, [
379
- d
380
- ]);
381
- }
382
- }, re = async (e) => {
383
- const { page: r, size: a, search: n, sort: i, fields: l, id: y } = o(e, [
384
- m($()),
385
- H("search")
386
- ]);
387
- try {
388
- const g = await _().searchLookupUsersAgentNotExists({
389
- page: r,
390
- size: a,
391
- q: n
392
- }), { items: u, next: p } = o(g.data, [
393
- h(),
394
- m(w())
395
- ]);
396
- return {
397
- items: u,
398
- next: p
399
- };
400
- } catch (g) {
401
- throw o(g, [
402
- d
403
- ]);
404
- }
405
- }, ne = async (e) => {
406
- const r = [
407
- "page",
408
- "size",
409
- "q",
410
- "sort",
411
- "fields",
412
- "not_user_id"
413
- ], a = o(e, [
414
- S(),
415
- m($()),
416
- H("search"),
417
- (n) => ({
418
- ...n,
419
- q: n.search
420
- }),
421
- v(r)
422
- ]);
423
- try {
424
- const n = await _().searchUserStatus(a), { items: i, next: l } = o(n.data, [
425
- h(),
426
- m(w())
427
- ]);
428
- return {
429
- items: i,
430
- next: l
431
- };
432
- } catch (n) {
433
- throw o(n, [
434
- d
435
- ]);
436
- }
437
- }, ce = async (e) => C({
438
- ...e,
439
- isSupervisor: !0
440
- }), oe = async (e) => C({
441
- ...e,
442
- isNotSupervisor: !0
443
- }), ge = {
444
- getList: C,
445
- get: Y,
446
- add: Z,
447
- patch: x,
448
- update: ee,
449
- delete: te,
450
- getLookup: se,
451
- getAgentHistory: ae,
452
- getRegularAgentsOptions: oe,
453
- getAgentUsersOptions: re,
454
- getSupervisorOptions: ce,
455
- getUsersStatus: ne
456
- }, ue = async (e) => {
457
- const r = o(e, [
458
- S()
459
- ]);
460
- try {
461
- const a = await j().messagesServiceBroadcastMessage(r);
462
- return o(a.data, [
463
- h()
464
- ]);
465
- } catch (a) {
466
- throw o(a, [
467
- d
468
- ]);
469
- }
470
- }, ie = async ({ chatId: e, ...r }) => {
471
- const a = o(r, [
472
- m($()),
473
- S()
474
- ]);
475
- try {
476
- const n = await j().catalogGetHistory(e, a), { messages: i, peers: l, next: y } = o(n.data, [
477
- h(),
478
- m(w())
479
- ]);
480
- return {
481
- messages: i,
482
- peers: l,
483
- next: y
484
- };
485
- } catch (n) {
486
- throw o(n, [
487
- d
488
- ]);
489
- }
490
- }, le = {
491
- patch: ue,
492
- getChatHistory: ie
493
- }, ve = /* @__PURE__ */ B({
494
- __name: "wt-send-message-popup",
495
- props: {
496
- chatItem: {},
497
- userId: {}
498
- },
499
- emits: [
500
- "close"
501
- ],
502
- setup(e, { emit: r }) {
503
- const a = e, n = r, i = E("$eventBus"), { t: l } = W(), g = z({
504
- gateway: a.chatItem?.app || {},
505
- provider: a.chatItem?.protocol || "",
506
- message: "",
507
- agentId: null
508
- });
509
- async function u(A) {
510
- const { items: f } = await ge.getList({
511
- ...A,
512
- userId: a.userId
513
- });
514
- g.value.agentId = f[0]?.id;
515
- }
516
- const p = async () => {
517
- const A = await le.patch({
518
- peers: [
519
- {
520
- via: g.value.gateway.id,
521
- id: a.chatItem?.externalId,
522
- type: g.value.provider
523
- }
524
- ],
525
- variables: {
526
- agentId: g.value.agentId
527
- },
528
- message: {
529
- text: g.value.message
530
- }
531
- });
532
- A.failure && i.$emit("notification", {
533
- type: "error",
534
- text: A.failure[0].error.message
535
- }), n("close");
536
- }, D = (A) => {
537
- g.value.message += A, document.querySelector("textarea").focus();
538
- };
539
- return I(async () => await u()), (A, f) => {
540
- const P = M("wt-textarea"), L = M("wt-button"), N = M("wt-popup");
541
- return Q(), O(N, R(A.$attrs, {
542
- class: "wt-send-message-popup",
543
- overflow: "",
544
- onClose: f[1] || (f[1] = (T) => n("close"))
545
- }), {
546
- header: b(() => [
547
- V(F(G(l)("reusable.sendMessage")), 1)
548
- ]),
549
- main: b(() => [
550
- k(P, {
551
- "model-value": g.value.message,
552
- "onUpdate:modelValue": f[0] || (f[0] = (T) => g.value.message = T),
553
- placeholder: G(l)("objects.chat.draftPlaceholder"),
554
- onEnter: p
555
- }, null, 8, ["model-value", "placeholder"])
556
- ]),
557
- actions: b(() => [
558
- k(G(J), {
559
- filled: "",
560
- rounded: !1,
561
- class: "wt-send-message-popup__emoji",
562
- onInsertEmoji: D
563
- }),
564
- k(L, {
565
- icon: "chat-send",
566
- color: "secondary",
567
- disabled: !g.value.message,
568
- wide: "",
569
- onClick: p
570
- }, null, 8, ["disabled"])
571
- ]),
572
- _: 1
573
- }, 16);
574
- };
575
- }
576
- });
577
- export {
578
- ve as default
579
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
2
- export {
3
- f as default
4
- };
@@ -1,55 +0,0 @@
1
- import { defineComponent as n, mergeModels as m, useModel as u, computed as r, resolveComponent as s, createBlock as c, openBlock as f, normalizeStyle as v } from "vue";
2
- const y = /* @__PURE__ */ n({
3
- __name: "wt-slider",
4
- props: /* @__PURE__ */ m({
5
- disabled: { type: Boolean, default: !1 },
6
- vertical: { type: Boolean, default: !1 },
7
- min: { default: 0 },
8
- max: { default: 100 },
9
- step: { default: 1 },
10
- height: { default: 100 },
11
- width: { default: void 0 },
12
- modelValue: {},
13
- defaultValue: {},
14
- name: {},
15
- orientation: {},
16
- range: { type: Boolean },
17
- invalid: { type: Boolean },
18
- tabindex: {},
19
- ariaLabelledby: {},
20
- ariaLabel: {},
21
- formControl: {},
22
- dt: {},
23
- pt: {},
24
- ptOptions: {},
25
- unstyled: { type: Boolean }
26
- }, {
27
- modelValue: {},
28
- modelModifiers: {}
29
- }),
30
- emits: ["update:modelValue"],
31
- setup(e) {
32
- const a = e, t = u(e, "modelValue"), o = r(
33
- () => a.vertical ? "vertical" : "horizontal"
34
- );
35
- return (h, l) => {
36
- const i = s("p-slider");
37
- return f(), c(i, {
38
- modelValue: t.value,
39
- "onUpdate:modelValue": l[0] || (l[0] = (d) => t.value = d),
40
- disabled: e.disabled,
41
- max: e.max,
42
- min: e.min,
43
- step: e.step,
44
- orientation: o.value,
45
- style: v({
46
- height: e.vertical ? `${e.height}px` : "",
47
- width: !e.vertical && e.width ? `${e.width}px` : ""
48
- })
49
- }, null, 8, ["modelValue", "disabled", "max", "min", "step", "orientation", "style"]);
50
- };
51
- }
52
- });
53
- export {
54
- y as _
55
- };