oro-sdk 3.25.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,351 @@ import * as oroToolbox from 'oro-toolbox';
5
5
  export { oroToolbox as OroToolboxNamespace };
6
6
  import { getMany } from 'idb-keyval';
7
7
 
8
+ function _regeneratorRuntime() {
9
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
10
+
11
+ _regeneratorRuntime = function () {
12
+ return exports;
13
+ };
14
+
15
+ var exports = {},
16
+ Op = Object.prototype,
17
+ hasOwn = Op.hasOwnProperty,
18
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
19
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
20
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
21
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
22
+
23
+ function define(obj, key, value) {
24
+ return Object.defineProperty(obj, key, {
25
+ value: value,
26
+ enumerable: !0,
27
+ configurable: !0,
28
+ writable: !0
29
+ }), obj[key];
30
+ }
31
+
32
+ try {
33
+ define({}, "");
34
+ } catch (err) {
35
+ define = function (obj, key, value) {
36
+ return obj[key] = value;
37
+ };
38
+ }
39
+
40
+ function wrap(innerFn, outerFn, self, tryLocsList) {
41
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
42
+ generator = Object.create(protoGenerator.prototype),
43
+ context = new Context(tryLocsList || []);
44
+ return generator._invoke = function (innerFn, self, context) {
45
+ var state = "suspendedStart";
46
+ return function (method, arg) {
47
+ if ("executing" === state) throw new Error("Generator is already running");
48
+
49
+ if ("completed" === state) {
50
+ if ("throw" === method) throw arg;
51
+ return doneResult();
52
+ }
53
+
54
+ for (context.method = method, context.arg = arg;;) {
55
+ var delegate = context.delegate;
56
+
57
+ if (delegate) {
58
+ var delegateResult = maybeInvokeDelegate(delegate, context);
59
+
60
+ if (delegateResult) {
61
+ if (delegateResult === ContinueSentinel) continue;
62
+ return delegateResult;
63
+ }
64
+ }
65
+
66
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
67
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
68
+ context.dispatchException(context.arg);
69
+ } else "return" === context.method && context.abrupt("return", context.arg);
70
+ state = "executing";
71
+ var record = tryCatch(innerFn, self, context);
72
+
73
+ if ("normal" === record.type) {
74
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
75
+ return {
76
+ value: record.arg,
77
+ done: context.done
78
+ };
79
+ }
80
+
81
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
82
+ }
83
+ };
84
+ }(innerFn, self, context), generator;
85
+ }
86
+
87
+ function tryCatch(fn, obj, arg) {
88
+ try {
89
+ return {
90
+ type: "normal",
91
+ arg: fn.call(obj, arg)
92
+ };
93
+ } catch (err) {
94
+ return {
95
+ type: "throw",
96
+ arg: err
97
+ };
98
+ }
99
+ }
100
+
101
+ exports.wrap = wrap;
102
+ var ContinueSentinel = {};
103
+
104
+ function Generator() {}
105
+
106
+ function GeneratorFunction() {}
107
+
108
+ function GeneratorFunctionPrototype() {}
109
+
110
+ var IteratorPrototype = {};
111
+ define(IteratorPrototype, iteratorSymbol, function () {
112
+ return this;
113
+ });
114
+ var getProto = Object.getPrototypeOf,
115
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
116
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
117
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
118
+
119
+ function defineIteratorMethods(prototype) {
120
+ ["next", "throw", "return"].forEach(function (method) {
121
+ define(prototype, method, function (arg) {
122
+ return this._invoke(method, arg);
123
+ });
124
+ });
125
+ }
126
+
127
+ function AsyncIterator(generator, PromiseImpl) {
128
+ function invoke(method, arg, resolve, reject) {
129
+ var record = tryCatch(generator[method], generator, arg);
130
+
131
+ if ("throw" !== record.type) {
132
+ var result = record.arg,
133
+ value = result.value;
134
+ return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
135
+ invoke("next", value, resolve, reject);
136
+ }, function (err) {
137
+ invoke("throw", err, resolve, reject);
138
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
139
+ result.value = unwrapped, resolve(result);
140
+ }, function (error) {
141
+ return invoke("throw", error, resolve, reject);
142
+ });
143
+ }
144
+
145
+ reject(record.arg);
146
+ }
147
+
148
+ var previousPromise;
149
+
150
+ this._invoke = function (method, arg) {
151
+ function callInvokeWithMethodAndArg() {
152
+ return new PromiseImpl(function (resolve, reject) {
153
+ invoke(method, arg, resolve, reject);
154
+ });
155
+ }
156
+
157
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
158
+ };
159
+ }
160
+
161
+ function maybeInvokeDelegate(delegate, context) {
162
+ var method = delegate.iterator[context.method];
163
+
164
+ if (undefined === method) {
165
+ if (context.delegate = null, "throw" === context.method) {
166
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
167
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
168
+ }
169
+
170
+ return ContinueSentinel;
171
+ }
172
+
173
+ var record = tryCatch(method, delegate.iterator, context.arg);
174
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
175
+ var info = record.arg;
176
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
177
+ }
178
+
179
+ function pushTryEntry(locs) {
180
+ var entry = {
181
+ tryLoc: locs[0]
182
+ };
183
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
184
+ }
185
+
186
+ function resetTryEntry(entry) {
187
+ var record = entry.completion || {};
188
+ record.type = "normal", delete record.arg, entry.completion = record;
189
+ }
190
+
191
+ function Context(tryLocsList) {
192
+ this.tryEntries = [{
193
+ tryLoc: "root"
194
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
195
+ }
196
+
197
+ function values(iterable) {
198
+ if (iterable) {
199
+ var iteratorMethod = iterable[iteratorSymbol];
200
+ if (iteratorMethod) return iteratorMethod.call(iterable);
201
+ if ("function" == typeof iterable.next) return iterable;
202
+
203
+ if (!isNaN(iterable.length)) {
204
+ var i = -1,
205
+ next = function next() {
206
+ for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
207
+
208
+ return next.value = undefined, next.done = !0, next;
209
+ };
210
+
211
+ return next.next = next;
212
+ }
213
+ }
214
+
215
+ return {
216
+ next: doneResult
217
+ };
218
+ }
219
+
220
+ function doneResult() {
221
+ return {
222
+ value: undefined,
223
+ done: !0
224
+ };
225
+ }
226
+
227
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
228
+ var ctor = "function" == typeof genFun && genFun.constructor;
229
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
230
+ }, exports.mark = function (genFun) {
231
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
232
+ }, exports.awrap = function (arg) {
233
+ return {
234
+ __await: arg
235
+ };
236
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
237
+ return this;
238
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
239
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
240
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
241
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
242
+ return result.done ? result.value : iter.next();
243
+ });
244
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
245
+ return this;
246
+ }), define(Gp, "toString", function () {
247
+ return "[object Generator]";
248
+ }), exports.keys = function (object) {
249
+ var keys = [];
250
+
251
+ for (var key in object) keys.push(key);
252
+
253
+ return keys.reverse(), function next() {
254
+ for (; keys.length;) {
255
+ var key = keys.pop();
256
+ if (key in object) return next.value = key, next.done = !1, next;
257
+ }
258
+
259
+ return next.done = !0, next;
260
+ };
261
+ }, exports.values = values, Context.prototype = {
262
+ constructor: Context,
263
+ reset: function (skipTempReset) {
264
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
265
+ },
266
+ stop: function () {
267
+ this.done = !0;
268
+ var rootRecord = this.tryEntries[0].completion;
269
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
270
+ return this.rval;
271
+ },
272
+ dispatchException: function (exception) {
273
+ if (this.done) throw exception;
274
+ var context = this;
275
+
276
+ function handle(loc, caught) {
277
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
278
+ }
279
+
280
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
281
+ var entry = this.tryEntries[i],
282
+ record = entry.completion;
283
+ if ("root" === entry.tryLoc) return handle("end");
284
+
285
+ if (entry.tryLoc <= this.prev) {
286
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
287
+ hasFinally = hasOwn.call(entry, "finallyLoc");
288
+
289
+ if (hasCatch && hasFinally) {
290
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
291
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
292
+ } else if (hasCatch) {
293
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
294
+ } else {
295
+ if (!hasFinally) throw new Error("try statement without catch or finally");
296
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
297
+ }
298
+ }
299
+ }
300
+ },
301
+ abrupt: function (type, arg) {
302
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
303
+ var entry = this.tryEntries[i];
304
+
305
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
306
+ var finallyEntry = entry;
307
+ break;
308
+ }
309
+ }
310
+
311
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
312
+ var record = finallyEntry ? finallyEntry.completion : {};
313
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
314
+ },
315
+ complete: function (record, afterLoc) {
316
+ if ("throw" === record.type) throw record.arg;
317
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
318
+ },
319
+ finish: function (finallyLoc) {
320
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
321
+ var entry = this.tryEntries[i];
322
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
323
+ }
324
+ },
325
+ catch: function (tryLoc) {
326
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
327
+ var entry = this.tryEntries[i];
328
+
329
+ if (entry.tryLoc === tryLoc) {
330
+ var record = entry.completion;
331
+
332
+ if ("throw" === record.type) {
333
+ var thrown = record.arg;
334
+ resetTryEntry(entry);
335
+ }
336
+
337
+ return thrown;
338
+ }
339
+ }
340
+
341
+ throw new Error("illegal catch attempt");
342
+ },
343
+ delegateYield: function (iterable, resultName, nextLoc) {
344
+ return this.delegate = {
345
+ iterator: values(iterable),
346
+ resultName: resultName,
347
+ nextLoc: nextLoc
348
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
349
+ }
350
+ }, exports;
351
+ }
352
+
8
353
  function _wrapRegExp() {
9
354
  _wrapRegExp = function (re, groups) {
10
355
  return new BabelRegExp(re, void 0, groups);
@@ -23,7 +368,13 @@ function _wrapRegExp() {
23
368
  var g = _groups.get(re);
24
369
 
25
370
  return Object.keys(g).reduce(function (groups, name) {
26
- return groups[name] = result[g[name]], groups;
371
+ var i = g[name];
372
+ if ("number" == typeof i) groups[name] = result[i];else {
373
+ for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
374
+
375
+ groups[name] = result[i[k]];
376
+ }
377
+ return groups;
27
378
  }, Object.create(null));
28
379
  }
29
380
 
@@ -90,7 +441,7 @@ function _asyncToGenerator(fn) {
90
441
  }
91
442
 
92
443
  function _extends() {
93
- _extends = Object.assign || function (target) {
444
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
94
445
  for (var i = 1; i < arguments.length; i++) {
95
446
  var source = arguments[i];
96
447
 
@@ -103,7 +454,6 @@ function _extends() {
103
454
 
104
455
  return target;
105
456
  };
106
-
107
457
  return _extends.apply(this, arguments);
108
458
  }
109
459
 
@@ -133,18 +483,17 @@ function _inheritsLoose(subClass, superClass) {
133
483
  }
134
484
 
135
485
  function _getPrototypeOf(o) {
136
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
486
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
137
487
  return o.__proto__ || Object.getPrototypeOf(o);
138
488
  };
139
489
  return _getPrototypeOf(o);
140
490
  }
141
491
 
142
492
  function _setPrototypeOf(o, p) {
143
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
493
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
144
494
  o.__proto__ = p;
145
495
  return o;
146
496
  };
147
-
148
497
  return _setPrototypeOf(o, p);
149
498
  }
150
499
 
@@ -163,7 +512,7 @@ function _isNativeReflectConstruct() {
163
512
 
164
513
  function _construct(Parent, args, Class) {
165
514
  if (_isNativeReflectConstruct()) {
166
- _construct = Reflect.construct;
515
+ _construct = Reflect.construct.bind();
167
516
  } else {
168
517
  _construct = function _construct(Parent, args, Class) {
169
518
  var a = [null];
@@ -269,766 +618,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
269
618
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
270
619
  }
271
620
 
272
- function createCommonjsModule(fn, module) {
273
- return module = { exports: {} }, fn(module, module.exports), module.exports;
274
- }
275
-
276
- var runtime_1 = createCommonjsModule(function (module) {
277
- /**
278
- * Copyright (c) 2014-present, Facebook, Inc.
279
- *
280
- * This source code is licensed under the MIT license found in the
281
- * LICENSE file in the root directory of this source tree.
282
- */
283
-
284
- var runtime = (function (exports) {
285
-
286
- var Op = Object.prototype;
287
- var hasOwn = Op.hasOwnProperty;
288
- var undefined$1; // More compressible than void 0.
289
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
290
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
291
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
292
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
293
-
294
- function define(obj, key, value) {
295
- Object.defineProperty(obj, key, {
296
- value: value,
297
- enumerable: true,
298
- configurable: true,
299
- writable: true
300
- });
301
- return obj[key];
302
- }
303
- try {
304
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
305
- define({}, "");
306
- } catch (err) {
307
- define = function(obj, key, value) {
308
- return obj[key] = value;
309
- };
310
- }
311
-
312
- function wrap(innerFn, outerFn, self, tryLocsList) {
313
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
314
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
315
- var generator = Object.create(protoGenerator.prototype);
316
- var context = new Context(tryLocsList || []);
317
-
318
- // The ._invoke method unifies the implementations of the .next,
319
- // .throw, and .return methods.
320
- generator._invoke = makeInvokeMethod(innerFn, self, context);
321
-
322
- return generator;
323
- }
324
- exports.wrap = wrap;
325
-
326
- // Try/catch helper to minimize deoptimizations. Returns a completion
327
- // record like context.tryEntries[i].completion. This interface could
328
- // have been (and was previously) designed to take a closure to be
329
- // invoked without arguments, but in all the cases we care about we
330
- // already have an existing method we want to call, so there's no need
331
- // to create a new function object. We can even get away with assuming
332
- // the method takes exactly one argument, since that happens to be true
333
- // in every case, so we don't have to touch the arguments object. The
334
- // only additional allocation required is the completion record, which
335
- // has a stable shape and so hopefully should be cheap to allocate.
336
- function tryCatch(fn, obj, arg) {
337
- try {
338
- return { type: "normal", arg: fn.call(obj, arg) };
339
- } catch (err) {
340
- return { type: "throw", arg: err };
341
- }
342
- }
343
-
344
- var GenStateSuspendedStart = "suspendedStart";
345
- var GenStateSuspendedYield = "suspendedYield";
346
- var GenStateExecuting = "executing";
347
- var GenStateCompleted = "completed";
348
-
349
- // Returning this object from the innerFn has the same effect as
350
- // breaking out of the dispatch switch statement.
351
- var ContinueSentinel = {};
352
-
353
- // Dummy constructor functions that we use as the .constructor and
354
- // .constructor.prototype properties for functions that return Generator
355
- // objects. For full spec compliance, you may wish to configure your
356
- // minifier not to mangle the names of these two functions.
357
- function Generator() {}
358
- function GeneratorFunction() {}
359
- function GeneratorFunctionPrototype() {}
360
-
361
- // This is a polyfill for %IteratorPrototype% for environments that
362
- // don't natively support it.
363
- var IteratorPrototype = {};
364
- define(IteratorPrototype, iteratorSymbol, function () {
365
- return this;
366
- });
367
-
368
- var getProto = Object.getPrototypeOf;
369
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
370
- if (NativeIteratorPrototype &&
371
- NativeIteratorPrototype !== Op &&
372
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
373
- // This environment has a native %IteratorPrototype%; use it instead
374
- // of the polyfill.
375
- IteratorPrototype = NativeIteratorPrototype;
376
- }
377
-
378
- var Gp = GeneratorFunctionPrototype.prototype =
379
- Generator.prototype = Object.create(IteratorPrototype);
380
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
381
- define(Gp, "constructor", GeneratorFunctionPrototype);
382
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
383
- GeneratorFunction.displayName = define(
384
- GeneratorFunctionPrototype,
385
- toStringTagSymbol,
386
- "GeneratorFunction"
387
- );
388
-
389
- // Helper for defining the .next, .throw, and .return methods of the
390
- // Iterator interface in terms of a single ._invoke method.
391
- function defineIteratorMethods(prototype) {
392
- ["next", "throw", "return"].forEach(function(method) {
393
- define(prototype, method, function(arg) {
394
- return this._invoke(method, arg);
395
- });
396
- });
397
- }
398
-
399
- exports.isGeneratorFunction = function(genFun) {
400
- var ctor = typeof genFun === "function" && genFun.constructor;
401
- return ctor
402
- ? ctor === GeneratorFunction ||
403
- // For the native GeneratorFunction constructor, the best we can
404
- // do is to check its .name property.
405
- (ctor.displayName || ctor.name) === "GeneratorFunction"
406
- : false;
407
- };
408
-
409
- exports.mark = function(genFun) {
410
- if (Object.setPrototypeOf) {
411
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
412
- } else {
413
- genFun.__proto__ = GeneratorFunctionPrototype;
414
- define(genFun, toStringTagSymbol, "GeneratorFunction");
415
- }
416
- genFun.prototype = Object.create(Gp);
417
- return genFun;
418
- };
419
-
420
- // Within the body of any async function, `await x` is transformed to
421
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
422
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
423
- // meant to be awaited.
424
- exports.awrap = function(arg) {
425
- return { __await: arg };
426
- };
427
-
428
- function AsyncIterator(generator, PromiseImpl) {
429
- function invoke(method, arg, resolve, reject) {
430
- var record = tryCatch(generator[method], generator, arg);
431
- if (record.type === "throw") {
432
- reject(record.arg);
433
- } else {
434
- var result = record.arg;
435
- var value = result.value;
436
- if (value &&
437
- typeof value === "object" &&
438
- hasOwn.call(value, "__await")) {
439
- return PromiseImpl.resolve(value.__await).then(function(value) {
440
- invoke("next", value, resolve, reject);
441
- }, function(err) {
442
- invoke("throw", err, resolve, reject);
443
- });
444
- }
445
-
446
- return PromiseImpl.resolve(value).then(function(unwrapped) {
447
- // When a yielded Promise is resolved, its final value becomes
448
- // the .value of the Promise<{value,done}> result for the
449
- // current iteration.
450
- result.value = unwrapped;
451
- resolve(result);
452
- }, function(error) {
453
- // If a rejected Promise was yielded, throw the rejection back
454
- // into the async generator function so it can be handled there.
455
- return invoke("throw", error, resolve, reject);
456
- });
457
- }
458
- }
459
-
460
- var previousPromise;
461
-
462
- function enqueue(method, arg) {
463
- function callInvokeWithMethodAndArg() {
464
- return new PromiseImpl(function(resolve, reject) {
465
- invoke(method, arg, resolve, reject);
466
- });
467
- }
468
-
469
- return previousPromise =
470
- // If enqueue has been called before, then we want to wait until
471
- // all previous Promises have been resolved before calling invoke,
472
- // so that results are always delivered in the correct order. If
473
- // enqueue has not been called before, then it is important to
474
- // call invoke immediately, without waiting on a callback to fire,
475
- // so that the async generator function has the opportunity to do
476
- // any necessary setup in a predictable way. This predictability
477
- // is why the Promise constructor synchronously invokes its
478
- // executor callback, and why async functions synchronously
479
- // execute code before the first await. Since we implement simple
480
- // async functions in terms of async generators, it is especially
481
- // important to get this right, even though it requires care.
482
- previousPromise ? previousPromise.then(
483
- callInvokeWithMethodAndArg,
484
- // Avoid propagating failures to Promises returned by later
485
- // invocations of the iterator.
486
- callInvokeWithMethodAndArg
487
- ) : callInvokeWithMethodAndArg();
488
- }
489
-
490
- // Define the unified helper method that is used to implement .next,
491
- // .throw, and .return (see defineIteratorMethods).
492
- this._invoke = enqueue;
493
- }
494
-
495
- defineIteratorMethods(AsyncIterator.prototype);
496
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
497
- return this;
498
- });
499
- exports.AsyncIterator = AsyncIterator;
500
-
501
- // Note that simple async functions are implemented on top of
502
- // AsyncIterator objects; they just return a Promise for the value of
503
- // the final result produced by the iterator.
504
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
505
- if (PromiseImpl === void 0) PromiseImpl = Promise;
506
-
507
- var iter = new AsyncIterator(
508
- wrap(innerFn, outerFn, self, tryLocsList),
509
- PromiseImpl
510
- );
511
-
512
- return exports.isGeneratorFunction(outerFn)
513
- ? iter // If outerFn is a generator, return the full iterator.
514
- : iter.next().then(function(result) {
515
- return result.done ? result.value : iter.next();
516
- });
517
- };
518
-
519
- function makeInvokeMethod(innerFn, self, context) {
520
- var state = GenStateSuspendedStart;
521
-
522
- return function invoke(method, arg) {
523
- if (state === GenStateExecuting) {
524
- throw new Error("Generator is already running");
525
- }
526
-
527
- if (state === GenStateCompleted) {
528
- if (method === "throw") {
529
- throw arg;
530
- }
531
-
532
- // Be forgiving, per 25.3.3.3.3 of the spec:
533
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
534
- return doneResult();
535
- }
536
-
537
- context.method = method;
538
- context.arg = arg;
539
-
540
- while (true) {
541
- var delegate = context.delegate;
542
- if (delegate) {
543
- var delegateResult = maybeInvokeDelegate(delegate, context);
544
- if (delegateResult) {
545
- if (delegateResult === ContinueSentinel) continue;
546
- return delegateResult;
547
- }
548
- }
549
-
550
- if (context.method === "next") {
551
- // Setting context._sent for legacy support of Babel's
552
- // function.sent implementation.
553
- context.sent = context._sent = context.arg;
554
-
555
- } else if (context.method === "throw") {
556
- if (state === GenStateSuspendedStart) {
557
- state = GenStateCompleted;
558
- throw context.arg;
559
- }
560
-
561
- context.dispatchException(context.arg);
562
-
563
- } else if (context.method === "return") {
564
- context.abrupt("return", context.arg);
565
- }
566
-
567
- state = GenStateExecuting;
568
-
569
- var record = tryCatch(innerFn, self, context);
570
- if (record.type === "normal") {
571
- // If an exception is thrown from innerFn, we leave state ===
572
- // GenStateExecuting and loop back for another invocation.
573
- state = context.done
574
- ? GenStateCompleted
575
- : GenStateSuspendedYield;
576
-
577
- if (record.arg === ContinueSentinel) {
578
- continue;
579
- }
580
-
581
- return {
582
- value: record.arg,
583
- done: context.done
584
- };
585
-
586
- } else if (record.type === "throw") {
587
- state = GenStateCompleted;
588
- // Dispatch the exception by looping back around to the
589
- // context.dispatchException(context.arg) call above.
590
- context.method = "throw";
591
- context.arg = record.arg;
592
- }
593
- }
594
- };
595
- }
596
-
597
- // Call delegate.iterator[context.method](context.arg) and handle the
598
- // result, either by returning a { value, done } result from the
599
- // delegate iterator, or by modifying context.method and context.arg,
600
- // setting context.delegate to null, and returning the ContinueSentinel.
601
- function maybeInvokeDelegate(delegate, context) {
602
- var method = delegate.iterator[context.method];
603
- if (method === undefined$1) {
604
- // A .throw or .return when the delegate iterator has no .throw
605
- // method always terminates the yield* loop.
606
- context.delegate = null;
607
-
608
- if (context.method === "throw") {
609
- // Note: ["return"] must be used for ES3 parsing compatibility.
610
- if (delegate.iterator["return"]) {
611
- // If the delegate iterator has a return method, give it a
612
- // chance to clean up.
613
- context.method = "return";
614
- context.arg = undefined$1;
615
- maybeInvokeDelegate(delegate, context);
616
-
617
- if (context.method === "throw") {
618
- // If maybeInvokeDelegate(context) changed context.method from
619
- // "return" to "throw", let that override the TypeError below.
620
- return ContinueSentinel;
621
- }
622
- }
623
-
624
- context.method = "throw";
625
- context.arg = new TypeError(
626
- "The iterator does not provide a 'throw' method");
627
- }
628
-
629
- return ContinueSentinel;
630
- }
631
-
632
- var record = tryCatch(method, delegate.iterator, context.arg);
633
-
634
- if (record.type === "throw") {
635
- context.method = "throw";
636
- context.arg = record.arg;
637
- context.delegate = null;
638
- return ContinueSentinel;
639
- }
640
-
641
- var info = record.arg;
642
-
643
- if (! info) {
644
- context.method = "throw";
645
- context.arg = new TypeError("iterator result is not an object");
646
- context.delegate = null;
647
- return ContinueSentinel;
648
- }
649
-
650
- if (info.done) {
651
- // Assign the result of the finished delegate to the temporary
652
- // variable specified by delegate.resultName (see delegateYield).
653
- context[delegate.resultName] = info.value;
654
-
655
- // Resume execution at the desired location (see delegateYield).
656
- context.next = delegate.nextLoc;
657
-
658
- // If context.method was "throw" but the delegate handled the
659
- // exception, let the outer generator proceed normally. If
660
- // context.method was "next", forget context.arg since it has been
661
- // "consumed" by the delegate iterator. If context.method was
662
- // "return", allow the original .return call to continue in the
663
- // outer generator.
664
- if (context.method !== "return") {
665
- context.method = "next";
666
- context.arg = undefined$1;
667
- }
668
-
669
- } else {
670
- // Re-yield the result returned by the delegate method.
671
- return info;
672
- }
673
-
674
- // The delegate iterator is finished, so forget it and continue with
675
- // the outer generator.
676
- context.delegate = null;
677
- return ContinueSentinel;
678
- }
679
-
680
- // Define Generator.prototype.{next,throw,return} in terms of the
681
- // unified ._invoke helper method.
682
- defineIteratorMethods(Gp);
683
-
684
- define(Gp, toStringTagSymbol, "Generator");
685
-
686
- // A Generator should always return itself as the iterator object when the
687
- // @@iterator function is called on it. Some browsers' implementations of the
688
- // iterator prototype chain incorrectly implement this, causing the Generator
689
- // object to not be returned from this call. This ensures that doesn't happen.
690
- // See https://github.com/facebook/regenerator/issues/274 for more details.
691
- define(Gp, iteratorSymbol, function() {
692
- return this;
693
- });
694
-
695
- define(Gp, "toString", function() {
696
- return "[object Generator]";
697
- });
698
-
699
- function pushTryEntry(locs) {
700
- var entry = { tryLoc: locs[0] };
701
-
702
- if (1 in locs) {
703
- entry.catchLoc = locs[1];
704
- }
705
-
706
- if (2 in locs) {
707
- entry.finallyLoc = locs[2];
708
- entry.afterLoc = locs[3];
709
- }
710
-
711
- this.tryEntries.push(entry);
712
- }
713
-
714
- function resetTryEntry(entry) {
715
- var record = entry.completion || {};
716
- record.type = "normal";
717
- delete record.arg;
718
- entry.completion = record;
719
- }
720
-
721
- function Context(tryLocsList) {
722
- // The root entry object (effectively a try statement without a catch
723
- // or a finally block) gives us a place to store values thrown from
724
- // locations where there is no enclosing try statement.
725
- this.tryEntries = [{ tryLoc: "root" }];
726
- tryLocsList.forEach(pushTryEntry, this);
727
- this.reset(true);
728
- }
729
-
730
- exports.keys = function(object) {
731
- var keys = [];
732
- for (var key in object) {
733
- keys.push(key);
734
- }
735
- keys.reverse();
736
-
737
- // Rather than returning an object with a next method, we keep
738
- // things simple and return the next function itself.
739
- return function next() {
740
- while (keys.length) {
741
- var key = keys.pop();
742
- if (key in object) {
743
- next.value = key;
744
- next.done = false;
745
- return next;
746
- }
747
- }
748
-
749
- // To avoid creating an additional object, we just hang the .value
750
- // and .done properties off the next function object itself. This
751
- // also ensures that the minifier will not anonymize the function.
752
- next.done = true;
753
- return next;
754
- };
755
- };
756
-
757
- function values(iterable) {
758
- if (iterable) {
759
- var iteratorMethod = iterable[iteratorSymbol];
760
- if (iteratorMethod) {
761
- return iteratorMethod.call(iterable);
762
- }
763
-
764
- if (typeof iterable.next === "function") {
765
- return iterable;
766
- }
767
-
768
- if (!isNaN(iterable.length)) {
769
- var i = -1, next = function next() {
770
- while (++i < iterable.length) {
771
- if (hasOwn.call(iterable, i)) {
772
- next.value = iterable[i];
773
- next.done = false;
774
- return next;
775
- }
776
- }
777
-
778
- next.value = undefined$1;
779
- next.done = true;
780
-
781
- return next;
782
- };
783
-
784
- return next.next = next;
785
- }
786
- }
787
-
788
- // Return an iterator with no values.
789
- return { next: doneResult };
790
- }
791
- exports.values = values;
792
-
793
- function doneResult() {
794
- return { value: undefined$1, done: true };
795
- }
796
-
797
- Context.prototype = {
798
- constructor: Context,
799
-
800
- reset: function(skipTempReset) {
801
- this.prev = 0;
802
- this.next = 0;
803
- // Resetting context._sent for legacy support of Babel's
804
- // function.sent implementation.
805
- this.sent = this._sent = undefined$1;
806
- this.done = false;
807
- this.delegate = null;
808
-
809
- this.method = "next";
810
- this.arg = undefined$1;
811
-
812
- this.tryEntries.forEach(resetTryEntry);
813
-
814
- if (!skipTempReset) {
815
- for (var name in this) {
816
- // Not sure about the optimal order of these conditions:
817
- if (name.charAt(0) === "t" &&
818
- hasOwn.call(this, name) &&
819
- !isNaN(+name.slice(1))) {
820
- this[name] = undefined$1;
821
- }
822
- }
823
- }
824
- },
825
-
826
- stop: function() {
827
- this.done = true;
828
-
829
- var rootEntry = this.tryEntries[0];
830
- var rootRecord = rootEntry.completion;
831
- if (rootRecord.type === "throw") {
832
- throw rootRecord.arg;
833
- }
834
-
835
- return this.rval;
836
- },
837
-
838
- dispatchException: function(exception) {
839
- if (this.done) {
840
- throw exception;
841
- }
842
-
843
- var context = this;
844
- function handle(loc, caught) {
845
- record.type = "throw";
846
- record.arg = exception;
847
- context.next = loc;
848
-
849
- if (caught) {
850
- // If the dispatched exception was caught by a catch block,
851
- // then let that catch block handle the exception normally.
852
- context.method = "next";
853
- context.arg = undefined$1;
854
- }
855
-
856
- return !! caught;
857
- }
858
-
859
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
860
- var entry = this.tryEntries[i];
861
- var record = entry.completion;
862
-
863
- if (entry.tryLoc === "root") {
864
- // Exception thrown outside of any try block that could handle
865
- // it, so set the completion value of the entire function to
866
- // throw the exception.
867
- return handle("end");
868
- }
869
-
870
- if (entry.tryLoc <= this.prev) {
871
- var hasCatch = hasOwn.call(entry, "catchLoc");
872
- var hasFinally = hasOwn.call(entry, "finallyLoc");
873
-
874
- if (hasCatch && hasFinally) {
875
- if (this.prev < entry.catchLoc) {
876
- return handle(entry.catchLoc, true);
877
- } else if (this.prev < entry.finallyLoc) {
878
- return handle(entry.finallyLoc);
879
- }
880
-
881
- } else if (hasCatch) {
882
- if (this.prev < entry.catchLoc) {
883
- return handle(entry.catchLoc, true);
884
- }
885
-
886
- } else if (hasFinally) {
887
- if (this.prev < entry.finallyLoc) {
888
- return handle(entry.finallyLoc);
889
- }
890
-
891
- } else {
892
- throw new Error("try statement without catch or finally");
893
- }
894
- }
895
- }
896
- },
897
-
898
- abrupt: function(type, arg) {
899
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
900
- var entry = this.tryEntries[i];
901
- if (entry.tryLoc <= this.prev &&
902
- hasOwn.call(entry, "finallyLoc") &&
903
- this.prev < entry.finallyLoc) {
904
- var finallyEntry = entry;
905
- break;
906
- }
907
- }
908
-
909
- if (finallyEntry &&
910
- (type === "break" ||
911
- type === "continue") &&
912
- finallyEntry.tryLoc <= arg &&
913
- arg <= finallyEntry.finallyLoc) {
914
- // Ignore the finally entry if control is not jumping to a
915
- // location outside the try/catch block.
916
- finallyEntry = null;
917
- }
918
-
919
- var record = finallyEntry ? finallyEntry.completion : {};
920
- record.type = type;
921
- record.arg = arg;
922
-
923
- if (finallyEntry) {
924
- this.method = "next";
925
- this.next = finallyEntry.finallyLoc;
926
- return ContinueSentinel;
927
- }
928
-
929
- return this.complete(record);
930
- },
931
-
932
- complete: function(record, afterLoc) {
933
- if (record.type === "throw") {
934
- throw record.arg;
935
- }
936
-
937
- if (record.type === "break" ||
938
- record.type === "continue") {
939
- this.next = record.arg;
940
- } else if (record.type === "return") {
941
- this.rval = this.arg = record.arg;
942
- this.method = "return";
943
- this.next = "end";
944
- } else if (record.type === "normal" && afterLoc) {
945
- this.next = afterLoc;
946
- }
947
-
948
- return ContinueSentinel;
949
- },
950
-
951
- finish: function(finallyLoc) {
952
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
953
- var entry = this.tryEntries[i];
954
- if (entry.finallyLoc === finallyLoc) {
955
- this.complete(entry.completion, entry.afterLoc);
956
- resetTryEntry(entry);
957
- return ContinueSentinel;
958
- }
959
- }
960
- },
961
-
962
- "catch": function(tryLoc) {
963
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
964
- var entry = this.tryEntries[i];
965
- if (entry.tryLoc === tryLoc) {
966
- var record = entry.completion;
967
- if (record.type === "throw") {
968
- var thrown = record.arg;
969
- resetTryEntry(entry);
970
- }
971
- return thrown;
972
- }
973
- }
974
-
975
- // The context.catch method must only be called with a location
976
- // argument that corresponds to a known catch block.
977
- throw new Error("illegal catch attempt");
978
- },
979
-
980
- delegateYield: function(iterable, resultName, nextLoc) {
981
- this.delegate = {
982
- iterator: values(iterable),
983
- resultName: resultName,
984
- nextLoc: nextLoc
985
- };
986
-
987
- if (this.method === "next") {
988
- // Deliberately forget the last sent value so that we don't
989
- // accidentally pass it on to the delegate.
990
- this.arg = undefined$1;
991
- }
992
-
993
- return ContinueSentinel;
994
- }
995
- };
996
-
997
- // Regardless of whether this script is executing as a CommonJS module
998
- // or not, return the runtime object so that we can declare the variable
999
- // regeneratorRuntime in the outer scope, which allows this module to be
1000
- // injected easily by `bin/regenerator --include-runtime script.js`.
1001
- return exports;
1002
-
1003
- }(
1004
- // If this script is executing as a CommonJS module, use module.exports
1005
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1006
- // object. Either way, the resulting object will be used to initialize
1007
- // the regeneratorRuntime variable at the top of this file.
1008
- module.exports
1009
- ));
1010
-
1011
- try {
1012
- regeneratorRuntime = runtime;
1013
- } catch (accidentalStrictMode) {
1014
- // This module should not be running in strict mode, so the above
1015
- // assignment should always work unless something is misconfigured. Just
1016
- // in case runtime.js accidentally runs in strict mode, in modern engines
1017
- // we can explicitly access globalThis. In older engines we can escape
1018
- // strict mode using a global Function call. This could conceivably fail
1019
- // if a Content Security Policy forbids using Function, but in that case
1020
- // the proper solution is to fix the accidental strict mode problem. If
1021
- // you've misconfigured your bundler to force strict mode and applied a
1022
- // CSP to forbid Function, and you're not willing to fix either of those
1023
- // problems, please detail your unique predicament in a GitHub issue.
1024
- if (typeof globalThis === "object") {
1025
- globalThis.regeneratorRuntime = runtime;
1026
- } else {
1027
- Function("r", "regeneratorRuntime = r")(runtime);
1028
- }
1029
- }
1030
- });
1031
-
1032
621
  var _personalMetaToPrefix;
