@telia-ace/widget-conversation-flamingo 1.1.32 → 1.1.33-rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 p = [];
8
+ const d = [];
9
9
  for (let e = 0; e < 256; ++e)
10
- p.push((e + 256).toString(16).slice(1));
10
+ d.push((e + 256).toString(16).slice(1));
11
11
  function bt(e, r = 0) {
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]];
12
+ return d[e[r + 0]] + d[e[r + 1]] + d[e[r + 2]] + d[e[r + 3]] + "-" + d[e[r + 4]] + d[e[r + 5]] + "-" + d[e[r + 6]] + d[e[r + 7]] + "-" + d[e[r + 8]] + d[e[r + 9]] + "-" + d[e[r + 10]] + d[e[r + 11]] + d[e[r + 12]] + d[e[r + 13]] + d[e[r + 14]] + d[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, d) {
190
- o.push([l, v, E, d]) > 1 || u(l, v);
189
+ return new Promise(function(E, p) {
190
+ o.push([l, v, E, p]) > 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 (d) {
275
- r = { error: d };
274
+ } catch (p) {
275
+ r = { error: p };
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 (d) {
291
- o = d instanceof $ ? d.errors : [d];
290
+ } catch (p) {
291
+ o = p instanceof $ ? p.errors : [p];
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 (d) {
302
- o = o ?? [], d instanceof $ ? o = U(U([], O(o)), O(d.errors)) : o.push(d);
301
+ } catch (p) {
302
+ o = o ?? [], p instanceof $ ? o = U(U([], O(o)), O(p.errors)) : o.push(p);
303
303
  }
304
304
  }
305
- } catch (d) {
306
- n = { error: d };
305
+ } catch (p) {
306
+ n = { error: p };
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 pt(e, r) {
956
+ function dt(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 pt(e, r) {
961
961
  });
962
962
  }
963
963
  function Ht(e, r) {
964
- return k(e).pipe(pt(r), ht(r));
964
+ return k(e).pipe(dt(r), ht(r));
965
965
  }
966
966
  function zt(e, r) {
967
- return k(e).pipe(pt(r), ht(r));
967
+ return k(e).pipe(dt(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 dt(e, r) {
996
+ function pt(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 dt(e, r) {
1008
1008
  });
1009
1009
  }
1010
1010
  function Qt(e, r) {
1011
- return dt(at(e), r);
1011
+ return pt(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 dt(e, r);
1022
+ return pt(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-30b4f564.mjs").then((r) => r.c)), await M.getInstance(e.container);
1128
+ e.registerComponent("conversation", import("./conversation-021e7841.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 {
@@ -1230,7 +1230,7 @@ class oe {
1230
1230
  }
1231
1231
  playNotification() {
1232
1232
  const r = "https://publicpoc.blob.core.windows.net/widget-assets/notification.mp3";
1233
- this.session.component.properties.disableSound || new Audio(r).play();
1233
+ this.session.component.application.branding().other.disableSound || new Audio(r).play();
1234
1234
  }
1235
1235
  }
1236
1236
  export {
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-47f7bb79.js");exports.Agent=o.Agent;exports.ConversationComponent=o.ConversationComponent;exports.ConversationEntry=o.ConversationEntry;exports.ConversationPlatform=o.ConversationPlatform;exports.ConversationProvider=o.ConversationProvider;exports.ConversationSessionState=o.ConversationSessionState;exports.User=o.User;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-8eb57246.js");exports.Agent=o.Agent;exports.ConversationComponent=o.ConversationComponent;exports.ConversationEntry=o.ConversationEntry;exports.ConversationPlatform=o.ConversationPlatform;exports.ConversationProvider=o.ConversationProvider;exports.ConversationSessionState=o.ConversationSessionState;exports.User=o.User;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as n, a as s, d as e, b as r, c as t, e as i, U as v } from "./index-59fe3cc0.mjs";
1
+ import { A as n, a as s, d as e, b as r, c as t, e as i, U as v } from "./index-f34e239d.mjs";
2
2
  export {
3
3
  n as Agent,
4
4
  s as ConversationComponent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-conversation-flamingo",
3
- "version": "1.1.32",
3
+ "version": "1.1.33-rc.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "@lit-labs/motion": "^1.0.4",
10
10
  "@teliads/icons": "^8.4.0",
11
11
  "@teliads/components": "^22.1.1",
12
- "@telia-ace/widget-core-flamingo": "1.1.32",
12
+ "@telia-ace/widget-core-flamingo": "1.1.33-rc.1",
13
13
  "uuid": "^9.0.1",
14
14
  "lit-html": "^3.0.2",
15
15
  "rxjs": "^7.8.1"