@sprig-technologies/sprig-browser 2.23.5 → 2.23.6
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/index.cjs +8 -8
- package/dist/index.js +169 -165
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -242,7 +242,7 @@ var Tc = z && z.__spreadArrays || function() {
|
|
|
242
242
|
return r;
|
|
243
243
|
};
|
|
244
244
|
Object.defineProperty(wt, "__esModule", { value: !0 });
|
|
245
|
-
var Lc = Vt, br = an,
|
|
245
|
+
var Lc = Vt, br = an, ne = vo, ca = {
|
|
246
246
|
NOTSET: 0,
|
|
247
247
|
DEBUG: 1,
|
|
248
248
|
INFO: 2,
|
|
@@ -261,7 +261,7 @@ var Ts = function() {
|
|
|
261
261
|
}, e;
|
|
262
262
|
}(), Rc = function() {
|
|
263
263
|
function e(t) {
|
|
264
|
-
t === void 0 && (t = {}), this.logLevel =
|
|
264
|
+
t === void 0 && (t = {}), this.logLevel = ne.LogLevel.NOTSET, t.logLevel !== void 0 && br.isValidEnum(ne.LogLevel, t.logLevel) && this.setLogLevel(t.logLevel), this.logToConsole = t.logToConsole !== void 0 ? !!t.logToConsole : !0, this.prefix = t.prefix !== void 0 ? t.prefix : "[OPTIMIZELY]";
|
|
265
265
|
}
|
|
266
266
|
return e.prototype.log = function(t, n) {
|
|
267
267
|
if (!(!this.shouldLog(t) || !this.logToConsole)) {
|
|
@@ -269,36 +269,36 @@ var Ts = function() {
|
|
|
269
269
|
this.consoleLog(t, [r]);
|
|
270
270
|
}
|
|
271
271
|
}, e.prototype.setLogLevel = function(t) {
|
|
272
|
-
t = go(t), !br.isValidEnum(
|
|
272
|
+
t = go(t), !br.isValidEnum(ne.LogLevel, t) || t === void 0 ? this.logLevel = ne.LogLevel.ERROR : this.logLevel = t;
|
|
273
273
|
}, e.prototype.getTime = function() {
|
|
274
274
|
return new Date().toISOString();
|
|
275
275
|
}, e.prototype.shouldLog = function(t) {
|
|
276
276
|
return t >= this.logLevel;
|
|
277
277
|
}, e.prototype.getLogLevelName = function(t) {
|
|
278
278
|
switch (t) {
|
|
279
|
-
case
|
|
279
|
+
case ne.LogLevel.DEBUG:
|
|
280
280
|
return "DEBUG";
|
|
281
|
-
case
|
|
281
|
+
case ne.LogLevel.INFO:
|
|
282
282
|
return "INFO ";
|
|
283
|
-
case
|
|
283
|
+
case ne.LogLevel.WARNING:
|
|
284
284
|
return "WARN ";
|
|
285
|
-
case
|
|
285
|
+
case ne.LogLevel.ERROR:
|
|
286
286
|
return "ERROR";
|
|
287
287
|
default:
|
|
288
288
|
return "NOTSET";
|
|
289
289
|
}
|
|
290
290
|
}, e.prototype.consoleLog = function(t, n) {
|
|
291
291
|
switch (t) {
|
|
292
|
-
case
|
|
292
|
+
case ne.LogLevel.DEBUG:
|
|
293
293
|
console.log.apply(console, n);
|
|
294
294
|
break;
|
|
295
|
-
case
|
|
295
|
+
case ne.LogLevel.INFO:
|
|
296
296
|
console.info.apply(console, n);
|
|
297
297
|
break;
|
|
298
|
-
case
|
|
298
|
+
case ne.LogLevel.WARNING:
|
|
299
299
|
console.warn.apply(console, n);
|
|
300
300
|
break;
|
|
301
|
-
case
|
|
301
|
+
case ne.LogLevel.ERROR:
|
|
302
302
|
console.error.apply(console, n);
|
|
303
303
|
break;
|
|
304
304
|
default:
|
|
@@ -307,7 +307,7 @@ var Ts = function() {
|
|
|
307
307
|
}, e;
|
|
308
308
|
}();
|
|
309
309
|
wt.ConsoleLogHandler = Rc;
|
|
310
|
-
var kn =
|
|
310
|
+
var kn = ne.LogLevel.NOTSET, Si = null, da = function() {
|
|
311
311
|
function e(t) {
|
|
312
312
|
t === void 0 && (t = {}), this.messagePrefix = "", t.messagePrefix && (this.messagePrefix = t.messagePrefix);
|
|
313
313
|
}
|
|
@@ -321,19 +321,19 @@ var kn = te.LogLevel.NOTSET, Si = null, da = function() {
|
|
|
321
321
|
}, e.prototype.info = function(t) {
|
|
322
322
|
for (var n = [], r = 1; r < arguments.length; r++)
|
|
323
323
|
n[r - 1] = arguments[r];
|
|
324
|
-
this.namedLog(
|
|
324
|
+
this.namedLog(ne.LogLevel.INFO, t, n);
|
|
325
325
|
}, e.prototype.debug = function(t) {
|
|
326
326
|
for (var n = [], r = 1; r < arguments.length; r++)
|
|
327
327
|
n[r - 1] = arguments[r];
|
|
328
|
-
this.namedLog(
|
|
328
|
+
this.namedLog(ne.LogLevel.DEBUG, t, n);
|
|
329
329
|
}, e.prototype.warn = function(t) {
|
|
330
330
|
for (var n = [], r = 1; r < arguments.length; r++)
|
|
331
331
|
n[r - 1] = arguments[r];
|
|
332
|
-
this.namedLog(
|
|
332
|
+
this.namedLog(ne.LogLevel.WARNING, t, n);
|
|
333
333
|
}, e.prototype.error = function(t) {
|
|
334
334
|
for (var n = [], r = 1; r < arguments.length; r++)
|
|
335
335
|
n[r - 1] = arguments[r];
|
|
336
|
-
this.namedLog(
|
|
336
|
+
this.namedLog(ne.LogLevel.ERROR, t, n);
|
|
337
337
|
}, e.prototype.format = function(t) {
|
|
338
338
|
return (this.messagePrefix ? this.messagePrefix + ": " : "") + br.sprintf.apply(void 0, Tc([t.message], t.splat));
|
|
339
339
|
}, e.prototype.internalLog = function(t, n) {
|
|
@@ -368,7 +368,7 @@ function Oc(e) {
|
|
|
368
368
|
}
|
|
369
369
|
wt.setLogHandler = Oc;
|
|
370
370
|
function Uc(e) {
|
|
371
|
-
e = go(e), !br.isValidEnum(
|
|
371
|
+
e = go(e), !br.isValidEnum(ne.LogLevel, e) || e === void 0 ? kn = ne.LogLevel.ERROR : kn = e;
|
|
372
372
|
}
|
|
373
373
|
wt.setLogLevel = Uc;
|
|
374
374
|
function Dc() {
|
|
@@ -376,7 +376,7 @@ function Dc() {
|
|
|
376
376
|
}
|
|
377
377
|
wt.getLogLevel = Dc;
|
|
378
378
|
function Pc() {
|
|
379
|
-
Ls = new Ts(), kn =
|
|
379
|
+
Ls = new Ts(), kn = ne.LogLevel.NOTSET;
|
|
380
380
|
}
|
|
381
381
|
wt.resetLogger = Pc;
|
|
382
382
|
(function(e) {
|
|
@@ -1669,7 +1669,7 @@ const Sr = (e) => new Promise((t) => {
|
|
|
1669
1669
|
}, e);
|
|
1670
1670
|
}), Wt = ({
|
|
1671
1671
|
"userleap-platform": e
|
|
1672
|
-
}) => e !== Pt.Web,
|
|
1672
|
+
}) => e !== Pt.Web, ie = (e, t) => {
|
|
1673
1673
|
const n = t ? R.MobileSuffix : R.DesktopSuffix;
|
|
1674
1674
|
return [e + n, e];
|
|
1675
1675
|
}, $e = (e, t) => [e, `${e}__${t}`];
|
|
@@ -1700,7 +1700,7 @@ function Fn(e = {}) {
|
|
|
1700
1700
|
const t = {
|
|
1701
1701
|
"Content-Type": "application/json",
|
|
1702
1702
|
"userleap-platform": Pt.Web,
|
|
1703
|
-
"x-ul-sdk-version": "2.23.
|
|
1703
|
+
"x-ul-sdk-version": "2.23.6",
|
|
1704
1704
|
[Ve.InstallationMethod]: Tf(e)
|
|
1705
1705
|
};
|
|
1706
1706
|
if (e.envId && (t[Ve.EnvironmentID] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t[Ve.UserID] = e.userId), e.visitorId && (t[Ve.VisitorID] = e.visitorId), e.partnerAnonymousId && (t[Ve.PartnerAnonymousId] = e.partnerAnonymousId), e.mobileHeadersJSON) {
|
|
@@ -1953,10 +1953,10 @@ function Li(e, t, n) {
|
|
|
1953
1953
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
1954
1954
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1955
1955
|
}
|
|
1956
|
-
var Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
1956
|
+
var Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, re = Object.keys, pe = Array.isArray;
|
|
1957
1957
|
typeof Promise < "u" && !Q.Promise && (Q.Promise = Promise);
|
|
1958
1958
|
function me(e, t) {
|
|
1959
|
-
return typeof t != "object" ||
|
|
1959
|
+
return typeof t != "object" || re(t).forEach(function(n) {
|
|
1960
1960
|
e[n] = t[n];
|
|
1961
1961
|
}), e;
|
|
1962
1962
|
}
|
|
@@ -1965,7 +1965,7 @@ function we(e, t) {
|
|
|
1965
1965
|
return Pf.call(e, t);
|
|
1966
1966
|
}
|
|
1967
1967
|
function Jt(e, t) {
|
|
1968
|
-
typeof t == "function" && (t = t(Tn(e))), (typeof Reflect > "u" ?
|
|
1968
|
+
typeof t == "function" && (t = t(Tn(e))), (typeof Reflect > "u" ? re : Reflect.ownKeys)(t).forEach(function(n) {
|
|
1969
1969
|
rt(e, n, t[n]);
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
@@ -2678,7 +2678,7 @@ function ap(e) {
|
|
|
2678
2678
|
function dr(e) {
|
|
2679
2679
|
return new A(Ln, !1, e);
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2681
|
+
function J(e, t) {
|
|
2682
2682
|
var n = P;
|
|
2683
2683
|
return function() {
|
|
2684
2684
|
var r = Kn(), i = P;
|
|
@@ -2724,7 +2724,7 @@ function Lr(e) {
|
|
|
2724
2724
|
return fe.echoes && e && e.constructor === lr ? (un(), e.then(function(t) {
|
|
2725
2725
|
return it(), t;
|
|
2726
2726
|
}, function(t) {
|
|
2727
|
-
return it(),
|
|
2727
|
+
return it(), oe(t);
|
|
2728
2728
|
})) : e;
|
|
2729
2729
|
}
|
|
2730
2730
|
function up(e) {
|
|
@@ -2802,14 +2802,14 @@ function La(e, t) {
|
|
|
2802
2802
|
} catch {
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
|
-
var
|
|
2805
|
+
var oe = A.reject;
|
|
2806
2806
|
function Hi(e, t, n, r) {
|
|
2807
2807
|
if (!e.idbdb || !e._state.openComplete && !P.letThrough && !e._vip) {
|
|
2808
2808
|
if (e._state.openComplete)
|
|
2809
|
-
return
|
|
2809
|
+
return oe(new V.DatabaseClosed(e._state.dbOpenError));
|
|
2810
2810
|
if (!e._state.isBeingOpened) {
|
|
2811
2811
|
if (!e._options.autoOpen)
|
|
2812
|
-
return
|
|
2812
|
+
return oe(new V.DatabaseClosed());
|
|
2813
2813
|
e.open().catch(W);
|
|
2814
2814
|
}
|
|
2815
2815
|
return e._state.dbReadyPromise.then(function() {
|
|
@@ -2822,7 +2822,7 @@ function Hi(e, t, n, r) {
|
|
|
2822
2822
|
} catch (o) {
|
|
2823
2823
|
return o.name === Ro.InvalidState && e.isOpen() && --e._state.PR1398_maxLoop > 0 ? (console.warn("Dexie: Need to reopen db"), e._close(), e.open().then(function() {
|
|
2824
2824
|
return Hi(e, t, n, r);
|
|
2825
|
-
})) :
|
|
2825
|
+
})) : oe(o);
|
|
2826
2826
|
}
|
|
2827
2827
|
return i._promise(t, function(o, a) {
|
|
2828
2828
|
return mt(function() {
|
|
@@ -2887,7 +2887,7 @@ var pp = function() {
|
|
|
2887
2887
|
return new this.db.WhereClause(this, t);
|
|
2888
2888
|
if (pe(t))
|
|
2889
2889
|
return new this.db.WhereClause(this, "[" + t.join("+") + "]");
|
|
2890
|
-
var n =
|
|
2890
|
+
var n = re(t);
|
|
2891
2891
|
if (n.length === 1)
|
|
2892
2892
|
return this.where(n[0]).equals(t[n[0]]);
|
|
2893
2893
|
var r = this.schema.indexes.concat(this.schema.primKey).filter(function(c) {
|
|
@@ -2981,9 +2981,9 @@ var pp = function() {
|
|
|
2981
2981
|
if (typeof t == "object" && !pe(t)) {
|
|
2982
2982
|
var r = tt(t, this.schema.primKey.keyPath);
|
|
2983
2983
|
if (r === void 0)
|
|
2984
|
-
return
|
|
2984
|
+
return oe(new V.InvalidArgument("Given object does not contain its primary key"));
|
|
2985
2985
|
try {
|
|
2986
|
-
typeof n != "function" ?
|
|
2986
|
+
typeof n != "function" ? re(n).forEach(function(i) {
|
|
2987
2987
|
Ae(t, i, n[i]);
|
|
2988
2988
|
}) : n(t, { value: t, primKey: r });
|
|
2989
2989
|
} catch {
|
|
@@ -3111,7 +3111,7 @@ function Gn(e) {
|
|
|
3111
3111
|
return t[s] = n[s] = c, c;
|
|
3112
3112
|
}
|
|
3113
3113
|
function a(s) {
|
|
3114
|
-
|
|
3114
|
+
re(s).forEach(function(l) {
|
|
3115
3115
|
var u = s[l];
|
|
3116
3116
|
if (pe(u))
|
|
3117
3117
|
o(l, s[l][0], s[l][1]);
|
|
@@ -3202,7 +3202,7 @@ function nr(e, t, n, r) {
|
|
|
3202
3202
|
function Oa(e, t, n, r) {
|
|
3203
3203
|
var i = r ? function(a, s, l) {
|
|
3204
3204
|
return n(r(a), s, l);
|
|
3205
|
-
} : n, o =
|
|
3205
|
+
} : n, o = J(i);
|
|
3206
3206
|
return e.then(function(a) {
|
|
3207
3207
|
if (a)
|
|
3208
3208
|
return a.start(function() {
|
|
@@ -3271,10 +3271,10 @@ var yp = function() {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
return e.prototype._read = function(t, n) {
|
|
3273
3273
|
var r = this._ctx;
|
|
3274
|
-
return r.error ? r.table._trans(null,
|
|
3274
|
+
return r.error ? r.table._trans(null, oe.bind(null, r.error)) : r.table._trans("readonly", t).then(n);
|
|
3275
3275
|
}, e.prototype._write = function(t) {
|
|
3276
3276
|
var n = this._ctx;
|
|
3277
|
-
return n.error ? n.table._trans(null,
|
|
3277
|
+
return n.error ? n.table._trans(null, oe.bind(null, n.error)) : n.table._trans("readwrite", t, "locked");
|
|
3278
3278
|
}, e.prototype._addAlgorithm = function(t) {
|
|
3279
3279
|
var n = this._ctx;
|
|
3280
3280
|
n.algorithm = Mt(n.algorithm, t);
|
|
@@ -3465,7 +3465,7 @@ var yp = function() {
|
|
|
3465
3465
|
if (typeof t == "function")
|
|
3466
3466
|
o = t;
|
|
3467
3467
|
else {
|
|
3468
|
-
var a =
|
|
3468
|
+
var a = re(t), s = a.length;
|
|
3469
3469
|
o = function(w) {
|
|
3470
3470
|
for (var y = !1, E = 0; E < s; ++E) {
|
|
3471
3471
|
var _ = a[E], b = t[_];
|
|
@@ -3477,7 +3477,7 @@ var yp = function() {
|
|
|
3477
3477
|
var l = r.table.core, u = l.schema.primaryKey, c = u.outbound, f = u.extractKey, d = n.db._options.modifyChunkSize || 200, p = [], h = 0, v = [], m = function(w, y) {
|
|
3478
3478
|
var E = y.failures, _ = y.numFailures;
|
|
3479
3479
|
h += w - _;
|
|
3480
|
-
for (var b = 0, S =
|
|
3480
|
+
for (var b = 0, S = re(E); b < S.length; b++) {
|
|
3481
3481
|
var x = S[b];
|
|
3482
3482
|
p.push(E[x]);
|
|
3483
3483
|
}
|
|
@@ -3869,7 +3869,7 @@ function Cp(e) {
|
|
|
3869
3869
|
});
|
|
3870
3870
|
}
|
|
3871
3871
|
function Me(e) {
|
|
3872
|
-
return
|
|
3872
|
+
return J(function(t) {
|
|
3873
3873
|
return An(t), e(t.target.error), !1;
|
|
3874
3874
|
});
|
|
3875
3875
|
}
|
|
@@ -3909,19 +3909,19 @@ var On = "storagemutated", dt = "x-storagemutated-1", yt = Gn(null, On), Ip = fu
|
|
|
3909
3909
|
}
|
|
3910
3910
|
if (!this.active)
|
|
3911
3911
|
throw new V.TransactionInactive();
|
|
3912
|
-
return yn(this._completion._state === null), t = this.idbtrans = t || (this.db.core ? this.db.core.transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability }) : r.transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })), t.onerror =
|
|
3912
|
+
return yn(this._completion._state === null), t = this.idbtrans = t || (this.db.core ? this.db.core.transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability }) : r.transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })), t.onerror = J(function(o) {
|
|
3913
3913
|
An(o), n._reject(t.error);
|
|
3914
|
-
}), t.onabort =
|
|
3914
|
+
}), t.onabort = J(function(o) {
|
|
3915
3915
|
An(o), n.active && n._reject(new V.Abort(t.error)), n.active = !1, n.on("abort").fire(o);
|
|
3916
|
-
}), t.oncomplete =
|
|
3916
|
+
}), t.oncomplete = J(function() {
|
|
3917
3917
|
n.active = !1, n._resolve(), "mutatedParts" in t && yt.storagemutated.fire(t.mutatedParts);
|
|
3918
3918
|
}), this;
|
|
3919
3919
|
}, e.prototype._promise = function(t, n, r) {
|
|
3920
3920
|
var i = this;
|
|
3921
3921
|
if (t === "readwrite" && this.mode !== "readwrite")
|
|
3922
|
-
return
|
|
3922
|
+
return oe(new V.ReadOnly("Transaction is readonly"));
|
|
3923
3923
|
if (!this.active)
|
|
3924
|
-
return
|
|
3924
|
+
return oe(new V.TransactionInactive());
|
|
3925
3925
|
if (this._locked())
|
|
3926
3926
|
return new A(function(a, s) {
|
|
3927
3927
|
i._blockedFuncs.push([function() {
|
|
@@ -3964,9 +3964,9 @@ var On = "storagemutated", dt = "x-storagemutated-1", yt = Gn(null, On), Ip = fu
|
|
|
3964
3964
|
var o = n._waitingFor;
|
|
3965
3965
|
return new A(function(a, s) {
|
|
3966
3966
|
r.then(function(l) {
|
|
3967
|
-
return n._waitingQueue.push(
|
|
3967
|
+
return n._waitingQueue.push(J(a.bind(null, l)));
|
|
3968
3968
|
}, function(l) {
|
|
3969
|
-
return n._waitingQueue.push(
|
|
3969
|
+
return n._waitingQueue.push(J(s.bind(null, l)));
|
|
3970
3970
|
}).finally(function() {
|
|
3971
3971
|
n._waitingFor === o && (n._waitingFor = null);
|
|
3972
3972
|
});
|
|
@@ -3993,7 +3993,7 @@ function kp(e) {
|
|
|
3993
3993
|
s.active = !1, s.on.complete.fire();
|
|
3994
3994
|
}, function(l) {
|
|
3995
3995
|
var u = s.active;
|
|
3996
|
-
return s.active = !1, s.on.error.fire(l), s.parent ? s.parent._reject(l) : u && s.idbtrans && s.idbtrans.abort(),
|
|
3996
|
+
return s.active = !1, s.on.error.fire(l), s.parent ? s.parent._reject(l) : u && s.idbtrans && s.idbtrans.abort(), oe(l);
|
|
3997
3997
|
});
|
|
3998
3998
|
});
|
|
3999
3999
|
}
|
|
@@ -4114,7 +4114,7 @@ function Ap(e, t, n) {
|
|
|
4114
4114
|
function p(m) {
|
|
4115
4115
|
var w = m.trans, y = m.type, E = m.keys, _ = m.values, b = m.range;
|
|
4116
4116
|
return new Promise(function(S, x) {
|
|
4117
|
-
S =
|
|
4117
|
+
S = J(S);
|
|
4118
4118
|
var I = w.objectStore(d), k = I.keyPath == null, L = y === "put" || y === "add";
|
|
4119
4119
|
if (!L && y !== "delete" && y !== "deleteRange")
|
|
4120
4120
|
throw new Error("Invalid operation type: " + y);
|
|
@@ -4160,9 +4160,9 @@ function Ap(e, t, n) {
|
|
|
4160
4160
|
function h(m) {
|
|
4161
4161
|
var w = m.trans, y = m.values, E = m.query, _ = m.reverse, b = m.unique;
|
|
4162
4162
|
return new Promise(function(S, x) {
|
|
4163
|
-
S =
|
|
4163
|
+
S = J(S);
|
|
4164
4164
|
var I = E.index, k = E.range, L = w.objectStore(d), T = I.isPrimaryKey ? L : L.index(I.name), U = _ ? b ? "prevunique" : "prev" : b ? "nextunique" : "next", C = y || !("openKeyCursor" in T) ? T.openCursor(i(k), U) : T.openKeyCursor(i(k), U);
|
|
4165
|
-
C.onerror = Me(x), C.onsuccess =
|
|
4165
|
+
C.onerror = Me(x), C.onsuccess = J(function(j) {
|
|
4166
4166
|
var O = C.result;
|
|
4167
4167
|
if (!O) {
|
|
4168
4168
|
S(null);
|
|
@@ -4176,7 +4176,7 @@ function Ap(e, t, n) {
|
|
|
4176
4176
|
}, Ee = function() {
|
|
4177
4177
|
throw new Error("Cursor not stopped");
|
|
4178
4178
|
};
|
|
4179
|
-
O.trans = w, O.stop = O.continue = O.continuePrimaryKey = O.advance = Pe, O.fail =
|
|
4179
|
+
O.trans = w, O.stop = O.continue = O.continuePrimaryKey = O.advance = Pe, O.fail = J(x), O.next = function() {
|
|
4180
4180
|
var at = this, Ne = 1;
|
|
4181
4181
|
return this.start(function() {
|
|
4182
4182
|
return Ne-- ? at.continue() : at.stop();
|
|
@@ -4185,7 +4185,7 @@ function Ap(e, t, n) {
|
|
|
4185
4185
|
});
|
|
4186
4186
|
}, O.start = function(at) {
|
|
4187
4187
|
var Ne = new Promise(function(ke, Yn) {
|
|
4188
|
-
ke =
|
|
4188
|
+
ke = J(ke), C.onerror = Me(Yn), O.fail = Yn, O.stop = function(uc) {
|
|
4189
4189
|
O.stop = O.continue = O.continuePrimaryKey = O.advance = Ee, ke(uc);
|
|
4190
4190
|
};
|
|
4191
4191
|
}), pn = function() {
|
|
@@ -4200,7 +4200,7 @@ function Ap(e, t, n) {
|
|
|
4200
4200
|
throw new Error("Cursor behind last entry");
|
|
4201
4201
|
}, O.stop();
|
|
4202
4202
|
};
|
|
4203
|
-
return C.onsuccess =
|
|
4203
|
+
return C.onsuccess = J(function(ke) {
|
|
4204
4204
|
C.onsuccess = pn, pn();
|
|
4205
4205
|
}), O.continue = Y, O.continuePrimaryKey = G, O.advance = he, pn(), Ne;
|
|
4206
4206
|
}, S(O);
|
|
@@ -4210,7 +4210,7 @@ function Ap(e, t, n) {
|
|
|
4210
4210
|
function v(m) {
|
|
4211
4211
|
return function(w) {
|
|
4212
4212
|
return new Promise(function(y, E) {
|
|
4213
|
-
y =
|
|
4213
|
+
y = J(y);
|
|
4214
4214
|
var _ = w.trans, b = w.values, S = w.limit, x = w.query, I = S === 1 / 0 ? void 0 : S, k = x.index, L = x.range, T = _.objectStore(d), U = k.isPrimaryKey ? T : T.index(k.name), C = i(L);
|
|
4215
4215
|
if (S === 0)
|
|
4216
4216
|
return y({ result: [] });
|
|
@@ -4240,7 +4240,7 @@ function Ap(e, t, n) {
|
|
|
4240
4240
|
getMany: function(m) {
|
|
4241
4241
|
var w = m.trans, y = m.keys;
|
|
4242
4242
|
return new Promise(function(E, _) {
|
|
4243
|
-
E =
|
|
4243
|
+
E = J(E);
|
|
4244
4244
|
for (var b = w.objectStore(d), S = y.length, x = new Array(S), I = 0, k = 0, L, T = function(O) {
|
|
4245
4245
|
var Y = O.target;
|
|
4246
4246
|
(x[Y._pos] = Y.result) != null, ++k === I && E(x);
|
|
@@ -4254,7 +4254,7 @@ function Ap(e, t, n) {
|
|
|
4254
4254
|
get: function(m) {
|
|
4255
4255
|
var w = m.trans, y = m.key;
|
|
4256
4256
|
return new Promise(function(E, _) {
|
|
4257
|
-
E =
|
|
4257
|
+
E = J(E);
|
|
4258
4258
|
var b = w.objectStore(d), S = b.get(y);
|
|
4259
4259
|
S.onsuccess = function(x) {
|
|
4260
4260
|
return E(x.target.result);
|
|
@@ -4267,7 +4267,7 @@ function Ap(e, t, n) {
|
|
|
4267
4267
|
var w = m.query, y = m.trans, E = w.index, _ = w.range;
|
|
4268
4268
|
return new Promise(function(b, S) {
|
|
4269
4269
|
var x = y.objectStore(d), I = E.isPrimaryKey ? x : x.index(E.name), k = i(_), L = k ? I.count(k) : I.count();
|
|
4270
|
-
L.onsuccess =
|
|
4270
|
+
L.onsuccess = J(function(T) {
|
|
4271
4271
|
return b(T.target.result);
|
|
4272
4272
|
}), L.onerror = Me(S);
|
|
4273
4273
|
});
|
|
@@ -4348,7 +4348,7 @@ function Pp(e, t, n, r) {
|
|
|
4348
4348
|
o.create(n), o._completion.catch(r);
|
|
4349
4349
|
var a = o._reject.bind(o), s = P.transless || P;
|
|
4350
4350
|
mt(function() {
|
|
4351
|
-
P.trans = o, P.transless = s, t === 0 ? (
|
|
4351
|
+
P.trans = o, P.transless = s, t === 0 ? (re(i).forEach(function(l) {
|
|
4352
4352
|
Mo(n, l, i[l].primKey, i[l].indexes);
|
|
4353
4353
|
}), No(e, n), A.follow(function() {
|
|
4354
4354
|
return e.on.populate.fire(o);
|
|
@@ -4384,7 +4384,7 @@ function Np(e, t, n, r) {
|
|
|
4384
4384
|
var m = el(p);
|
|
4385
4385
|
h.del.forEach(function(_) {
|
|
4386
4386
|
m[_] = d[_];
|
|
4387
|
-
}), qi(i, [i.Transaction.prototype]), Ar(i, [i.Transaction.prototype],
|
|
4387
|
+
}), qi(i, [i.Transaction.prototype]), Ar(i, [i.Transaction.prototype], re(m), m), n.schema = m;
|
|
4388
4388
|
var w = To(v);
|
|
4389
4389
|
w && un();
|
|
4390
4390
|
var y, E = A.follow(function() {
|
|
@@ -4456,7 +4456,7 @@ function Mo(e, t, n, r) {
|
|
|
4456
4456
|
}), i;
|
|
4457
4457
|
}
|
|
4458
4458
|
function Mp(e, t) {
|
|
4459
|
-
|
|
4459
|
+
re(e).forEach(function(n) {
|
|
4460
4460
|
t.db.objectStoreNames.contains(n) || Mo(t, n, e[n].primKey, e[n].indexes);
|
|
4461
4461
|
});
|
|
4462
4462
|
}
|
|
@@ -4484,7 +4484,7 @@ function Vp(e, t, n) {
|
|
|
4484
4484
|
var r = e._novip;
|
|
4485
4485
|
r.verno = t.version / 10;
|
|
4486
4486
|
var i = r._dbSchema = jo(r, t, n);
|
|
4487
|
-
r._storeNames = Kr(t.objectStoreNames, 0), Ar(r, [r._allTables],
|
|
4487
|
+
r._storeNames = Kr(t.objectStoreNames, 0), Ar(r, [r._allTables], re(i), i);
|
|
4488
4488
|
}
|
|
4489
4489
|
function Fp(e, t) {
|
|
4490
4490
|
var n = jo(e, e.idbdb, t), r = xl(n, e._dbSchema);
|
|
@@ -4517,7 +4517,7 @@ var Hp = function() {
|
|
|
4517
4517
|
function e() {
|
|
4518
4518
|
}
|
|
4519
4519
|
return e.prototype._parseStoresSpec = function(t, n) {
|
|
4520
|
-
|
|
4520
|
+
re(t).forEach(function(r) {
|
|
4521
4521
|
if (t[r] !== null) {
|
|
4522
4522
|
var i = Bp(t[r]), o = i.shift();
|
|
4523
4523
|
if (o.multi)
|
|
@@ -4536,7 +4536,7 @@ var Hp = function() {
|
|
|
4536
4536
|
var r = n._versions, i = {}, o = {};
|
|
4537
4537
|
return r.forEach(function(a) {
|
|
4538
4538
|
me(i, a._cfg.storesSource), o = a._cfg.dbschema = {}, a._parseStoresSpec(i, o);
|
|
4539
|
-
}), n._dbSchema = o, qi(n, [n._allTables, n, n.Transaction.prototype]), Ar(n, [n._allTables, n, n.Transaction.prototype, this._cfg.tables],
|
|
4539
|
+
}), n._dbSchema = o, qi(n, [n._allTables, n, n.Transaction.prototype]), Ar(n, [n._allTables, n, n.Transaction.prototype, this._cfg.tables], re(o), o), n._storeNames = re(o), this;
|
|
4540
4540
|
}, e.prototype.upgrade = function(t) {
|
|
4541
4541
|
return this._cfg.contentUpgrade = Ao(this._cfg.contentUpgrade || W, t), this;
|
|
4542
4542
|
}, e;
|
|
@@ -4604,7 +4604,7 @@ function Wp(e) {
|
|
|
4604
4604
|
var t = e._state, n = e._deps.indexedDB;
|
|
4605
4605
|
if (t.isBeingOpened || e.idbdb)
|
|
4606
4606
|
return t.dbReadyPromise.then(function() {
|
|
4607
|
-
return t.dbOpenError ?
|
|
4607
|
+
return t.dbOpenError ? oe(t.dbOpenError) : e;
|
|
4608
4608
|
});
|
|
4609
4609
|
Ge && (t.openCanceller._stackHolder = Ft()), t.isBeingOpened = !0, t.dbOpenError = null, t.openComplete = !1;
|
|
4610
4610
|
var r = t.openCanceller;
|
|
@@ -4620,11 +4620,11 @@ function Wp(e) {
|
|
|
4620
4620
|
var c = e.name, f = t.autoSchema ? n.open(c) : n.open(c, Math.round(e.verno * 10));
|
|
4621
4621
|
if (!f)
|
|
4622
4622
|
throw new V.MissingAPI();
|
|
4623
|
-
f.onerror = Me(u), f.onblocked =
|
|
4623
|
+
f.onerror = Me(u), f.onblocked = J(e._fireOnBlocked), f.onupgradeneeded = J(function(d) {
|
|
4624
4624
|
if (a = f.transaction, t.autoSchema && !e._options.allowEmptyDB) {
|
|
4625
4625
|
f.onerror = An, a.abort(), f.result.close();
|
|
4626
4626
|
var p = n.deleteDatabase(c);
|
|
4627
|
-
p.onsuccess = p.onerror =
|
|
4627
|
+
p.onsuccess = p.onerror = J(function() {
|
|
4628
4628
|
u(new V.NoSuchDatabase("Database " + c + " doesnt exist"));
|
|
4629
4629
|
});
|
|
4630
4630
|
} else {
|
|
@@ -4632,7 +4632,7 @@ function Wp(e) {
|
|
|
4632
4632
|
var h = d.oldVersion > Math.pow(2, 62) ? 0 : d.oldVersion;
|
|
4633
4633
|
s = h < 1, e._novip.idbdb = f.result, Pp(e, h / 10, a, u);
|
|
4634
4634
|
}
|
|
4635
|
-
}, u), f.onsuccess =
|
|
4635
|
+
}, u), f.onsuccess = J(function() {
|
|
4636
4636
|
a = null;
|
|
4637
4637
|
var d = e._novip.idbdb = f.result, p = Kr(d.objectStoreNames);
|
|
4638
4638
|
if (p.length > 0)
|
|
@@ -4641,9 +4641,9 @@ function Wp(e) {
|
|
|
4641
4641
|
t.autoSchema ? Vp(e, d, h) : (Wi(e, e._dbSchema, h), Fp(e, h) || console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")), No(e, h);
|
|
4642
4642
|
} catch {
|
|
4643
4643
|
}
|
|
4644
|
-
xn.push(e), d.onversionchange =
|
|
4644
|
+
xn.push(e), d.onversionchange = J(function(v) {
|
|
4645
4645
|
t.vcFired = !0, e.on("versionchange").fire(v);
|
|
4646
|
-
}), d.onclose =
|
|
4646
|
+
}), d.onclose = J(function(v) {
|
|
4647
4647
|
e.on("close").fire(v);
|
|
4648
4648
|
}), s && Gp(e._deps, c), l();
|
|
4649
4649
|
}, u);
|
|
@@ -4669,7 +4669,7 @@ function Wp(e) {
|
|
|
4669
4669
|
a && a.abort();
|
|
4670
4670
|
} catch {
|
|
4671
4671
|
}
|
|
4672
|
-
return r === t.openCanceller && e._close(),
|
|
4672
|
+
return r === t.openCanceller && e._close(), oe(l);
|
|
4673
4673
|
}).finally(function() {
|
|
4674
4674
|
t.openComplete = !0, o();
|
|
4675
4675
|
});
|
|
@@ -4712,7 +4712,7 @@ function Sl(e, t, n, r, i) {
|
|
|
4712
4712
|
} catch (f) {
|
|
4713
4713
|
return f.name === Ro.InvalidState && e.isOpen() && --e._state.PR1398_maxLoop > 0 ? (console.warn("Dexie: Need to reopen db"), e._close(), e.open().then(function() {
|
|
4714
4714
|
return Sl(e, t, n, null, i);
|
|
4715
|
-
})) :
|
|
4715
|
+
})) : oe(f);
|
|
4716
4716
|
}
|
|
4717
4717
|
var l = To(i);
|
|
4718
4718
|
l && un();
|
|
@@ -4725,7 +4725,7 @@ function Sl(e, t, n, r, i) {
|
|
|
4725
4725
|
typeof u.next == "function" && typeof u.throw == "function" && (u = Qi(u));
|
|
4726
4726
|
}, s);
|
|
4727
4727
|
return (u && typeof u.then == "function" ? A.resolve(u).then(function(f) {
|
|
4728
|
-
return a.active ? f :
|
|
4728
|
+
return a.active ? f : oe(new V.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"));
|
|
4729
4729
|
}) : c.then(function() {
|
|
4730
4730
|
return u;
|
|
4731
4731
|
})).then(function(f) {
|
|
@@ -4733,7 +4733,7 @@ function Sl(e, t, n, r, i) {
|
|
|
4733
4733
|
return f;
|
|
4734
4734
|
});
|
|
4735
4735
|
}).catch(function(f) {
|
|
4736
|
-
return a._reject(f),
|
|
4736
|
+
return a._reject(f), oe(f);
|
|
4737
4737
|
});
|
|
4738
4738
|
});
|
|
4739
4739
|
}
|
|
@@ -4833,7 +4833,7 @@ var Zp = {
|
|
|
4833
4833
|
create: Qp
|
|
4834
4834
|
};
|
|
4835
4835
|
function Bo(e, t, n, r) {
|
|
4836
|
-
return n = n || {}, r = r || "",
|
|
4836
|
+
return n = n || {}, r = r || "", re(e).forEach(function(i) {
|
|
4837
4837
|
if (!we(t, i))
|
|
4838
4838
|
n[r + i] = void 0;
|
|
4839
4839
|
else {
|
|
@@ -4844,7 +4844,7 @@ function Bo(e, t, n, r) {
|
|
|
4844
4844
|
} else
|
|
4845
4845
|
o !== a && (n[r + i] = t[i]);
|
|
4846
4846
|
}
|
|
4847
|
-
}),
|
|
4847
|
+
}), re(t).forEach(function(i) {
|
|
4848
4848
|
we(e, i) || (n[r + i] = t[i]);
|
|
4849
4849
|
}), n;
|
|
4850
4850
|
}
|
|
@@ -5122,7 +5122,7 @@ var rh = {
|
|
|
5122
5122
|
query: c,
|
|
5123
5123
|
openCursor: c
|
|
5124
5124
|
};
|
|
5125
|
-
return
|
|
5125
|
+
return re(f).forEach(function(d) {
|
|
5126
5126
|
u[d] = function(p) {
|
|
5127
5127
|
var h = P.subscr;
|
|
5128
5128
|
if (h) {
|
|
@@ -5320,7 +5320,7 @@ var Ko = function() {
|
|
|
5320
5320
|
var a = function() {
|
|
5321
5321
|
t.close();
|
|
5322
5322
|
var s = t._deps.indexedDB.deleteDatabase(t.name);
|
|
5323
|
-
s.onsuccess =
|
|
5323
|
+
s.onsuccess = J(function() {
|
|
5324
5324
|
qp(t._deps, t.name), i();
|
|
5325
5325
|
}), s.onerror = Me(o), s.onblocked = t._fireOnBlocked;
|
|
5326
5326
|
};
|
|
@@ -5342,7 +5342,7 @@ var Ko = function() {
|
|
|
5342
5342
|
}, Object.defineProperty(e.prototype, "tables", {
|
|
5343
5343
|
get: function() {
|
|
5344
5344
|
var t = this;
|
|
5345
|
-
return
|
|
5345
|
+
return re(this._allTables).map(function(n) {
|
|
5346
5346
|
return t._allTables[n];
|
|
5347
5347
|
});
|
|
5348
5348
|
},
|
|
@@ -5386,7 +5386,7 @@ var Ko = function() {
|
|
|
5386
5386
|
} catch (c) {
|
|
5387
5387
|
return o ? o._promise(null, function(f, d) {
|
|
5388
5388
|
d(c);
|
|
5389
|
-
}) :
|
|
5389
|
+
}) : oe(c);
|
|
5390
5390
|
}
|
|
5391
5391
|
var u = Sl.bind(null, this, s, l, o, r);
|
|
5392
5392
|
return o ? o._promise(s, u, "lock") : P.trans ? cn(P.transless, function() {
|
|
@@ -5408,7 +5408,7 @@ var Ko = function() {
|
|
|
5408
5408
|
}, e;
|
|
5409
5409
|
}();
|
|
5410
5410
|
function Il(e, t) {
|
|
5411
|
-
return
|
|
5411
|
+
return re(t).forEach(function(n) {
|
|
5412
5412
|
var r = e[n] || (e[n] = new We());
|
|
5413
5413
|
Or(r, t[n]);
|
|
5414
5414
|
}), e;
|
|
@@ -5434,7 +5434,7 @@ function sh(e) {
|
|
|
5434
5434
|
t.start && t.start(s);
|
|
5435
5435
|
var l = !1, u = !1;
|
|
5436
5436
|
function c() {
|
|
5437
|
-
return
|
|
5437
|
+
return re(a).some(function(p) {
|
|
5438
5438
|
return o[p] && nh(o[p], a[p]);
|
|
5439
5439
|
});
|
|
5440
5440
|
}
|
|
@@ -5480,7 +5480,7 @@ Jt(It, K(K({}, $r), {
|
|
|
5480
5480
|
try {
|
|
5481
5481
|
return $p(It.dependencies).then(e);
|
|
5482
5482
|
} catch {
|
|
5483
|
-
return
|
|
5483
|
+
return oe(new V.MissingAPI());
|
|
5484
5484
|
}
|
|
5485
5485
|
},
|
|
5486
5486
|
defineClass: function() {
|
|
@@ -5499,7 +5499,7 @@ Jt(It, K(K({}, $r), {
|
|
|
5499
5499
|
var t = Qi(e.apply(this, arguments));
|
|
5500
5500
|
return !t || typeof t.then != "function" ? A.resolve(t) : t;
|
|
5501
5501
|
} catch (n) {
|
|
5502
|
-
return
|
|
5502
|
+
return oe(n);
|
|
5503
5503
|
}
|
|
5504
5504
|
};
|
|
5505
5505
|
},
|
|
@@ -5508,7 +5508,7 @@ Jt(It, K(K({}, $r), {
|
|
|
5508
5508
|
var r = Qi(e.apply(n, t || []));
|
|
5509
5509
|
return !r || typeof r.then != "function" ? A.resolve(r) : r;
|
|
5510
5510
|
} catch (i) {
|
|
5511
|
-
return
|
|
5511
|
+
return oe(i);
|
|
5512
5512
|
}
|
|
5513
5513
|
},
|
|
5514
5514
|
currentTransaction: {
|
|
@@ -5642,11 +5642,11 @@ const Va = "sprig.sessionId", kl = "sprig.disableReplayRecording", Tl = () => {
|
|
|
5642
5642
|
const t = vt();
|
|
5643
5643
|
return sessionStorage.setItem(Va, t), t;
|
|
5644
5644
|
}, ot = dh(), fh = () => {
|
|
5645
|
-
Promise.all([
|
|
5645
|
+
Promise.all([X.events.clear(), X.chunkUploads.clear(), X.pendingCaptures.clear()]).catch((e) => {
|
|
5646
5646
|
window.UserLeap.reportError("Error wiping database: ", e);
|
|
5647
5647
|
});
|
|
5648
|
-
}, fi = (e, t) =>
|
|
5649
|
-
|
|
5648
|
+
}, fi = (e, t) => X.table(t).where("timestamp").below(e).delete(), ph = () => {
|
|
5649
|
+
X.events.where("sessionId").equals(ot).delete(), X.pendingCaptures.where("sessionId").equals(ot).delete();
|
|
5650
5650
|
}, hh = (e) => {
|
|
5651
5651
|
const t = e.map((n) => {
|
|
5652
5652
|
var r;
|
|
@@ -5655,39 +5655,39 @@ const Va = "sprig.sessionId", kl = "sprig.disableReplayRecording", Tl = () => {
|
|
|
5655
5655
|
sessionId: (r = n.sessionId) != null ? r : ot
|
|
5656
5656
|
};
|
|
5657
5657
|
});
|
|
5658
|
-
return
|
|
5659
|
-
}, vh = (e) =>
|
|
5658
|
+
return X.events.bulkAdd(t);
|
|
5659
|
+
}, vh = (e) => X.events.where("[sessionId+timestamp]").between([ot, e], [ot, Number.MAX_VALUE]).toArray(), mh = (e) => {
|
|
5660
5660
|
var t;
|
|
5661
|
-
return
|
|
5661
|
+
return X.chunkUploads.add({
|
|
5662
5662
|
...e,
|
|
5663
5663
|
sessionId: (t = e.sessionId) != null ? t : ot
|
|
5664
5664
|
});
|
|
5665
|
-
}, gh = (e, t) =>
|
|
5665
|
+
}, gh = (e, t) => X.chunkUploads.update(e, {
|
|
5666
5666
|
data: null,
|
|
5667
5667
|
etag: t,
|
|
5668
5668
|
status: dn.UploadComplete
|
|
5669
5669
|
}), yh = ({
|
|
5670
5670
|
status: e,
|
|
5671
5671
|
uploadId: t
|
|
5672
|
-
}) => t ?
|
|
5672
|
+
}) => t ? X.chunkUploads.where({
|
|
5673
5673
|
uploadId: t,
|
|
5674
5674
|
status: e
|
|
5675
|
-
}).toArray() :
|
|
5675
|
+
}).toArray() : X.chunkUploads.where({
|
|
5676
5676
|
sessionId: ot,
|
|
5677
5677
|
status: e
|
|
5678
|
-
}).toArray(), _h = (e) =>
|
|
5678
|
+
}).toArray(), _h = (e) => X.chunkUploads.where({
|
|
5679
5679
|
uploadId: e,
|
|
5680
5680
|
status: dn.UploadComplete
|
|
5681
|
-
}).toArray(), wh = (e) =>
|
|
5681
|
+
}).toArray(), wh = (e) => X.chunkUploads.where({
|
|
5682
5682
|
uploadId: e,
|
|
5683
5683
|
status: dn.UploadComplete
|
|
5684
5684
|
}).delete(), bh = (e) => {
|
|
5685
5685
|
var t;
|
|
5686
|
-
return
|
|
5686
|
+
return X.pendingCaptures.add({
|
|
5687
5687
|
...e,
|
|
5688
5688
|
sessionId: (t = e.sessionId) != null ? t : ot
|
|
5689
5689
|
});
|
|
5690
|
-
}, Eh = () =>
|
|
5690
|
+
}, Eh = () => X.pendingCaptures.where("sessionId").equals(ot).and((e) => e.targetTimestamp < Date.now()).toArray();
|
|
5691
5691
|
class xh extends Ko {
|
|
5692
5692
|
constructor() {
|
|
5693
5693
|
super("replayStorage", {
|
|
@@ -5698,13 +5698,13 @@ class xh extends Ko {
|
|
|
5698
5698
|
ce(this, "pendingCaptures");
|
|
5699
5699
|
}
|
|
5700
5700
|
}
|
|
5701
|
-
const
|
|
5702
|
-
|
|
5701
|
+
const X = new xh();
|
|
5702
|
+
X.version(1).stores({
|
|
5703
5703
|
events: "uuid, timestamp, [sessionId+timestamp]",
|
|
5704
5704
|
chunkUploads: "uuid, timestamp, [sessionId+status], [uploadId+status], [sessionId+status+uploadId]",
|
|
5705
5705
|
pendingCaptures: "uuid, timestamp, [sessionId+targetTimestamp]"
|
|
5706
5706
|
});
|
|
5707
|
-
|
|
5707
|
+
X.open().catch(() => {
|
|
5708
5708
|
Tl();
|
|
5709
5709
|
});
|
|
5710
5710
|
const Sh = async (e, t, n) => new Promise((r, i) => {
|
|
@@ -5766,7 +5766,9 @@ const Th = (e) => {
|
|
|
5766
5766
|
const r = setInterval(async () => {
|
|
5767
5767
|
const i = Date.now();
|
|
5768
5768
|
try {
|
|
5769
|
-
jt() || await
|
|
5769
|
+
jt() || await X.transaction("rw", X.events, X.chunkUploads, X.pendingCaptures, () => {
|
|
5770
|
+
fi(i - e * 1e3, "events"), fi(i - t * 1e3, "chunkUploads"), fi(i - n * 1e3, "pendingCaptures");
|
|
5771
|
+
});
|
|
5770
5772
|
} catch (o) {
|
|
5771
5773
|
clearInterval(r), bt("Error deleting table rows: ", o);
|
|
5772
5774
|
}
|
|
@@ -5828,10 +5830,12 @@ const Th = (e) => {
|
|
|
5828
5830
|
}), await wh(e);
|
|
5829
5831
|
}, Ph = async () => {
|
|
5830
5832
|
try {
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5833
|
+
let e = [];
|
|
5834
|
+
if (await X.transaction("rw", X.chunkUploads, async () => {
|
|
5835
|
+
e = await yh({
|
|
5836
|
+
status: dn.ReadyForUpload
|
|
5837
|
+
});
|
|
5838
|
+
}), !(e != null && e.length))
|
|
5835
5839
|
return;
|
|
5836
5840
|
const t = await Al(e);
|
|
5837
5841
|
t != null && t.length && await Promise.all(t.map(async (n) => {
|
|
@@ -5915,7 +5919,7 @@ const Mh = (e) => {
|
|
|
5915
5919
|
if (Ze && parseInt(Ze) > 0) {
|
|
5916
5920
|
const e = await Eh();
|
|
5917
5921
|
e.length && await Promise.all(e.map(async (t) => {
|
|
5918
|
-
await
|
|
5922
|
+
await X.pendingCaptures.delete(t.uuid), await Ul(t.captureParams);
|
|
5919
5923
|
})), Ze = (parseInt(Ze) - e.length).toString(), sessionStorage.setItem($o, Ze);
|
|
5920
5924
|
}
|
|
5921
5925
|
} catch (e) {
|
|
@@ -5932,7 +5936,7 @@ function jl(e) {
|
|
|
5932
5936
|
var t = e.parentNode;
|
|
5933
5937
|
t && t.removeChild(e);
|
|
5934
5938
|
}
|
|
5935
|
-
function
|
|
5939
|
+
function te(e, t, n) {
|
|
5936
5940
|
var r, i, o, a = {};
|
|
5937
5941
|
for (o in t)
|
|
5938
5942
|
o == "key" ? r = t[o] : o == "ref" ? i = t[o] : a[o] = t[o];
|
|
@@ -6212,7 +6216,7 @@ function Kh(e, t, n) {
|
|
|
6212
6216
|
}
|
|
6213
6217
|
function tn(e, t, n) {
|
|
6214
6218
|
var r, i, o;
|
|
6215
|
-
D.__ && D.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, o = [], Go(t, e = (!r && n || t).__k =
|
|
6219
|
+
D.__ && D.__(e, t), i = (r = typeof n == "function") ? null : n && n.__k || t.__k, o = [], Go(t, e = (!r && n || t).__k = te(De, null, [e]), i || Dr, Dr, t.ownerSVGElement !== void 0, !r && n ? [n] : i ? null : t.firstChild ? zn.call(t.childNodes) : null, o, !r && n ? n : i ? i.__e : t.firstChild, r), Gl(o, e);
|
|
6216
6220
|
}
|
|
6217
6221
|
function Wl(e, t) {
|
|
6218
6222
|
tn(e, t, Wl);
|
|
@@ -6461,7 +6465,7 @@ function ru(e, t) {
|
|
|
6461
6465
|
return !a && o && (o.call ? o(null) : o.current = null), t ? !t(this.props, i) || !a : io(this.props, i);
|
|
6462
6466
|
}
|
|
6463
6467
|
function r(i) {
|
|
6464
|
-
return this.shouldComponentUpdate = n,
|
|
6468
|
+
return this.shouldComponentUpdate = n, te(e, i);
|
|
6465
6469
|
}
|
|
6466
6470
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
6467
6471
|
}
|
|
@@ -6529,7 +6533,7 @@ function uu(e) {
|
|
|
6529
6533
|
throw r;
|
|
6530
6534
|
if (!n)
|
|
6531
6535
|
throw t;
|
|
6532
|
-
return
|
|
6536
|
+
return te(n, o);
|
|
6533
6537
|
}
|
|
6534
6538
|
return i.displayName = "Lazy", i.__f = !0, i;
|
|
6535
6539
|
}
|
|
@@ -6568,8 +6572,8 @@ D.unmount = function(e) {
|
|
|
6568
6572
|
}
|
|
6569
6573
|
this.__b = null;
|
|
6570
6574
|
}
|
|
6571
|
-
var i = t.__a &&
|
|
6572
|
-
return i && (i.__h = null), [
|
|
6575
|
+
var i = t.__a && te(De, null, e.fallback);
|
|
6576
|
+
return i && (i.__h = null), [te(De, null, t.__a ? null : e.children), i];
|
|
6573
6577
|
};
|
|
6574
6578
|
var rs = function(e, t, n) {
|
|
6575
6579
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
|
|
@@ -6596,10 +6600,10 @@ function Xh(e) {
|
|
|
6596
6600
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
6597
6601
|
}, removeChild: function(r) {
|
|
6598
6602
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
6599
|
-
} }), tn(
|
|
6603
|
+
} }), tn(te(Zh, { context: t.context }, e.__v), t.l)) : t.l && t.componentWillUnmount();
|
|
6600
6604
|
}
|
|
6601
6605
|
function cu(e, t) {
|
|
6602
|
-
var n =
|
|
6606
|
+
var n = te(Xh, { __v: e, i: t });
|
|
6603
6607
|
return n.containerInfo = t, n;
|
|
6604
6608
|
}
|
|
6605
6609
|
(qt.prototype = new Oe()).__a = function(e) {
|
|
@@ -6678,7 +6682,7 @@ var vu = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
|
6678
6682
|
return hu.__n[e.__c].props.value;
|
|
6679
6683
|
} } } }, ov = "17.0.2";
|
|
6680
6684
|
function mu(e) {
|
|
6681
|
-
return
|
|
6685
|
+
return te.bind(null, e);
|
|
6682
6686
|
}
|
|
6683
6687
|
function Yo(e) {
|
|
6684
6688
|
return !!e && e.$$typeof === du;
|
|
@@ -6717,7 +6721,7 @@ function Iu(e, t) {
|
|
|
6717
6721
|
});
|
|
6718
6722
|
}, [e]), n;
|
|
6719
6723
|
}
|
|
6720
|
-
var av = { useState: ue, useId: eu, useReducer: qo, useEffect: Ce, useLayoutEffect: Wn, useInsertionEffect: Cu, useTransition: Su, useDeferredValue: xu, useSyncExternalStore: Iu, startTransition: Qo, useRef: _t, useImperativeHandle: Zl, useMemo: zr, useCallback: Xl, useContext: Jl, useDebugValue: zo, version: "17.0.2", Children: ou, render: fu, hydrate: pu, unmountComponentAtNode: yu, createPortal: cu, createElement:
|
|
6724
|
+
var av = { useState: ue, useId: eu, useReducer: qo, useEffect: Ce, useLayoutEffect: Wn, useInsertionEffect: Cu, useTransition: Su, useDeferredValue: xu, useSyncExternalStore: Iu, startTransition: Qo, useRef: _t, useImperativeHandle: Zl, useMemo: zr, useCallback: Xl, useContext: Jl, useDebugValue: zo, version: "17.0.2", Children: ou, render: fu, hydrate: pu, unmountComponentAtNode: yu, createPortal: cu, createElement: te, createContext: Yl, createFactory: mu, cloneElement: gu, createRef: Vl, Fragment: De, isValidElement: Yo, findDOMNode: _u, Component: Oe, PureComponent: Mr, memo: ru, forwardRef: iu, flushSync: bu, unstable_batchedUpdates: wu, StrictMode: Eu, Suspense: In, SuspenseList: qt, lazy: uu, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: vu };
|
|
6721
6725
|
const sv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6722
6726
|
__proto__: null,
|
|
6723
6727
|
Children: ou,
|
|
@@ -6749,7 +6753,7 @@ const sv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6749
6753
|
Component: Oe,
|
|
6750
6754
|
Fragment: De,
|
|
6751
6755
|
createContext: Yl,
|
|
6752
|
-
createElement:
|
|
6756
|
+
createElement: te,
|
|
6753
6757
|
createRef: Vl,
|
|
6754
6758
|
useCallback: Xl,
|
|
6755
6759
|
useContext: Jl,
|
|
@@ -7038,7 +7042,7 @@ const ls = (e) => {
|
|
|
7038
7042
|
u.length > 0 && (l = Math.max(i[o + 1] + 1, l)), i[o] = l;
|
|
7039
7043
|
}
|
|
7040
7044
|
return i[t];
|
|
7041
|
-
}, Uv = (e) => !(e.type === N.Thanks || e.type === N.Uploading),
|
|
7045
|
+
}, Uv = (e) => !(e.type === N.Thanks || e.type === N.Uploading), ee = Ou()((e, t) => ({
|
|
7042
7046
|
answers: void 0,
|
|
7043
7047
|
apiURL: "",
|
|
7044
7048
|
border: "#000000",
|
|
@@ -7395,7 +7399,7 @@ function fs(e, t, n, r, i, o) {
|
|
|
7395
7399
|
}
|
|
7396
7400
|
}
|
|
7397
7401
|
async function Pv(e, t, n, r, i, o, a) {
|
|
7398
|
-
const s =
|
|
7402
|
+
const s = ee.getState().viewDocument, {
|
|
7399
7403
|
[$.UploadCallback]: l,
|
|
7400
7404
|
[$.ProgressCallback]: u
|
|
7401
7405
|
} = r, c = {
|
|
@@ -7639,7 +7643,7 @@ const be = (e) => g("button", {
|
|
|
7639
7643
|
hasViewedEmbed: i,
|
|
7640
7644
|
headers: o,
|
|
7641
7645
|
useDesktopPrototype: a
|
|
7642
|
-
} =
|
|
7646
|
+
} = ee((d) => ({
|
|
7643
7647
|
handleClickEmbedButton: d.handleClickEmbedButton,
|
|
7644
7648
|
hasViewedEmbed: d.hasViewedEmbed,
|
|
7645
7649
|
headers: d.headers,
|
|
@@ -7690,7 +7694,7 @@ const be = (e) => g("button", {
|
|
|
7690
7694
|
const {
|
|
7691
7695
|
styleNonce: d,
|
|
7692
7696
|
viewDocument: p
|
|
7693
|
-
} =
|
|
7697
|
+
} = ee((k) => ({
|
|
7694
7698
|
styleNonce: k.styleNonce,
|
|
7695
7699
|
viewDocument: k.viewDocument
|
|
7696
7700
|
})), [h, v] = ue(!1);
|
|
@@ -7723,7 +7727,7 @@ const be = (e) => g("button", {
|
|
|
7723
7727
|
"ontouchstart" in p.documentElement ? (b.onTouchStart = E, b.onTouchCancel = E, b.onTouchEnd = E) : (b.onMouseDown = y, b.onMouseLeave = E);
|
|
7724
7728
|
const S = a ? `radio-${o}` : `checkbox-${o}`, x = n || h ? [gr] : [], I = [...l ? [Vu] : [], ...x];
|
|
7725
7729
|
return g("div", {
|
|
7726
|
-
className: F([...
|
|
7730
|
+
className: F([...ie(R.Choice, s), ...I]),
|
|
7727
7731
|
id: `choice-div-${o}`,
|
|
7728
7732
|
style: l ? {
|
|
7729
7733
|
borderColor: wn
|
|
@@ -7763,7 +7767,7 @@ const be = (e) => g("button", {
|
|
|
7763
7767
|
})
|
|
7764
7768
|
})
|
|
7765
7769
|
}), g("label", {
|
|
7766
|
-
className: F(
|
|
7770
|
+
className: F(ie(R.ChoiceLabel, s)),
|
|
7767
7771
|
htmlFor: S,
|
|
7768
7772
|
id: `label-${o}`,
|
|
7769
7773
|
children: t
|
|
@@ -7789,7 +7793,7 @@ const be = (e) => g("button", {
|
|
|
7789
7793
|
}) => {
|
|
7790
7794
|
const i = _t(null), {
|
|
7791
7795
|
update: o
|
|
7792
|
-
} =
|
|
7796
|
+
} = ee((s) => ({
|
|
7793
7797
|
update: s.update
|
|
7794
7798
|
})), a = Mu(i, () => o());
|
|
7795
7799
|
return Ce(() => {
|
|
@@ -7798,7 +7802,7 @@ const be = (e) => g("button", {
|
|
|
7798
7802
|
"aria-label": e,
|
|
7799
7803
|
"aria-multiline": "true",
|
|
7800
7804
|
"aria-placeholder": e,
|
|
7801
|
-
className: F(
|
|
7805
|
+
className: F(ie(R.ChoiceTextInput, r)),
|
|
7802
7806
|
"data-gramm": "false",
|
|
7803
7807
|
maxLength: 5e3,
|
|
7804
7808
|
name: "text",
|
|
@@ -7843,7 +7847,7 @@ const be = (e) => g("button", {
|
|
|
7843
7847
|
headers: a,
|
|
7844
7848
|
useMobileStyling: s,
|
|
7845
7849
|
border: l
|
|
7846
|
-
} =
|
|
7850
|
+
} = ee((T) => ({
|
|
7847
7851
|
headers: T.headers,
|
|
7848
7852
|
useMobileStyling: T.useMobileStyling,
|
|
7849
7853
|
border: T.border
|
|
@@ -7888,7 +7892,7 @@ const be = (e) => g("button", {
|
|
|
7888
7892
|
}), m && g("input", {
|
|
7889
7893
|
"aria-label": w,
|
|
7890
7894
|
"aria-placeholder": w,
|
|
7891
|
-
className: F(
|
|
7895
|
+
className: F(ie(R.ConsentLegalNameInput, s)),
|
|
7892
7896
|
"data-gramm": "false",
|
|
7893
7897
|
maxLength: 250,
|
|
7894
7898
|
name: "name",
|
|
@@ -7949,11 +7953,11 @@ const be = (e) => g("button", {
|
|
|
7949
7953
|
const f = `option-${c}`, d = a === At.Number, p = a === At.Star, h = d && c === e, [v, m] = (() => c <= e && p || c === e ? r ? [t, 1] : [t, 0.3] : ["", 1])(), w = () => {
|
|
7950
7954
|
switch (a) {
|
|
7951
7955
|
case At.Star:
|
|
7952
|
-
return F([...
|
|
7956
|
+
return F([...ie(R.LikertStar, u), ...ie(`${R.LikertStar}-${c}`, u)]);
|
|
7953
7957
|
case At.Smiley:
|
|
7954
|
-
return F([...
|
|
7958
|
+
return F([...ie(R.LikertSmiley, u), ...ie(`${R.LikertSmiley}-${c}`, u)]);
|
|
7955
7959
|
default:
|
|
7956
|
-
return F(c === o ? [...
|
|
7960
|
+
return F(c === o ? [...ie(R.LikertNumber, u), ...ie(`${R.LikertNumber}-${c}`, u), ...ie("likert-last-option", u)] : [...ie(R.LikertNumber, u), ...ie(`${R.LikertNumber}-${c}`, u)]);
|
|
7957
7961
|
}
|
|
7958
7962
|
}, y = () => {
|
|
7959
7963
|
s(-1), l(!1);
|
|
@@ -7991,7 +7995,7 @@ const be = (e) => g("button", {
|
|
|
7991
7995
|
border: s,
|
|
7992
7996
|
headers: l,
|
|
7993
7997
|
useMobileStyling: u
|
|
7994
|
-
} =
|
|
7998
|
+
} = ee((L) => ({
|
|
7995
7999
|
border: L.border,
|
|
7996
8000
|
headers: L.headers,
|
|
7997
8001
|
useMobileStyling: L.useMobileStyling
|
|
@@ -8085,7 +8089,7 @@ const be = (e) => g("button", {
|
|
|
8085
8089
|
border: s,
|
|
8086
8090
|
headers: l,
|
|
8087
8091
|
useMobileStyling: u
|
|
8088
|
-
} =
|
|
8092
|
+
} = ee((x) => ({
|
|
8089
8093
|
border: x.border,
|
|
8090
8094
|
headers: x.headers,
|
|
8091
8095
|
useMobileStyling: x.useMobileStyling
|
|
@@ -8135,7 +8139,7 @@ const be = (e) => g("button", {
|
|
|
8135
8139
|
}, d(L);
|
|
8136
8140
|
}, S = () => g("div", {
|
|
8137
8141
|
children: [g("div", {
|
|
8138
|
-
className: F(
|
|
8142
|
+
className: F(ie(R.ChoiceGroup, u)),
|
|
8139
8143
|
role: h ? "radiogroup" : "group",
|
|
8140
8144
|
children: E
|
|
8141
8145
|
}), g("div", {
|
|
@@ -8227,12 +8231,12 @@ const be = (e) => g("button", {
|
|
|
8227
8231
|
border: s,
|
|
8228
8232
|
headers: l,
|
|
8229
8233
|
useMobileStyling: u
|
|
8230
|
-
} =
|
|
8234
|
+
} = ee((m) => ({
|
|
8231
8235
|
border: m.border,
|
|
8232
8236
|
headers: m.headers,
|
|
8233
8237
|
useMobileStyling: m.useMobileStyling
|
|
8234
8238
|
})), c = l["userleap-platform"], f = t && t.left, d = t && t.right, p = [...Array(11)].map((m, w) => g("div", {
|
|
8235
|
-
className: F([...
|
|
8239
|
+
className: F([...ie(R.NPSNumber, u), ...ie(`${R.NPSNumber}-${w}`, u)]),
|
|
8236
8240
|
id: `option-${w}`,
|
|
8237
8241
|
onClick: () => i({
|
|
8238
8242
|
value: w,
|
|
@@ -8306,7 +8310,7 @@ const be = (e) => g("button", {
|
|
|
8306
8310
|
headers: s,
|
|
8307
8311
|
useMobileStyling: l,
|
|
8308
8312
|
update: u
|
|
8309
|
-
} =
|
|
8313
|
+
} = ee((x) => ({
|
|
8310
8314
|
border: x.border,
|
|
8311
8315
|
headers: x.headers,
|
|
8312
8316
|
useMobileStyling: x.useMobileStyling,
|
|
@@ -8332,7 +8336,7 @@ const be = (e) => g("button", {
|
|
|
8332
8336
|
"aria-labelledby": R.QuestionHeader,
|
|
8333
8337
|
"aria-multiline": "true",
|
|
8334
8338
|
"aria-placeholder": E,
|
|
8335
|
-
className: F(
|
|
8339
|
+
className: F(ie(R.OpenTextInput, l)),
|
|
8336
8340
|
"data-gramm": "false",
|
|
8337
8341
|
maxLength: 5e3,
|
|
8338
8342
|
name: "text",
|
|
@@ -8407,7 +8411,7 @@ function oo({
|
|
|
8407
8411
|
updatePage: i
|
|
8408
8412
|
} = He.getState(), {
|
|
8409
8413
|
recorderEventEmitter: o
|
|
8410
|
-
} =
|
|
8414
|
+
} = ee.getState();
|
|
8411
8415
|
o.emit(de.AvPermission, {
|
|
8412
8416
|
[$.PermissionDescriptors]: e.permissionDescriptors,
|
|
8413
8417
|
[$.StreamReadyCallback]: (a, s) => {
|
|
@@ -8443,7 +8447,7 @@ function Zv({
|
|
|
8443
8447
|
} = He.getState(), {
|
|
8444
8448
|
eventEmitFn: s,
|
|
8445
8449
|
recorderEventEmitter: l
|
|
8446
|
-
} =
|
|
8450
|
+
} = ee.getState(), u = {
|
|
8447
8451
|
questionId: i,
|
|
8448
8452
|
surveyId: r,
|
|
8449
8453
|
visitorId: t,
|
|
@@ -8498,7 +8502,7 @@ function ao({
|
|
|
8498
8502
|
recorderEventEmitter: o,
|
|
8499
8503
|
handleUploadUpdate: a,
|
|
8500
8504
|
index: s
|
|
8501
|
-
} =
|
|
8505
|
+
} = ee.getState(), l = {
|
|
8502
8506
|
value: {
|
|
8503
8507
|
taskStatus: e
|
|
8504
8508
|
},
|
|
@@ -8545,7 +8549,7 @@ function ea({
|
|
|
8545
8549
|
const {
|
|
8546
8550
|
recorderEventEmitter: n,
|
|
8547
8551
|
eventEmitFn: r
|
|
8548
|
-
} =
|
|
8552
|
+
} = ee.getState(), {
|
|
8549
8553
|
updatePage: i,
|
|
8550
8554
|
currentPage: o,
|
|
8551
8555
|
recordingMediaTypes: a,
|
|
@@ -8707,7 +8711,7 @@ const Ku = "ul-permission-graphics-container", $u = "ul-permission-body", Gu = F
|
|
|
8707
8711
|
const {
|
|
8708
8712
|
buttonText: r,
|
|
8709
8713
|
skipButtonText: i
|
|
8710
|
-
} = e, [o] =
|
|
8714
|
+
} = e, [o] = ee((l) => [l.tabTitle]), [a, s] = ue(!1);
|
|
8711
8715
|
return g("div", {
|
|
8712
8716
|
children: [g("div", {
|
|
8713
8717
|
className: Gu,
|
|
@@ -8882,7 +8886,7 @@ const Ku = "ul-permission-graphics-container", $u = "ul-permission-body", Gu = F
|
|
|
8882
8886
|
next: n,
|
|
8883
8887
|
questionId: r
|
|
8884
8888
|
}) => {
|
|
8885
|
-
const i =
|
|
8889
|
+
const i = ee(), {
|
|
8886
8890
|
headers: o,
|
|
8887
8891
|
surveyId: a,
|
|
8888
8892
|
responseGroupUid: s,
|
|
@@ -8950,7 +8954,7 @@ const Ku = "ul-permission-graphics-container", $u = "ul-permission-body", Gu = F
|
|
|
8950
8954
|
const {
|
|
8951
8955
|
headers: a,
|
|
8952
8956
|
visitorAttributes: s
|
|
8953
|
-
} =
|
|
8957
|
+
} = ee((p) => ({
|
|
8954
8958
|
headers: p.headers,
|
|
8955
8959
|
visitorAttributes: p.visitorAttributes
|
|
8956
8960
|
})), l = a["userleap-platform"], u = (p, h = !1) => {
|
|
@@ -9019,7 +9023,7 @@ const Ku = "ul-permission-graphics-container", $u = "ul-permission-body", Gu = F
|
|
|
9019
9023
|
destroy: r,
|
|
9020
9024
|
endCard: i,
|
|
9021
9025
|
headers: o
|
|
9022
|
-
} =
|
|
9026
|
+
} = ee((l) => ({
|
|
9023
9027
|
border: l.border,
|
|
9024
9028
|
endCard: l.endCard,
|
|
9025
9029
|
destroy: l.destroy,
|
|
@@ -10241,7 +10245,7 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10241
10245
|
surveyId: f,
|
|
10242
10246
|
viewDocument: d,
|
|
10243
10247
|
visitorId: p
|
|
10244
|
-
} =
|
|
10248
|
+
} = ee((C) => ({
|
|
10245
10249
|
apiURL: C.apiURL,
|
|
10246
10250
|
envId: C.envId,
|
|
10247
10251
|
handleUploadUpdate: C.handleUploadUpdate,
|
|
@@ -10369,7 +10373,7 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10369
10373
|
const {
|
|
10370
10374
|
headers: t,
|
|
10371
10375
|
uploadProgress: n
|
|
10372
|
-
} =
|
|
10376
|
+
} = ee((a) => ({
|
|
10373
10377
|
headers: a.headers,
|
|
10374
10378
|
uploadProgress: a.uploadProgress
|
|
10375
10379
|
}));
|
|
@@ -10467,7 +10471,7 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10467
10471
|
slugName: a,
|
|
10468
10472
|
surveyId: s,
|
|
10469
10473
|
viewedCardCount: l
|
|
10470
|
-
} =
|
|
10474
|
+
} = ee((v) => ({
|
|
10471
10475
|
border: v.border,
|
|
10472
10476
|
cards: v.cards,
|
|
10473
10477
|
headers: v.headers,
|
|
@@ -10537,7 +10541,7 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10537
10541
|
update: p,
|
|
10538
10542
|
useMobileStyling: h,
|
|
10539
10543
|
viewDocument: v
|
|
10540
|
-
} =
|
|
10544
|
+
} = ee((C) => ({
|
|
10541
10545
|
answers: C.answers,
|
|
10542
10546
|
border: C.border,
|
|
10543
10547
|
cards: C.cards,
|
|
@@ -10614,67 +10618,67 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10614
10618
|
};
|
|
10615
10619
|
switch (E) {
|
|
10616
10620
|
case N.ConsentLegal:
|
|
10617
|
-
return
|
|
10621
|
+
return te(Kv, {
|
|
10618
10622
|
...C,
|
|
10619
10623
|
...y,
|
|
10620
10624
|
key: _
|
|
10621
10625
|
});
|
|
10622
10626
|
case N.Likert:
|
|
10623
|
-
return
|
|
10627
|
+
return te(Gv, {
|
|
10624
10628
|
...C,
|
|
10625
10629
|
...y,
|
|
10626
10630
|
key: _
|
|
10627
10631
|
});
|
|
10628
10632
|
case N.MultipleChoice:
|
|
10629
|
-
return
|
|
10633
|
+
return te(qv, {
|
|
10630
10634
|
...C,
|
|
10631
10635
|
...y,
|
|
10632
10636
|
key: _
|
|
10633
10637
|
});
|
|
10634
10638
|
case N.MultipleSelect:
|
|
10635
|
-
return
|
|
10639
|
+
return te(zv, {
|
|
10636
10640
|
...C,
|
|
10637
10641
|
...y,
|
|
10638
10642
|
key: _
|
|
10639
10643
|
});
|
|
10640
10644
|
case N.NPS:
|
|
10641
|
-
return
|
|
10645
|
+
return te(Wv, {
|
|
10642
10646
|
...C,
|
|
10643
10647
|
key: _,
|
|
10644
10648
|
props: y
|
|
10645
10649
|
});
|
|
10646
10650
|
case N.Open:
|
|
10647
|
-
return
|
|
10651
|
+
return te(Yv, {
|
|
10648
10652
|
...C,
|
|
10649
10653
|
...y,
|
|
10650
10654
|
key: _
|
|
10651
10655
|
});
|
|
10652
10656
|
case N.RecordedTask:
|
|
10653
|
-
return
|
|
10657
|
+
return te(am, {
|
|
10654
10658
|
...C,
|
|
10655
10659
|
...y,
|
|
10656
10660
|
key: _
|
|
10657
10661
|
});
|
|
10658
10662
|
case N.TextUrlPrompt:
|
|
10659
|
-
return
|
|
10663
|
+
return te(um, {
|
|
10660
10664
|
...C,
|
|
10661
10665
|
...y,
|
|
10662
10666
|
key: _
|
|
10663
10667
|
});
|
|
10664
10668
|
case N.Thanks:
|
|
10665
|
-
return
|
|
10669
|
+
return te(cm, {
|
|
10666
10670
|
...C,
|
|
10667
10671
|
...y,
|
|
10668
10672
|
key: _
|
|
10669
10673
|
});
|
|
10670
10674
|
case N.Uploading:
|
|
10671
|
-
return
|
|
10675
|
+
return te(Tm, {
|
|
10672
10676
|
...C,
|
|
10673
10677
|
...y,
|
|
10674
10678
|
key: _
|
|
10675
10679
|
});
|
|
10676
10680
|
case N.VideoVoice:
|
|
10677
|
-
return
|
|
10681
|
+
return te(km, {
|
|
10678
10682
|
...C,
|
|
10679
10683
|
...y,
|
|
10680
10684
|
key: _
|
|
@@ -10708,7 +10712,7 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10708
10712
|
children: g("div", {
|
|
10709
10713
|
className: "ul-app__container",
|
|
10710
10714
|
children: [g("div", {
|
|
10711
|
-
className: F(
|
|
10715
|
+
className: F(ie(R.CardContainer, h)),
|
|
10712
10716
|
style: L(),
|
|
10713
10717
|
children: [d && g("div", {
|
|
10714
10718
|
className: "ul-header__container",
|
|
@@ -10718,7 +10722,7 @@ const ct = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: i, me
|
|
|
10718
10722
|
})
|
|
10719
10723
|
}), T(), g(Lm, {})]
|
|
10720
10724
|
}), k() && g("div", {
|
|
10721
|
-
className: F(
|
|
10725
|
+
className: F(ie(R.CloseContainer, h)),
|
|
10722
10726
|
children: g("div", {
|
|
10723
10727
|
"aria-label": "Close button",
|
|
10724
10728
|
className: R.CloseButton,
|
|
@@ -10793,7 +10797,7 @@ function Dm(e, t = !0) {
|
|
|
10793
10797
|
hasEndCard: !!o,
|
|
10794
10798
|
apiURL: r,
|
|
10795
10799
|
UpChunk: c
|
|
10796
|
-
}),
|
|
10800
|
+
}), ee.setState({
|
|
10797
10801
|
apiURL: r,
|
|
10798
10802
|
answers: n,
|
|
10799
10803
|
border: e.border,
|
|
@@ -10837,7 +10841,7 @@ function Dm(e, t = !0) {
|
|
|
10837
10841
|
});
|
|
10838
10842
|
const {
|
|
10839
10843
|
seen: m
|
|
10840
|
-
} =
|
|
10844
|
+
} = ee.getState();
|
|
10841
10845
|
m();
|
|
10842
10846
|
const {
|
|
10843
10847
|
head: w
|
|
@@ -10856,7 +10860,7 @@ function Dm(e, t = !0) {
|
|
|
10856
10860
|
}, w.appendChild(S);
|
|
10857
10861
|
} else
|
|
10858
10862
|
console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");
|
|
10859
|
-
const E = "2.23.
|
|
10863
|
+
const E = "2.23.6", _ = a || ((b = l.eventEmitter) == null ? void 0 : b.emit);
|
|
10860
10864
|
_ == null || _(Ie.VerifyViewVersion, {
|
|
10861
10865
|
[Lt.ViewVersion]: E
|
|
10862
10866
|
}), p && t && tn(g(Rm, {}), p);
|