1033
622
  var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[MetadataCategory.Personal] = 'you', _personalMetaToPrefix[MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
1034
623
  /**
@@ -1038,7 +627,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[Me
1038
627
  */
1039
628
 
1040
629
  function identificationToPersonalInformations(data, category) {
1041
- var _data$;
630
+ var _data;
1042
631
 
1043
632
  var prefix = personalMetaToPrefix[category];
1044
633
  return {
@@ -1048,7 +637,7 @@ function identificationToPersonalInformations(data, category) {
1048
637
  name: data[prefix + "Name"],
1049
638
  phone: data[prefix + "Phone"],
1050
639
  zip: data[prefix + "Zip"],
1051
- hid: (_data$ = data[prefix + "HID"]) != null ? _data$ : data[prefix + "ID"],
640
+ hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
1052
641
  pharmacy: data[prefix + "Pharmacy"],
1053
642
  address: data[prefix + "Address"]
1054
643
  };
@@ -1257,9 +846,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
1257
846
  */
1258
847
 
1259
848
  function _filterTriggeredAnsweredWithKind() {
1260
- _filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(workflowData, kind) {
849
+ _filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
1261
850
  var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
1262
- return runtime_1.wrap(function _callee$(_context) {
851
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1263
852
  while (1) {
1264
853
  switch (_context.prev = _context.next) {
1265
854
  case 0:
@@ -1303,9 +892,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
1303
892
  }
1304
893
 
1305
894
  function _getWorkflowDataByCategory() {
1306
- _getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(workflowData, category) {
895
+ _getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
1307
896
  var flattenedAnswers, triggeredQuestions, fields;
1308
- return runtime_1.wrap(function _callee2$(_context2) {
897
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1309
898
  while (1) {
1310
899
  switch (_context2.prev = _context2.next) {
1311
900
  case 0:
@@ -1376,8 +965,8 @@ function getImagesFromIndexDb(_x5) {
1376
965
  */
1377
966
 
1378
967
  function _getImagesFromIndexDb() {
1379
- _getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(answer) {
1380
- return runtime_1.wrap(function _callee3$(_context3) {
968
+ _getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
969
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1381
970
  while (1) {
1382
971
  switch (_context3.prev = _context3.next) {
1383
972
  case 0:
@@ -1453,9 +1042,9 @@ function populateWorkflowField(_x6, _x7) {
1453
1042
 
1454
1043
 
1455
1044
  function _populateWorkflowField() {
1456
- _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(question, answerValue) {
1045
+ _populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
1457
1046
  var answer, displayedAnswer;
1458
- return runtime_1.wrap(function _callee4$(_context4) {
1047
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1459
1048
  while (1) {
1460
1049
  switch (_context4.prev = _context4.next) {
1461
1050
  case 0:
@@ -1648,10 +1237,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6, _x7, _x8) {
1648
1237
  */
1649
1238
 
1650
1239
  function _registerPatient() {
1651
- _registerPatient = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
1240
+ _registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA, indexSearch, onProgress) {
1652
1241
  var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, stepsTotalNum, currentStep, _ret;
1653
1242
 
1654
- return runtime_1.wrap(function _callee4$(_context4) {
1243
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
1655
1244
  while (1) {
1656
1245
  switch (_context4.prev = _context4.next) {
1657
1246
  case 0:
@@ -1674,11 +1263,11 @@ function _registerPatient() {
1674
1263
  }
1675
1264
 
1676
1265
  _context4.prev = 9;
1677
- return _context4.delegateYield( /*#__PURE__*/runtime_1.mark(function _callee3() {
1266
+ return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
1678
1267
  var _consultIndex, _identity, _identity2;
1679
1268
 
1680
1269
  var practitioners, grantPromises, consultIndex, consultIndexPromises;
1681
- return runtime_1.wrap(function _callee3$(_context3) {
1270
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1682
1271
  while (1) {
1683
1272
  switch (_context3.prev = _context3.next) {
1684
1273
  case 0:
@@ -1757,7 +1346,6 @@ function _registerPatient() {
1757
1346
  return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
1758
1347
  console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
1759
1348
 
1760
- // if we cannot grant to the admin, then the registration will fail
1761
1349
  errorsThrown.push(err);
1762
1350
  });
1763
1351
 
@@ -1767,15 +1355,14 @@ function _registerPatient() {
1767
1355
  grantPromises = practitioners.filter(function (practitioner) {
1768
1356
  return practitioner.uuid !== practitionerAdmin;
1769
1357
  }).map( /*#__PURE__*/function () {
1770
- var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(practitioner) {
1771
- return runtime_1.wrap(function _callee$(_context) {
1358
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
1359
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1772
1360
  while (1) {
1773
1361
  switch (_context.prev = _context.next) {
1774
1362
  case 0:
1775
1363
  return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
1776
1364
  console.error("Error while granting lockbox to practitioner", err); // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
1777
1365
 
1778
- // Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
1779
1366
  if (retry <= 1) return;
1780
1367
  errorsThrown.push(err);
1781
1368
  }));
@@ -1801,15 +1388,14 @@ function _registerPatient() {
1801
1388
  }], _consultIndex); // the index will identify in which lockbox a consultation resides
1802
1389
 
1803
1390
  consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
1804
- var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(practitioner) {
1805
- return runtime_1.wrap(function _callee2$(_context2) {
1391
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
1392
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1806
1393
  while (1) {
1807
1394
  switch (_context2.prev = _context2.next) {
1808
1395
  case 0:
1809
1396
  return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
1810
1397
  console.error("[SDK: registration] Error while adding to the practitioner's index " + practitioner.uuid, err); // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
1811
1398
 
1812
- // Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
1813
1399
  if (retry <= 1) return;else errorsThrown.push(err);
1814
1400
  }));
1815
1401
 
@@ -1833,7 +1419,6 @@ function _registerPatient() {
1833
1419
  } : undefined)["catch"](function (err) {
1834
1420
  console.error('[SDK: registration] Some errors happened during image upload', err); // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
1835
1421
 
1836
- // Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
1837
1422
  if (retry <= 1) return;else errorsThrown.push(err);
1838
1423
  });
1839
1424
 
@@ -1858,7 +1443,6 @@ function _registerPatient() {
1858
1443
  return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
1859
1444
  console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
1860
1445
 
1861
- /// it's acceptable to continue registration (return old identity)
1862
1446
  if (retry <= 1) return;
1863
1447
  errorsThrown.push(err);
1864
1448
  return identity;
@@ -1885,7 +1469,6 @@ function _registerPatient() {
1885
1469
  return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
1886
1470
  console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
1887
1471
 
1888
- /// it's acceptable to continue registration (return old identity)
1889
1472
  if (retry <= 1) return;
1890
1473
  errorsThrown.push(err);
1891
1474
  return identity;
@@ -1911,7 +1494,6 @@ function _registerPatient() {
1911
1494
  console.error('[SDK: registration] personal information not found or another error occured during search indexing', err);
1912
1495
  if (retry <= 1) return; // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1913
1496
 
1914
- // this statement is to avoid failing the registration due to the failure in search indexing the consult, this practically implements a soft retry
1915
1497
  errorsThrown.push(err);
1916
1498
  });
1917
1499
 
@@ -2010,9 +1592,9 @@ function getOrCreatePatientConsultationUuid(_x9, _x10) {
2010
1592
 
2011
1593
 
2012
1594
  function _getOrCreatePatientConsultationUuid() {
2013
- _getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(consult, oroClient) {
1595
+ _getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
2014
1596
  var payment;
2015
- return runtime_1.wrap(function _callee5$(_context5) {
1597
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2016
1598
  while (1) {
2017
1599
  switch (_context5.prev = _context5.next) {
2018
1600
  case 0:
@@ -2067,9 +1649,9 @@ function getOrCreatePatientLockbox(_x11) {
2067
1649
 
2068
1650
 
2069
1651
  function _getOrCreatePatientLockbox() {
2070
- _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6(oroClient) {
1652
+ _getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
2071
1653
  var grants, lockboxResponse, tokens;
2072
- return runtime_1.wrap(function _callee6$(_context6) {
1654
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2073
1655
  while (1) {
2074
1656
  switch (_context6.prev = _context6.next) {
2075
1657
  case 0:
@@ -2129,8 +1711,8 @@ function storePatientData(_x12, _x13, _x14, _x15, _x16) {
2129
1711
  }
2130
1712
 
2131
1713
  function _storePatientData() {
2132
- _storePatientData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
2133
- return runtime_1.wrap(function _callee7$(_context7) {
1714
+ _storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
1715
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2134
1716
  while (1) {
2135
1717
  switch (_context7.prev = _context7.next) {
2136
1718
  case 0:
@@ -2187,9 +1769,9 @@ function storeImageAliases(_x17, _x18, _x19, _x20, _x21) {
2187
1769
 
2188
1770
 
2189
1771
  function _storeImageAliases() {
2190
- _storeImageAliases = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
1772
+ _storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient, progress) {
2191
1773
  var images, nonNullImages, storedImagesNum, totalImagesNum, promises;
2192
- return runtime_1.wrap(function _callee8$(_context8) {
1774
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2193
1775
  while (1) {
2194
1776
  switch (_context8.prev = _context8.next) {
2195
1777
  case 0:
@@ -2256,8 +1838,8 @@ function extractAndStorePersonalWorkflowData(_x22, _x23, _x24, _x25, _x26) {
2256
1838
  */
2257
1839
 
2258
1840
  function _extractAndStorePersonalWorkflowData() {
2259
- _extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
2260
- return runtime_1.wrap(function _callee9$(_context9) {
1841
+ _extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
1842
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2261
1843
  while (1) {
2262
1844
  switch (_context9.prev = _context9.next) {
2263
1845
  case 0:
@@ -2291,8 +1873,8 @@ function extractPersonalInfoFromWorkflowData(_x27) {
2291
1873
  */
2292
1874
 
2293
1875
  function _extractPersonalInfoFromWorkflowData() {
2294
- _extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(workflow) {
2295
- return runtime_1.wrap(function _callee10$(_context10) {
1876
+ _extractPersonalInfoFromWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(workflow) {
1877
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
2296
1878
  while (1) {
2297
1879
  switch (_context10.prev = _context10.next) {
2298
1880
  case 0:
@@ -2322,10 +1904,10 @@ function buildConsultSearchIndex(_x28, _x29, _x30) {
2322
1904
  }
2323
1905
 
2324
1906
  function _buildConsultSearchIndex() {
2325
- _buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(consult, workflow, oroClient) {
1907
+ _buildConsultSearchIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(consult, workflow, oroClient) {
2326
1908
  var terms, _yield$extractPersona, personalInfoPopulatedWfData, childPersonalInfoPopulatedWfData, otherPersonalInfoPopulatedWfData, personalInfo, childPersonalInfo, otherPersonalInfo;
2327
1909
 
2328
- return runtime_1.wrap(function _callee11$(_context11) {
1910
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
2329
1911
  while (1) {
2330
1912
  switch (_context11.prev = _context11.next) {
2331
1913
  case 0:
@@ -2446,10 +2028,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2) {
2446
2028
  }
2447
2029
 
2448
2030
  function _filterGrantsWithLockboxMetadata() {
2449
- _filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(oroClient, filter) {
2031
+ _filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter) {
2450
2032
  var grants, filteredGrants, _iterator, _step, grant, consultationIdExistsInMetadata;
2451
2033
 
2452
- return runtime_1.wrap(function _callee$(_context) {
2034
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2453
2035
  while (1) {
2454
2036
  switch (_context.prev = _context.next) {
2455
2037
  case 0:
@@ -2522,8 +2104,8 @@ var OroClient = /*#__PURE__*/function () {
2522
2104
  _proto.cleanIndex =
2523
2105
  /*#__PURE__*/
2524
2106
  function () {
2525
- var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee() {
2526
- return runtime_1.wrap(function _callee$(_context) {
2107
+ var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2108
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2527
2109
  while (1) {
2528
2110
  switch (_context.prev = _context.next) {
2529
2111
  case 0:
@@ -2560,9 +2142,9 @@ var OroClient = /*#__PURE__*/function () {
2560
2142
  _proto.signUp =
2561
2143
  /*#__PURE__*/
2562
2144
  function () {
2563
- var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
2145
+ var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
2564
2146
  var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
2565
- return runtime_1.wrap(function _callee2$(_context2) {
2147
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2566
2148
  while (1) {
2567
2149
  switch (_context2.prev = _context2.next) {
2568
2150
  case 0:
@@ -2621,9 +2203,9 @@ var OroClient = /*#__PURE__*/function () {
2621
2203
  _proto.confirmEmail =
2622
2204
  /*#__PURE__*/
2623
2205
  function () {
2624
- var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(accessToken) {
2206
+ var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
2625
2207
  var claims;
2626
- return runtime_1.wrap(function _callee3$(_context3) {
2208
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
2627
2209
  while (1) {
2628
2210
  switch (_context3.prev = _context3.next) {
2629
2211
  case 0:
@@ -2668,9 +2250,9 @@ var OroClient = /*#__PURE__*/function () {
2668
2250
  _proto.signIn =
2669
2251
  /*#__PURE__*/
2670
2252
  function () {
2671
- var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(practiceUuid, email, password, otp) {
2253
+ var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
2672
2254
  var hashedPassword, tokenRequest, userUuid;
2673
- return runtime_1.wrap(function _callee4$(_context4) {
2255
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
2674
2256
  while (1) {
2675
2257
  switch (_context4.prev = _context4.next) {
2676
2258
  case 0:
@@ -2723,9 +2305,9 @@ var OroClient = /*#__PURE__*/function () {
2723
2305
  _proto.resumeSession =
2724
2306
  /*#__PURE__*/
2725
2307
  function () {
2726
- var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5() {
2308
+ var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
2727
2309
  var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
2728
- return runtime_1.wrap(function _callee5$(_context5) {
2310
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
2729
2311
  while (1) {
2730
2312
  switch (_context5.prev = _context5.next) {
2731
2313
  case 0:
@@ -2826,8 +2408,8 @@ var OroClient = /*#__PURE__*/function () {
2826
2408
  _proto.signOut =
2827
2409
  /*#__PURE__*/
2828
2410
  function () {
2829
- var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee6() {
2830
- return runtime_1.wrap(function _callee6$(_context6) {
2411
+ var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
2412
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
2831
2413
  while (1) {
2832
2414
  switch (_context6.prev = _context6.next) {
2833
2415
  case 0:
@@ -2878,8 +2460,8 @@ var OroClient = /*#__PURE__*/function () {
2878
2460
  _proto.registerPatient =
2879
2461
  /*#__PURE__*/
2880
2462
  function () {
2881
- var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
2882
- return runtime_1.wrap(function _callee7$(_context7) {
2463
+ var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA, indexSearch, onProgress) {
2464
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
2883
2465
  while (1) {
2884
2466
  switch (_context7.prev = _context7.next) {
2885
2467
  case 0:
@@ -2920,12 +2502,12 @@ var OroClient = /*#__PURE__*/function () {
2920
2502
  _proto.forceUpdateIndexEntries =
2921
2503
  /*#__PURE__*/
2922
2504
  function () {
2923
- var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee9() {
2505
+ var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
2924
2506
  var _this = this,
2925
2507
  _this$vaultIndexAdd;
2926
2508
 
2927
2509
  var grants, indexConsultLockbox;
2928
- return runtime_1.wrap(function _callee9$(_context9) {
2510
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
2929
2511
  while (1) {
2930
2512
  switch (_context9.prev = _context9.next) {
2931
2513
  case 0:
@@ -2936,8 +2518,8 @@ var OroClient = /*#__PURE__*/function () {
2936
2518
  grants = _context9.sent;
2937
2519
  _context9.next = 5;
2938
2520
  return Promise.all(grants.map( /*#__PURE__*/function () {
2939
- var _ref2 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee8(grant) {
2940
- return runtime_1.wrap(function _callee8$(_context8) {
2521
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(grant) {
2522
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
2941
2523
  while (1) {
2942
2524
  switch (_context8.prev = _context8.next) {
2943
2525
  case 0:
@@ -3013,10 +2595,10 @@ var OroClient = /*#__PURE__*/function () {
3013
2595
  _proto.vaultIndexAdd =
3014
2596
  /*#__PURE__*/
3015
2597
  function () {
3016
- var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee10(entries, indexOwnerUuid) {
2598
+ var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(entries, indexOwnerUuid) {
3017
2599
  var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
3018
2600
 
3019
- return runtime_1.wrap(function _callee10$(_context10) {
2601
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
3020
2602
  while (1) {
3021
2603
  switch (_context10.prev = _context10.next) {
3022
2604
  case 0:
@@ -3114,9 +2696,9 @@ var OroClient = /*#__PURE__*/function () {
3114
2696
  _proto.grantLockbox =
3115
2697
  /*#__PURE__*/
3116
2698
  function () {
3117
- var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
2699
+ var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
3118
2700
  var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
3119
- return runtime_1.wrap(function _callee11$(_context11) {
2701
+ return _regeneratorRuntime().wrap(function _callee11$(_context11) {
3120
2702
  while (1) {
3121
2703
  switch (_context11.prev = _context11.next) {
3122
2704
  case 0:
@@ -3176,9 +2758,9 @@ var OroClient = /*#__PURE__*/function () {
3176
2758
  _proto.createMessageData =
3177
2759
  /*#__PURE__*/
3178
2760
  function () {
3179
- var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
2761
+ var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
3180
2762
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
3181
- return runtime_1.wrap(function _callee12$(_context12) {
2763
+ return _regeneratorRuntime().wrap(function _callee12$(_context12) {
3182
2764
  while (1) {
3183
2765
  switch (_context12.prev = _context12.next) {
3184
2766
  case 0:
@@ -3248,9 +2830,9 @@ var OroClient = /*#__PURE__*/function () {
3248
2830
  _proto.createMessageAttachmentData =
3249
2831
  /*#__PURE__*/
3250
2832
  function () {
3251
- var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
2833
+ var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
3252
2834
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
3253
- return runtime_1.wrap(function _callee13$(_context13) {
2835
+ return _regeneratorRuntime().wrap(function _callee13$(_context13) {
3254
2836
  while (1) {
3255
2837
  switch (_context13.prev = _context13.next) {
3256
2838
  case 0:
@@ -3335,8 +2917,8 @@ var OroClient = /*#__PURE__*/function () {
3335
2917
  _proto.createConsultationAttachmentData =
3336
2918
  /*#__PURE__*/
3337
2919
  function () {
3338
- var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
3339
- return runtime_1.wrap(function _callee14$(_context14) {
2920
+ var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
2921
+ return _regeneratorRuntime().wrap(function _callee14$(_context14) {
3340
2922
  while (1) {
3341
2923
  switch (_context14.prev = _context14.next) {
3342
2924
  case 0:
@@ -3407,9 +2989,9 @@ var OroClient = /*#__PURE__*/function () {
3407
2989
  _proto.createJsonData =
3408
2990
  /*#__PURE__*/
3409
2991
  function () {
3410
- var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
2992
+ var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3411
2993
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3412
- return runtime_1.wrap(function _callee15$(_context15) {
2994
+ return _regeneratorRuntime().wrap(function _callee15$(_context15) {
3413
2995
  while (1) {
3414
2996
  switch (_context15.prev = _context15.next) {
3415
2997
  case 0:
@@ -3463,9 +3045,9 @@ var OroClient = /*#__PURE__*/function () {
3463
3045
  _proto.getOrInsertJsonData =
3464
3046
  /*#__PURE__*/
3465
3047
  function () {
3466
- var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3048
+ var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
3467
3049
  var manifest;
3468
- return runtime_1.wrap(function _callee16$(_context16) {
3050
+ return _regeneratorRuntime().wrap(function _callee16$(_context16) {
3469
3051
  while (1) {
3470
3052
  switch (_context16.prev = _context16.next) {
3471
3053
  case 0:
@@ -3528,9 +3110,9 @@ var OroClient = /*#__PURE__*/function () {
3528
3110
  _proto.createBytesData =
3529
3111
  /*#__PURE__*/
3530
3112
  function () {
3531
- var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3113
+ var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
3532
3114
  var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
3533
- return runtime_1.wrap(function _callee17$(_context17) {
3115
+ return _regeneratorRuntime().wrap(function _callee17$(_context17) {
3534
3116
  while (1) {
3535
3117
  switch (_context17.prev = _context17.next) {
3536
3118
  case 0:
@@ -3586,10 +3168,10 @@ var OroClient = /*#__PURE__*/function () {
3586
3168
  _proto.getJsonData =
3587
3169
  /*#__PURE__*/
3588
3170
  function () {
3589
- var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3171
+ var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3590
3172
  var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
3591
3173
 
3592
- return runtime_1.wrap(function _callee18$(_context18) {
3174
+ return _regeneratorRuntime().wrap(function _callee18$(_context18) {
3593
3175
  while (1) {
3594
3176
  switch (_context18.prev = _context18.next) {
3595
3177
  case 0:
@@ -3636,10 +3218,10 @@ var OroClient = /*#__PURE__*/function () {
3636
3218
  _proto.getBytesData =
3637
3219
  /*#__PURE__*/
3638
3220
  function () {
3639
- var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3221
+ var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, dataUuid, lockboxOwnerUuid) {
3640
3222
  var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
3641
3223
 
3642
- return runtime_1.wrap(function _callee19$(_context19) {
3224
+ return _regeneratorRuntime().wrap(function _callee19$(_context19) {
3643
3225
  while (1) {
3644
3226
  switch (_context19.prev = _context19.next) {
3645
3227
  case 0:
@@ -3689,9 +3271,9 @@ var OroClient = /*#__PURE__*/function () {
3689
3271
  _proto.getGrants =
3690
3272
  /*#__PURE__*/
3691
3273
  function () {
3692
- var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee20(filter) {
3274
+ var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(filter) {
3693
3275
  var filterString, currentAccountRole, encryptedGrants, decryptedGrants, grantsByConsultLockbox, decryptedConsults;
3694
- return runtime_1.wrap(function _callee20$(_context20) {
3276
+ return _regeneratorRuntime().wrap(function _callee20$(_context20) {
3695
3277
  while (1) {
3696
3278
  switch (_context20.prev = _context20.next) {
3697
3279
  case 0:
@@ -3822,8 +3404,8 @@ var OroClient = /*#__PURE__*/function () {
3822
3404
  _proto.getAccountRole =
3823
3405
  /*#__PURE__*/
3824
3406
  function () {
3825
- var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee21() {
3826
- return runtime_1.wrap(function _callee21$(_context21) {
3407
+ var _getAccountRole = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21() {
3408
+ return _regeneratorRuntime().wrap(function _callee21$(_context21) {
3827
3409
  while (1) {
3828
3410
  switch (_context21.prev = _context21.next) {
3829
3411
  case 0:
@@ -3859,9 +3441,9 @@ var OroClient = /*#__PURE__*/function () {
3859
3441
  _proto.getCachedSecretCryptor =
3860
3442
  /*#__PURE__*/
3861
3443
  function () {
3862
- var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
3444
+ var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(lockboxUuid, lockboxOwnerUuid) {
3863
3445
  var index, encryptedSecret, secret, cryptor;
3864
- return runtime_1.wrap(function _callee22$(_context22) {
3446
+ return _regeneratorRuntime().wrap(function _callee22$(_context22) {
3865
3447
  while (1) {
3866
3448
  switch (_context22.prev = _context22.next) {
3867
3449
  case 0:
@@ -3926,8 +3508,8 @@ var OroClient = /*#__PURE__*/function () {
3926
3508
  _proto.getPersonalInformationsFromConsultId =
3927
3509
  /*#__PURE__*/
3928
3510
  function () {
3929
- var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee23(consultationId, category, forceRefresh) {
3930
- return runtime_1.wrap(function _callee23$(_context23) {
3511
+ var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(consultationId, category, forceRefresh) {
3512
+ return _regeneratorRuntime().wrap(function _callee23$(_context23) {
3931
3513
  while (1) {
3932
3514
  switch (_context23.prev = _context23.next) {
3933
3515
  case 0:
@@ -3964,8 +3546,8 @@ var OroClient = /*#__PURE__*/function () {
3964
3546
  _proto.getMedicalDataFromConsultId =
3965
3547
  /*#__PURE__*/
3966
3548
  function () {
3967
- var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee24(consultationId, forceRefresh) {
3968
- return runtime_1.wrap(function _callee24$(_context24) {
3549
+ var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, forceRefresh) {
3550
+ return _regeneratorRuntime().wrap(function _callee24$(_context24) {
3969
3551
  while (1) {
3970
3552
  switch (_context24.prev = _context24.next) {
3971
3553
  case 0:
@@ -3991,12 +3573,12 @@ var OroClient = /*#__PURE__*/function () {
3991
3573
  }();
3992
3574
 
3993
3575
  _proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
3994
- var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee26(consultationId, category, forceRefresh) {
3576
+ var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(consultationId, category, forceRefresh) {
3995
3577
  var _this2 = this;
3996
3578
 
3997
3579
  var grants, workflowData, _loop, _iterator, _step;
3998
3580
 
3999
- return runtime_1.wrap(function _callee26$(_context27) {
3581
+ return _regeneratorRuntime().wrap(function _callee26$(_context27) {
4000
3582
  while (1) {
4001
3583
  switch (_context27.prev = _context27.next) {
4002
3584
  case 0:
@@ -4012,9 +3594,9 @@ var OroClient = /*#__PURE__*/function () {
4012
3594
  case 3:
4013
3595
  grants = _context27.sent;
4014
3596
  workflowData = [];
4015
- _loop = /*#__PURE__*/runtime_1.mark(function _loop() {
3597
+ _loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
4016
3598
  var grant, manifest, data;
4017
- return runtime_1.wrap(function _loop$(_context26) {
3599
+ return _regeneratorRuntime().wrap(function _loop$(_context26) {
4018
3600
  while (1) {
4019
3601
  switch (_context26.prev = _context26.next) {
4020
3602
  case 0:
@@ -4048,8 +3630,8 @@ var OroClient = /*#__PURE__*/function () {
4048
3630
  case 8:
4049
3631
  _context26.next = 10;
4050
3632
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4051
- var _ref3 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee25(entry) {
4052
- return runtime_1.wrap(function _callee25$(_context25) {
3633
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(entry) {
3634
+ return _regeneratorRuntime().wrap(function _callee25$(_context25) {
4053
3635
  while (1) {
4054
3636
  switch (_context25.prev = _context25.next) {
4055
3637
  case 0:
@@ -4133,9 +3715,9 @@ var OroClient = /*#__PURE__*/function () {
4133
3715
  _proto.getPersonalInformations =
4134
3716
  /*#__PURE__*/
4135
3717
  function () {
4136
- var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee27(userId) {
3718
+ var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(userId) {
4137
3719
  var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
4138
- return runtime_1.wrap(function _callee27$(_context28) {
3720
+ return _regeneratorRuntime().wrap(function _callee27$(_context28) {
4139
3721
  while (1) {
4140
3722
  switch (_context28.prev = _context28.next) {
4141
3723
  case 0:
@@ -4221,9 +3803,9 @@ var OroClient = /*#__PURE__*/function () {
4221
3803
  _proto.getGrantFromConsultId =
4222
3804
  /*#__PURE__*/
4223
3805
  function () {
4224
- var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee28(consultationId) {
3806
+ var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(consultationId) {
4225
3807
  var grants;
4226
- return runtime_1.wrap(function _callee28$(_context29) {
3808
+ return _regeneratorRuntime().wrap(function _callee28$(_context29) {
4227
3809
  while (1) {
4228
3810
  switch (_context29.prev = _context29.next) {
4229
3811
  case 0:
@@ -4269,9 +3851,9 @@ var OroClient = /*#__PURE__*/function () {
4269
3851
  _proto.getIdentityFromConsultId =
4270
3852
  /*#__PURE__*/
4271
3853
  function () {
4272
- var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee29(consultationId) {
3854
+ var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
4273
3855
  var grant;
4274
- return runtime_1.wrap(function _callee29$(_context30) {
3856
+ return _regeneratorRuntime().wrap(function _callee29$(_context30) {
4275
3857
  while (1) {
4276
3858
  switch (_context30.prev = _context30.next) {
4277
3859
  case 0:
@@ -4324,11 +3906,11 @@ var OroClient = /*#__PURE__*/function () {
4324
3906
  _proto.getLockboxManifest =
4325
3907
  /*#__PURE__*/
4326
3908
  function () {
4327
- var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
3909
+ var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
4328
3910
  var _this3 = this;
4329
3911
 
4330
3912
  var manifestKey;
4331
- return runtime_1.wrap(function _callee31$(_context32) {
3913
+ return _regeneratorRuntime().wrap(function _callee31$(_context32) {
4332
3914
  while (1) {
4333
3915
  switch (_context32.prev = _context32.next) {
4334
3916
  case 0:
@@ -4353,9 +3935,9 @@ var OroClient = /*#__PURE__*/function () {
4353
3935
  case 4:
4354
3936
  return _context32.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
4355
3937
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4356
- var _ref4 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee30(entry) {
3938
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(entry) {
4357
3939
  var privateMeta;
4358
- return runtime_1.wrap(function _callee30$(_context31) {
3940
+ return _regeneratorRuntime().wrap(function _callee30$(_context31) {
4359
3941
  while (1) {
4360
3942
  switch (_context31.prev = _context31.next) {
4361
3943
  case 0:
@@ -4416,11 +3998,11 @@ var OroClient = /*#__PURE__*/function () {
4416
3998
  _proto.createPersonalInformations =
4417
3999
  /*#__PURE__*/
4418
4000
  function () {
4419
- var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee32(identity, data, dataUuid) {
4001
+ var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(identity, data, dataUuid) {
4420
4002
  var _yield$this$getGrants;
4421
4003
 
4422
4004
  var lockboxUuid;
4423
- return runtime_1.wrap(function _callee32$(_context33) {
4005
+ return _regeneratorRuntime().wrap(function _callee32$(_context33) {
4424
4006
  while (1) {
4425
4007
  switch (_context33.prev = _context33.next) {
4426
4008
  case 0:
@@ -4486,11 +4068,11 @@ var OroClient = /*#__PURE__*/function () {
4486
4068
  _proto.createUserPreference =
4487
4069
  /*#__PURE__*/
4488
4070
  function () {
4489
- var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee33(identity, preference, dataUuid) {
4071
+ var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, preference, dataUuid) {
4490
4072
  var _yield$this$getGrants2;
4491
4073
 
4492
4074
  var lockboxUuid;
4493
- return runtime_1.wrap(function _callee33$(_context34) {
4075
+ return _regeneratorRuntime().wrap(function _callee33$(_context34) {
4494
4076
  while (1) {
4495
4077
  switch (_context34.prev = _context34.next) {
4496
4078
  case 0:
@@ -4554,9 +4136,9 @@ var OroClient = /*#__PURE__*/function () {
4554
4136
  _proto.getDataFromGrant =
4555
4137
  /*#__PURE__*/
4556
4138
  function () {
4557
- var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee34(grant, filter) {
4139
+ var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(grant, filter) {
4558
4140
  var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
4559
- return runtime_1.wrap(function _callee34$(_context35) {
4141
+ return _regeneratorRuntime().wrap(function _callee34$(_context35) {
4560
4142
  while (1) {
4561
4143
  switch (_context35.prev = _context35.next) {
4562
4144
  case 0:
@@ -4622,9 +4204,9 @@ var OroClient = /*#__PURE__*/function () {
4622
4204
  _proto.getUserPreferenceFromConsultId =
4623
4205
  /*#__PURE__*/
4624
4206
  function () {
4625
- var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee35(consultationId) {
4207
+ var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(consultationId) {
4626
4208
  var grant;
4627
- return runtime_1.wrap(function _callee35$(_context36) {
4209
+ return _regeneratorRuntime().wrap(function _callee35$(_context36) {
4628
4210
  while (1) {
4629
4211
  switch (_context36.prev = _context36.next) {
4630
4212
  case 0:
@@ -4671,9 +4253,9 @@ var OroClient = /*#__PURE__*/function () {
4671
4253
  _proto.getUserPreference =
4672
4254
  /*#__PURE__*/
4673
4255
  function () {
4674
- var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee36(identity) {
4256
+ var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(identity) {
4675
4257
  var grant;
4676
- return runtime_1.wrap(function _callee36$(_context37) {
4258
+ return _regeneratorRuntime().wrap(function _callee36$(_context37) {
4677
4259
  while (1) {
4678
4260
  switch (_context37.prev = _context37.next) {
4679
4261
  case 0:
@@ -4722,9 +4304,9 @@ var OroClient = /*#__PURE__*/function () {
4722
4304
  _proto.getRecoveryDataFromConsultId =
4723
4305
  /*#__PURE__*/
4724
4306
  function () {
4725
- var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee37(consultationId) {
4307
+ var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(consultationId) {
4726
4308
  var grant;
4727
- return runtime_1.wrap(function _callee37$(_context38) {
4309
+ return _regeneratorRuntime().wrap(function _callee37$(_context38) {
4728
4310
  while (1) {
4729
4311
  switch (_context38.prev = _context38.next) {
4730
4312
  case 0:
@@ -4771,9 +4353,9 @@ var OroClient = /*#__PURE__*/function () {
4771
4353
  _proto.getRecoveryData =
4772
4354
  /*#__PURE__*/
4773
4355
  function () {
4774
- var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee38(identity) {
4356
+ var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(identity) {
4775
4357
  var grant;
4776
- return runtime_1.wrap(function _callee38$(_context39) {
4358
+ return _regeneratorRuntime().wrap(function _callee38$(_context39) {
4777
4359
  while (1) {
4778
4360
  switch (_context39.prev = _context39.next) {
4779
4361
  case 0:
@@ -4827,10 +4409,10 @@ var OroClient = /*#__PURE__*/function () {
4827
4409
  _proto.getAssignedConsultations =
4828
4410
  /*#__PURE__*/
4829
4411
  function () {
4830
- var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee40(practiceUuid) {
4412
+ var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(practiceUuid) {
4831
4413
  var _this4 = this;
4832
4414
 
4833
- return runtime_1.wrap(function _callee40$(_context41) {
4415
+ return _regeneratorRuntime().wrap(function _callee40$(_context41) {
4834
4416
  while (1) {
4835
4417
  switch (_context41.prev = _context41.next) {
4836
4418
  case 0:
@@ -4845,8 +4427,8 @@ var OroClient = /*#__PURE__*/function () {
4845
4427
  documentType: DocumentType.PopulatedWorkflowData
4846
4428
  }, true, undefined).then(function (manifest) {
4847
4429
  return Promise.all(manifest.map( /*#__PURE__*/function () {
4848
- var _ref5 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee39(entry) {
4849
- return runtime_1.wrap(function _callee39$(_context40) {
4430
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(entry) {
4431
+ return _regeneratorRuntime().wrap(function _callee39$(_context40) {
4850
4432
  while (1) {
4851
4433
  switch (_context40.prev = _context40.next) {
4852
4434
  case 0:
@@ -4900,11 +4482,11 @@ var OroClient = /*#__PURE__*/function () {
4900
4482
  _proto.getPastConsultationsFromConsultId =
4901
4483
  /*#__PURE__*/
4902
4484
  function () {
4903
- var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee42(consultationId, practiceUuid) {
4485
+ var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultationId, practiceUuid) {
4904
4486
  var _this5 = this;
4905
4487
 
4906
4488
  var grant, consultationsInLockbox;
4907
- return runtime_1.wrap(function _callee42$(_context43) {
4489
+ return _regeneratorRuntime().wrap(function _callee42$(_context43) {
4908
4490
  while (1) {
4909
4491
  switch (_context43.prev = _context43.next) {
4910
4492
  case 0:
@@ -4943,8 +4525,8 @@ var OroClient = /*#__PURE__*/function () {
4943
4525
  case 10:
4944
4526
  _context43.next = 12;
4945
4527
  return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
4946
- var _ref6 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee41(consultId) {
4947
- return runtime_1.wrap(function _callee41$(_context42) {
4528
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(consultId) {
4529
+ return _regeneratorRuntime().wrap(function _callee41$(_context42) {
4948
4530
  while (1) {
4949
4531
  switch (_context42.prev = _context42.next) {
4950
4532
  case 0:
@@ -4995,10 +4577,10 @@ var OroClient = /*#__PURE__*/function () {
4995
4577
  _proto.getPatientConsultationData =
4996
4578
  /*#__PURE__*/
4997
4579
  function () {
4998
- var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee43(consultationId, forceRefresh) {
4580
+ var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, forceRefresh) {
4999
4581
  var _this6 = this;
5000
4582
 
5001
- return runtime_1.wrap(function _callee43$(_context44) {
4583
+ return _regeneratorRuntime().wrap(function _callee43$(_context44) {
5002
4584
  while (1) {
5003
4585
  switch (_context44.prev = _context44.next) {
5004
4586
  case 0:
@@ -5052,8 +4634,8 @@ var OroClient = /*#__PURE__*/function () {
5052
4634
  _proto.getPatientPrescriptionsList =
5053
4635
  /*#__PURE__*/
5054
4636
  function () {
5055
- var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee44(consultationId) {
5056
- return runtime_1.wrap(function _callee44$(_context45) {
4637
+ var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId) {
4638
+ return _regeneratorRuntime().wrap(function _callee44$(_context45) {
5057
4639
  while (1) {
5058
4640
  switch (_context45.prev = _context45.next) {
5059
4641
  case 0:
@@ -5086,8 +4668,8 @@ var OroClient = /*#__PURE__*/function () {
5086
4668
  _proto.getPatientResultsList =
5087
4669
  /*#__PURE__*/
5088
4670
  function () {
5089
- var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee45(consultationId) {
5090
- return runtime_1.wrap(function _callee45$(_context46) {
4671
+ var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
4672
+ return _regeneratorRuntime().wrap(function _callee45$(_context46) {
5091
4673
  while (1) {
5092
4674
  switch (_context46.prev = _context46.next) {
5093
4675
  case 0:
@@ -5120,8 +4702,8 @@ var OroClient = /*#__PURE__*/function () {
5120
4702
  _proto.getPatientTreatmentPlans =
5121
4703
  /*#__PURE__*/
5122
4704
  function () {
5123
- var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee46(consultationId) {
5124
- return runtime_1.wrap(function _callee46$(_context47) {
4705
+ var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
4706
+ return _regeneratorRuntime().wrap(function _callee46$(_context47) {
5125
4707
  while (1) {
5126
4708
  switch (_context47.prev = _context47.next) {
5127
4709
  case 0:
@@ -5155,8 +4737,8 @@ var OroClient = /*#__PURE__*/function () {
5155
4737
  _proto.getPatientTreatmentPlanByUuid =
5156
4738
  /*#__PURE__*/
5157
4739
  function () {
5158
- var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee47(consultationId, treatmentPlanId) {
5159
- return runtime_1.wrap(function _callee47$(_context48) {
4740
+ var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId, treatmentPlanId) {
4741
+ return _regeneratorRuntime().wrap(function _callee47$(_context48) {
5160
4742
  while (1) {
5161
4743
  switch (_context48.prev = _context48.next) {
5162
4744
  case 0:
@@ -5194,10 +4776,10 @@ var OroClient = /*#__PURE__*/function () {
5194
4776
  _proto.getPatientDocumentsList =
5195
4777
  /*#__PURE__*/
5196
4778
  function () {
5197
- var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
4779
+ var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(filters, expandPrivateMetadata, consultationId) {
5198
4780
  var _this7 = this;
5199
4781
 
5200
- return runtime_1.wrap(function _callee49$(_context50) {
4782
+ return _regeneratorRuntime().wrap(function _callee49$(_context50) {
5201
4783
  while (1) {
5202
4784
  switch (_context50.prev = _context50.next) {
5203
4785
  case 0:
@@ -5213,8 +4795,8 @@ var OroClient = /*#__PURE__*/function () {
5213
4795
  consultationId: consultationId
5214
4796
  }), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
5215
4797
  return Promise.all(manifest.map( /*#__PURE__*/function () {
5216
- var _ref7 = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee48(entry) {
5217
- return runtime_1.wrap(function _callee48$(_context49) {
4798
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(entry) {
4799
+ return _regeneratorRuntime().wrap(function _callee48$(_context49) {
5218
4800
  while (1) {
5219
4801
  switch (_context49.prev = _context49.next) {
5220
4802
  case 0:
@@ -5272,9 +4854,9 @@ var OroClient = /*#__PURE__*/function () {
5272
4854
  _proto.recoverPrivateKeyFromSecurityQuestions =
5273
4855
  /*#__PURE__*/
5274
4856
  function () {
5275
- var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
4857
+ var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5276
4858
  var shards, answeredShards, privateKey;
5277
- return runtime_1.wrap(function _callee50$(_context51) {
4859
+ return _regeneratorRuntime().wrap(function _callee50$(_context51) {
5278
4860
  while (1) {
5279
4861
  switch (_context51.prev = _context51.next) {
5280
4862
  case 0:
@@ -5328,9 +4910,9 @@ var OroClient = /*#__PURE__*/function () {
5328
4910
  _proto.recoverPrivateKeyFromPassword =
5329
4911
  /*#__PURE__*/
5330
4912
  function () {
5331
- var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee51(id, password) {
4913
+ var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, password) {
5332
4914
  var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
5333
- return runtime_1.wrap(function _callee51$(_context52) {
4915
+ return _regeneratorRuntime().wrap(function _callee51$(_context52) {
5334
4916
  while (1) {
5335
4917
  switch (_context52.prev = _context52.next) {
5336
4918
  case 0:
@@ -5376,9 +4958,9 @@ var OroClient = /*#__PURE__*/function () {
5376
4958
  _proto.recoverPrivateKeyFromMasterKey =
5377
4959
  /*#__PURE__*/
5378
4960
  function () {
5379
- var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee52(id, masterKey) {
4961
+ var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, masterKey) {
5380
4962
  var recoveryPayload, symmetricDecryptor, privateKey;
5381
- return runtime_1.wrap(function _callee52$(_context53) {
4963
+ return _regeneratorRuntime().wrap(function _callee52$(_context53) {
5382
4964
  while (1) {
5383
4965
  switch (_context53.prev = _context53.next) {
5384
4966
  case 0:
@@ -5418,9 +5000,9 @@ var OroClient = /*#__PURE__*/function () {
5418
5000
  _proto.updateSecurityQuestions =
5419
5001
  /*#__PURE__*/
5420
5002
  function () {
5421
- var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5003
+ var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
5422
5004
  var securityQuestionPayload, updateRequest;
5423
- return runtime_1.wrap(function _callee53$(_context54) {
5005
+ return _regeneratorRuntime().wrap(function _callee53$(_context54) {
5424
5006
  while (1) {
5425
5007
  switch (_context54.prev = _context54.next) {
5426
5008
  case 0:
@@ -5472,9 +5054,9 @@ var OroClient = /*#__PURE__*/function () {
5472
5054
  _proto.updatePassword =
5473
5055
  /*#__PURE__*/
5474
5056
  function () {
5475
- var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee54(id, newPassword, oldPassword) {
5057
+ var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, newPassword, oldPassword) {
5476
5058
  var symmetricEncryptor, passwordPayload, updateRequest;
5477
- return runtime_1.wrap(function _callee54$(_context55) {
5059
+ return _regeneratorRuntime().wrap(function _callee54$(_context55) {
5478
5060
  while (1) {
5479
5061
  switch (_context55.prev = _context55.next) {
5480
5062
  case 0:
@@ -5534,9 +5116,9 @@ var OroClient = /*#__PURE__*/function () {
5534
5116
  _proto.updateMasterKey =
5535
5117
  /*#__PURE__*/
5536
5118
  function () {
5537
- var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee55(id, masterKey, lockboxUuid) {
5119
+ var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, masterKey, lockboxUuid) {
5538
5120
  var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
5539
- return runtime_1.wrap(function _callee55$(_context56) {
5121
+ return _regeneratorRuntime().wrap(function _callee55$(_context56) {
5540
5122
  while (1) {
5541
5123
  switch (_context56.prev = _context56.next) {
5542
5124
  case 0: