testaugnitoambientsdk2 2.1.65 → 2.1.67

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.
@@ -153,7 +153,7 @@ class c extends Error {
153
153
  (function (e) {
154
154
  (e.DashFormat = "Dash-format"), (e.Paragraph = "Paragraph");
155
155
  })(a || (a = {}));
156
- class u {
156
+ class l {
157
157
  makePostRequest(t, i) {
158
158
  return e(this, void 0, void 0, function* () {
159
159
  try {
@@ -195,7 +195,7 @@ class u {
195
195
  });
196
196
  }
197
197
  }
198
- class l extends u {
198
+ class u extends l {
199
199
  constructor(e) {
200
200
  super(),
201
201
  Object.defineProperty(this, "_config", {
@@ -304,7 +304,7 @@ class l extends u {
304
304
  (c && "" != c) ||
305
305
  (c =
306
306
  '{"PatientName":"","PatientID":"","Age":"","Gender":"","ReceivingDoctor":"","DoctorName":"","DoctorDesignation":"","DoctorEmail":""}');
307
- const u = {
307
+ const l = {
308
308
  SubscriptionCode: this._config.subscriptionCode,
309
309
  AccessKey: this._config.accessKey,
310
310
  UserTag: this._config.userTag,
@@ -315,7 +315,7 @@ class l extends u {
315
315
  Regenerate: null != a && a,
316
316
  PersonnelInfo: c,
317
317
  };
318
- return yield this.makePostRequest(e, u);
318
+ return yield this.makePostRequest(e, l);
319
319
  });
320
320
  }
321
321
  EndJob(t) {
@@ -438,7 +438,7 @@ function h() {
438
438
  s = o.iterator || "@@iterator",
439
439
  a = o.asyncIterator || "@@asyncIterator",
440
440
  c = o.toStringTag || "@@toStringTag";
441
- function u(e, t, i) {
441
+ function l(e, t, i) {
442
442
  return (
443
443
  Object.defineProperty(e, t, {
444
444
  value: i,
@@ -450,13 +450,13 @@ function h() {
450
450
  );
451
451
  }
452
452
  try {
453
- u({}, "");
453
+ l({}, "");
454
454
  } catch (e) {
455
- u = function (e, t, i) {
455
+ l = function (e, t, i) {
456
456
  return (e[t] = i);
457
457
  };
458
458
  }
459
- function l(e, t, i, n) {
459
+ function u(e, t, i, n) {
460
460
  var o = t && t.prototype instanceof m ? t : m,
461
461
  s = Object.create(o.prototype),
462
462
  a = new _(n || []);
@@ -469,17 +469,17 @@ function h() {
469
469
  return { type: "throw", arg: e };
470
470
  }
471
471
  }
472
- t.wrap = l;
472
+ t.wrap = u;
473
473
  var f = "suspendedStart",
474
- p = "suspendedYield",
475
- g = "executing",
474
+ g = "suspendedYield",
475
+ p = "executing",
476
476
  v = "completed",
477
477
  b = {};
478
478
  function m() {}
479
479
  function y() {}
480
480
  function S() {}
481
481
  var C = {};
482
- u(C, s, function () {
482
+ l(C, s, function () {
483
483
  return this;
484
484
  });
485
485
  var k = Object.getPrototypeOf,
@@ -488,7 +488,7 @@ function h() {
488
488
  var I = (S.prototype = m.prototype = Object.create(C));
489
489
  function A(e) {
490
490
  ["next", "throw", "return"].forEach(function (t) {
491
- u(e, t, function (e) {
491
+ l(e, t, function (e) {
492
492
  return this._invoke(t, e);
493
493
  });
494
494
  });
@@ -497,10 +497,10 @@ function h() {
497
497
  function i(r, o, s, a) {
498
498
  var c = d(e[r], e, o);
499
499
  if ("throw" !== c.type) {
500
- var u = c.arg,
501
- l = u.value;
502
- return l && "object" == typeof l && n.call(l, "__await")
503
- ? t.resolve(l.__await).then(
500
+ var l = c.arg,
501
+ u = l.value;
502
+ return u && "object" == typeof u && n.call(u, "__await")
503
+ ? t.resolve(u.__await).then(
504
504
  function (e) {
505
505
  i("next", e, s, a);
506
506
  },
@@ -508,9 +508,9 @@ function h() {
508
508
  i("throw", e, s, a);
509
509
  },
510
510
  )
511
- : t.resolve(l).then(
511
+ : t.resolve(u).then(
512
512
  function (e) {
513
- (u.value = e), s(u);
513
+ (l.value = e), s(l);
514
514
  },
515
515
  function (e) {
516
516
  return i("throw", e, s, a);
@@ -534,7 +534,7 @@ function h() {
534
534
  function w(t, i, n) {
535
535
  var r = f;
536
536
  return function (o, s) {
537
- if (r === g) throw Error("Generator is already running");
537
+ if (r === p) throw Error("Generator is already running");
538
538
  if (r === v) {
539
539
  if ("throw" === o) throw s;
540
540
  return { value: e, done: !0 };
@@ -553,13 +553,13 @@ function h() {
553
553
  if (r === f) throw ((r = v), n.arg);
554
554
  n.dispatchException(n.arg);
555
555
  } else "return" === n.method && n.abrupt("return", n.arg);
556
- r = g;
557
- var u = d(t, i, n);
558
- if ("normal" === u.type) {
559
- if (((r = n.done ? v : p), u.arg === b)) continue;
560
- return { value: u.arg, done: n.done };
556
+ r = p;
557
+ var l = d(t, i, n);
558
+ if ("normal" === l.type) {
559
+ if (((r = n.done ? v : g), l.arg === b)) continue;
560
+ return { value: l.arg, done: n.done };
561
561
  }
562
- "throw" === u.type && ((r = v), (n.method = "throw"), (n.arg = u.arg));
562
+ "throw" === l.type && ((r = v), (n.method = "throw"), (n.arg = l.arg));
563
563
  }
564
564
  };
565
565
  }
@@ -635,7 +635,7 @@ function h() {
635
635
  (y.prototype = S),
636
636
  r(I, "constructor", { value: S, configurable: !0 }),
637
637
  r(S, "constructor", { value: y, configurable: !0 }),
638
- (y.displayName = u(S, c, "GeneratorFunction")),
638
+ (y.displayName = l(S, c, "GeneratorFunction")),
639
639
  (t.isGeneratorFunction = function (e) {
640
640
  var t = "function" == typeof e && e.constructor;
641
641
  return (
@@ -646,7 +646,7 @@ function h() {
646
646
  return (
647
647
  Object.setPrototypeOf
648
648
  ? Object.setPrototypeOf(e, S)
649
- : ((e.__proto__ = S), u(e, c, "GeneratorFunction")),
649
+ : ((e.__proto__ = S), l(e, c, "GeneratorFunction")),
650
650
  (e.prototype = Object.create(I)),
651
651
  e
652
652
  );
@@ -655,13 +655,13 @@ function h() {
655
655
  return { __await: e };
656
656
  }),
657
657
  A(R.prototype),
658
- u(R.prototype, a, function () {
658
+ l(R.prototype, a, function () {
659
659
  return this;
660
660
  }),
661
661
  (t.AsyncIterator = R),
662
662
  (t.async = function (e, i, n, r, o) {
663
663
  void 0 === o && (o = Promise);
664
- var s = new R(l(e, i, n, r), o);
664
+ var s = new R(u(e, i, n, r), o);
665
665
  return t.isGeneratorFunction(i)
666
666
  ? s
667
667
  : s.next().then(function (e) {
@@ -669,11 +669,11 @@ function h() {
669
669
  });
670
670
  }),
671
671
  A(I),
672
- u(I, c, "Generator"),
673
- u(I, s, function () {
672
+ l(I, c, "Generator"),
673
+ l(I, s, function () {
674
674
  return this;
675
675
  }),
676
- u(I, "toString", function () {
676
+ l(I, "toString", function () {
677
677
  return "[object Generator]";
678
678
  }),
679
679
  (t.keys = function (e) {
@@ -736,14 +736,14 @@ function h() {
736
736
  if ("root" === s.tryLoc) return r("end");
737
737
  if (s.tryLoc <= this.prev) {
738
738
  var c = n.call(s, "catchLoc"),
739
- u = n.call(s, "finallyLoc");
740
- if (c && u) {
739
+ l = n.call(s, "finallyLoc");
740
+ if (c && l) {
741
741
  if (this.prev < s.catchLoc) return r(s.catchLoc, !0);
742
742
  if (this.prev < s.finallyLoc) return r(s.finallyLoc);
743
743
  } else if (c) {
744
744
  if (this.prev < s.catchLoc) return r(s.catchLoc, !0);
745
745
  } else {
746
- if (!u) throw Error("try statement without catch or finally");
746
+ if (!l) throw Error("try statement without catch or finally");
747
747
  if (this.prev < s.finallyLoc) return r(s.finallyLoc);
748
748
  }
749
749
  }
@@ -833,7 +833,7 @@ function f(e) {
833
833
  })(e, "string");
834
834
  return "symbol" == typeof t ? t : t + "";
835
835
  }
836
- function p(e, t, i, n, r, o, s) {
836
+ function g(e, t, i, n, r, o, s) {
837
837
  try {
838
838
  var a = e[o](s),
839
839
  c = a.value;
@@ -842,17 +842,17 @@ function p(e, t, i, n, r, o, s) {
842
842
  }
843
843
  a.done ? t(c) : Promise.resolve(c).then(n, r);
844
844
  }
845
- function g(e) {
845
+ function p(e) {
846
846
  return function () {
847
847
  var t = this,
848
848
  i = arguments;
849
849
  return new Promise(function (n, r) {
850
850
  var o = e.apply(t, i);
851
851
  function s(e) {
852
- p(o, n, r, s, a, "next", e);
852
+ g(o, n, r, s, a, "next", e);
853
853
  }
854
854
  function a(e) {
855
- p(o, n, r, s, a, "throw", e);
855
+ g(o, n, r, s, a, "throw", e);
856
856
  }
857
857
  s(void 0);
858
858
  });
@@ -960,15 +960,15 @@ var C = "DONE",
960
960
  I = "INTENT_START_STREAM",
961
961
  A = "CLOSE",
962
962
  R = m(
963
- function e(t, i, n, r, o, s, a, c, u, l, d, h, f) {
963
+ function e(t, i, n, r, o, s, a, c, l, u, d, h, f) {
964
964
  v(this, e),
965
965
  this.worker,
966
966
  (this.onFinalResultCallback = o),
967
967
  (this.onErrorCallback = a),
968
968
  (this.onPartialResultCallback = s),
969
969
  (this.onSessionEventCallback = c),
970
- (this.onOtherResultsCallback = u),
971
- (this.onSpeechResponseCallback = l),
970
+ (this.onOtherResultsCallback = l),
971
+ (this.onSpeechResponseCallback = u),
972
972
  (this.onJobStatusCallback = d),
973
973
  (this.packetSeqId = 0),
974
974
  (this.audioDuration = 0),
@@ -1099,16 +1099,16 @@ var C = "DONE",
1099
1099
  void 0 === c ||
1100
1100
  c.postMessage(e);
1101
1101
  } else {
1102
- var u,
1103
- l = [];
1102
+ var l,
1103
+ u = [];
1104
1104
  this.shouldSendAudioDataSequence
1105
1105
  ? ((n = this.createAudioPacketHeader(!1)),
1106
- (l = this.appendAudioData(n, e)))
1107
- : (l = e),
1108
- void 0 !== l &&
1109
- (null === (u = this.worker) ||
1110
- void 0 === u ||
1111
- u.postMessage(l, [l]));
1106
+ (u = this.appendAudioData(n, e)))
1107
+ : (u = e),
1108
+ void 0 !== u &&
1109
+ (null === (l = this.worker) ||
1110
+ void 0 === l ||
1111
+ l.postMessage(u, [u]));
1112
1112
  }
1113
1113
  },
1114
1114
  },
@@ -1120,7 +1120,7 @@ var C = "DONE",
1120
1120
  },
1121
1121
  ],
1122
1122
  );
1123
- function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1123
+ function w(e, t, i, n, r, o, s, a, c, l, u, d, h, f, g, p, v, b) {
1124
1124
  var m,
1125
1125
  y,
1126
1126
  S,
@@ -1136,15 +1136,15 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1136
1136
  T = [],
1137
1137
  _ = !1,
1138
1138
  O = !1,
1139
- x = !1,
1140
- N = "",
1139
+ N = !1,
1140
+ x = "",
1141
1141
  U = v;
1142
1142
  function L() {
1143
1143
  (m = +new Date()),
1144
1144
  ((E =
1145
- "" != N ? new WebSocket(u + "&jobid=" + N) : new WebSocket(u)).onopen =
1145
+ "" != x ? new WebSocket(l + "&jobid=" + x) : new WebSocket(l)).onopen =
1146
1146
  function (e) {
1147
- l &&
1147
+ u &&
1148
1148
  console.log(
1149
1149
  "Augnito: WebSocket connection established - " +
1150
1150
  JSON.stringify(e),
@@ -1152,7 +1152,7 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1152
1152
  T.length > 0 && (O = !0);
1153
1153
  }),
1154
1154
  (E.onmessage = function (e) {
1155
- l &&
1155
+ u &&
1156
1156
  console.log(
1157
1157
  "Augnito: Message from server - " + JSON.stringify(e.data),
1158
1158
  ),
@@ -1165,13 +1165,13 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1165
1165
  else {
1166
1166
  var t = JSON.parse(e.data);
1167
1167
  if (
1168
- (l && console.log("Augnito [WORKER]: " + JSON.stringify(t)),
1168
+ (u && console.log("Augnito [WORKER]: " + JSON.stringify(t)),
1169
1169
  "meta" == t.Type)
1170
1170
  ) {
1171
- t.JobID && ((N = t.JobID), console.log("Augnito JobID:", N)),
1171
+ t.JobID && ((x = t.JobID), console.log("Augnito JobID:", x)),
1172
1172
  self.postMessage({ type: "meta", data: e.data });
1173
1173
  var i = JSON.parse(e.data);
1174
- x = !(
1174
+ N = !(
1175
1175
  !i.Event || "INVALID_AUTH_CREDENTIALS" !== i.Event.Type
1176
1176
  );
1177
1177
  } else if (t.Result && t.Result.Final) {
@@ -1214,7 +1214,7 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1214
1214
  self.postMessage({ type: "error", data: JSON.stringify(e) });
1215
1215
  }),
1216
1216
  (E.onclose = function (e) {
1217
- l &&
1217
+ u &&
1218
1218
  console.log(
1219
1219
  "Augnito: WebSocket connection closed - " + JSON.stringify(e),
1220
1220
  ),
@@ -1231,13 +1231,13 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1231
1231
  return y <= S && (S = i - 1), (y = i), !0;
1232
1232
  }
1233
1233
  return e === t
1234
- ? (l &&
1234
+ ? (u &&
1235
1235
  console.warn(
1236
1236
  "Gulping ".concat(t, " as socket seems already closed..."),
1237
1237
  ),
1238
1238
  K(),
1239
1239
  !0)
1240
- : (+new Date() - m > n && !x && L(), !1);
1240
+ : (+new Date() - m > n && !N && L(), !1);
1241
1241
  }
1242
1242
  function J(e) {
1243
1243
  w.push(e);
@@ -1277,8 +1277,8 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1277
1277
  (A = setInterval(function () {
1278
1278
  if (E && E.readyState === WebSocket.OPEN) {
1279
1279
  var e = +new Date();
1280
- (g ? y > S && e - S > r : e - C > r) &&
1281
- (l &&
1280
+ (p ? y > S && e - S > r : e - C > r) &&
1281
+ (u &&
1282
1282
  console.error(
1283
1283
  "No data received since more than ".concat(
1284
1284
  r / 1e3,
@@ -1293,7 +1293,7 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1293
1293
  var e = +new Date();
1294
1294
  y &&
1295
1295
  e - y > o &&
1296
- (l &&
1296
+ (u &&
1297
1297
  console.warn(
1298
1298
  "No data sent since more than ".concat(
1299
1299
  o / 1e3,
@@ -1304,15 +1304,15 @@ function w(e, t, i, n, r, o, s, a, c, u, l, d, h, f, p, g, v, b) {
1304
1304
  }
1305
1305
  }, c)),
1306
1306
  (self.onmessage = function (n) {
1307
- if (n.data === i) (N = ""), (_ = !0), (x = !0), E.close();
1307
+ if (n.data === i) (x = ""), (_ = !0), (N = !0), E.close();
1308
1308
  else if (n.data === e)
1309
1309
  J(t),
1310
- (N = ""),
1311
- l &&
1310
+ (x = ""),
1311
+ u &&
1312
1312
  console.log("Augnito: Worker received DONE, time to terminate..."),
1313
1313
  (_ = !0);
1314
1314
  else if (n.data === h) U = !0;
1315
- else if (n.data === p) D = !0;
1315
+ else if (n.data === g) D = !0;
1316
1316
  else if (n.data === f) {
1317
1317
  if ((k instanceof ArrayBuffer && J(k), P.length > 0))
1318
1318
  for (var r = 0; r < P.length; r++) J(P[r]);
@@ -1325,8 +1325,8 @@ var P,
1325
1325
  T,
1326
1326
  _,
1327
1327
  O,
1328
- x,
1329
1328
  N,
1329
+ x,
1330
1330
  U,
1331
1331
  L,
1332
1332
  M,
@@ -1340,13 +1340,13 @@ var P,
1340
1340
  s,
1341
1341
  a,
1342
1342
  c,
1343
- u,
1344
1343
  l,
1344
+ u,
1345
1345
  d,
1346
1346
  h,
1347
1347
  f,
1348
- p,
1349
1348
  g,
1349
+ p,
1350
1350
  b,
1351
1351
  m,
1352
1352
  y,
@@ -1378,10 +1378,10 @@ var P,
1378
1378
  (this.pausedBufferInterval = null != o ? o : 1),
1379
1379
  (this.shouldReadIntensity = d),
1380
1380
  (this.closeSocketWithoutEOS = !1),
1381
- (this.shouldPreIntialiseRecorder = null != l && l),
1381
+ (this.shouldPreIntialiseRecorder = null != u && u),
1382
1382
  (this.echoCancellation = f),
1383
- (this.noiseSuppression = p),
1384
- (this.autoGainControl = g),
1383
+ (this.noiseSuppression = g),
1384
+ (this.autoGainControl = p),
1385
1385
  (this.micNeedsRecovery = !1),
1386
1386
  (this.trackEndedHandler = null),
1387
1387
  (this.isRecovering = !1),
@@ -1391,13 +1391,14 @@ var P,
1391
1391
  (this.deviceChangeHandler = null),
1392
1392
  (this.onMicReady = P),
1393
1393
  (this._originalDeviceId = null),
1394
- this.shouldPreIntialiseRecorder && this.InitialiseMediaStream(u, t);
1394
+ (this._originalDeviceLabel = null),
1395
+ this.shouldPreIntialiseRecorder && this.InitialiseMediaStream(l, t);
1395
1396
  },
1396
1397
  [
1397
1398
  {
1398
1399
  key: "InitialiseMediaStream",
1399
1400
  value:
1400
- ((M = g(
1401
+ ((M = p(
1401
1402
  h().mark(function e(t, i) {
1402
1403
  var n = this;
1403
1404
  return h().wrap(
@@ -1448,7 +1449,7 @@ var P,
1448
1449
  this.shouldPreIntialiseRecorder,
1449
1450
  ),
1450
1451
  this.deviceChangeHandler ||
1451
- ((this.deviceChangeHandler = g(
1452
+ ((this.deviceChangeHandler = p(
1452
1453
  h().mark(function e() {
1453
1454
  var t, i, r, o, s, a, c;
1454
1455
  return h().wrap(function (e) {
@@ -1562,7 +1563,7 @@ var P,
1562
1563
  {
1563
1564
  key: "StartStream",
1564
1565
  value:
1565
- ((L = g(
1566
+ ((L = p(
1566
1567
  h().mark(function e(t, i) {
1567
1568
  var n, r;
1568
1569
  return h().wrap(
@@ -1644,7 +1645,7 @@ var P,
1644
1645
  {
1645
1646
  key: "createBufferedSourceNode",
1646
1647
  value:
1647
- ((U = g(
1648
+ ((U = p(
1648
1649
  h().mark(function e() {
1649
1650
  var t;
1650
1651
  return h().wrap(
@@ -1684,7 +1685,7 @@ var P,
1684
1685
  {
1685
1686
  key: "createMediaStreamSourceNode",
1686
1687
  value:
1687
- ((N = g(
1688
+ ((x = p(
1688
1689
  h().mark(function e() {
1689
1690
  var t,
1690
1691
  i,
@@ -1692,7 +1693,9 @@ var P,
1692
1693
  r,
1693
1694
  o,
1694
1695
  s,
1695
- a = this;
1696
+ a,
1697
+ c,
1698
+ l = this;
1696
1699
  return h().wrap(
1697
1700
  function (e) {
1698
1701
  for (;;)
@@ -1700,24 +1703,24 @@ var P,
1700
1703
  case 0:
1701
1704
  return (
1702
1705
  (e.prev = 0),
1703
- (n = {
1706
+ (r = {
1704
1707
  channelCount: 1,
1705
1708
  noiseSuppression:
1706
1709
  void 0 !== this.noiseSuppression &&
1707
1710
  this.noiseSuppression,
1708
1711
  }),
1709
1712
  void 0 !== this.echoCancellation &&
1710
- ((n.echoCancellation = this.echoCancellation),
1711
- (n.googEchoCancellation = this.echoCancellation)),
1713
+ ((r.echoCancellation = this.echoCancellation),
1714
+ (r.googEchoCancellation = this.echoCancellation)),
1712
1715
  void 0 !== this.noiseSuppression &&
1713
- (n.googNoiseSuppression = this.noiseSuppression),
1716
+ (r.googNoiseSuppression = this.noiseSuppression),
1714
1717
  void 0 !== this.autoGainControl &&
1715
- ((n.autoGainControl = this.autoGainControl),
1716
- (n.googAutoGainControl = this.autoGainControl)),
1718
+ ((r.autoGainControl = this.autoGainControl),
1719
+ (r.googAutoGainControl = this.autoGainControl)),
1717
1720
  this._preferredDeviceId &&
1718
- (n.deviceId = { exact: this._preferredDeviceId }),
1721
+ (r.deviceId = { exact: this._preferredDeviceId }),
1719
1722
  (e.next = 8),
1720
- navigator.mediaDevices.getUserMedia({ audio: n })
1723
+ navigator.mediaDevices.getUserMedia({ audio: r })
1721
1724
  );
1722
1725
  case 8:
1723
1726
  (this.audioStream = e.sent),
@@ -1728,87 +1731,69 @@ var P,
1728
1731
  this.audioContext.createMediaStreamSource(
1729
1732
  this.audioStream,
1730
1733
  )),
1731
- (r = this.audioStream.getAudioTracks()[0]),
1732
- (o =
1734
+ (o = this.audioStream.getAudioTracks()[0]),
1735
+ (s =
1733
1736
  null !==
1734
1737
  (t =
1735
- null === (i = r.getSettings) ||
1738
+ null === (i = o.getSettings) ||
1736
1739
  void 0 === i ||
1737
- null === (i = i.call(r)) ||
1740
+ null === (i = i.call(o)) ||
1738
1741
  void 0 === i
1739
1742
  ? void 0
1740
1743
  : i.deviceId) && void 0 !== t
1741
1744
  ? t
1742
- : r.label),
1745
+ : ""),
1746
+ (a = null !== (n = o.label) && void 0 !== n ? n : ""),
1743
1747
  this._originalDeviceId ||
1744
- (this._originalDeviceId = o),
1748
+ ((this._originalDeviceId = s),
1749
+ (this._originalDeviceLabel = a)),
1745
1750
  this.trackEndedHandler &&
1746
1751
  (this.trackEndedHandler = null),
1747
- (this.trackEndedHandler = g(
1748
- h().mark(function e() {
1749
- return h().wrap(function (e) {
1750
- for (;;)
1751
- switch ((e.prev = e.next)) {
1752
- case 0:
1753
- if (
1754
- ((a.micNeedsRecovery = !0),
1755
- a.onError(
1756
- JSON.stringify({
1757
- Type: "ERROR",
1758
- Data: "Audio track ended. Possibly the mic was unplugged.",
1759
- }),
1760
- ),
1761
- !a.isStreaming || a.isPaused)
1762
- ) {
1763
- e.next = 5;
1764
- break;
1765
- }
1766
- return (
1767
- (e.next = 5), a.recoverAudioGraph()
1768
- );
1769
- case 5:
1770
- case "end":
1771
- return e.stop();
1772
- }
1773
- }, e);
1774
- }),
1775
- )),
1776
- r.addEventListener("ended", this.trackEndedHandler),
1777
- (e.next = 24);
1752
+ (this.trackEndedHandler = function () {
1753
+ (l.micNeedsRecovery = !0),
1754
+ l.onError(
1755
+ JSON.stringify({
1756
+ Type: "ERROR",
1757
+ Data: "Audio track ended. Possibly the mic was unplugged.",
1758
+ }),
1759
+ );
1760
+ }),
1761
+ o.addEventListener("ended", this.trackEndedHandler),
1762
+ (e.next = 25);
1778
1763
  break;
1779
- case 19:
1780
- (e.prev = 19),
1764
+ case 20:
1765
+ (e.prev = 20),
1781
1766
  (e.t0 = e.catch(0)),
1782
- (s = ""),
1767
+ (c = ""),
1783
1768
  "NotAllowedError" == e.t0.name
1784
- ? (s = "Mic permission denied")
1769
+ ? (c = "Mic permission denied")
1785
1770
  : "NotFoundError" === e.t0.name
1786
- ? (s = "No suitable media device found")
1771
+ ? (c = "No suitable media device found")
1787
1772
  : "NotReadableError" === e.t0.name &&
1788
- (s =
1773
+ (c =
1789
1774
  "Microphone is being used by another application"),
1790
1775
  this.onError(
1791
- JSON.stringify({ Type: "ERROR", Data: s }),
1776
+ JSON.stringify({ Type: "ERROR", Data: c }),
1792
1777
  );
1793
- case 24:
1778
+ case 25:
1794
1779
  case "end":
1795
1780
  return e.stop();
1796
1781
  }
1797
1782
  },
1798
1783
  e,
1799
1784
  this,
1800
- [[0, 19]],
1785
+ [[0, 20]],
1801
1786
  );
1802
1787
  }),
1803
1788
  )),
1804
1789
  function () {
1805
- return N.apply(this, arguments);
1790
+ return x.apply(this, arguments);
1806
1791
  }),
1807
1792
  },
1808
1793
  {
1809
1794
  key: "loadAudio",
1810
1795
  value:
1811
- ((x = g(
1796
+ ((N = p(
1812
1797
  h().mark(function e() {
1813
1798
  var t, i, n;
1814
1799
  return h().wrap(
@@ -1854,13 +1839,13 @@ var P,
1854
1839
  }),
1855
1840
  )),
1856
1841
  function () {
1857
- return x.apply(this, arguments);
1842
+ return N.apply(this, arguments);
1858
1843
  }),
1859
1844
  },
1860
1845
  {
1861
1846
  key: "createProcessorNode",
1862
1847
  value:
1863
- ((O = g(
1848
+ ((O = p(
1864
1849
  h().mark(function e() {
1865
1850
  var t,
1866
1851
  i = this;
@@ -1968,7 +1953,7 @@ var P,
1968
1953
  {
1969
1954
  key: "PauseStream",
1970
1955
  value:
1971
- ((_ = g(
1956
+ ((_ = p(
1972
1957
  h().mark(function e() {
1973
1958
  return h().wrap(
1974
1959
  function (e) {
@@ -2012,7 +1997,7 @@ var P,
2012
1997
  {
2013
1998
  key: "ResumeStream",
2014
1999
  value:
2015
- ((T = g(
2000
+ ((T = p(
2016
2001
  h().mark(function e() {
2017
2002
  var t, i, n;
2018
2003
  return h().wrap(
@@ -2123,9 +2108,9 @@ var P,
2123
2108
  {
2124
2109
  key: "StopStream",
2125
2110
  value:
2126
- ((D = g(
2111
+ ((D = p(
2127
2112
  h().mark(function e(t) {
2128
- var i, n, r, o, s, a, c, u;
2113
+ var i, n, r, o, s, a, c, l;
2129
2114
  return h().wrap(
2130
2115
  function (e) {
2131
2116
  for (;;)
@@ -2159,7 +2144,7 @@ var P,
2159
2144
  this.deviceChangeHandler,
2160
2145
  ),
2161
2146
  (this.deviceChangeHandler = null)),
2162
- (u =
2147
+ (l =
2163
2148
  null === (n = this.audioStream) ||
2164
2149
  void 0 === n ||
2165
2150
  null === (r = n.getAudioTracks) ||
@@ -2167,7 +2152,7 @@ var P,
2167
2152
  ? void 0
2168
2153
  : r.call(n)[0]) &&
2169
2154
  this.trackEndedHandler &&
2170
- u.removeEventListener(
2155
+ l.removeEventListener(
2171
2156
  "ended",
2172
2157
  this.trackEndedHandler,
2173
2158
  ),
@@ -2205,7 +2190,7 @@ var P,
2205
2190
  {
2206
2191
  key: "recoverAudioGraph",
2207
2192
  value:
2208
- ((P = g(
2193
+ ((P = p(
2209
2194
  h().mark(function e() {
2210
2195
  var t,
2211
2196
  i,
@@ -2215,9 +2200,10 @@ var P,
2215
2200
  s,
2216
2201
  a,
2217
2202
  c,
2218
- u,
2219
2203
  l,
2220
- d = this;
2204
+ u,
2205
+ d,
2206
+ f = this;
2221
2207
  return h().wrap(
2222
2208
  function (e) {
2223
2209
  for (;;)
@@ -2241,15 +2227,15 @@ var P,
2241
2227
  } catch (e) {}
2242
2228
  });
2243
2229
  try {
2244
- null === (s = this.source) ||
2245
- void 0 === s ||
2246
- s.disconnect();
2247
- } catch (e) {}
2248
- try {
2249
- null === (a = this.processorNode) ||
2230
+ null === (a = this.source) ||
2250
2231
  void 0 === a ||
2251
2232
  a.disconnect();
2252
2233
  } catch (e) {}
2234
+ try {
2235
+ null === (c = this.processorNode) ||
2236
+ void 0 === c ||
2237
+ c.disconnect();
2238
+ } catch (e) {}
2253
2239
  return (e.next = 9), this.createMediaStreamSourceNode();
2254
2240
  case 9:
2255
2241
  if (this.source) {
@@ -2287,7 +2273,7 @@ var P,
2287
2273
  return (e.next = 22), this.audioContext.suspend();
2288
2274
  case 22:
2289
2275
  (this.micNeedsRecovery = !1),
2290
- (c =
2276
+ (l =
2291
2277
  null === (i = this.audioStream) ||
2292
2278
  void 0 === i ||
2293
2279
  null === (n = i.getAudioTracks) ||
@@ -2297,57 +2283,57 @@ var P,
2297
2283
  (u =
2298
2284
  null !==
2299
2285
  (r =
2300
- null == c ||
2301
- null === (o = c.getSettings) ||
2286
+ null == l ||
2287
+ null === (o = l.getSettings) ||
2302
2288
  void 0 === o ||
2303
- null === (o = o.call(c)) ||
2289
+ null === (o = o.call(l)) ||
2304
2290
  void 0 === o
2305
2291
  ? void 0
2306
2292
  : o.deviceId) && void 0 !== r
2307
2293
  ? r
2308
- : null == c
2309
- ? void 0
2310
- : c.label),
2311
- (l =
2312
- !!this._originalDeviceId &&
2313
- u === this._originalDeviceId),
2294
+ : ""),
2295
+ (d =
2296
+ null !== (s = null == l ? void 0 : l.label) &&
2297
+ void 0 !== s
2298
+ ? s
2299
+ : ""),
2300
+ this._originalDeviceId &&
2301
+ u === this._originalDeviceId &&
2302
+ this._originalDeviceLabel &&
2303
+ this._originalDeviceLabel,
2314
2304
  console.log(
2315
- "Recovered device ID: "
2316
- .concat(u, ", Original device ID: ")
2317
- .concat(
2318
- this._originalDeviceId,
2319
- ", Is original device reconnected: ",
2320
- )
2321
- .concat(l),
2305
+ 'Recovered device ID: "'
2306
+ .concat(u, '", label: "')
2307
+ .concat(d, '"'),
2322
2308
  ),
2323
- !this.isPaused ||
2324
- (this.IsMicrophoneMuted && !l) ||
2325
- (this.onMicReady &&
2326
- !this._micReadyFired &&
2327
- ((this._micReadyFired = !0),
2328
- setTimeout(function () {
2329
- d._micReadyFired = !1;
2330
- }, 300),
2331
- this.onMicReady())),
2309
+ this.isPaused &&
2310
+ !this.IsMicrophoneMuted &&
2311
+ this.onMicReady &&
2312
+ !this._micReadyFired &&
2313
+ ((this._micReadyFired = !0),
2314
+ setTimeout(function () {
2315
+ f._micReadyFired = !1;
2316
+ }, 300),
2317
+ this.onMicReady()),
2332
2318
  this.log("Audio graph recovery completed"),
2333
- (e.next = 34);
2319
+ (e.next = 35);
2334
2320
  break;
2335
- case 31:
2336
- (e.prev = 31),
2321
+ case 32:
2322
+ (e.prev = 32),
2337
2323
  (e.t0 = e.catch(3)),
2338
2324
  console.error("Recovery failed", e.t0);
2339
- case 34:
2325
+ case 35:
2340
2326
  return (
2341
- (e.prev = 34), (this.isRecovering = !1), e.finish(34)
2327
+ (e.prev = 35), (this.isRecovering = !1), e.finish(35)
2342
2328
  );
2343
- case 37:
2329
+ case 38:
2344
2330
  case "end":
2345
2331
  return e.stop();
2346
2332
  }
2347
2333
  },
2348
2334
  e,
2349
2335
  this,
2350
- [[3, 31, 34, 37]],
2336
+ [[3, 32, 35, 38]],
2351
2337
  );
2352
2338
  }),
2353
2339
  )),
@@ -2441,7 +2427,7 @@ function K(e) {
2441
2427
  }
2442
2428
  function j() {
2443
2429
  return (
2444
- (j = g(
2430
+ (j = p(
2445
2431
  h().mark(function e(t) {
2446
2432
  var i,
2447
2433
  n,
@@ -2450,8 +2436,8 @@ function j() {
2450
2436
  s,
2451
2437
  a,
2452
2438
  c,
2453
- u,
2454
2439
  l,
2440
+ u,
2455
2441
  d = arguments;
2456
2442
  return h().wrap(
2457
2443
  function (e) {
@@ -2477,14 +2463,14 @@ function j() {
2477
2463
  ((a = o.createAnalyser()).fftSize = 256),
2478
2464
  s.connect(a),
2479
2465
  (c = a.frequencyBinCount),
2480
- (u = new Float32Array(c)),
2466
+ (l = new Float32Array(c)),
2481
2467
  (e.next = 17),
2482
2468
  new Promise(function (e) {
2483
2469
  var t = 0,
2484
2470
  r = performance.now();
2485
2471
  requestAnimationFrame(function o() {
2486
- a.getFloatTimeDomainData(u);
2487
- for (var s = 0, l = 0; l < c; l++) s += u[l] * u[l];
2472
+ a.getFloatTimeDomainData(l);
2473
+ for (var s = 0, u = 0; u < c; u++) s += l[u] * l[u];
2488
2474
  var d = Math.sqrt(s / c);
2489
2475
  d > t && (t = d),
2490
2476
  performance.now() - r < i
@@ -2502,9 +2488,9 @@ function j() {
2502
2488
  case 23:
2503
2489
  return (
2504
2490
  (e.prev = 23),
2505
- null === (l = r) ||
2506
- void 0 === l ||
2507
- l.getTracks().forEach(function (e) {
2491
+ null === (u = r) ||
2492
+ void 0 === u ||
2493
+ u.getTracks().forEach(function (e) {
2508
2494
  return e.stop();
2509
2495
  }),
2510
2496
  o &&
@@ -2530,7 +2516,7 @@ function W(e) {
2530
2516
  return G.apply(this, arguments);
2531
2517
  }
2532
2518
  function G() {
2533
- return (G = g(
2519
+ return (G = p(
2534
2520
  h().mark(function e(t) {
2535
2521
  var i, n, r, o, s;
2536
2522
  return h().wrap(
@@ -2766,7 +2752,7 @@ var F = (function () {
2766
2752
  {
2767
2753
  key: "startAudio",
2768
2754
  value:
2769
- ((t = g(
2755
+ ((t = p(
2770
2756
  h().mark(function e(t) {
2771
2757
  return h().wrap(
2772
2758
  function (e) {
@@ -2960,7 +2946,7 @@ function B(e, t) {
2960
2946
  }, t));
2961
2947
  };
2962
2948
  }
2963
- class V extends u {
2949
+ class V extends l {
2964
2950
  constructor(e) {
2965
2951
  super(),
2966
2952
  Object.defineProperty(this, "_config", {
@@ -3088,13 +3074,13 @@ const H = "Invalid user details, please check again",
3088
3074
  se = "Patient Context is empty",
3089
3075
  ae = "Mic permission denied",
3090
3076
  ce = "Microphone is muted",
3091
- ue = "Audio track ended. Possibly the mic was unplugged",
3092
- le = "Internet is not available. Try again later.",
3077
+ le = "Audio track ended. Possibly the mic was unplugged",
3078
+ ue = "Internet is not available. Try again later.",
3093
3079
  de =
3094
3080
  "Feedback is not enabled. Please contact administrator for more details.",
3095
3081
  he = "Automatic Transcription is not enabled for the organisation",
3096
3082
  fe = "Resume job is not enabled for the organisation";
3097
- class pe {
3083
+ class ge {
3098
3084
  static isBrowserOnline() {
3099
3085
  return "undefined" != typeof navigator && !0 === navigator.onLine;
3100
3086
  }
@@ -3117,10 +3103,10 @@ class pe {
3117
3103
  arguments,
3118
3104
  void 0,
3119
3105
  function* (e = { url: null, timeoutMs: null }) {
3120
- var t = e.url || pe.DEFAULT_URL;
3121
- const i = e.timeoutMs || pe.DEFAULT_TIMEOUT;
3122
- if (!pe.isBrowserOnline()) return !1;
3123
- pe.isValidHttpUrl(t) || (t = pe.DEFAULT_URL);
3106
+ var t = e.url || ge.DEFAULT_URL;
3107
+ const i = e.timeoutMs || ge.DEFAULT_TIMEOUT;
3108
+ if (!ge.isBrowserOnline()) return !1;
3109
+ ge.isValidHttpUrl(t) || (t = ge.DEFAULT_URL);
3124
3110
  const n = new AbortController(),
3125
3111
  r = setTimeout(() => n.abort(), i);
3126
3112
  try {
@@ -3143,23 +3129,23 @@ class pe {
3143
3129
  }
3144
3130
  static isOnline(t) {
3145
3131
  return e(this, void 0, void 0, function* () {
3146
- return pe.hasInternetConnection(t);
3132
+ return ge.hasInternetConnection(t);
3147
3133
  });
3148
3134
  }
3149
3135
  }
3150
- Object.defineProperty(pe, "DEFAULT_URL", {
3136
+ Object.defineProperty(ge, "DEFAULT_URL", {
3151
3137
  enumerable: !0,
3152
3138
  configurable: !0,
3153
3139
  writable: !0,
3154
3140
  value: "https://www.google.com/favicon.ico",
3155
3141
  }),
3156
- Object.defineProperty(pe, "DEFAULT_TIMEOUT", {
3142
+ Object.defineProperty(ge, "DEFAULT_TIMEOUT", {
3157
3143
  enumerable: !0,
3158
3144
  configurable: !0,
3159
3145
  writable: !0,
3160
3146
  value: 5e3,
3161
3147
  });
3162
- class ge {
3148
+ class pe {
3163
3149
  constructor(e) {
3164
3150
  Object.defineProperty(this, "_logTag", {
3165
3151
  enumerable: !0,
@@ -3299,7 +3285,7 @@ class ge {
3299
3285
  writable: !0,
3300
3286
  value: void 0,
3301
3287
  }),
3302
- (this._ambientRestAPI = new l(this.validateConfig(e))),
3288
+ (this._ambientRestAPI = new u(this.validateConfig(e))),
3303
3289
  (this._ambientPaceAPI = new V(e)),
3304
3290
  (this.config = this.createSocketConfig(e)),
3305
3291
  (this.enableLog = e.enableLogs),
@@ -3400,15 +3386,15 @@ class ge {
3400
3386
  }
3401
3387
  toggleListening(t, i, r, o, s, a, c) {
3402
3388
  return e(this, void 0, void 0, function* () {
3403
- var e, u;
3389
+ var e, l;
3404
3390
  if (void 0 !== a && "" !== a.trim()) {
3405
- var l = yield this._ambientPaceAPI.getOrgConfigMapping(n.CDIVersion);
3391
+ var u = yield this._ambientPaceAPI.getOrgConfigMapping(n.CDIVersion);
3406
3392
  if (
3407
- (null == l ? void 0 : l.Items) &&
3408
- l.Items.length > 0 &&
3409
- l.Items[0].Settings
3393
+ (null == u ? void 0 : u.Items) &&
3394
+ u.Items.length > 0 &&
3395
+ u.Items[0].Settings
3410
3396
  )
3411
- if (!l.Items[0].Settings.find((e) => 300 === e.ID))
3397
+ if (!u.Items[0].Settings.find((e) => 300 === e.ID))
3412
3398
  return void this.onErrorCallback(fe);
3413
3399
  }
3414
3400
  var d =
@@ -3416,22 +3402,22 @@ class ge {
3416
3402
  ? void 0
3417
3403
  : e.prepareWSSURL(t, i, r, o, a, c)) || "";
3418
3404
  this.recorderIns || this.initRecorder(d),
3419
- null === (u = this.recorderIns) ||
3420
- void 0 === u ||
3421
- u.toggleStartStopAudioStream(s, d);
3405
+ null === (l = this.recorderIns) ||
3406
+ void 0 === l ||
3407
+ l.toggleStartStopAudioStream(s, d);
3422
3408
  });
3423
3409
  }
3424
3410
  togglePauseResumeListening(t, i, r, o, s, a, c) {
3425
3411
  return e(this, void 0, void 0, function* () {
3426
- var e, u;
3412
+ var e, l;
3427
3413
  if (void 0 !== a && "" !== a.trim()) {
3428
- var l = yield this._ambientPaceAPI.getOrgConfigMapping(n.CDIVersion);
3414
+ var u = yield this._ambientPaceAPI.getOrgConfigMapping(n.CDIVersion);
3429
3415
  if (
3430
- (null == l ? void 0 : l.Items) &&
3431
- l.Items.length > 0 &&
3432
- l.Items[0].Settings
3416
+ (null == u ? void 0 : u.Items) &&
3417
+ u.Items.length > 0 &&
3418
+ u.Items[0].Settings
3433
3419
  )
3434
- if (!l.Items[0].Settings.find((e) => 300 === e.ID))
3420
+ if (!u.Items[0].Settings.find((e) => 300 === e.ID))
3435
3421
  return void this.onErrorCallback(fe);
3436
3422
  }
3437
3423
  var d =
@@ -3439,9 +3425,9 @@ class ge {
3439
3425
  ? void 0
3440
3426
  : e.prepareWSSURL(t, i, r, o, a, c)) || "";
3441
3427
  this.recorderIns || this.initRecorder(d),
3442
- null === (u = this.recorderIns) ||
3443
- void 0 === u ||
3444
- u.togglePauseResumeAudioStream(s, d);
3428
+ null === (l = this.recorderIns) ||
3429
+ void 0 === l ||
3430
+ l.togglePauseResumeAudioStream(s, d);
3445
3431
  });
3446
3432
  }
3447
3433
  startListening() {
@@ -3534,7 +3520,7 @@ class ge {
3534
3520
  var c = a.Items[0].Settings.find((e) => 209 === e.ID);
3535
3521
  c && (e = Number.parseInt(c.ConfigValue));
3536
3522
  }
3537
- var u = yield this._ambientRestAPI.GenerateSuggestions(
3523
+ var l = yield this._ambientRestAPI.GenerateSuggestions(
3538
3524
  t,
3539
3525
  i,
3540
3526
  r,
@@ -3542,9 +3528,9 @@ class ge {
3542
3528
  o,
3543
3529
  e,
3544
3530
  );
3545
- if (u) {
3546
- if (200 === u.Status) return u;
3547
- this.onErrorCallback(u.ServerMessage);
3531
+ if (l) {
3532
+ if (200 === l.Status) return l;
3533
+ this.onErrorCallback(l.ServerMessage);
3548
3534
  } else this.onErrorCallback("Unknown Error!");
3549
3535
  } catch (e) {
3550
3536
  this.handleException(e);
@@ -3683,7 +3669,7 @@ class ge {
3683
3669
  try {
3684
3670
  if (!this._ambientPaceAPI)
3685
3671
  return void d.error("SDK not initialized", this._logTag);
3686
- var u = yield this._ambientPaceAPI.updateUserPreference(
3672
+ var l = yield this._ambientPaceAPI.updateUserPreference(
3687
3673
  null !== (e = t.AutomaticallyGenerateTranscript) && void 0 !== e && e,
3688
3674
  null !== (i = t.PreferredTranscriptionLanguage) && void 0 !== i
3689
3675
  ? i
@@ -3693,9 +3679,9 @@ class ge {
3693
3679
  null !== (o = t.NoteOutputStyle) && void 0 !== o ? o : a.DashFormat,
3694
3680
  null !== (c = t.NoteOutputVerbosity) && void 0 !== c ? c : s.Detailed,
3695
3681
  );
3696
- if (u) {
3697
- if (200 === u.Status) return u;
3698
- this.onErrorCallback(u.ServerMessage);
3682
+ if (l) {
3683
+ if (200 === l.Status) return l;
3684
+ this.onErrorCallback(l.ServerMessage);
3699
3685
  } else this.onErrorCallback("Unknown Error!");
3700
3686
  } catch (e) {
3701
3687
  this.handleException(e);
@@ -3704,8 +3690,8 @@ class ge {
3704
3690
  }
3705
3691
  isInternetAvailable(t) {
3706
3692
  return e(this, void 0, void 0, function* () {
3707
- const e = yield pe.isOnline(t);
3708
- return e || this.onErrorCallback(le), e;
3693
+ const e = yield ge.isOnline(t);
3694
+ return e || this.onErrorCallback(ue), e;
3709
3695
  });
3710
3696
  }
3711
3697
  onEventCallback(e) {
@@ -3734,12 +3720,12 @@ class ge {
3734
3720
  s,
3735
3721
  a,
3736
3722
  c,
3737
- u,
3738
3723
  l,
3724
+ u,
3739
3725
  h,
3740
3726
  f,
3741
- p,
3742
3727
  g,
3728
+ p,
3743
3729
  v,
3744
3730
  b,
3745
3731
  m,
@@ -3796,34 +3782,34 @@ class ge {
3796
3782
  )
3797
3783
  ? (S.ErrorCode = o.SDK05)
3798
3784
  : (
3799
- null === (u = S.ErrorMessage) || void 0 === u
3785
+ null === (l = S.ErrorMessage) || void 0 === l
3800
3786
  ? void 0
3801
- : u.includes(ae)
3787
+ : l.includes(ae)
3802
3788
  )
3803
3789
  ? (S.ErrorCode = o.SDK06)
3804
3790
  : (
3805
- null === (l = S.ErrorMessage) || void 0 === l
3791
+ null === (u = S.ErrorMessage) || void 0 === u
3806
3792
  ? void 0
3807
- : l.includes(ce)
3793
+ : u.includes(ce)
3808
3794
  )
3809
3795
  ? (S.ErrorCode = o.SDK07)
3810
3796
  : (
3811
3797
  null === (h = S.ErrorMessage) || void 0 === h
3812
3798
  ? void 0
3813
- : h.includes(ue)
3799
+ : h.includes(le)
3814
3800
  )
3815
3801
  ? (S.ErrorCode = o.SDK08)
3816
3802
  : (null === (f = S.ErrorMessage) || void 0 === f
3817
3803
  ? void 0
3818
3804
  : f.includes(q)) ||
3819
- (null === (p = S.ErrorMessage) || void 0 === p ? void 0 : p.includes(z))
3805
+ (null === (g = S.ErrorMessage) || void 0 === g ? void 0 : g.includes(z))
3820
3806
  ? (S.ErrorCode = o.AUTH01)
3821
- : (null === (g = S.ErrorMessage) || void 0 === g ? void 0 : g.includes($))
3807
+ : (null === (p = S.ErrorMessage) || void 0 === p ? void 0 : p.includes($))
3822
3808
  ? (S.ErrorCode = o.AUTH02)
3823
3809
  : (
3824
3810
  null === (v = S.ErrorMessage) || void 0 === v
3825
3811
  ? void 0
3826
- : v.includes(le)
3812
+ : v.includes(ue)
3827
3813
  )
3828
3814
  ? (S.ErrorCode = o.SDK12)
3829
3815
  : (
@@ -3926,7 +3912,7 @@ class ge {
3926
3912
  }
3927
3913
  }
3928
3914
  export {
3929
- ge as AugnitoAmbient,
3915
+ pe as AugnitoAmbient,
3930
3916
  o as ErrorCodes,
3931
3917
  c as HttpCodedError,
3932
3918
  a as NoteOutputStyleConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaugnitoambientsdk2",
3
- "version": "2.1.65",
3
+ "version": "2.1.67",
4
4
  "description": "Use this typescript SDK to integrate Augnito’s Ambient Tech within your EMR. To get access credentials or know more about how Augnito Ambient can benefit you, please visit our website and connect with our sales team: https://augnito.ai/",
5
5
  "main": "dist/augnitoambientsdk.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,6 +37,6 @@
37
37
  "rollup-plugin-cleanup": "^3.2.1",
38
38
  "rollup-plugin-terser": "^7.0.2",
39
39
  "rollup-plugin-typescript2": "^0.36.0",
40
- "testaugnitorecorder4": "^1.1.11"
40
+ "testaugnitorecorder4": "^1.1.13"
41
41
  }
42
42
  }