oro-sdk 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/oro-sdk.cjs.development.js +491 -912
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +491 -912
- package/dist/oro-sdk.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/oro-sdk.esm.js
CHANGED
@@ -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);
|
@@ -269,766 +614,6 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
269
614
|
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
615
|
}
|
271
616
|
|
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
617
|
var _personalMetaToPrefix;
|
1033
618
|
var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[MetadataCategory.Personal] = 'you', _personalMetaToPrefix[MetadataCategory.ChildPersonal] = 'child', _personalMetaToPrefix[MetadataCategory.OtherPersonal] = 'other', _personalMetaToPrefix);
|
1034
619
|
/**
|
@@ -1248,9 +833,9 @@ function filterTriggeredAnsweredWithKind(_x, _x2) {
|
|
1248
833
|
*/
|
1249
834
|
|
1250
835
|
function _filterTriggeredAnsweredWithKind() {
|
1251
|
-
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/
|
836
|
+
_filterTriggeredAnsweredWithKind = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(workflowData, kind) {
|
1252
837
|
var flattenedAnswers, triggeredQuestionsWithKind, samePageAnswers, res;
|
1253
|
-
return
|
838
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1254
839
|
while (1) {
|
1255
840
|
switch (_context.prev = _context.next) {
|
1256
841
|
case 0:
|
@@ -1294,9 +879,9 @@ function getWorkflowDataByCategory(_x3, _x4) {
|
|
1294
879
|
}
|
1295
880
|
|
1296
881
|
function _getWorkflowDataByCategory() {
|
1297
|
-
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/
|
882
|
+
_getWorkflowDataByCategory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(workflowData, category) {
|
1298
883
|
var flattenedAnswers, triggeredQuestions, fields;
|
1299
|
-
return
|
884
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1300
885
|
while (1) {
|
1301
886
|
switch (_context2.prev = _context2.next) {
|
1302
887
|
case 0:
|
@@ -1367,8 +952,8 @@ function getImagesFromIndexDb(_x5) {
|
|
1367
952
|
*/
|
1368
953
|
|
1369
954
|
function _getImagesFromIndexDb() {
|
1370
|
-
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/
|
1371
|
-
return
|
955
|
+
_getImagesFromIndexDb = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(answer) {
|
956
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1372
957
|
while (1) {
|
1373
958
|
switch (_context3.prev = _context3.next) {
|
1374
959
|
case 0:
|
@@ -1397,9 +982,9 @@ function populateWorkflowField(_x6, _x7) {
|
|
1397
982
|
}
|
1398
983
|
|
1399
984
|
function _populateWorkflowField() {
|
1400
|
-
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/
|
985
|
+
_populateWorkflowField = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(question, answerValue) {
|
1401
986
|
var answer, displayedAnswer;
|
1402
|
-
return
|
987
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1403
988
|
while (1) {
|
1404
989
|
switch (_context4.prev = _context4.next) {
|
1405
990
|
case 0:
|
@@ -1577,10 +1162,10 @@ function registerPatient(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
1577
1162
|
*/
|
1578
1163
|
|
1579
1164
|
function _registerPatient() {
|
1580
|
-
_registerPatient = _asyncToGenerator( /*#__PURE__*/
|
1165
|
+
_registerPatient = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(patientUuid, consultRequest, workflow, oroClient, masterKey, recoveryQA) {
|
1581
1166
|
var consult, lockboxUuid, practitionerAdmin, retry, identity, errorsThrown, _ret;
|
1582
1167
|
|
1583
|
-
return
|
1168
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
1584
1169
|
while (1) {
|
1585
1170
|
switch (_context4.prev = _context4.next) {
|
1586
1171
|
case 0:
|
@@ -1598,11 +1183,11 @@ function _registerPatient() {
|
|
1598
1183
|
}
|
1599
1184
|
|
1600
1185
|
_context4.prev = 7;
|
1601
|
-
return _context4.delegateYield( /*#__PURE__*/
|
1186
|
+
return _context4.delegateYield( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
1602
1187
|
var _consultIndex, _identity, _identity2;
|
1603
1188
|
|
1604
1189
|
var practitioners, grantPromises, consultIndex, consultIndexPromises;
|
1605
|
-
return
|
1190
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
1606
1191
|
while (1) {
|
1607
1192
|
switch (_context3.prev = _context3.next) {
|
1608
1193
|
case 0:
|
@@ -1673,7 +1258,6 @@ function _registerPatient() {
|
|
1673
1258
|
return oroClient.grantLockbox(practitionerAdmin, lockboxUuid)["catch"](function (err) {
|
1674
1259
|
console.error("Error while granting lockbox to practitioner admin " + practitionerAdmin, err); // if we cannot grant to the admin, then the registration will fail
|
1675
1260
|
|
1676
|
-
// if we cannot grant to the admin, then the registration will fail
|
1677
1261
|
errorsThrown.push(err);
|
1678
1262
|
});
|
1679
1263
|
|
@@ -1682,15 +1266,14 @@ function _registerPatient() {
|
|
1682
1266
|
grantPromises = practitioners.filter(function (practitioner) {
|
1683
1267
|
return practitioner.uuid !== practitionerAdmin;
|
1684
1268
|
}).map( /*#__PURE__*/function () {
|
1685
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
1686
|
-
return
|
1269
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(practitioner) {
|
1270
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
1687
1271
|
while (1) {
|
1688
1272
|
switch (_context.prev = _context.next) {
|
1689
1273
|
case 0:
|
1690
1274
|
return _context.abrupt("return", oroClient.grantLockbox(practitioner.uuid, lockboxUuid)["catch"](function (err) {
|
1691
1275
|
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
|
1692
1276
|
|
1693
|
-
// Acceptable to continue as admin has already been granted, but we should still retry until the last retry remains
|
1694
1277
|
if (retry <= 1) return;
|
1695
1278
|
errorsThrown.push(err);
|
1696
1279
|
}));
|
@@ -1716,15 +1299,14 @@ function _registerPatient() {
|
|
1716
1299
|
}], _consultIndex); // the index will identify in which lockbox a consultation resides
|
1717
1300
|
|
1718
1301
|
consultIndexPromises = practitioners.map( /*#__PURE__*/function () {
|
1719
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
1720
|
-
return
|
1302
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(practitioner) {
|
1303
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
1721
1304
|
while (1) {
|
1722
1305
|
switch (_context2.prev = _context2.next) {
|
1723
1306
|
case 0:
|
1724
1307
|
return _context2.abrupt("return", oroClient.vaultIndexAdd(consultIndex, practitioner.uuid)["catch"](function (err) {
|
1725
1308
|
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
|
1726
1309
|
|
1727
|
-
// Acceptable to continue as the index can be rebuilt, but we should still retry until the last retry remains
|
1728
1310
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1729
1311
|
}));
|
1730
1312
|
|
@@ -1744,7 +1326,6 @@ function _registerPatient() {
|
|
1744
1326
|
return storeImageAliases(consult.uuid, lockboxUuid, workflow, oroClient)["catch"](function (err) {
|
1745
1327
|
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
|
1746
1328
|
|
1747
|
-
// Acceptable to continue as images can be requested during the consultation, but we should still retry until the last retry remains
|
1748
1329
|
if (retry <= 1) return;else errorsThrown.push(err);
|
1749
1330
|
});
|
1750
1331
|
|
@@ -1765,7 +1346,6 @@ function _registerPatient() {
|
|
1765
1346
|
return oroClient.updateMasterKey(patientUuid, masterKey, lockboxUuid)["catch"](function (err) {
|
1766
1347
|
console.error("[SDK: registration] Error while updating master key", err); /// it's acceptable to continue registration (return old identity)
|
1767
1348
|
|
1768
|
-
/// it's acceptable to continue registration (return old identity)
|
1769
1349
|
if (retry <= 1) return;
|
1770
1350
|
errorsThrown.push(err);
|
1771
1351
|
return identity;
|
@@ -1790,7 +1370,6 @@ function _registerPatient() {
|
|
1790
1370
|
return oroClient.updateSecurityQuestions(patientUuid, recoveryQA.recoverySecurityQuestions, recoveryQA.recoverySecurityAnswers, 2)["catch"](function (err) {
|
1791
1371
|
console.error("[SDK: registration] Error while updating security questions", err); /// it's acceptable to continue registration (return old identity)
|
1792
1372
|
|
1793
|
-
/// it's acceptable to continue registration (return old identity)
|
1794
1373
|
if (retry <= 1) return;
|
1795
1374
|
errorsThrown.push(err);
|
1796
1375
|
return identity;
|
@@ -1896,9 +1475,9 @@ function getOrCreatePatientConsultationUuid(_x7, _x8) {
|
|
1896
1475
|
|
1897
1476
|
|
1898
1477
|
function _getOrCreatePatientConsultationUuid() {
|
1899
|
-
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/
|
1478
|
+
_getOrCreatePatientConsultationUuid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(consult, oroClient) {
|
1900
1479
|
var payment;
|
1901
|
-
return
|
1480
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
1902
1481
|
while (1) {
|
1903
1482
|
switch (_context5.prev = _context5.next) {
|
1904
1483
|
case 0:
|
@@ -1953,9 +1532,9 @@ function getOrCreatePatientLockbox(_x9) {
|
|
1953
1532
|
|
1954
1533
|
|
1955
1534
|
function _getOrCreatePatientLockbox() {
|
1956
|
-
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/
|
1535
|
+
_getOrCreatePatientLockbox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(oroClient) {
|
1957
1536
|
var grants;
|
1958
|
-
return
|
1537
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
1959
1538
|
while (1) {
|
1960
1539
|
switch (_context6.prev = _context6.next) {
|
1961
1540
|
case 0:
|
@@ -1998,8 +1577,8 @@ function storePatientData(_x10, _x11, _x12, _x13, _x14) {
|
|
1998
1577
|
}
|
1999
1578
|
|
2000
1579
|
function _storePatientData() {
|
2001
|
-
_storePatientData = _asyncToGenerator( /*#__PURE__*/
|
2002
|
-
return
|
1580
|
+
_storePatientData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(consultationId, isoLanguage, lockboxUuid, workflow, oroClient) {
|
1581
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2003
1582
|
while (1) {
|
2004
1583
|
switch (_context7.prev = _context7.next) {
|
2005
1584
|
case 0:
|
@@ -2056,9 +1635,9 @@ function storeImageAliases(_x15, _x16, _x17, _x18) {
|
|
2056
1635
|
|
2057
1636
|
|
2058
1637
|
function _storeImageAliases() {
|
2059
|
-
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/
|
1638
|
+
_storeImageAliases = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(consultationId, lockboxUuid, workflow, oroClient) {
|
2060
1639
|
var images, nonNullImages, promises;
|
2061
|
-
return
|
1640
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2062
1641
|
while (1) {
|
2063
1642
|
switch (_context8.prev = _context8.next) {
|
2064
1643
|
case 0:
|
@@ -2106,8 +1685,8 @@ function extractAndStorePersonalWorkflowData(_x19, _x20, _x21, _x22, _x23) {
|
|
2106
1685
|
}
|
2107
1686
|
|
2108
1687
|
function _extractAndStorePersonalWorkflowData() {
|
2109
|
-
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/
|
2110
|
-
return
|
1688
|
+
_extractAndStorePersonalWorkflowData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(workflow, lockboxUuid, consultationId, category, oroClient) {
|
1689
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2111
1690
|
while (1) {
|
2112
1691
|
switch (_context9.prev = _context9.next) {
|
2113
1692
|
case 0:
|
@@ -2199,10 +1778,10 @@ function filterGrantsWithLockboxMetadata(_x, _x2, _x3, _x4) {
|
|
2199
1778
|
*/
|
2200
1779
|
|
2201
1780
|
function _filterGrantsWithLockboxMetadata() {
|
2202
|
-
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/
|
1781
|
+
_filterGrantsWithLockboxMetadata = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(oroClient, filter, vaultIndex, forceRefresh) {
|
2203
1782
|
var _vaultIndex$IndexKey$, indexConsults;
|
2204
1783
|
|
2205
|
-
return
|
1784
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2206
1785
|
while (1) {
|
2207
1786
|
switch (_context.prev = _context.next) {
|
2208
1787
|
case 0:
|
@@ -2252,12 +1831,12 @@ function buildLegacyVaultIndex(_x5) {
|
|
2252
1831
|
}
|
2253
1832
|
|
2254
1833
|
function _buildLegacyVaultIndex() {
|
2255
|
-
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/
|
1834
|
+
_buildLegacyVaultIndex = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(oroClient) {
|
2256
1835
|
var _vaultIndex;
|
2257
1836
|
|
2258
1837
|
var grants, consultGrants, _loop, _iterator, _step, vaultIndex;
|
2259
1838
|
|
2260
|
-
return
|
1839
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context3) {
|
2261
1840
|
while (1) {
|
2262
1841
|
switch (_context3.prev = _context3.next) {
|
2263
1842
|
case 0:
|
@@ -2267,9 +1846,9 @@ function _buildLegacyVaultIndex() {
|
|
2267
1846
|
case 2:
|
2268
1847
|
grants = _context3.sent;
|
2269
1848
|
consultGrants = [];
|
2270
|
-
_loop = /*#__PURE__*/
|
1849
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
2271
1850
|
var grant, consults;
|
2272
|
-
return
|
1851
|
+
return _regeneratorRuntime().wrap(function _loop$(_context2) {
|
2273
1852
|
while (1) {
|
2274
1853
|
switch (_context2.prev = _context2.next) {
|
2275
1854
|
case 0:
|
@@ -2352,8 +1931,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2352
1931
|
_proto.cleanIndex =
|
2353
1932
|
/*#__PURE__*/
|
2354
1933
|
function () {
|
2355
|
-
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2356
|
-
return
|
1934
|
+
var _cleanIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
1935
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
2357
1936
|
while (1) {
|
2358
1937
|
switch (_context.prev = _context.next) {
|
2359
1938
|
case 0:
|
@@ -2391,9 +1970,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2391
1970
|
_proto.signUp =
|
2392
1971
|
/*#__PURE__*/
|
2393
1972
|
function () {
|
2394
|
-
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
1973
|
+
var _signUp = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(email, password, practice, tosAndCpAcceptance, tokenData, subscription, skipEmailValidation) {
|
2395
1974
|
var privateKey, symmetricEncryptor, recoveryPassword, hashedPassword, emailConfirmed, signupRequest, identity, symetricEncryptor;
|
2396
|
-
return
|
1975
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
2397
1976
|
while (1) {
|
2398
1977
|
switch (_context2.prev = _context2.next) {
|
2399
1978
|
case 0:
|
@@ -2452,9 +2031,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2452
2031
|
_proto.confirmEmail =
|
2453
2032
|
/*#__PURE__*/
|
2454
2033
|
function () {
|
2455
|
-
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2034
|
+
var _confirmEmail = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(accessToken) {
|
2456
2035
|
var claims;
|
2457
|
-
return
|
2036
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
2458
2037
|
while (1) {
|
2459
2038
|
switch (_context3.prev = _context3.next) {
|
2460
2039
|
case 0:
|
@@ -2499,9 +2078,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2499
2078
|
_proto.signIn =
|
2500
2079
|
/*#__PURE__*/
|
2501
2080
|
function () {
|
2502
|
-
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2081
|
+
var _signIn = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(practiceUuid, email, password, otp) {
|
2503
2082
|
var hashedPassword, tokenRequest, userUuid;
|
2504
|
-
return
|
2083
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
2505
2084
|
while (1) {
|
2506
2085
|
switch (_context4.prev = _context4.next) {
|
2507
2086
|
case 0:
|
@@ -2554,9 +2133,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
2554
2133
|
_proto.resumeSession =
|
2555
2134
|
/*#__PURE__*/
|
2556
2135
|
function () {
|
2557
|
-
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2136
|
+
var _resumeSession = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
2558
2137
|
var id, recoveryPayload, recoveryKey, symmetricDecryptor, privateKey;
|
2559
|
-
return
|
2138
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
2560
2139
|
while (1) {
|
2561
2140
|
switch (_context5.prev = _context5.next) {
|
2562
2141
|
case 0:
|
@@ -2657,8 +2236,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2657
2236
|
_proto.signOut =
|
2658
2237
|
/*#__PURE__*/
|
2659
2238
|
function () {
|
2660
|
-
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2661
|
-
return
|
2239
|
+
var _signOut = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
2240
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
2662
2241
|
while (1) {
|
2663
2242
|
switch (_context6.prev = _context6.next) {
|
2664
2243
|
case 0:
|
@@ -2707,8 +2286,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2707
2286
|
_proto.registerPatient =
|
2708
2287
|
/*#__PURE__*/
|
2709
2288
|
function () {
|
2710
|
-
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2711
|
-
return
|
2289
|
+
var _registerPatient2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(patientUuid, consult, workflow, recoveryQA) {
|
2290
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
2712
2291
|
while (1) {
|
2713
2292
|
switch (_context7.prev = _context7.next) {
|
2714
2293
|
case 0:
|
@@ -2751,8 +2330,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2751
2330
|
_proto.buildVaultIndex =
|
2752
2331
|
/*#__PURE__*/
|
2753
2332
|
function () {
|
2754
|
-
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2755
|
-
return
|
2333
|
+
var _buildVaultIndex = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(forceRefresh) {
|
2334
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
2756
2335
|
while (1) {
|
2757
2336
|
switch (_context8.prev = _context8.next) {
|
2758
2337
|
case 0:
|
@@ -2800,12 +2379,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2800
2379
|
_proto.forceUpdateIndexEntries =
|
2801
2380
|
/*#__PURE__*/
|
2802
2381
|
function () {
|
2803
|
-
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2382
|
+
var _forceUpdateIndexEntries = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
2804
2383
|
var _this = this,
|
2805
2384
|
_this$vaultIndexAdd;
|
2806
2385
|
|
2807
2386
|
var grants, indexConsultLockbox;
|
2808
|
-
return
|
2387
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
2809
2388
|
while (1) {
|
2810
2389
|
switch (_context10.prev = _context10.next) {
|
2811
2390
|
case 0:
|
@@ -2816,8 +2395,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
2816
2395
|
grants = _context10.sent;
|
2817
2396
|
_context10.next = 5;
|
2818
2397
|
return Promise.all(grants.map( /*#__PURE__*/function () {
|
2819
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
2820
|
-
return
|
2398
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(grant) {
|
2399
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
2821
2400
|
while (1) {
|
2822
2401
|
switch (_context9.prev = _context9.next) {
|
2823
2402
|
case 0:
|
@@ -2893,12 +2472,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
2893
2472
|
_proto.vaultIndexAdd =
|
2894
2473
|
/*#__PURE__*/
|
2895
2474
|
function () {
|
2896
|
-
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2475
|
+
var _vaultIndexAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(entries, indexOwnerUuid) {
|
2897
2476
|
var _this2 = this;
|
2898
2477
|
|
2899
2478
|
var rsaPub, base64IndexOwnerPubKey, encryptedIndex, _i, _Object$keys, keyString, key;
|
2900
2479
|
|
2901
|
-
return
|
2480
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
2902
2481
|
while (1) {
|
2903
2482
|
switch (_context11.prev = _context11.next) {
|
2904
2483
|
case 0:
|
@@ -3020,11 +2599,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
3020
2599
|
_proto.indexSnapshotAdd =
|
3021
2600
|
/*#__PURE__*/
|
3022
2601
|
function () {
|
3023
|
-
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2602
|
+
var _indexSnapshotAdd = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(index) {
|
3024
2603
|
var _index$IndexKey$Consu, _cleanedIndex;
|
3025
2604
|
|
3026
2605
|
var rsaPub, cleanedIndex, encryptedIndexEntry, encryptedIndex;
|
3027
|
-
return
|
2606
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
3028
2607
|
while (1) {
|
3029
2608
|
switch (_context12.prev = _context12.next) {
|
3030
2609
|
case 0:
|
@@ -3082,9 +2661,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3082
2661
|
_proto.grantLockbox =
|
3083
2662
|
/*#__PURE__*/
|
3084
2663
|
function () {
|
3085
|
-
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2664
|
+
var _grantLockbox = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(granteeUuid, lockboxUuid, lockboxOwnerUuid) {
|
3086
2665
|
var secret, base64GranteePublicKey, granteePublicKey, granteeEncryptedSecret, request;
|
3087
|
-
return
|
2666
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
3088
2667
|
while (1) {
|
3089
2668
|
switch (_context13.prev = _context13.next) {
|
3090
2669
|
case 0:
|
@@ -3144,9 +2723,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3144
2723
|
_proto.createMessageData =
|
3145
2724
|
/*#__PURE__*/
|
3146
2725
|
function () {
|
3147
|
-
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2726
|
+
var _createMessageData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(lockboxUuid, message, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3148
2727
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3149
|
-
return
|
2728
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
3150
2729
|
while (1) {
|
3151
2730
|
switch (_context14.prev = _context14.next) {
|
3152
2731
|
case 0:
|
@@ -3216,9 +2795,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3216
2795
|
_proto.createMessageAttachmentData =
|
3217
2796
|
/*#__PURE__*/
|
3218
2797
|
function () {
|
3219
|
-
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2798
|
+
var _createMessageAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(lockboxUuid, data, consultationId, lockboxOwnerUuid, previousDataUuid) {
|
3220
2799
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, meta, request;
|
3221
|
-
return
|
2800
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
3222
2801
|
while (1) {
|
3223
2802
|
switch (_context15.prev = _context15.next) {
|
3224
2803
|
case 0:
|
@@ -3303,8 +2882,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3303
2882
|
_proto.createConsultationAttachmentData =
|
3304
2883
|
/*#__PURE__*/
|
3305
2884
|
function () {
|
3306
|
-
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3307
|
-
return
|
2885
|
+
var _createConsultationAttachmentData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(lockboxUuid, data, consultationId, documentType, lockboxOwnerUuid, previousDataUuid) {
|
2886
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
3308
2887
|
while (1) {
|
3309
2888
|
switch (_context16.prev = _context16.next) {
|
3310
2889
|
case 0:
|
@@ -3375,9 +2954,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3375
2954
|
_proto.createJsonData =
|
3376
2955
|
/*#__PURE__*/
|
3377
2956
|
function () {
|
3378
|
-
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
2957
|
+
var _createJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3379
2958
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3380
|
-
return
|
2959
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
3381
2960
|
while (1) {
|
3382
2961
|
switch (_context17.prev = _context17.next) {
|
3383
2962
|
case 0:
|
@@ -3431,9 +3010,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3431
3010
|
_proto.getOrInsertJsonData =
|
3432
3011
|
/*#__PURE__*/
|
3433
3012
|
function () {
|
3434
|
-
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3013
|
+
var _getOrInsertJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(lockboxUuid, data, publicMetadata, privateMetadata, forceReplace) {
|
3435
3014
|
var manifest;
|
3436
|
-
return
|
3015
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
3437
3016
|
while (1) {
|
3438
3017
|
switch (_context18.prev = _context18.next) {
|
3439
3018
|
case 0:
|
@@ -3496,9 +3075,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3496
3075
|
_proto.createBytesData =
|
3497
3076
|
/*#__PURE__*/
|
3498
3077
|
function () {
|
3499
|
-
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3078
|
+
var _createBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(lockboxUuid, data, meta, privateMeta, lockboxOwnerUuid, previousDataUuid) {
|
3500
3079
|
var symmetricEncryptor, encryptedData, encryptedPrivateMeta, request;
|
3501
|
-
return
|
3080
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
3502
3081
|
while (1) {
|
3503
3082
|
switch (_context19.prev = _context19.next) {
|
3504
3083
|
case 0:
|
@@ -3554,10 +3133,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3554
3133
|
_proto.getJsonData =
|
3555
3134
|
/*#__PURE__*/
|
3556
3135
|
function () {
|
3557
|
-
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3136
|
+
var _getJsonData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3558
3137
|
var _yield$Promise$all, encryptedPayload, symmetricDecryptor;
|
3559
3138
|
|
3560
|
-
return
|
3139
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
3561
3140
|
while (1) {
|
3562
3141
|
switch (_context20.prev = _context20.next) {
|
3563
3142
|
case 0:
|
@@ -3604,10 +3183,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
3604
3183
|
_proto.getBytesData =
|
3605
3184
|
/*#__PURE__*/
|
3606
3185
|
function () {
|
3607
|
-
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3186
|
+
var _getBytesData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee21(lockboxUuid, dataUuid, lockboxOwnerUuid) {
|
3608
3187
|
var _yield$Promise$all2, encryptedPayload, symmetricDecryptor;
|
3609
3188
|
|
3610
|
-
return
|
3189
|
+
return _regeneratorRuntime().wrap(function _callee21$(_context21) {
|
3611
3190
|
while (1) {
|
3612
3191
|
switch (_context21.prev = _context21.next) {
|
3613
3192
|
case 0:
|
@@ -3657,9 +3236,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3657
3236
|
_proto.getGrants =
|
3658
3237
|
/*#__PURE__*/
|
3659
3238
|
function () {
|
3660
|
-
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3239
|
+
var _getGrants = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(filter, forceRefresh) {
|
3661
3240
|
var filterString, grantsByConsultLockbox, decryptedConsults, encryptedGrants, decryptedGrants;
|
3662
|
-
return
|
3241
|
+
return _regeneratorRuntime().wrap(function _callee22$(_context22) {
|
3663
3242
|
while (1) {
|
3664
3243
|
switch (_context22.prev = _context22.next) {
|
3665
3244
|
case 0:
|
@@ -3777,9 +3356,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3777
3356
|
_proto.getCachedSecretCryptor =
|
3778
3357
|
/*#__PURE__*/
|
3779
3358
|
function () {
|
3780
|
-
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3359
|
+
var _getCachedSecretCryptor = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee23(lockboxUuid, lockboxOwnerUuid) {
|
3781
3360
|
var index, encryptedSecret, secret, cryptor;
|
3782
|
-
return
|
3361
|
+
return _regeneratorRuntime().wrap(function _callee23$(_context23) {
|
3783
3362
|
while (1) {
|
3784
3363
|
switch (_context23.prev = _context23.next) {
|
3785
3364
|
case 0:
|
@@ -3844,8 +3423,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3844
3423
|
_proto.getPersonalInformationsFromConsultId =
|
3845
3424
|
/*#__PURE__*/
|
3846
3425
|
function () {
|
3847
|
-
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3848
|
-
return
|
3426
|
+
var _getPersonalInformationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee24(consultationId, category, forceRefresh) {
|
3427
|
+
return _regeneratorRuntime().wrap(function _callee24$(_context24) {
|
3849
3428
|
while (1) {
|
3850
3429
|
switch (_context24.prev = _context24.next) {
|
3851
3430
|
case 0:
|
@@ -3882,8 +3461,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3882
3461
|
_proto.getMedicalDataFromConsultId =
|
3883
3462
|
/*#__PURE__*/
|
3884
3463
|
function () {
|
3885
|
-
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3886
|
-
return
|
3464
|
+
var _getMedicalDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee25(consultationId, forceRefresh) {
|
3465
|
+
return _regeneratorRuntime().wrap(function _callee25$(_context25) {
|
3887
3466
|
while (1) {
|
3888
3467
|
switch (_context25.prev = _context25.next) {
|
3889
3468
|
case 0:
|
@@ -3909,12 +3488,12 @@ var OroClient = /*#__PURE__*/function () {
|
|
3909
3488
|
}();
|
3910
3489
|
|
3911
3490
|
_proto.getMetaCategoryFromConsultId = /*#__PURE__*/function () {
|
3912
|
-
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3491
|
+
var _getMetaCategoryFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(consultationId, category, forceRefresh) {
|
3913
3492
|
var _this3 = this;
|
3914
3493
|
|
3915
3494
|
var grants, workflowData, _loop, _iterator, _step;
|
3916
3495
|
|
3917
|
-
return
|
3496
|
+
return _regeneratorRuntime().wrap(function _callee27$(_context28) {
|
3918
3497
|
while (1) {
|
3919
3498
|
switch (_context28.prev = _context28.next) {
|
3920
3499
|
case 0:
|
@@ -3930,9 +3509,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
3930
3509
|
case 3:
|
3931
3510
|
grants = _context28.sent;
|
3932
3511
|
workflowData = [];
|
3933
|
-
_loop = /*#__PURE__*/
|
3512
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
3934
3513
|
var grant, manifest, data;
|
3935
|
-
return
|
3514
|
+
return _regeneratorRuntime().wrap(function _loop$(_context27) {
|
3936
3515
|
while (1) {
|
3937
3516
|
switch (_context27.prev = _context27.next) {
|
3938
3517
|
case 0:
|
@@ -3966,8 +3545,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
3966
3545
|
case 8:
|
3967
3546
|
_context27.next = 10;
|
3968
3547
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
3969
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/
|
3970
|
-
return
|
3548
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee26(entry) {
|
3549
|
+
return _regeneratorRuntime().wrap(function _callee26$(_context26) {
|
3971
3550
|
while (1) {
|
3972
3551
|
switch (_context26.prev = _context26.next) {
|
3973
3552
|
case 0:
|
@@ -4051,9 +3630,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4051
3630
|
_proto.getPersonalInformations =
|
4052
3631
|
/*#__PURE__*/
|
4053
3632
|
function () {
|
4054
|
-
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3633
|
+
var _getPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(userId) {
|
4055
3634
|
var grant, lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4056
|
-
return
|
3635
|
+
return _regeneratorRuntime().wrap(function _callee28$(_context29) {
|
4057
3636
|
while (1) {
|
4058
3637
|
switch (_context29.prev = _context29.next) {
|
4059
3638
|
case 0:
|
@@ -4139,9 +3718,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4139
3718
|
_proto.getGrantFromConsultId =
|
4140
3719
|
/*#__PURE__*/
|
4141
3720
|
function () {
|
4142
|
-
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3721
|
+
var _getGrantFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29(consultationId) {
|
4143
3722
|
var grants;
|
4144
|
-
return
|
3723
|
+
return _regeneratorRuntime().wrap(function _callee29$(_context30) {
|
4145
3724
|
while (1) {
|
4146
3725
|
switch (_context30.prev = _context30.next) {
|
4147
3726
|
case 0:
|
@@ -4187,9 +3766,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4187
3766
|
_proto.getIdentityFromConsultId =
|
4188
3767
|
/*#__PURE__*/
|
4189
3768
|
function () {
|
4190
|
-
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3769
|
+
var _getIdentityFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee30(consultationId) {
|
4191
3770
|
var grant;
|
4192
|
-
return
|
3771
|
+
return _regeneratorRuntime().wrap(function _callee30$(_context31) {
|
4193
3772
|
while (1) {
|
4194
3773
|
switch (_context31.prev = _context31.next) {
|
4195
3774
|
case 0:
|
@@ -4242,11 +3821,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4242
3821
|
_proto.getLockboxManifest =
|
4243
3822
|
/*#__PURE__*/
|
4244
3823
|
function () {
|
4245
|
-
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3824
|
+
var _getLockboxManifest = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee32(lockboxUuid, filter, expandPrivateMetadata, lockboxOwnerUuid, forceRefresh) {
|
4246
3825
|
var _this4 = this;
|
4247
3826
|
|
4248
3827
|
var manifestKey;
|
4249
|
-
return
|
3828
|
+
return _regeneratorRuntime().wrap(function _callee32$(_context33) {
|
4250
3829
|
while (1) {
|
4251
3830
|
switch (_context33.prev = _context33.next) {
|
4252
3831
|
case 0:
|
@@ -4271,9 +3850,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4271
3850
|
case 4:
|
4272
3851
|
return _context33.abrupt("return", this.vaultClient.lockboxManifestGet(lockboxUuid, filter, lockboxOwnerUuid).then(function (manifest) {
|
4273
3852
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4274
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/
|
3853
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(entry) {
|
4275
3854
|
var privateMeta;
|
4276
|
-
return
|
3855
|
+
return _regeneratorRuntime().wrap(function _callee31$(_context32) {
|
4277
3856
|
while (1) {
|
4278
3857
|
switch (_context32.prev = _context32.next) {
|
4279
3858
|
case 0:
|
@@ -4334,11 +3913,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4334
3913
|
_proto.createPersonalInformations =
|
4335
3914
|
/*#__PURE__*/
|
4336
3915
|
function () {
|
4337
|
-
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3916
|
+
var _createPersonalInformations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee33(identity, data, dataUuid) {
|
4338
3917
|
var _yield$this$getGrants;
|
4339
3918
|
|
4340
3919
|
var lockboxUuid;
|
4341
|
-
return
|
3920
|
+
return _regeneratorRuntime().wrap(function _callee33$(_context34) {
|
4342
3921
|
while (1) {
|
4343
3922
|
switch (_context34.prev = _context34.next) {
|
4344
3923
|
case 0:
|
@@ -4404,11 +3983,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4404
3983
|
_proto.createUserPreference =
|
4405
3984
|
/*#__PURE__*/
|
4406
3985
|
function () {
|
4407
|
-
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
3986
|
+
var _createUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee34(identity, preference, dataUuid) {
|
4408
3987
|
var _yield$this$getGrants2;
|
4409
3988
|
|
4410
3989
|
var lockboxUuid;
|
4411
|
-
return
|
3990
|
+
return _regeneratorRuntime().wrap(function _callee34$(_context35) {
|
4412
3991
|
while (1) {
|
4413
3992
|
switch (_context35.prev = _context35.next) {
|
4414
3993
|
case 0:
|
@@ -4472,9 +4051,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4472
4051
|
_proto.getDataFromGrant =
|
4473
4052
|
/*#__PURE__*/
|
4474
4053
|
function () {
|
4475
|
-
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4054
|
+
var _getDataFromGrant = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(grant, filter) {
|
4476
4055
|
var lockboxUuid, lockboxOwnerUuid, identificationDataUuid;
|
4477
|
-
return
|
4056
|
+
return _regeneratorRuntime().wrap(function _callee35$(_context36) {
|
4478
4057
|
while (1) {
|
4479
4058
|
switch (_context36.prev = _context36.next) {
|
4480
4059
|
case 0:
|
@@ -4540,9 +4119,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4540
4119
|
_proto.getUserPreferenceFromConsultId =
|
4541
4120
|
/*#__PURE__*/
|
4542
4121
|
function () {
|
4543
|
-
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4122
|
+
var _getUserPreferenceFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(consultationId) {
|
4544
4123
|
var grant;
|
4545
|
-
return
|
4124
|
+
return _regeneratorRuntime().wrap(function _callee36$(_context37) {
|
4546
4125
|
while (1) {
|
4547
4126
|
switch (_context37.prev = _context37.next) {
|
4548
4127
|
case 0:
|
@@ -4589,9 +4168,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4589
4168
|
_proto.getUserPreference =
|
4590
4169
|
/*#__PURE__*/
|
4591
4170
|
function () {
|
4592
|
-
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4171
|
+
var _getUserPreference = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(identity) {
|
4593
4172
|
var grant;
|
4594
|
-
return
|
4173
|
+
return _regeneratorRuntime().wrap(function _callee37$(_context38) {
|
4595
4174
|
while (1) {
|
4596
4175
|
switch (_context38.prev = _context38.next) {
|
4597
4176
|
case 0:
|
@@ -4640,9 +4219,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4640
4219
|
_proto.getRecoveryDataFromConsultId =
|
4641
4220
|
/*#__PURE__*/
|
4642
4221
|
function () {
|
4643
|
-
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4222
|
+
var _getRecoveryDataFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(consultationId) {
|
4644
4223
|
var grant;
|
4645
|
-
return
|
4224
|
+
return _regeneratorRuntime().wrap(function _callee38$(_context39) {
|
4646
4225
|
while (1) {
|
4647
4226
|
switch (_context39.prev = _context39.next) {
|
4648
4227
|
case 0:
|
@@ -4689,9 +4268,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
4689
4268
|
_proto.getRecoveryData =
|
4690
4269
|
/*#__PURE__*/
|
4691
4270
|
function () {
|
4692
|
-
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4271
|
+
var _getRecoveryData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee39(identity) {
|
4693
4272
|
var grant;
|
4694
|
-
return
|
4273
|
+
return _regeneratorRuntime().wrap(function _callee39$(_context40) {
|
4695
4274
|
while (1) {
|
4696
4275
|
switch (_context40.prev = _context40.next) {
|
4697
4276
|
case 0:
|
@@ -4745,10 +4324,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4745
4324
|
_proto.getAssignedConsultations =
|
4746
4325
|
/*#__PURE__*/
|
4747
4326
|
function () {
|
4748
|
-
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4327
|
+
var _getAssignedConsultations = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(practiceUuid, forceRefresh) {
|
4749
4328
|
var _this5 = this;
|
4750
4329
|
|
4751
|
-
return
|
4330
|
+
return _regeneratorRuntime().wrap(function _callee41$(_context42) {
|
4752
4331
|
while (1) {
|
4753
4332
|
switch (_context42.prev = _context42.next) {
|
4754
4333
|
case 0:
|
@@ -4767,8 +4346,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4767
4346
|
documentType: DocumentType.PopulatedWorkflowData
|
4768
4347
|
}, true, undefined, forceRefresh).then(function (manifest) {
|
4769
4348
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
4770
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/
|
4771
|
-
return
|
4349
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40(entry) {
|
4350
|
+
return _regeneratorRuntime().wrap(function _callee40$(_context41) {
|
4772
4351
|
while (1) {
|
4773
4352
|
switch (_context41.prev = _context41.next) {
|
4774
4353
|
case 0:
|
@@ -4822,11 +4401,11 @@ var OroClient = /*#__PURE__*/function () {
|
|
4822
4401
|
_proto.getPastConsultationsFromConsultId =
|
4823
4402
|
/*#__PURE__*/
|
4824
4403
|
function () {
|
4825
|
-
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4404
|
+
var _getPastConsultationsFromConsultId = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(consultationId, practiceUuid) {
|
4826
4405
|
var _this6 = this;
|
4827
4406
|
|
4828
4407
|
var grant, consultationsInLockbox;
|
4829
|
-
return
|
4408
|
+
return _regeneratorRuntime().wrap(function _callee43$(_context44) {
|
4830
4409
|
while (1) {
|
4831
4410
|
switch (_context44.prev = _context44.next) {
|
4832
4411
|
case 0:
|
@@ -4865,8 +4444,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4865
4444
|
case 10:
|
4866
4445
|
_context44.next = 12;
|
4867
4446
|
return Promise.all(consultationsInLockbox.map( /*#__PURE__*/function () {
|
4868
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/
|
4869
|
-
return
|
4447
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42(consultId) {
|
4448
|
+
return _regeneratorRuntime().wrap(function _callee42$(_context43) {
|
4870
4449
|
while (1) {
|
4871
4450
|
switch (_context43.prev = _context43.next) {
|
4872
4451
|
case 0:
|
@@ -4917,10 +4496,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
4917
4496
|
_proto.getPatientConsultationData =
|
4918
4497
|
/*#__PURE__*/
|
4919
4498
|
function () {
|
4920
|
-
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4499
|
+
var _getPatientConsultationData = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee44(consultationId, forceRefresh) {
|
4921
4500
|
var _this7 = this;
|
4922
4501
|
|
4923
|
-
return
|
4502
|
+
return _regeneratorRuntime().wrap(function _callee44$(_context45) {
|
4924
4503
|
while (1) {
|
4925
4504
|
switch (_context45.prev = _context45.next) {
|
4926
4505
|
case 0:
|
@@ -4974,8 +4553,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
4974
4553
|
_proto.getPatientPrescriptionsList =
|
4975
4554
|
/*#__PURE__*/
|
4976
4555
|
function () {
|
4977
|
-
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4978
|
-
return
|
4556
|
+
var _getPatientPrescriptionsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(consultationId) {
|
4557
|
+
return _regeneratorRuntime().wrap(function _callee45$(_context46) {
|
4979
4558
|
while (1) {
|
4980
4559
|
switch (_context46.prev = _context46.next) {
|
4981
4560
|
case 0:
|
@@ -5008,8 +4587,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5008
4587
|
_proto.getPatientResultsList =
|
5009
4588
|
/*#__PURE__*/
|
5010
4589
|
function () {
|
5011
|
-
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5012
|
-
return
|
4590
|
+
var _getPatientResultsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(consultationId) {
|
4591
|
+
return _regeneratorRuntime().wrap(function _callee46$(_context47) {
|
5013
4592
|
while (1) {
|
5014
4593
|
switch (_context47.prev = _context47.next) {
|
5015
4594
|
case 0:
|
@@ -5042,8 +4621,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5042
4621
|
_proto.getPatientTreatmentPlans =
|
5043
4622
|
/*#__PURE__*/
|
5044
4623
|
function () {
|
5045
|
-
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5046
|
-
return
|
4624
|
+
var _getPatientTreatmentPlans = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(consultationId) {
|
4625
|
+
return _regeneratorRuntime().wrap(function _callee47$(_context48) {
|
5047
4626
|
while (1) {
|
5048
4627
|
switch (_context48.prev = _context48.next) {
|
5049
4628
|
case 0:
|
@@ -5077,8 +4656,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5077
4656
|
_proto.getPatientTreatmentPlanByUuid =
|
5078
4657
|
/*#__PURE__*/
|
5079
4658
|
function () {
|
5080
|
-
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5081
|
-
return
|
4659
|
+
var _getPatientTreatmentPlanByUuid = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(consultationId, treatmentPlanId) {
|
4660
|
+
return _regeneratorRuntime().wrap(function _callee48$(_context49) {
|
5082
4661
|
while (1) {
|
5083
4662
|
switch (_context49.prev = _context49.next) {
|
5084
4663
|
case 0:
|
@@ -5116,10 +4695,10 @@ var OroClient = /*#__PURE__*/function () {
|
|
5116
4695
|
_proto.getPatientDocumentsList =
|
5117
4696
|
/*#__PURE__*/
|
5118
4697
|
function () {
|
5119
|
-
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4698
|
+
var _getPatientDocumentsList = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(filters, expandPrivateMetadata, consultationId) {
|
5120
4699
|
var _this8 = this;
|
5121
4700
|
|
5122
|
-
return
|
4701
|
+
return _regeneratorRuntime().wrap(function _callee50$(_context51) {
|
5123
4702
|
while (1) {
|
5124
4703
|
switch (_context51.prev = _context51.next) {
|
5125
4704
|
case 0:
|
@@ -5135,8 +4714,8 @@ var OroClient = /*#__PURE__*/function () {
|
|
5135
4714
|
consultationId: consultationId
|
5136
4715
|
}), expandPrivateMetadata, grant.lockboxOwnerUuid, true).then(function (manifest) {
|
5137
4716
|
return Promise.all(manifest.map( /*#__PURE__*/function () {
|
5138
|
-
var _ref7 = _asyncToGenerator( /*#__PURE__*/
|
5139
|
-
return
|
4717
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(entry) {
|
4718
|
+
return _regeneratorRuntime().wrap(function _callee49$(_context50) {
|
5140
4719
|
while (1) {
|
5141
4720
|
switch (_context50.prev = _context50.next) {
|
5142
4721
|
case 0:
|
@@ -5194,9 +4773,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5194
4773
|
_proto.recoverPrivateKeyFromSecurityQuestions =
|
5195
4774
|
/*#__PURE__*/
|
5196
4775
|
function () {
|
5197
|
-
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4776
|
+
var _recoverPrivateKeyFromSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5198
4777
|
var shards, answeredShards, privateKey;
|
5199
|
-
return
|
4778
|
+
return _regeneratorRuntime().wrap(function _callee51$(_context52) {
|
5200
4779
|
while (1) {
|
5201
4780
|
switch (_context52.prev = _context52.next) {
|
5202
4781
|
case 0:
|
@@ -5250,9 +4829,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5250
4829
|
_proto.recoverPrivateKeyFromPassword =
|
5251
4830
|
/*#__PURE__*/
|
5252
4831
|
function () {
|
5253
|
-
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4832
|
+
var _recoverPrivateKeyFromPassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee52(id, password) {
|
5254
4833
|
var identity, recoveryPayload, symmetricDecryptor, privateKey, symetricEncryptor;
|
5255
|
-
return
|
4834
|
+
return _regeneratorRuntime().wrap(function _callee52$(_context53) {
|
5256
4835
|
while (1) {
|
5257
4836
|
switch (_context53.prev = _context53.next) {
|
5258
4837
|
case 0:
|
@@ -5298,9 +4877,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5298
4877
|
_proto.recoverPrivateKeyFromMasterKey =
|
5299
4878
|
/*#__PURE__*/
|
5300
4879
|
function () {
|
5301
|
-
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4880
|
+
var _recoverPrivateKeyFromMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(id, masterKey) {
|
5302
4881
|
var recoveryPayload, symmetricDecryptor, privateKey;
|
5303
|
-
return
|
4882
|
+
return _regeneratorRuntime().wrap(function _callee53$(_context54) {
|
5304
4883
|
while (1) {
|
5305
4884
|
switch (_context54.prev = _context54.next) {
|
5306
4885
|
case 0:
|
@@ -5340,9 +4919,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5340
4919
|
_proto.updateSecurityQuestions =
|
5341
4920
|
/*#__PURE__*/
|
5342
4921
|
function () {
|
5343
|
-
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4922
|
+
var _updateSecurityQuestions = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(id, recoverySecurityQuestions, recoverySecurityAnswers, threshold) {
|
5344
4923
|
var securityQuestionPayload, updateRequest;
|
5345
|
-
return
|
4924
|
+
return _regeneratorRuntime().wrap(function _callee54$(_context55) {
|
5346
4925
|
while (1) {
|
5347
4926
|
switch (_context55.prev = _context55.next) {
|
5348
4927
|
case 0:
|
@@ -5394,9 +4973,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5394
4973
|
_proto.updatePassword =
|
5395
4974
|
/*#__PURE__*/
|
5396
4975
|
function () {
|
5397
|
-
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
4976
|
+
var _updatePassword = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55(id, newPassword, oldPassword) {
|
5398
4977
|
var symmetricEncryptor, passwordPayload, updateRequest;
|
5399
|
-
return
|
4978
|
+
return _regeneratorRuntime().wrap(function _callee55$(_context56) {
|
5400
4979
|
while (1) {
|
5401
4980
|
switch (_context56.prev = _context56.next) {
|
5402
4981
|
case 0:
|
@@ -5456,9 +5035,9 @@ var OroClient = /*#__PURE__*/function () {
|
|
5456
5035
|
_proto.updateMasterKey =
|
5457
5036
|
/*#__PURE__*/
|
5458
5037
|
function () {
|
5459
|
-
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/
|
5038
|
+
var _updateMasterKey = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(id, masterKey, lockboxUuid) {
|
5460
5039
|
var symmetricEncryptor, masterKeyPayload, updateRequest, updatedIdentity;
|
5461
|
-
return
|
5040
|
+
return _regeneratorRuntime().wrap(function _callee56$(_context57) {
|
5462
5041
|
while (1) {
|
5463
5042
|
switch (_context57.prev = _context57.next) {
|
5464
5043
|
case 0:
|