@telia-ace/widget-conversation-flamingo 1.1.30-rc.0 → 1.1.30-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-61c3428d.mjs → conversation-721b2b72.mjs} +221 -186
- package/{conversation-b67f7f61.js → conversation-db0448e6.js} +68 -40
- package/conversation.d.ts +1 -0
- package/{index-6f7ce259.mjs → index-1e1cabae.mjs} +25 -21
- package/{index-7612a1fb.mjs → index-217f3c39.mjs} +2 -2
- package/{index-364c669e.js → index-528d2acc.js} +1 -1
- package/{index-3cb7e10e.js → index-a8c06b78.js} +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/models/conversation-provider.d.ts +1 -0
- package/package.json +2 -2
@@ -5,11 +5,11 @@ function yt() {
|
|
5
5
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
6
6
|
return _(vt);
|
7
7
|
}
|
8
|
-
const
|
8
|
+
const p = [];
|
9
9
|
for (let e = 0; e < 256; ++e)
|
10
|
-
|
10
|
+
p.push((e + 256).toString(16).slice(1));
|
11
11
|
function bt(e, r = 0) {
|
12
|
-
return
|
12
|
+
return p[e[r + 0]] + p[e[r + 1]] + p[e[r + 2]] + p[e[r + 3]] + "-" + p[e[r + 4]] + p[e[r + 5]] + "-" + p[e[r + 6]] + p[e[r + 7]] + "-" + p[e[r + 8]] + p[e[r + 9]] + "-" + p[e[r + 10]] + p[e[r + 11]] + p[e[r + 12]] + p[e[r + 13]] + p[e[r + 14]] + p[e[r + 15]];
|
13
13
|
}
|
14
14
|
const mt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), H = {
|
15
15
|
randomUUID: mt
|
@@ -186,8 +186,8 @@ function gt(e, r, t) {
|
|
186
186
|
}, i;
|
187
187
|
function s(l) {
|
188
188
|
n[l] && (i[l] = function(v) {
|
189
|
-
return new Promise(function(E,
|
190
|
-
o.push([l, v, E,
|
189
|
+
return new Promise(function(E, d) {
|
190
|
+
o.push([l, v, E, d]) > 1 || u(l, v);
|
191
191
|
});
|
192
192
|
});
|
193
193
|
}
|
@@ -271,8 +271,8 @@ var A = function() {
|
|
271
271
|
var c = a.value;
|
272
272
|
c.remove(this);
|
273
273
|
}
|
274
|
-
} catch (
|
275
|
-
r = { error:
|
274
|
+
} catch (d) {
|
275
|
+
r = { error: d };
|
276
276
|
} finally {
|
277
277
|
try {
|
278
278
|
a && !a.done && (t = u.return) && t.call(u);
|
@@ -287,8 +287,8 @@ var A = function() {
|
|
287
287
|
if (h(f))
|
288
288
|
try {
|
289
289
|
f();
|
290
|
-
} catch (
|
291
|
-
o =
|
290
|
+
} catch (d) {
|
291
|
+
o = d instanceof $ ? d.errors : [d];
|
292
292
|
}
|
293
293
|
var b = this._finalizers;
|
294
294
|
if (b) {
|
@@ -298,12 +298,12 @@ var A = function() {
|
|
298
298
|
var E = v.value;
|
299
299
|
try {
|
300
300
|
z(E);
|
301
|
-
} catch (
|
302
|
-
o = o ?? [],
|
301
|
+
} catch (d) {
|
302
|
+
o = o ?? [], d instanceof $ ? o = U(U([], O(o)), O(d.errors)) : o.push(d);
|
303
303
|
}
|
304
304
|
}
|
305
|
-
} catch (
|
306
|
-
n = { error:
|
305
|
+
} catch (d) {
|
306
|
+
n = { error: d };
|
307
307
|
} finally {
|
308
308
|
try {
|
309
309
|
v && !v.done && (i = l.return) && i.call(l);
|
@@ -953,7 +953,7 @@ function ht(e, r) {
|
|
953
953
|
}));
|
954
954
|
});
|
955
955
|
}
|
956
|
-
function
|
956
|
+
function pt(e, r) {
|
957
957
|
return r === void 0 && (r = 0), T(function(t, n) {
|
958
958
|
n.add(e.schedule(function() {
|
959
959
|
return t.subscribe(n);
|
@@ -961,10 +961,10 @@ function dt(e, r) {
|
|
961
961
|
});
|
962
962
|
}
|
963
963
|
function Ht(e, r) {
|
964
|
-
return k(e).pipe(
|
964
|
+
return k(e).pipe(pt(r), ht(r));
|
965
965
|
}
|
966
966
|
function zt(e, r) {
|
967
|
-
return k(e).pipe(
|
967
|
+
return k(e).pipe(pt(r), ht(r));
|
968
968
|
}
|
969
969
|
function Kt(e, r) {
|
970
970
|
return new y(function(t) {
|
@@ -993,7 +993,7 @@ function Jt(e, r) {
|
|
993
993
|
};
|
994
994
|
});
|
995
995
|
}
|
996
|
-
function
|
996
|
+
function dt(e, r) {
|
997
997
|
if (!e)
|
998
998
|
throw new Error("Iterable cannot be null");
|
999
999
|
return new y(function(t) {
|
@@ -1008,7 +1008,7 @@ function pt(e, r) {
|
|
1008
1008
|
});
|
1009
1009
|
}
|
1010
1010
|
function Qt(e, r) {
|
1011
|
-
return
|
1011
|
+
return dt(at(e), r);
|
1012
1012
|
}
|
1013
1013
|
function Wt(e, r) {
|
1014
1014
|
if (e != null) {
|
@@ -1019,7 +1019,7 @@ function Wt(e, r) {
|
|
1019
1019
|
if (nt(e))
|
1020
1020
|
return zt(e, r);
|
1021
1021
|
if (ot(e))
|
1022
|
-
return
|
1022
|
+
return dt(e, r);
|
1023
1023
|
if (ct(e))
|
1024
1024
|
return Jt(e, r);
|
1025
1025
|
if (lt(e))
|
@@ -1125,7 +1125,7 @@ class M {
|
|
1125
1125
|
}
|
1126
1126
|
}
|
1127
1127
|
const ie = async (e) => {
|
1128
|
-
e.registerComponent("conversation", import("./conversation-
|
1128
|
+
e.registerComponent("conversation", import("./conversation-721b2b72.mjs").then((r) => r.c)), await M.getInstance(e.container);
|
1129
1129
|
};
|
1130
1130
|
var j = /* @__PURE__ */ ((e) => (e.User = "user", e.Agent = "agent", e.System = "system", e))(j || {});
|
1131
1131
|
class G {
|
@@ -1207,7 +1207,7 @@ class oe {
|
|
1207
1207
|
createAgent(r) {
|
1208
1208
|
const t = new re(r);
|
1209
1209
|
return t.subscribe().subscribe((n) => {
|
1210
|
-
this.printEntry(n);
|
1210
|
+
this.playNotification(), this.printEntry(n);
|
1211
1211
|
}), t;
|
1212
1212
|
}
|
1213
1213
|
createUser(r) {
|
@@ -1228,6 +1228,10 @@ class oe {
|
|
1228
1228
|
complete() {
|
1229
1229
|
this.session.completeProvider();
|
1230
1230
|
}
|
1231
|
+
playNotification() {
|
1232
|
+
const r = "https://publicpoc.blob.core.windows.net/widget-assets/notification.mp3";
|
1233
|
+
this.session.component.properties.disableSound || new Audio(r).play();
|
1234
|
+
}
|
1231
1235
|
}
|
1232
1236
|
export {
|
1233
1237
|
re as A,
|