@sprig-technologies/sprig-browser 2.22.2 → 2.22.3
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 +6 -6
- package/dist/index.d.ts +5 -3
- package/dist/index.js +610 -595
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var te = (e, t, n) => (
|
|
1
|
+
var fi = Object.defineProperty;
|
|
2
|
+
var mi = (e, t, n) => t in e ? fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var te = (e, t, n) => (mi(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
var ye = /* @__PURE__ */ ((e) => (e.Closed = "close.click", e.Complete = "survey.completed", e.PageChange = "page.change", e.API = "api", e.Override = "override", e))(ye || {}), O = /* @__PURE__ */ ((e) => (e.SDKReady = "sdk.ready", e.SurveyAppeared = "survey.appeared", e.SurveyClosed = "survey.closed", e.SurveyDimensions = "survey.dimensions", e.SurveyFadingOut = "survey.fadingOut", e.SurveyHeight = "survey.height", e.SurveyPresented = "survey.presented", e.SurveyLifeCycle = "survey.lifeCycle", e.SurveyWillClose = "survey.willClose", e.SurveyWillPresent = "survey.will.present", e.CloseSurveyOnOverlayClick = "close.survey.overlayClick", e.VisitorIDUpdated = "visitor.id.updated", e))(O || {}), xr = /* @__PURE__ */ ((e) => (e.SurveyId = "survey.id", e))(xr || {});
|
|
5
5
|
const mn = {
|
|
6
6
|
SDK_READY: "sdk.ready",
|
|
@@ -28,37 +28,37 @@ const mn = {
|
|
|
28
28
|
};
|
|
29
29
|
var oe = /* @__PURE__ */ ((e) => (e.VerifyViewVersion = "verify.view.version", e.CurrentQuestion = "survey.question", e.ViewPrototypeClick = "question.prototype.click", e.ViewAgreementClick = "question.agreement.click", e.RecordedTaskStart = "recorded.task.start", e.RecordedTaskPermissionScreen = "recorded.task.permission.screen", e.SurveyComplete = "survey.complete", e))(oe || {}), Me = /* @__PURE__ */ ((e) => (e.ViewVersion = "view.version", e.QuestionId = "qid", e.Props = "props", e))(Me || {});
|
|
30
30
|
let mt;
|
|
31
|
-
const
|
|
32
|
-
function
|
|
31
|
+
const hi = new Uint8Array(16);
|
|
32
|
+
function gi() {
|
|
33
33
|
if (!mt && (mt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !mt))
|
|
34
34
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
35
|
-
return mt(
|
|
35
|
+
return mt(hi);
|
|
36
36
|
}
|
|
37
37
|
const K = [];
|
|
38
38
|
for (let e = 0; e < 256; ++e)
|
|
39
39
|
K.push((e + 256).toString(16).slice(1));
|
|
40
|
-
function
|
|
40
|
+
function vi(e, t = 0) {
|
|
41
41
|
return (K[e[t + 0]] + K[e[t + 1]] + K[e[t + 2]] + K[e[t + 3]] + "-" + K[e[t + 4]] + K[e[t + 5]] + "-" + K[e[t + 6]] + K[e[t + 7]] + "-" + K[e[t + 8]] + K[e[t + 9]] + "-" + K[e[t + 10]] + K[e[t + 11]] + K[e[t + 12]] + K[e[t + 13]] + K[e[t + 14]] + K[e[t + 15]]).toLowerCase();
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
randomUUID:
|
|
43
|
+
const _i = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Dn = {
|
|
44
|
+
randomUUID: _i
|
|
45
45
|
};
|
|
46
46
|
function Be(e, t, n) {
|
|
47
47
|
if (Dn.randomUUID && !t && !e)
|
|
48
48
|
return Dn.randomUUID();
|
|
49
49
|
e = e || {};
|
|
50
|
-
const r = e.random || (e.rng ||
|
|
50
|
+
const r = e.random || (e.rng || gi)();
|
|
51
51
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
52
52
|
n = n || 0;
|
|
53
53
|
for (let o = 0; o < 16; ++o)
|
|
54
54
|
t[n + o] = r[o];
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return vi(r);
|
|
58
58
|
}
|
|
59
59
|
const ze = "ul-app";
|
|
60
60
|
var C = /* @__PURE__ */ ((e) => (e.Caption = "ul-caption", e.CardContainer = "ul-card__container", e.CardMainContent = "ul-card-main-content", e.Choice = "choice", e.ChoiceCheckbox = "select-checkbox", e.ChoiceGroup = "ul-card__choices", e.ChoiceLabel = "select-label", e.ChoiceLabelContainer = "choice-label-container", e.ChoiceRadio = "select-radio", e.ChoiceTextEntryContainer = "choice-text-entry-container", e.ChoiceTextInput = "choice-text-input", e.CloseButton = "close-btn", e.CloseContainer = "close-container", e.ConsentLegalNameInput = "ul-consent-legal__name-input", e.CustomStyle = "ul-custom-style", e.DesktopSuffix = "--desktop", e.FadeInTransition = "fade-in-transition", e.LikertNumber = "likert-number", e.LikertSmiley = "likert-smiley", e.LikertStar = "likert-star", e.LoadingSpinner = "ul-loading-spinner", e.LoadingSpinnerContainer = "ul-loading-spinner-container", e.LoadingSpinnerFirst = "first", e.LoadingSpinnerFourth = "fourth", e.LoadingSpinnerSecond = "second", e.LoadingSpinnerThird = "third", e.MobileSuffix = "--mobile", e.NPSNumber = "nps-number", e.OpenTextInput = "ul-card-text__input", e.QuestionHeader = "ul-question", e.VideoCard = "ul-card--video", e.CheckmarkButton = "ul-button-checkmark", e.InactiveButton = "ul-button-inactive", e.LeftAlignButton = "ul-button-left-align", e.ButtonDisabled = "sprig-button-disabled", e))(C || {});
|
|
61
|
-
const hn = "#e6e6e6", rt = "#bd282a",
|
|
61
|
+
const hn = "#e6e6e6", rt = "#bd282a", wi = 500, yi = 1030;
|
|
62
62
|
var J = /* @__PURE__ */ ((e) => (e.Preview = "sprig.previewKey", e.Credentials = "userleap.ids", e.PageViews = "userleap.pageviews", e))(J || {});
|
|
63
63
|
const Cr = () => {
|
|
64
64
|
try {
|
|
@@ -66,21 +66,21 @@ const Cr = () => {
|
|
|
66
66
|
} catch (e) {
|
|
67
67
|
return console.error(e), null;
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, bi = () => {
|
|
70
70
|
const e = Cr();
|
|
71
71
|
!e || (e.ul_wasVisible && e("update", {
|
|
72
72
|
hide_default_launcher: !1
|
|
73
73
|
}), delete e.ul_wasVisible);
|
|
74
|
-
},
|
|
74
|
+
}, xi = () => {
|
|
75
75
|
const e = Cr();
|
|
76
76
|
!e || (e.ul_wasVisible = !!document.querySelector("iframe.intercom-launcher-frame"), e.ul_wasVisible && e("update", {
|
|
77
77
|
hide_default_launcher: !0
|
|
78
78
|
}));
|
|
79
|
-
},
|
|
79
|
+
}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
80
80
|
__proto__: null,
|
|
81
|
-
enable:
|
|
82
|
-
disable:
|
|
83
|
-
}, Symbol.toStringTag, { value: "Module" })), jn = [
|
|
81
|
+
enable: bi,
|
|
82
|
+
disable: xi
|
|
83
|
+
}, Symbol.toStringTag, { value: "Module" })), jn = [Ci];
|
|
84
84
|
class Qt {
|
|
85
85
|
static disable() {
|
|
86
86
|
jn.forEach((t) => t.disable());
|
|
@@ -89,21 +89,27 @@ class Qt {
|
|
|
89
89
|
jn.forEach((t) => t.enable());
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const ki = 1, We = (e) => e instanceof HTMLElement, Si = (e) => e instanceof HTMLInputElement, ot = (e) => e instanceof HTMLTextAreaElement, kr = (e, t, n) => {
|
|
93
93
|
const r = e.createElement("style");
|
|
94
94
|
n && (r.nonce = n), r.textContent = t, r.id = C.CustomStyle, e.head.appendChild(r);
|
|
95
95
|
}, Sr = (e) => {
|
|
96
|
-
const t = e.querySelector(`.${C.CardContainer}`)
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
const t = e.querySelector(`.${C.CardContainer}`);
|
|
97
|
+
let n = 600, r = 0;
|
|
98
|
+
if (t) {
|
|
99
|
+
n = t.scrollHeight;
|
|
100
|
+
const o = getComputedStyle(t), i = parseFloat(o.marginTop) + parseFloat(o.marginBottom), s = parseFloat(o.borderTopWidth) + parseFloat(o.borderBottomWidth);
|
|
101
|
+
r = i + s;
|
|
102
|
+
}
|
|
103
|
+
return n + r + ki;
|
|
104
|
+
}, Ei = (e) => {
|
|
99
105
|
const t = e.querySelector(`.${C.CardContainer}`);
|
|
100
106
|
t && (t.scrollTop = 0);
|
|
101
107
|
};
|
|
102
108
|
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
103
|
-
function
|
|
109
|
+
function Li(e) {
|
|
104
110
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
105
111
|
}
|
|
106
|
-
function
|
|
112
|
+
function Ii(e) {
|
|
107
113
|
var t = e.default;
|
|
108
114
|
if (typeof t == "function") {
|
|
109
115
|
var n = function() {
|
|
@@ -125,15 +131,15 @@ function Li(e) {
|
|
|
125
131
|
var Er = {}, Tt = {}, ct = {};
|
|
126
132
|
Object.defineProperty(ct, "__esModule", { value: !0 });
|
|
127
133
|
ct.MemoryLeakError = void 0;
|
|
128
|
-
class
|
|
134
|
+
class Ui extends Error {
|
|
129
135
|
constructor(t, n, r) {
|
|
130
136
|
super(`Possible EventEmitter memory leak detected. ${r} ${n.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`), this.emitter = t, this.type = n, this.count = r, this.name = "MaxListenersExceededWarning";
|
|
131
137
|
}
|
|
132
138
|
}
|
|
133
|
-
ct.MemoryLeakError =
|
|
139
|
+
ct.MemoryLeakError = Ui;
|
|
134
140
|
Object.defineProperty(Tt, "__esModule", { value: !0 });
|
|
135
141
|
Tt.Emitter = void 0;
|
|
136
|
-
const
|
|
142
|
+
const Ti = ct;
|
|
137
143
|
class Pt {
|
|
138
144
|
constructor() {
|
|
139
145
|
this.events = /* @__PURE__ */ new Map(), this.maxListeners = Pt.defaultMaxListeners, this.hasWarnedAboutPotentialMemoryLeak = !1;
|
|
@@ -181,7 +187,7 @@ class Pt {
|
|
|
181
187
|
const r = this._getListeners(t).concat(n);
|
|
182
188
|
if (this.events.set(t, r), this.maxListeners > 0 && this.listenerCount(t) > this.maxListeners && !this.hasWarnedAboutPotentialMemoryLeak) {
|
|
183
189
|
this.hasWarnedAboutPotentialMemoryLeak = !0;
|
|
184
|
-
const o = new
|
|
190
|
+
const o = new Ti.MemoryLeakError(this, t, this.listenerCount(t));
|
|
185
191
|
console.warn(o);
|
|
186
192
|
}
|
|
187
193
|
return this;
|
|
@@ -253,7 +259,7 @@ const Ct = (e) => new Promise((t) => {
|
|
|
253
259
|
const n = t ? C.MobileSuffix : C.DesktopSuffix;
|
|
254
260
|
return [e + n, e];
|
|
255
261
|
}, _e = (e, t) => [e, `${e}__${t}`];
|
|
256
|
-
class
|
|
262
|
+
class Pi {
|
|
257
263
|
constructor(t) {
|
|
258
264
|
te(this, "payload");
|
|
259
265
|
te(this, "promise");
|
|
@@ -269,19 +275,19 @@ class Ti {
|
|
|
269
275
|
this.resolve(t);
|
|
270
276
|
}
|
|
271
277
|
}
|
|
272
|
-
const
|
|
278
|
+
const Ri = {
|
|
273
279
|
RATELIMIT_RESET_DEFAULT: 10
|
|
274
280
|
};
|
|
275
281
|
let Lr = !1, Ir = "", ht = !1, gt = [];
|
|
276
|
-
const
|
|
282
|
+
const Di = (e) => e._config && e._config.installationMethod ? e._config.installationMethod : e._gtm ? Ie.Gtm : e._segment ? Ie.Segment : Ie.Snippet, Jt = (e = "") => {
|
|
277
283
|
Lr = !0, Ir = e;
|
|
278
284
|
};
|
|
279
285
|
function dt(e = {}) {
|
|
280
286
|
const t = {
|
|
281
287
|
"Content-Type": "application/json",
|
|
282
288
|
"userleap-platform": Fe.Web,
|
|
283
|
-
"x-ul-sdk-version": "2.22.
|
|
284
|
-
[me.InstallationMethod]:
|
|
289
|
+
"x-ul-sdk-version": "2.22.3",
|
|
290
|
+
[me.InstallationMethod]: Di(e)
|
|
285
291
|
};
|
|
286
292
|
if (e.envId && (t[me.EnvironmentID] = e.envId), e.token && (t.Authorization = "Bearer " + e.token), e.userId && (t[me.UserID] = e.userId), e.visitorId && (t[me.VisitorID] = e.visitorId), e.partnerAnonymousId && (t[me.PartnerAnonymousId] = e.partnerAnonymousId), e.mobileHeadersJSON) {
|
|
287
293
|
const n = JSON.parse(e.mobileHeadersJSON);
|
|
@@ -295,7 +301,7 @@ const An = async (e, t, n) => {
|
|
|
295
301
|
status: 429
|
|
296
302
|
};
|
|
297
303
|
{
|
|
298
|
-
const r = new
|
|
304
|
+
const r = new Pi(n);
|
|
299
305
|
return gt.push(r), r.promise;
|
|
300
306
|
}
|
|
301
307
|
}, ge = async (e, t, n = 0, r = !1, o = !1) => {
|
|
@@ -319,7 +325,7 @@ const An = async (e, t, n) => {
|
|
|
319
325
|
if (a.status === 429)
|
|
320
326
|
if (!ht && !r || o) {
|
|
321
327
|
ht = !0;
|
|
322
|
-
const d = a.headers.has("ratelimit-reset") ? Number(a.headers.get("ratelimit-reset")) :
|
|
328
|
+
const d = a.headers.has("ratelimit-reset") ? Number(a.headers.get("ratelimit-reset")) : Ri.RATELIMIT_RESET_DEFAULT;
|
|
323
329
|
return await Ct(d * 1e3), ge(e, t, 0, r, !0);
|
|
324
330
|
} else
|
|
325
331
|
return An(r, !1, i);
|
|
@@ -445,8 +451,8 @@ var Ur = { exports: {} };
|
|
|
445
451
|
return n;
|
|
446
452
|
});
|
|
447
453
|
})(Ur);
|
|
448
|
-
const
|
|
449
|
-
class
|
|
454
|
+
const ji = Ur.exports;
|
|
455
|
+
class Ai {
|
|
450
456
|
constructor(t) {
|
|
451
457
|
te(this, "awaitingResolvers", []);
|
|
452
458
|
te(this, "activeCount", 0);
|
|
@@ -476,8 +482,8 @@ class ji {
|
|
|
476
482
|
this.capacity = t;
|
|
477
483
|
}
|
|
478
484
|
}
|
|
479
|
-
const Tr = new
|
|
480
|
-
const r = (await
|
|
485
|
+
const Tr = new Ai(2), Oi = (e) => Tr.setLimit(e), Mi = ji(fetch), Ni = async (e, t = 3) => Tr.execute(async () => {
|
|
486
|
+
const r = (await Mi(e.uploadUrl, {
|
|
481
487
|
body: e.data,
|
|
482
488
|
method: "PUT",
|
|
483
489
|
retries: t,
|
|
@@ -486,7 +492,7 @@ const Tr = new ji(2), Ai = (e) => Tr.setLimit(e), Oi = Di(fetch), Mi = async (e,
|
|
|
486
492
|
if (!r)
|
|
487
493
|
throw new Error(`Upload response did not include etag for upload ${e.uploadId}, part ${e.chunkIndex}`);
|
|
488
494
|
return r;
|
|
489
|
-
}),
|
|
495
|
+
}), Vi = async ({
|
|
490
496
|
apiUrl: e,
|
|
491
497
|
surveyId: t,
|
|
492
498
|
uploadId: n,
|
|
@@ -502,9 +508,9 @@ const Tr = new ji(2), Ai = (e) => Tr.setLimit(e), Oi = Di(fetch), Mi = async (e,
|
|
|
502
508
|
surveyId: t
|
|
503
509
|
}),
|
|
504
510
|
headers: o
|
|
505
|
-
}),
|
|
511
|
+
}), Bi = (e, t) => t.some((n) => e instanceof n);
|
|
506
512
|
let On, Mn;
|
|
507
|
-
function
|
|
513
|
+
function Fi() {
|
|
508
514
|
return On || (On = [
|
|
509
515
|
IDBDatabase,
|
|
510
516
|
IDBObjectStore,
|
|
@@ -513,7 +519,7 @@ function Bi() {
|
|
|
513
519
|
IDBTransaction
|
|
514
520
|
]);
|
|
515
521
|
}
|
|
516
|
-
function
|
|
522
|
+
function $i() {
|
|
517
523
|
return Mn || (Mn = [
|
|
518
524
|
IDBCursor.prototype.advance,
|
|
519
525
|
IDBCursor.prototype.continue,
|
|
@@ -537,7 +543,7 @@ function Hi(e) {
|
|
|
537
543
|
}).catch(() => {
|
|
538
544
|
}), gn.set(t, e), t;
|
|
539
545
|
}
|
|
540
|
-
function
|
|
546
|
+
function zi(e) {
|
|
541
547
|
if (Xt.has(e))
|
|
542
548
|
return;
|
|
543
549
|
const t = new Promise((n, r) => {
|
|
@@ -571,32 +577,32 @@ let en = {
|
|
|
571
577
|
return e instanceof IDBTransaction && (t === "done" || t === "store") ? !0 : t in e;
|
|
572
578
|
}
|
|
573
579
|
};
|
|
574
|
-
function
|
|
580
|
+
function qi(e) {
|
|
575
581
|
en = e(en);
|
|
576
582
|
}
|
|
577
|
-
function
|
|
583
|
+
function Wi(e) {
|
|
578
584
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(t, ...n) {
|
|
579
585
|
const r = e.call(Nt(this), t, ...n);
|
|
580
586
|
return Rr.set(r, t.sort ? t.sort() : [t]), Ue(r);
|
|
581
|
-
} :
|
|
587
|
+
} : $i().includes(e) ? function(...t) {
|
|
582
588
|
return e.apply(Nt(this), t), Ue(Pr.get(this));
|
|
583
589
|
} : function(...t) {
|
|
584
590
|
return Ue(e.apply(Nt(this), t));
|
|
585
591
|
};
|
|
586
592
|
}
|
|
587
|
-
function
|
|
588
|
-
return typeof e == "function" ?
|
|
593
|
+
function Gi(e) {
|
|
594
|
+
return typeof e == "function" ? Wi(e) : (e instanceof IDBTransaction && zi(e), Bi(e, Fi()) ? new Proxy(e, en) : e);
|
|
589
595
|
}
|
|
590
596
|
function Ue(e) {
|
|
591
597
|
if (e instanceof IDBRequest)
|
|
592
598
|
return Hi(e);
|
|
593
599
|
if (Mt.has(e))
|
|
594
600
|
return Mt.get(e);
|
|
595
|
-
const t =
|
|
601
|
+
const t = Gi(e);
|
|
596
602
|
return t !== e && (Mt.set(e, t), gn.set(t, e)), t;
|
|
597
603
|
}
|
|
598
604
|
const Nt = (e) => gn.get(e);
|
|
599
|
-
function
|
|
605
|
+
function Ki(e, t, { blocked: n, upgrade: r, blocking: o, terminated: i } = {}) {
|
|
600
606
|
const s = indexedDB.open(e, t), a = Ue(s);
|
|
601
607
|
return r && s.addEventListener("upgradeneeded", (c) => {
|
|
602
608
|
r(Ue(s.result), c.oldVersion, c.newVersion, Ue(s.transaction), c);
|
|
@@ -609,14 +615,14 @@ function Gi(e, t, { blocked: n, upgrade: r, blocking: o, terminated: i } = {}) {
|
|
|
609
615
|
}).catch(() => {
|
|
610
616
|
}), a;
|
|
611
617
|
}
|
|
612
|
-
const
|
|
618
|
+
const Zi = ["get", "getKey", "getAll", "getAllKeys", "count"], Yi = ["put", "add", "delete", "clear"], Vt = /* @__PURE__ */ new Map();
|
|
613
619
|
function Nn(e, t) {
|
|
614
620
|
if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
|
|
615
621
|
return;
|
|
616
622
|
if (Vt.get(t))
|
|
617
623
|
return Vt.get(t);
|
|
618
|
-
const n = t.replace(/FromIndex$/, ""), r = t !== n, o =
|
|
619
|
-
if (!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(o ||
|
|
624
|
+
const n = t.replace(/FromIndex$/, ""), r = t !== n, o = Yi.includes(n);
|
|
625
|
+
if (!(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(o || Zi.includes(n)))
|
|
620
626
|
return;
|
|
621
627
|
const i = async function(s, ...a) {
|
|
622
628
|
const c = this.transaction(s, o ? "readwrite" : "readonly");
|
|
@@ -628,7 +634,7 @@ function Nn(e, t) {
|
|
|
628
634
|
};
|
|
629
635
|
return Vt.set(t, i), i;
|
|
630
636
|
}
|
|
631
|
-
|
|
637
|
+
qi((e) => ({
|
|
632
638
|
...e,
|
|
633
639
|
get: (t, n, r) => Nn(t, n) || e.get(t, n, r),
|
|
634
640
|
has: (t, n) => !!Nn(t, n) || e.has(t, n)
|
|
@@ -655,14 +661,14 @@ const tn = "sprig.sessionId", N = {
|
|
|
655
661
|
}
|
|
656
662
|
}
|
|
657
663
|
}
|
|
658
|
-
},
|
|
664
|
+
}, Qi = () => {
|
|
659
665
|
const e = sessionStorage.getItem(tn);
|
|
660
666
|
return e ? (sessionStorage.removeItem(tn), e) : Be();
|
|
661
|
-
}, X =
|
|
667
|
+
}, X = Qi();
|
|
662
668
|
window.addEventListener("beforeunload", () => {
|
|
663
669
|
sessionStorage.setItem(tn, X);
|
|
664
670
|
});
|
|
665
|
-
const
|
|
671
|
+
const Ji = async () => Ki(N.name, N.version, {
|
|
666
672
|
upgrade: (e) => {
|
|
667
673
|
const t = e.createObjectStore(N.tables.events.name, {
|
|
668
674
|
keyPath: "uuid"
|
|
@@ -673,13 +679,13 @@ const Qi = async () => Gi(N.name, N.version, {
|
|
|
673
679
|
});
|
|
674
680
|
n.createIndex(N.tables.chunkUploads.indices.session_status, ["sessionId", "status"]), n.createIndex(N.tables.chunkUploads.indices.upload_status, ["uploadId", "status"]), n.createIndex(N.tables.chunkUploads.indices.session_status_upload, ["sessionId", "status", "uploadId"]), n.createIndex(N.tables.chunkUploads.indices.timestamp, "timestamp");
|
|
675
681
|
}
|
|
676
|
-
}), se =
|
|
682
|
+
}), se = Ji(), Xi = async (e) => {
|
|
677
683
|
const n = (await se).transaction(N.tables.events.name, "readwrite");
|
|
678
684
|
return Promise.all([...e.map((r) => n.store.put({
|
|
679
685
|
...r,
|
|
680
686
|
sessionId: r.sessionId || X
|
|
681
687
|
})), n.done]);
|
|
682
|
-
},
|
|
688
|
+
}, es = async (e) => await (await se).getAllFromIndex(N.tables.events.name, N.tables.events.indices.session_timestamp, IDBKeyRange.bound([X, e], [X, Number.MAX_VALUE])), ts = async (e, t) => (await se).getAllKeysFromIndex(t, "timestamp", IDBKeyRange.upperBound(e - 1)), nn = async (e, t) => {
|
|
683
689
|
const r = (await se).transaction(e, "readwrite");
|
|
684
690
|
return Promise.all([...t.map(async (o) => {
|
|
685
691
|
try {
|
|
@@ -688,20 +694,20 @@ const Qi = async () => Gi(N.name, N.version, {
|
|
|
688
694
|
}
|
|
689
695
|
}), r.done]);
|
|
690
696
|
}, Dr = async (e, t) => {
|
|
691
|
-
const n = await
|
|
697
|
+
const n = await ts(e, t);
|
|
692
698
|
await nn(t, n);
|
|
693
|
-
}, ts = async (e) => {
|
|
694
|
-
await Dr(e, N.tables.events.name);
|
|
695
699
|
}, ns = async (e) => {
|
|
700
|
+
await Dr(e, N.tables.events.name);
|
|
701
|
+
}, rs = async (e) => {
|
|
696
702
|
await Dr(e, N.tables.chunkUploads.name);
|
|
697
|
-
},
|
|
703
|
+
}, os = async () => {
|
|
698
704
|
const e = await se, t = await e.getAllKeysFromIndex(N.tables.events.name, N.tables.events.indices.session_timestamp, IDBKeyRange.bound([X, Number.MIN_VALUE], [X, Number.MAX_VALUE])), n = await e.getAllKeysFromIndex(N.tables.chunkUploads.name, N.tables.chunkUploads.indices.session_status, IDBKeyRange.bound([X, ie.ReadyForUpload], [X, ie.UploadComplete]));
|
|
699
705
|
await Promise.all([nn(N.tables.events.name, t), nn(N.tables.chunkUploads.name, n)]);
|
|
700
|
-
},
|
|
706
|
+
}, is = async (e) => (await se).put(N.tables.chunkUploads.name, {
|
|
701
707
|
...e,
|
|
702
708
|
sessionId: e.sessionId || X,
|
|
703
709
|
etag: null
|
|
704
|
-
}),
|
|
710
|
+
}), ss = async (e, t) => {
|
|
705
711
|
const n = await se, r = await n.get(N.tables.chunkUploads.name, e);
|
|
706
712
|
if (r)
|
|
707
713
|
return n.put(N.tables.chunkUploads.name, {
|
|
@@ -710,21 +716,23 @@ const Qi = async () => Gi(N.name, N.version, {
|
|
|
710
716
|
etag: t,
|
|
711
717
|
status: ie.UploadComplete
|
|
712
718
|
});
|
|
713
|
-
},
|
|
714
|
-
const n = (await (await se).getAllFromIndex(N.tables.chunkUploads.name, N.tables.chunkUploads.indices.session_status, IDBKeyRange.bound([X, ie.UploadComplete], [X, ie.UploadComplete]))).reduce((i, s) => (i.add(s.uploadId), i), /* @__PURE__ */ new Set()), r = Array.from(n), o = await Promise.all(r.map(async (i) =>
|
|
719
|
+
}, as = async (e) => await (await se).countFromIndex(N.tables.chunkUploads.name, N.tables.chunkUploads.indices.upload_status, IDBKeyRange.bound([e, ie.ReadyForUpload], [e, ie.ReadyForUpload])) > 0, ls = async () => {
|
|
720
|
+
const n = (await (await se).getAllFromIndex(N.tables.chunkUploads.name, N.tables.chunkUploads.indices.session_status, IDBKeyRange.bound([X, ie.UploadComplete], [X, ie.UploadComplete]))).reduce((i, s) => (i.add(s.uploadId), i), /* @__PURE__ */ new Set()), r = Array.from(n), o = await Promise.all(r.map(async (i) => as(i)));
|
|
715
721
|
return r.filter((i, s) => !o[s]);
|
|
716
|
-
},
|
|
722
|
+
}, cs = async ({
|
|
717
723
|
status: e,
|
|
718
724
|
uploadId: t
|
|
719
|
-
}) => (await se).getAllKeysFromIndex(N.tables.chunkUploads.name, t ? N.tables.chunkUploads.indices.upload_status : N.tables.chunkUploads.indices.session_status, IDBKeyRange.bound([t || X, e], [t || X, e])),
|
|
725
|
+
}) => (await se).getAllKeysFromIndex(N.tables.chunkUploads.name, t ? N.tables.chunkUploads.indices.upload_status : N.tables.chunkUploads.indices.session_status, IDBKeyRange.bound([t || X, e], [t || X, e])), ds = async (e) => (await se).get(N.tables.chunkUploads.name, e), us = async (e) => (await se).getAllFromIndex(N.tables.chunkUploads.name, N.tables.chunkUploads.indices.upload_status, IDBKeyRange.bound([e, ie.UploadComplete], [e, ie.UploadComplete])), ps = async (e, t, n) => new Promise((r, o) => {
|
|
720
726
|
const i = e.createElement("script");
|
|
721
727
|
i.src = t, i.onload = r, i.onerror = o, n && (i.nonce = n), e.head.appendChild(i);
|
|
722
|
-
})
|
|
728
|
+
});
|
|
729
|
+
let jr = 5e3;
|
|
730
|
+
const fs = async (e, t, n, r = 2, o) => {
|
|
723
731
|
if (!t)
|
|
724
732
|
return;
|
|
725
|
-
|
|
733
|
+
o != null && o.minDuration && (jr = o.minDuration), Oi(r), ys(), gs();
|
|
726
734
|
const i = window;
|
|
727
|
-
i.rrwebRecord || await
|
|
735
|
+
i.rrwebRecord || await ps(e, "https://cdn.sprig.com/dependencies/rrweb-record-2.0.0-alpha.6.min.js", n);
|
|
728
736
|
const s = i.rrwebRecord;
|
|
729
737
|
if (!s)
|
|
730
738
|
return;
|
|
@@ -738,7 +746,7 @@ const Qi = async () => Gi(N.name, N.version, {
|
|
|
738
746
|
},
|
|
739
747
|
emit: (c, d) => {
|
|
740
748
|
const l = a || !!d;
|
|
741
|
-
a = !1,
|
|
749
|
+
a = !1, ms({
|
|
742
750
|
uuid: Be(),
|
|
743
751
|
event: JSON.stringify(c),
|
|
744
752
|
isValidStart: l,
|
|
@@ -749,37 +757,37 @@ const Qi = async () => Gi(N.name, N.version, {
|
|
|
749
757
|
});
|
|
750
758
|
};
|
|
751
759
|
let rn = !1, on = [];
|
|
752
|
-
const
|
|
753
|
-
on.push(e), rn ||
|
|
754
|
-
},
|
|
760
|
+
const ms = (e) => {
|
|
761
|
+
on.push(e), rn || hs();
|
|
762
|
+
}, hs = () => {
|
|
755
763
|
rn = !0, setTimeout(async () => {
|
|
756
764
|
const e = on;
|
|
757
|
-
on = [], rn = !1, await
|
|
765
|
+
on = [], rn = !1, await Xi(e);
|
|
758
766
|
}, 500);
|
|
759
|
-
},
|
|
767
|
+
}, gs = (e = 60 * 6, t = 60 * 30, n = 30) => {
|
|
760
768
|
setInterval(async () => {
|
|
761
769
|
const r = Date.now();
|
|
762
|
-
await Promise.all([
|
|
770
|
+
await Promise.all([ns(r - e * 1e3), rs(r - t * 1e3)]);
|
|
763
771
|
}, n * 1e3);
|
|
764
|
-
},
|
|
765
|
-
const t = await
|
|
772
|
+
}, vs = async (e) => {
|
|
773
|
+
const t = await es(Date.now() - e * 1e3), n = t.findIndex((r) => r.isValidStart);
|
|
766
774
|
return n < 0 ? [] : t.slice(n);
|
|
767
|
-
},
|
|
775
|
+
}, _s = (e) => {
|
|
768
776
|
const t = `[${e.map((r) => r.event).join(",")}]`;
|
|
769
777
|
return new TextEncoder().encode(t);
|
|
770
|
-
},
|
|
778
|
+
}, ws = (e, t, n) => {
|
|
771
779
|
const r = e.length, o = t * 1024 * 1024, i = Math.ceil(r / n), s = Math.max(o, i), a = [];
|
|
772
780
|
let c = 0;
|
|
773
781
|
for (; c < r; )
|
|
774
782
|
a.push(e.slice(c, c + s)), c += s;
|
|
775
783
|
return a;
|
|
776
|
-
},
|
|
784
|
+
}, Ar = async (e) => {
|
|
777
785
|
await Promise.all(e.map(async (t) => {
|
|
778
|
-
const n = await
|
|
779
|
-
await
|
|
786
|
+
const n = await ds(t), r = await Ni(n);
|
|
787
|
+
await ss(n.uuid, r);
|
|
780
788
|
}));
|
|
781
|
-
},
|
|
782
|
-
const t = await
|
|
789
|
+
}, Or = async (e) => {
|
|
790
|
+
const t = await us(e);
|
|
783
791
|
if (!t.length)
|
|
784
792
|
return;
|
|
785
793
|
t.sort((o, i) => o.chunkIndex - i.chunkIndex);
|
|
@@ -787,7 +795,7 @@ const fs = (e) => {
|
|
|
787
795
|
ETag: o.etag,
|
|
788
796
|
PartNumber: o.chunkIndex
|
|
789
797
|
})).filter((o) => o.ETag !== null), r = t[0];
|
|
790
|
-
await
|
|
798
|
+
await Vi({
|
|
791
799
|
apiUrl: r.apiUrl,
|
|
792
800
|
surveyId: r.surveyId,
|
|
793
801
|
uploadId: e,
|
|
@@ -795,53 +803,53 @@ const fs = (e) => {
|
|
|
795
803
|
etags: n,
|
|
796
804
|
headers: r.completeUploadHeaders
|
|
797
805
|
});
|
|
798
|
-
},
|
|
799
|
-
const e = await
|
|
806
|
+
}, ys = async () => {
|
|
807
|
+
const e = await cs({
|
|
800
808
|
status: ie.ReadyForUpload
|
|
801
809
|
});
|
|
802
810
|
if (!e.length)
|
|
803
811
|
return;
|
|
804
|
-
await
|
|
805
|
-
const t = await
|
|
806
|
-
await Promise.all(t.map((n) =>
|
|
807
|
-
},
|
|
808
|
-
await
|
|
809
|
-
},
|
|
810
|
-
await
|
|
811
|
-
const s = await
|
|
812
|
-
if (!s.length)
|
|
812
|
+
await Ar(e);
|
|
813
|
+
const t = await ls();
|
|
814
|
+
await Promise.all(t.map((n) => Or(n)));
|
|
815
|
+
}, bs = async (e, t) => {
|
|
816
|
+
await Ar(t), await Promise.all(e.map((n) => Or(n)));
|
|
817
|
+
}, xs = async (e, t, n, r, o, i) => {
|
|
818
|
+
await Cs();
|
|
819
|
+
const s = await vs(r.replayDurationSeconds);
|
|
820
|
+
if (!s.length || s[s.length - 1].timestamp - s[0].timestamp <= jr)
|
|
813
821
|
return;
|
|
814
|
-
const
|
|
815
|
-
const
|
|
816
|
-
return await
|
|
817
|
-
uuid:
|
|
818
|
-
chunkIndex:
|
|
819
|
-
totalChunks:
|
|
820
|
-
timestamp:
|
|
822
|
+
const c = _s(s), d = ws(c, r.minimumChunkSizeMb, r.signedUrls.length), l = Date.now(), m = await Promise.all(d.map(async (p, f) => {
|
|
823
|
+
const h = Be();
|
|
824
|
+
return await is({
|
|
825
|
+
uuid: h,
|
|
826
|
+
chunkIndex: f + 1,
|
|
827
|
+
totalChunks: d.length,
|
|
828
|
+
timestamp: l,
|
|
821
829
|
surveyId: t,
|
|
822
830
|
responseGroupId: e,
|
|
823
831
|
status: ie.ReadyForUpload,
|
|
824
|
-
data:
|
|
832
|
+
data: p,
|
|
825
833
|
visitorId: n,
|
|
826
834
|
uploadId: r.uploadId,
|
|
827
|
-
uploadUrl: r.signedUrls[
|
|
835
|
+
uploadUrl: r.signedUrls[f].url,
|
|
828
836
|
apiUrl: i,
|
|
829
837
|
completeUploadHeaders: o
|
|
830
|
-
}),
|
|
838
|
+
}), h;
|
|
831
839
|
}));
|
|
832
|
-
await
|
|
840
|
+
await bs([r.uploadId], m);
|
|
833
841
|
};
|
|
834
842
|
let kt = null;
|
|
835
|
-
const
|
|
843
|
+
const Cs = async () => {
|
|
836
844
|
kt && await kt;
|
|
837
|
-
}, Vn = async () => (kt =
|
|
838
|
-
var ut, L,
|
|
845
|
+
}, Vn = async () => (kt = os(), kt);
|
|
846
|
+
var ut, L, Mr, Ge, Ae, Bn, Nr, Vr, St = {}, Br = [], ks = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
839
847
|
function xe(e, t) {
|
|
840
848
|
for (var n in t)
|
|
841
849
|
e[n] = t[n];
|
|
842
850
|
return e;
|
|
843
851
|
}
|
|
844
|
-
function
|
|
852
|
+
function Fr(e) {
|
|
845
853
|
var t = e.parentNode;
|
|
846
854
|
t && t.removeChild(e);
|
|
847
855
|
}
|
|
@@ -855,16 +863,16 @@ function q(e, t, n) {
|
|
|
855
863
|
return it(e, s, r, o, null);
|
|
856
864
|
}
|
|
857
865
|
function it(e, t, n, r, o) {
|
|
858
|
-
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o == null ? ++
|
|
866
|
+
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: o == null ? ++Mr : o };
|
|
859
867
|
return o == null && L.vnode != null && L.vnode(i), i;
|
|
860
868
|
}
|
|
861
|
-
function
|
|
869
|
+
function $r() {
|
|
862
870
|
return { current: null };
|
|
863
871
|
}
|
|
864
872
|
function pe(e) {
|
|
865
873
|
return e.children;
|
|
866
874
|
}
|
|
867
|
-
function
|
|
875
|
+
function Ss(e, t, n, r, o) {
|
|
868
876
|
var i;
|
|
869
877
|
for (i in n)
|
|
870
878
|
i === "children" || i === "key" || i in t || Et(e, i, null, n[i], r);
|
|
@@ -872,7 +880,7 @@ function ks(e, t, n, r, o) {
|
|
|
872
880
|
o && typeof t[i] != "function" || i === "children" || i === "key" || i === "value" || i === "checked" || n[i] === t[i] || Et(e, i, t[i], n[i], r);
|
|
873
881
|
}
|
|
874
882
|
function Fn(e, t, n) {
|
|
875
|
-
t[0] === "-" ? e.setProperty(t, n == null ? "" : n) : e[t] = n == null ? "" : typeof n != "number" ||
|
|
883
|
+
t[0] === "-" ? e.setProperty(t, n == null ? "" : n) : e[t] = n == null ? "" : typeof n != "number" || ks.test(t) ? n : n + "px";
|
|
876
884
|
}
|
|
877
885
|
function Et(e, t, n, r, o) {
|
|
878
886
|
var i;
|
|
@@ -889,7 +897,7 @@ function Et(e, t, n, r, o) {
|
|
|
889
897
|
r && n[t] === r[t] || Fn(e.style, t, n[t]);
|
|
890
898
|
}
|
|
891
899
|
else if (t[0] === "o" && t[1] === "n")
|
|
892
|
-
i = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r || e.addEventListener(t, i ?
|
|
900
|
+
i = t !== (t = t.replace(/Capture$/, "")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r || e.addEventListener(t, i ? Hn : $n, i) : e.removeEventListener(t, i ? Hn : $n, i);
|
|
893
901
|
else if (t !== "dangerouslySetInnerHTML") {
|
|
894
902
|
if (o)
|
|
895
903
|
t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
@@ -902,7 +910,7 @@ function Et(e, t, n, r, o) {
|
|
|
902
910
|
typeof n == "function" || (n == null || n === !1 && t.indexOf("-") == -1 ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
903
911
|
}
|
|
904
912
|
}
|
|
905
|
-
function
|
|
913
|
+
function $n(e) {
|
|
906
914
|
Ge = !0;
|
|
907
915
|
try {
|
|
908
916
|
return this.l[e.type + !1](L.event ? L.event(e) : e);
|
|
@@ -910,7 +918,7 @@ function Hn(e) {
|
|
|
910
918
|
Ge = !1;
|
|
911
919
|
}
|
|
912
920
|
}
|
|
913
|
-
function
|
|
921
|
+
function Hn(e) {
|
|
914
922
|
Ge = !0;
|
|
915
923
|
try {
|
|
916
924
|
return this.l[e.type + !0](L.event ? L.event(e) : e);
|
|
@@ -940,24 +948,24 @@ function Hr(e) {
|
|
|
940
948
|
return Hr(e);
|
|
941
949
|
}
|
|
942
950
|
}
|
|
943
|
-
function
|
|
944
|
-
Ge ? setTimeout(e) :
|
|
951
|
+
function Es(e) {
|
|
952
|
+
Ge ? setTimeout(e) : Nr(e);
|
|
945
953
|
}
|
|
946
954
|
function sn(e) {
|
|
947
|
-
(!e.__d && (e.__d = !0) && Ae.push(e) && !Lt.__r++ || Bn !== L.debounceRendering) && ((Bn = L.debounceRendering) ||
|
|
955
|
+
(!e.__d && (e.__d = !0) && Ae.push(e) && !Lt.__r++ || Bn !== L.debounceRendering) && ((Bn = L.debounceRendering) || Es)(Lt);
|
|
948
956
|
}
|
|
949
957
|
function Lt() {
|
|
950
958
|
var e, t, n, r, o, i, s, a;
|
|
951
959
|
for (Ae.sort(function(c, d) {
|
|
952
960
|
return c.__v.__b - d.__v.__b;
|
|
953
961
|
}); e = Ae.shift(); )
|
|
954
|
-
e.__d && (t = Ae.length, r = void 0, o = void 0, s = (i = (n = e).__v).__e, (a = n.__P) && (r = [], (o = xe({}, i)).__v = i.__v + 1, vn(a, i, o, n.__n, a.ownerSVGElement !== void 0, i.__h != null ? [s] : null, r, s == null ? at(i) : s, i.__h),
|
|
962
|
+
e.__d && (t = Ae.length, r = void 0, o = void 0, s = (i = (n = e).__v).__e, (a = n.__P) && (r = [], (o = xe({}, i)).__v = i.__v + 1, vn(a, i, o, n.__n, a.ownerSVGElement !== void 0, i.__h != null ? [s] : null, r, s == null ? at(i) : s, i.__h), Kr(r, i), i.__e != s && Hr(i)), Ae.length > t && Ae.sort(function(c, d) {
|
|
955
963
|
return c.__v.__b - d.__v.__b;
|
|
956
964
|
}));
|
|
957
965
|
Lt.__r = 0;
|
|
958
966
|
}
|
|
959
|
-
function
|
|
960
|
-
var l, m, p, f, h, g, v, _ = r && r.__k ||
|
|
967
|
+
function zr(e, t, n, r, o, i, s, a, c, d) {
|
|
968
|
+
var l, m, p, f, h, g, v, _ = r && r.__k || Br, w = _.length;
|
|
961
969
|
for (n.__k = [], l = 0; l < t.length; l++)
|
|
962
970
|
if ((f = n.__k[l] = (f = t[l]) == null || typeof f == "boolean" ? null : typeof f == "string" || typeof f == "number" || typeof f == "bigint" ? it(null, f, null, null, f) : Array.isArray(f) ? it(pe, { children: f }, null, null, null) : f.__b > 0 ? it(f.type, f.props, f.key, f.ref ? f.ref : null, f.__v) : f) != null) {
|
|
963
971
|
if (f.__ = n, f.__b = n.__b + 1, (p = _[l]) === null || p && f.key == p.key && f.type === p.type)
|
|
@@ -970,17 +978,17 @@ function $r(e, t, n, r, o, i, s, a, c, d) {
|
|
|
970
978
|
}
|
|
971
979
|
p = null;
|
|
972
980
|
}
|
|
973
|
-
vn(e, f, p = p || St, o, i, s, a, c, d), h = f.__e, (m = f.ref) && p.ref != m && (v || (v = []), p.ref && v.push(p.ref, null, f), v.push(m, f.__c || h, f)), h != null ? (g == null && (g = h), typeof f.type == "function" && f.__k === p.__k ? f.__d = c =
|
|
981
|
+
vn(e, f, p = p || St, o, i, s, a, c, d), h = f.__e, (m = f.ref) && p.ref != m && (v || (v = []), p.ref && v.push(p.ref, null, f), v.push(m, f.__c || h, f)), h != null ? (g == null && (g = h), typeof f.type == "function" && f.__k === p.__k ? f.__d = c = qr(f, c, e) : c = Wr(e, f, p, _, h, c), typeof n.type == "function" && (n.__d = c)) : c && p.__e == c && c.parentNode != e && (c = at(p));
|
|
974
982
|
}
|
|
975
983
|
for (n.__e = g, l = w; l--; )
|
|
976
|
-
_[l] != null && (typeof n.type == "function" && _[l].__e != null && _[l].__e == n.__d && (n.__d =
|
|
984
|
+
_[l] != null && (typeof n.type == "function" && _[l].__e != null && _[l].__e == n.__d && (n.__d = Gr(r).nextSibling), Yr(_[l], _[l]));
|
|
977
985
|
if (v)
|
|
978
986
|
for (l = 0; l < v.length; l++)
|
|
979
|
-
|
|
987
|
+
Zr(v[l], v[++l], v[++l]);
|
|
980
988
|
}
|
|
981
|
-
function
|
|
989
|
+
function qr(e, t, n) {
|
|
982
990
|
for (var r, o = e.__k, i = 0; o && i < o.length; i++)
|
|
983
|
-
(r = o[i]) && (r.__ = e, t = typeof r.type == "function" ?
|
|
991
|
+
(r = o[i]) && (r.__ = e, t = typeof r.type == "function" ? qr(r, t, n) : Wr(n, r, r, o, r.__e, t));
|
|
984
992
|
return t;
|
|
985
993
|
}
|
|
986
994
|
function Ce(e, t) {
|
|
@@ -988,7 +996,7 @@ function Ce(e, t) {
|
|
|
988
996
|
Ce(n, t);
|
|
989
997
|
}) : t.push(e)), t;
|
|
990
998
|
}
|
|
991
|
-
function
|
|
999
|
+
function Wr(e, t, n, r, o, i) {
|
|
992
1000
|
var s, a, c;
|
|
993
1001
|
if (t.__d !== void 0)
|
|
994
1002
|
s = t.__d, t.__d = void 0;
|
|
@@ -1004,13 +1012,13 @@ function qr(e, t, n, r, o, i) {
|
|
|
1004
1012
|
}
|
|
1005
1013
|
return s !== void 0 ? s : o.nextSibling;
|
|
1006
1014
|
}
|
|
1007
|
-
function
|
|
1015
|
+
function Gr(e) {
|
|
1008
1016
|
var t, n, r;
|
|
1009
1017
|
if (e.type == null || typeof e.type == "string")
|
|
1010
1018
|
return e.__e;
|
|
1011
1019
|
if (e.__k) {
|
|
1012
1020
|
for (t = e.__k.length - 1; t >= 0; t--)
|
|
1013
|
-
if ((n = e.__k[t]) && (r =
|
|
1021
|
+
if ((n = e.__k[t]) && (r = Gr(n)))
|
|
1014
1022
|
return r;
|
|
1015
1023
|
}
|
|
1016
1024
|
return null;
|
|
@@ -1023,7 +1031,7 @@ function vn(e, t, n, r, o, i, s, a, c) {
|
|
|
1023
1031
|
try {
|
|
1024
1032
|
e:
|
|
1025
1033
|
if (typeof P == "function") {
|
|
1026
|
-
if (v = t.props, _ = (d = P.contextType) && r[d.__c], w = d ? _ ? _.props.value : d.__ : r, n.__c ? g = (l = t.__c = n.__c).__ = l.__E : ("prototype" in P && P.prototype.render ? t.__c = l = new P(v, w) : (t.__c = l = new de(v, w), l.constructor = P, l.render =
|
|
1034
|
+
if (v = t.props, _ = (d = P.contextType) && r[d.__c], w = d ? _ ? _.props.value : d.__ : r, n.__c ? g = (l = t.__c = n.__c).__ = l.__E : ("prototype" in P && P.prototype.render ? t.__c = l = new P(v, w) : (t.__c = l = new de(v, w), l.constructor = P, l.render = Is), _ && _.sub(l), l.props = v, l.state || (l.state = {}), l.context = w, l.__n = r, m = l.__d = !0, l.__h = [], l._sb = []), l.__s == null && (l.__s = l.state), P.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = xe({}, l.__s)), xe(l.__s, P.getDerivedStateFromProps(v, l.__s))), p = l.props, f = l.state, l.__v = t, m)
|
|
1027
1035
|
P.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
1028
1036
|
else {
|
|
1029
1037
|
if (P.getDerivedStateFromProps == null && v !== p && l.componentWillReceiveProps != null && l.componentWillReceiveProps(v, w), !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(v, l.__s, w) === !1 || t.__v === n.__v) {
|
|
@@ -1046,15 +1054,15 @@ function vn(e, t, n, r, o, i, s, a, c) {
|
|
|
1046
1054
|
do
|
|
1047
1055
|
l.__d = !1, b && b(t), d = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
1048
1056
|
while (l.__d && ++E < 25);
|
|
1049
|
-
l.state = l.__s, l.getChildContext != null && (r = xe(xe({}, r), l.getChildContext())), m || l.getSnapshotBeforeUpdate == null || (h = l.getSnapshotBeforeUpdate(p, f)), x = d != null && d.type === pe && d.key == null ? d.props.children : d,
|
|
1057
|
+
l.state = l.__s, l.getChildContext != null && (r = xe(xe({}, r), l.getChildContext())), m || l.getSnapshotBeforeUpdate == null || (h = l.getSnapshotBeforeUpdate(p, f)), x = d != null && d.type === pe && d.key == null ? d.props.children : d, zr(e, Array.isArray(x) ? x : [x], t, n, r, o, i, s, a, c), l.base = t.__e, t.__h = null, l.__h.length && s.push(l), g && (l.__E = l.__ = null), l.__e = !1;
|
|
1050
1058
|
} else
|
|
1051
|
-
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
1059
|
+
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Ls(n.__e, t, n, r, o, i, s, c);
|
|
1052
1060
|
(d = L.diffed) && d(t);
|
|
1053
1061
|
} catch (T) {
|
|
1054
1062
|
t.__v = null, (c || i != null) && (t.__e = a, t.__h = !!c, i[i.indexOf(a)] = null), L.__e(T, t, n);
|
|
1055
1063
|
}
|
|
1056
1064
|
}
|
|
1057
|
-
function
|
|
1065
|
+
function Kr(e, t) {
|
|
1058
1066
|
L.__c && L.__c(t, e), e.some(function(n) {
|
|
1059
1067
|
try {
|
|
1060
1068
|
e = n.__h, n.__h = [], e.some(function(r) {
|
|
@@ -1065,7 +1073,7 @@ function Gr(e, t) {
|
|
|
1065
1073
|
}
|
|
1066
1074
|
});
|
|
1067
1075
|
}
|
|
1068
|
-
function
|
|
1076
|
+
function Ls(e, t, n, r, o, i, s, a) {
|
|
1069
1077
|
var c, d, l, m = n.props, p = t.props, f = t.type, h = 0;
|
|
1070
1078
|
if (f === "svg" && (o = !0), i != null) {
|
|
1071
1079
|
for (; h < i.length; h++)
|
|
@@ -1088,25 +1096,25 @@ function Es(e, t, n, r, o, i, s, a) {
|
|
|
1088
1096
|
m[e.attributes[h].name] = e.attributes[h].value;
|
|
1089
1097
|
(l || d) && (l && (d && l.__html == d.__html || l.__html === e.innerHTML) || (e.innerHTML = l && l.__html || ""));
|
|
1090
1098
|
}
|
|
1091
|
-
if (
|
|
1099
|
+
if (Ss(e, p, m, o, a), l)
|
|
1092
1100
|
t.__k = [];
|
|
1093
|
-
else if (h = t.props.children,
|
|
1101
|
+
else if (h = t.props.children, zr(e, Array.isArray(h) ? h : [h], t, n, r, o && f !== "foreignObject", i, s, i ? i[0] : n.__k && at(n, 0), a), i != null)
|
|
1094
1102
|
for (h = i.length; h--; )
|
|
1095
|
-
i[h] != null &&
|
|
1103
|
+
i[h] != null && Fr(i[h]);
|
|
1096
1104
|
a || ("value" in p && (h = p.value) !== void 0 && (h !== e.value || f === "progress" && !h || f === "option" && h !== m.value) && Et(e, "value", h, m.value, !1), "checked" in p && (h = p.checked) !== void 0 && h !== e.checked && Et(e, "checked", h, m.checked, !1));
|
|
1097
1105
|
}
|
|
1098
1106
|
return e;
|
|
1099
1107
|
}
|
|
1100
|
-
function
|
|
1108
|
+
function Zr(e, t, n) {
|
|
1101
1109
|
try {
|
|
1102
1110
|
typeof e == "function" ? e(t) : e.current = t;
|
|
1103
1111
|
} catch (r) {
|
|
1104
1112
|
L.__e(r, n);
|
|
1105
1113
|
}
|
|
1106
1114
|
}
|
|
1107
|
-
function
|
|
1115
|
+
function Yr(e, t, n) {
|
|
1108
1116
|
var r, o;
|
|
1109
|
-
if (L.unmount && L.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e ||
|
|
1117
|
+
if (L.unmount && L.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || Zr(r, null, t)), (r = e.__c) != null) {
|
|
1110
1118
|
if (r.componentWillUnmount)
|
|
1111
1119
|
try {
|
|
1112
1120
|
r.componentWillUnmount();
|
|
@@ -1117,27 +1125,27 @@ function Zr(e, t, n) {
|
|
|
1117
1125
|
}
|
|
1118
1126
|
if (r = e.__k)
|
|
1119
1127
|
for (o = 0; o < r.length; o++)
|
|
1120
|
-
r[o] &&
|
|
1121
|
-
n || e.__e == null ||
|
|
1128
|
+
r[o] && Yr(r[o], t, n || typeof e.type != "function");
|
|
1129
|
+
n || e.__e == null || Fr(e.__e), e.__ = e.__e = e.__d = void 0;
|
|
1122
1130
|
}
|
|
1123
|
-
function
|
|
1131
|
+
function Is(e, t, n) {
|
|
1124
1132
|
return this.constructor(e, n);
|
|
1125
1133
|
}
|
|
1126
1134
|
function Ke(e, t, n) {
|
|
1127
1135
|
var r, o, i;
|
|
1128
|
-
L.__ && L.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], vn(t, e = (!r && n || t).__k = q(pe, null, [e]), o || St, St, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? ut.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r),
|
|
1136
|
+
L.__ && L.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], vn(t, e = (!r && n || t).__k = q(pe, null, [e]), o || St, St, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? ut.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r), Kr(i, e);
|
|
1129
1137
|
}
|
|
1130
|
-
function
|
|
1131
|
-
Ke(e, t,
|
|
1138
|
+
function Qr(e, t) {
|
|
1139
|
+
Ke(e, t, Qr);
|
|
1132
1140
|
}
|
|
1133
|
-
function
|
|
1141
|
+
function Us(e, t, n) {
|
|
1134
1142
|
var r, o, i, s = xe({}, e.props);
|
|
1135
1143
|
for (i in t)
|
|
1136
1144
|
i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i];
|
|
1137
1145
|
return arguments.length > 2 && (s.children = arguments.length > 3 ? ut.call(arguments, 2) : n), it(e.type, s, r || e.key, o || e.ref, null);
|
|
1138
1146
|
}
|
|
1139
|
-
function
|
|
1140
|
-
var n = { __c: t = "__cC" +
|
|
1147
|
+
function Jr(e, t) {
|
|
1148
|
+
var n = { __c: t = "__cC" + Vr++, __: e, Consumer: function(r, o) {
|
|
1141
1149
|
return r.children(o);
|
|
1142
1150
|
}, Provider: function(r) {
|
|
1143
1151
|
var o, i;
|
|
@@ -1157,7 +1165,7 @@ function Qr(e, t) {
|
|
|
1157
1165
|
} };
|
|
1158
1166
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
1159
1167
|
}
|
|
1160
|
-
ut =
|
|
1168
|
+
ut = Br.slice, L = { __e: function(e, t, n, r) {
|
|
1161
1169
|
for (var o, i, s; t = t.__; )
|
|
1162
1170
|
if ((o = t.__c) && !o.__)
|
|
1163
1171
|
try {
|
|
@@ -1167,12 +1175,12 @@ ut = Vr.slice, L = { __e: function(e, t, n, r) {
|
|
|
1167
1175
|
e = a;
|
|
1168
1176
|
}
|
|
1169
1177
|
throw e;
|
|
1170
|
-
} },
|
|
1178
|
+
} }, Mr = 0, Ge = !1, de.prototype.setState = function(e, t) {
|
|
1171
1179
|
var n;
|
|
1172
1180
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = xe({}, this.state), typeof e == "function" && (e = e(xe({}, n), this.props)), e && xe(n, e), e != null && this.__v && (t && this._sb.push(t), sn(this));
|
|
1173
1181
|
}, de.prototype.forceUpdate = function(e) {
|
|
1174
1182
|
this.__v && (this.__e = !0, e && this.__h.push(e), sn(this));
|
|
1175
|
-
}, de.prototype.render = pe, Ae = [],
|
|
1183
|
+
}, de.prototype.render = pe, Ae = [], Nr = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Lt.__r = 0, Vr = 0;
|
|
1176
1184
|
var I = /* @__PURE__ */ ((e) => (e.ConsentLegal = "consentlegal", e.Likert = "likert", e.MultipleChoice = "multiplechoice", e.MultipleSelect = "multipleselect", e.NPS = "nps", e.Open = "open", e.RecordedTask = "recordedtask", e.TextUrlPrompt = "texturlprompt", e.Thanks = "thanks", e.Uploading = "uploading", e.VideoVoice = "videovoice", e))(I || {}), Ve = /* @__PURE__ */ ((e) => (e.Answered = "answered", e.Equal = "eq", e.NotEqual = "neq", e.Skipped = "skipped", e.LessThan = "lt", e.LessThanOrEqual = "lte", e.GivenUp = "given_up", e.GreaterThan = "gt", e.GreaterThanOrEqual = "gte", e.ListAll = "list_all", e.ListAtLeastOne = "list_alo", e.ListExact = "list_exact", e))(Ve || {}), Ze = /* @__PURE__ */ ((e) => (e.Camera = "camera", e.Microphone = "microphone", e.Screen = "screen", e))(Ze || {}), ne = /* @__PURE__ */ ((e) => (e.AvPermission = "av_permission", e.ScreenPermission = "screen_permission", e.StartTask = "start_task", e.CompleteTask = "complete_task", e))(ne || {}), Ne = /* @__PURE__ */ ((e) => (e.Number = "number", e.Smiley = "smiley", e.Star = "star", e))(Ne || {}), ce = /* @__PURE__ */ ((e) => (e.Video = "video", e.Audio = "audio", e.Screen = "screen", e))(ce || {}), Y = /* @__PURE__ */ ((e) => (e.PermissionStatus = "permission.status", e.AvPermission = "av.permission", e.ScreenPermission = "screen.permission", e.BeginRecording = "begin.recording", e.StartTask = "start.task", e.FinishTask = "finish.task", e))(Y || {}), ue = /* @__PURE__ */ ((e) => (e.Abandoned = "abandoned", e.GivenUp = "given.up", e.Completed = "completed", e))(ue || {}), M = /* @__PURE__ */ ((e) => (e.ScreenPermissionRequested = "screen.permission.requested", e.PermissionDescriptors = "permission.descriptors", e.PermissionStatusCallback = "permission.status.callback", e.StreamReadyCallback = "stream.ready.callback", e.StreamCanceledCallback = "stream.canceled.callback", e.TaskCompleteCallback = "task.complete.callback", e.TaskResponse = "task.response", e.TaskStatus = "task.status", e.RecordingMediaTypes = "recording.media.types", e.StartRecordingCallback = "start.recording.callback", e.PassthroughData = "passthrough.data", e.CurrentIndex = "current.index", e.UploadCallback = "upload.callback", e.ProgressCallback = "progress.callback", e.BeginCallback = "begin.callback", e))(M || {});
|
|
1177
1185
|
const zn = (e) => {
|
|
1178
1186
|
let t;
|
|
@@ -1184,25 +1192,25 @@ const zn = (e) => {
|
|
|
1184
1192
|
}
|
|
1185
1193
|
}, o = () => t, a = { setState: r, getState: o, subscribe: (c) => (n.add(c), () => n.delete(c)), destroy: () => n.clear() };
|
|
1186
1194
|
return t = e(r, o, a), a;
|
|
1187
|
-
},
|
|
1188
|
-
var Pe,
|
|
1189
|
-
function
|
|
1190
|
-
L.__h && L.__h(
|
|
1191
|
-
var n =
|
|
1195
|
+
}, Ts = (e) => e ? zn(e) : zn;
|
|
1196
|
+
var Pe, H, Bt, qn, Ye = 0, Xr = [], vt = [], Wn = L.__b, Gn = L.__r, Kn = L.diffed, Zn = L.__c, Yn = L.unmount;
|
|
1197
|
+
function $e(e, t) {
|
|
1198
|
+
L.__h && L.__h(H, e, Ye || t), Ye = 0;
|
|
1199
|
+
var n = H.__H || (H.__H = { __: [], __h: [] });
|
|
1192
1200
|
return e >= n.__.length && n.__.push({ __V: vt }), n.__[e];
|
|
1193
1201
|
}
|
|
1194
1202
|
function Z(e) {
|
|
1195
|
-
return Ye = 1, _n(
|
|
1203
|
+
return Ye = 1, _n(oo, e);
|
|
1196
1204
|
}
|
|
1197
1205
|
function _n(e, t, n) {
|
|
1198
|
-
var r =
|
|
1199
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
1206
|
+
var r = $e(Pe++, 2);
|
|
1207
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : oo(void 0, t), function(i) {
|
|
1200
1208
|
var s = r.__N ? r.__N[0] : r.__[0], a = r.t(s, i);
|
|
1201
1209
|
s !== a && (r.__N = [a, r.__[1]], r.__c.setState({}));
|
|
1202
|
-
}], r.__c =
|
|
1203
|
-
|
|
1204
|
-
var o =
|
|
1205
|
-
|
|
1210
|
+
}], r.__c = H, !H.u)) {
|
|
1211
|
+
H.u = !0;
|
|
1212
|
+
var o = H.shouldComponentUpdate;
|
|
1213
|
+
H.shouldComponentUpdate = function(i, s, a) {
|
|
1206
1214
|
if (!r.__c.__H)
|
|
1207
1215
|
return !0;
|
|
1208
1216
|
var c = r.__c.__H.__.filter(function(l) {
|
|
@@ -1224,19 +1232,19 @@ function _n(e, t, n) {
|
|
|
1224
1232
|
return r.__N || r.__;
|
|
1225
1233
|
}
|
|
1226
1234
|
function re(e, t) {
|
|
1227
|
-
var n =
|
|
1228
|
-
!L.__s && yn(n.__H, t) && (n.__ = e, n.i = t,
|
|
1235
|
+
var n = $e(Pe++, 3);
|
|
1236
|
+
!L.__s && yn(n.__H, t) && (n.__ = e, n.i = t, H.__H.__h.push(n));
|
|
1229
1237
|
}
|
|
1230
1238
|
function pt(e, t) {
|
|
1231
|
-
var n =
|
|
1232
|
-
!L.__s && yn(n.__H, t) && (n.__ = e, n.i = t,
|
|
1239
|
+
var n = $e(Pe++, 4);
|
|
1240
|
+
!L.__s && yn(n.__H, t) && (n.__ = e, n.i = t, H.__h.push(n));
|
|
1233
1241
|
}
|
|
1234
1242
|
function Te(e) {
|
|
1235
1243
|
return Ye = 5, Rt(function() {
|
|
1236
1244
|
return { current: e };
|
|
1237
1245
|
}, []);
|
|
1238
1246
|
}
|
|
1239
|
-
function
|
|
1247
|
+
function eo(e, t, n) {
|
|
1240
1248
|
Ye = 6, pt(function() {
|
|
1241
1249
|
return typeof e == "function" ? (e(t()), function() {
|
|
1242
1250
|
return e(null);
|
|
@@ -1246,41 +1254,41 @@ function Xr(e, t, n) {
|
|
|
1246
1254
|
}, n == null ? n : n.concat(e));
|
|
1247
1255
|
}
|
|
1248
1256
|
function Rt(e, t) {
|
|
1249
|
-
var n =
|
|
1257
|
+
var n = $e(Pe++, 7);
|
|
1250
1258
|
return yn(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
|
1251
1259
|
}
|
|
1252
|
-
function
|
|
1260
|
+
function to(e, t) {
|
|
1253
1261
|
return Ye = 8, Rt(function() {
|
|
1254
1262
|
return e;
|
|
1255
1263
|
}, t);
|
|
1256
1264
|
}
|
|
1257
|
-
function
|
|
1258
|
-
var t =
|
|
1259
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
1265
|
+
function no(e) {
|
|
1266
|
+
var t = H.context[e.__c], n = $e(Pe++, 9);
|
|
1267
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(H)), t.props.value) : e.__;
|
|
1260
1268
|
}
|
|
1261
1269
|
function wn(e, t) {
|
|
1262
1270
|
L.useDebugValue && L.useDebugValue(t ? t(e) : e);
|
|
1263
1271
|
}
|
|
1264
|
-
function
|
|
1265
|
-
var t =
|
|
1266
|
-
return t.__ = e,
|
|
1272
|
+
function Ps(e) {
|
|
1273
|
+
var t = $e(Pe++, 10), n = Z();
|
|
1274
|
+
return t.__ = e, H.componentDidCatch || (H.componentDidCatch = function(r, o) {
|
|
1267
1275
|
t.__ && t.__(r, o), n[1](r);
|
|
1268
1276
|
}), [n[0], function() {
|
|
1269
1277
|
n[1](void 0);
|
|
1270
1278
|
}];
|
|
1271
1279
|
}
|
|
1272
|
-
function
|
|
1273
|
-
var e =
|
|
1280
|
+
function ro() {
|
|
1281
|
+
var e = $e(Pe++, 11);
|
|
1274
1282
|
if (!e.__) {
|
|
1275
|
-
for (var t =
|
|
1283
|
+
for (var t = H.__v; t !== null && !t.__m && t.__ !== null; )
|
|
1276
1284
|
t = t.__;
|
|
1277
1285
|
var n = t.__m || (t.__m = [0, 0]);
|
|
1278
1286
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
1279
1287
|
}
|
|
1280
1288
|
return e.__;
|
|
1281
1289
|
}
|
|
1282
|
-
function
|
|
1283
|
-
for (var e; e =
|
|
1290
|
+
function Rs() {
|
|
1291
|
+
for (var e; e = Xr.shift(); )
|
|
1284
1292
|
if (e.__P && e.__H)
|
|
1285
1293
|
try {
|
|
1286
1294
|
e.__H.__h.forEach(_t), e.__H.__h.forEach(an), e.__H.__h = [];
|
|
@@ -1289,19 +1297,19 @@ function Ps() {
|
|
|
1289
1297
|
}
|
|
1290
1298
|
}
|
|
1291
1299
|
L.__b = function(e) {
|
|
1292
|
-
|
|
1300
|
+
H = null, Wn && Wn(e);
|
|
1293
1301
|
}, L.__r = function(e) {
|
|
1294
1302
|
Gn && Gn(e), Pe = 0;
|
|
1295
|
-
var t = (
|
|
1296
|
-
t && (Bt ===
|
|
1303
|
+
var t = (H = e.__c).__H;
|
|
1304
|
+
t && (Bt === H ? (t.__h = [], H.__h = [], t.__.forEach(function(n) {
|
|
1297
1305
|
n.__N && (n.__ = n.__N), n.__V = vt, n.__N = n.i = void 0;
|
|
1298
|
-
})) : (t.__h.forEach(_t), t.__h.forEach(an), t.__h = [])), Bt =
|
|
1306
|
+
})) : (t.__h.forEach(_t), t.__h.forEach(an), t.__h = [])), Bt = H;
|
|
1299
1307
|
}, L.diffed = function(e) {
|
|
1300
1308
|
Kn && Kn(e);
|
|
1301
1309
|
var t = e.__c;
|
|
1302
|
-
t && t.__H && (t.__H.__h.length && (
|
|
1310
|
+
t && t.__H && (t.__H.__h.length && (Xr.push(t) !== 1 && qn === L.requestAnimationFrame || ((qn = L.requestAnimationFrame) || Ds)(Rs)), t.__H.__.forEach(function(n) {
|
|
1303
1311
|
n.i && (n.__H = n.i), n.__V !== vt && (n.__ = n.__V), n.i = void 0, n.__V = vt;
|
|
1304
|
-
})), Bt =
|
|
1312
|
+
})), Bt = H = null;
|
|
1305
1313
|
}, L.__c = function(e, t) {
|
|
1306
1314
|
t.some(function(n) {
|
|
1307
1315
|
try {
|
|
@@ -1326,29 +1334,29 @@ L.__b = function(e) {
|
|
|
1326
1334
|
}), n.__H = void 0, t && L.__e(t, n.__v));
|
|
1327
1335
|
};
|
|
1328
1336
|
var Qn = typeof requestAnimationFrame == "function";
|
|
1329
|
-
function
|
|
1337
|
+
function Ds(e) {
|
|
1330
1338
|
var t, n = function() {
|
|
1331
1339
|
clearTimeout(r), Qn && cancelAnimationFrame(t), setTimeout(e);
|
|
1332
1340
|
}, r = setTimeout(n, 100);
|
|
1333
1341
|
Qn && (t = requestAnimationFrame(n));
|
|
1334
1342
|
}
|
|
1335
1343
|
function _t(e) {
|
|
1336
|
-
var t =
|
|
1337
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
1344
|
+
var t = H, n = e.__c;
|
|
1345
|
+
typeof n == "function" && (e.__c = void 0, n()), H = t;
|
|
1338
1346
|
}
|
|
1339
1347
|
function an(e) {
|
|
1340
|
-
var t =
|
|
1341
|
-
e.__c = e.__(),
|
|
1348
|
+
var t = H;
|
|
1349
|
+
e.__c = e.__(), H = t;
|
|
1342
1350
|
}
|
|
1343
1351
|
function yn(e, t) {
|
|
1344
1352
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
1345
1353
|
return n !== e[r];
|
|
1346
1354
|
});
|
|
1347
1355
|
}
|
|
1348
|
-
function
|
|
1356
|
+
function oo(e, t) {
|
|
1349
1357
|
return typeof t == "function" ? t(e) : t;
|
|
1350
1358
|
}
|
|
1351
|
-
function
|
|
1359
|
+
function io(e, t) {
|
|
1352
1360
|
for (var n in t)
|
|
1353
1361
|
e[n] = t[n];
|
|
1354
1362
|
return e;
|
|
@@ -1368,7 +1376,7 @@ function Ft(e, t) {
|
|
|
1368
1376
|
function It(e) {
|
|
1369
1377
|
this.props = e;
|
|
1370
1378
|
}
|
|
1371
|
-
function
|
|
1379
|
+
function so(e, t) {
|
|
1372
1380
|
function n(o) {
|
|
1373
1381
|
var i = this.props.ref, s = i == o.ref;
|
|
1374
1382
|
return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : ln(this.props, o);
|
|
@@ -1385,53 +1393,53 @@ var Jn = L.__b;
|
|
|
1385
1393
|
L.__b = function(e) {
|
|
1386
1394
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Jn && Jn(e);
|
|
1387
1395
|
};
|
|
1388
|
-
var
|
|
1389
|
-
function
|
|
1396
|
+
var js = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
1397
|
+
function ao(e) {
|
|
1390
1398
|
function t(n) {
|
|
1391
|
-
var r =
|
|
1399
|
+
var r = io({}, n);
|
|
1392
1400
|
return delete r.ref, e(r, n.ref || null);
|
|
1393
1401
|
}
|
|
1394
|
-
return t.$$typeof =
|
|
1402
|
+
return t.$$typeof = js, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
1395
1403
|
}
|
|
1396
1404
|
var Xn = function(e, t) {
|
|
1397
1405
|
return e == null ? null : Ce(Ce(e).map(t));
|
|
1398
|
-
},
|
|
1406
|
+
}, lo = { map: Xn, forEach: Xn, count: function(e) {
|
|
1399
1407
|
return e ? Ce(e).length : 0;
|
|
1400
1408
|
}, only: function(e) {
|
|
1401
1409
|
var t = Ce(e);
|
|
1402
1410
|
if (t.length !== 1)
|
|
1403
1411
|
throw "Children.only";
|
|
1404
1412
|
return t[0];
|
|
1405
|
-
}, toArray: Ce },
|
|
1413
|
+
}, toArray: Ce }, As = L.__e;
|
|
1406
1414
|
L.__e = function(e, t, n, r) {
|
|
1407
1415
|
if (e.then) {
|
|
1408
1416
|
for (var o, i = t; i = i.__; )
|
|
1409
1417
|
if ((o = i.__c) && o.__c)
|
|
1410
1418
|
return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
1411
1419
|
}
|
|
1412
|
-
|
|
1420
|
+
As(e, t, n, r);
|
|
1413
1421
|
};
|
|
1414
1422
|
var er = L.unmount;
|
|
1415
|
-
function
|
|
1423
|
+
function co(e, t, n) {
|
|
1416
1424
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
1417
1425
|
typeof r.__c == "function" && r.__c();
|
|
1418
|
-
}), e.__c.__H = null), (e =
|
|
1419
|
-
return
|
|
1426
|
+
}), e.__c.__H = null), (e = io({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
1427
|
+
return co(r, t, n);
|
|
1420
1428
|
})), e;
|
|
1421
1429
|
}
|
|
1422
|
-
function
|
|
1430
|
+
function uo(e, t, n) {
|
|
1423
1431
|
return e && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
1424
|
-
return
|
|
1432
|
+
return uo(r, t, n);
|
|
1425
1433
|
}), e.__c && e.__c.__P === t && (e.__e && n.insertBefore(e.__e, e.__d), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
1426
1434
|
}
|
|
1427
1435
|
function st() {
|
|
1428
1436
|
this.__u = 0, this.t = null, this.__b = null;
|
|
1429
1437
|
}
|
|
1430
|
-
function
|
|
1438
|
+
function po(e) {
|
|
1431
1439
|
var t = e.__.__c;
|
|
1432
1440
|
return t && t.__a && t.__a(e);
|
|
1433
1441
|
}
|
|
1434
|
-
function
|
|
1442
|
+
function fo(e) {
|
|
1435
1443
|
var t, n, r;
|
|
1436
1444
|
function o(i) {
|
|
1437
1445
|
if (t || (t = e()).then(function(s) {
|
|
@@ -1446,7 +1454,7 @@ function po(e) {
|
|
|
1446
1454
|
}
|
|
1447
1455
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1448
1456
|
}
|
|
1449
|
-
function
|
|
1457
|
+
function He() {
|
|
1450
1458
|
this.u = null, this.o = null;
|
|
1451
1459
|
}
|
|
1452
1460
|
L.unmount = function(e) {
|
|
@@ -1455,7 +1463,7 @@ L.unmount = function(e) {
|
|
|
1455
1463
|
}, (st.prototype = new de()).__c = function(e, t) {
|
|
1456
1464
|
var n = t.__c, r = this;
|
|
1457
1465
|
r.t == null && (r.t = []), r.t.push(n);
|
|
1458
|
-
var o =
|
|
1466
|
+
var o = po(r.__v), i = !1, s = function() {
|
|
1459
1467
|
i || (i = !0, n.__R = null, o ? o(a) : a());
|
|
1460
1468
|
};
|
|
1461
1469
|
n.__R = s;
|
|
@@ -1463,7 +1471,7 @@ L.unmount = function(e) {
|
|
|
1463
1471
|
if (!--r.__u) {
|
|
1464
1472
|
if (r.state.__a) {
|
|
1465
1473
|
var d = r.state.__a;
|
|
1466
|
-
r.__v.__k[0] =
|
|
1474
|
+
r.__v.__k[0] = uo(d, d.__c.__P, d.__c.__O);
|
|
1467
1475
|
}
|
|
1468
1476
|
var l;
|
|
1469
1477
|
for (r.setState({ __a: r.__b = null }); l = r.t.pop(); )
|
|
@@ -1477,7 +1485,7 @@ L.unmount = function(e) {
|
|
|
1477
1485
|
if (this.__b) {
|
|
1478
1486
|
if (this.__v.__k) {
|
|
1479
1487
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
1480
|
-
this.__v.__k[0] =
|
|
1488
|
+
this.__v.__k[0] = co(this.__b, n, r.__O = r.__P);
|
|
1481
1489
|
}
|
|
1482
1490
|
this.__b = null;
|
|
1483
1491
|
}
|
|
@@ -1494,12 +1502,12 @@ var tr = function(e, t, n) {
|
|
|
1494
1502
|
e.u = n = n[2];
|
|
1495
1503
|
}
|
|
1496
1504
|
};
|
|
1497
|
-
function
|
|
1505
|
+
function Os(e) {
|
|
1498
1506
|
return this.getChildContext = function() {
|
|
1499
1507
|
return e.context;
|
|
1500
1508
|
}, e.children;
|
|
1501
1509
|
}
|
|
1502
|
-
function
|
|
1510
|
+
function Ms(e) {
|
|
1503
1511
|
var t = this, n = e.i;
|
|
1504
1512
|
t.componentWillUnmount = function() {
|
|
1505
1513
|
Ke(null, t.l), t.l = null, t.i = null;
|
|
@@ -1509,41 +1517,41 @@ function Os(e) {
|
|
|
1509
1517
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
1510
1518
|
}, removeChild: function(r) {
|
|
1511
1519
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
1512
|
-
} }), Ke(q(
|
|
1520
|
+
} }), Ke(q(Os, { context: t.context }, e.__v), t.l)) : t.l && t.componentWillUnmount();
|
|
1513
1521
|
}
|
|
1514
|
-
function
|
|
1515
|
-
var n = q(
|
|
1522
|
+
function mo(e, t) {
|
|
1523
|
+
var n = q(Ms, { __v: e, i: t });
|
|
1516
1524
|
return n.containerInfo = t, n;
|
|
1517
1525
|
}
|
|
1518
|
-
(
|
|
1519
|
-
var t = this, n =
|
|
1526
|
+
(He.prototype = new de()).__a = function(e) {
|
|
1527
|
+
var t = this, n = po(t.__v), r = t.o.get(e);
|
|
1520
1528
|
return r[0]++, function(o) {
|
|
1521
1529
|
var i = function() {
|
|
1522
1530
|
t.props.revealOrder ? (r.push(o), tr(t, e, r)) : o();
|
|
1523
1531
|
};
|
|
1524
1532
|
n ? n(i) : i();
|
|
1525
1533
|
};
|
|
1526
|
-
},
|
|
1534
|
+
}, He.prototype.render = function(e) {
|
|
1527
1535
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
1528
1536
|
var t = Ce(e.children);
|
|
1529
1537
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
1530
1538
|
for (var n = t.length; n--; )
|
|
1531
1539
|
this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
1532
1540
|
return e.children;
|
|
1533
|
-
},
|
|
1541
|
+
}, He.prototype.componentDidUpdate = He.prototype.componentDidMount = function() {
|
|
1534
1542
|
var e = this;
|
|
1535
1543
|
this.o.forEach(function(t, n) {
|
|
1536
1544
|
tr(e, n, t);
|
|
1537
1545
|
});
|
|
1538
1546
|
};
|
|
1539
|
-
var
|
|
1547
|
+
var ho = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ns = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Vs = typeof document < "u", Bs = function(e) {
|
|
1540
1548
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(e);
|
|
1541
1549
|
};
|
|
1542
|
-
function
|
|
1550
|
+
function go(e, t, n) {
|
|
1543
1551
|
return t.__k == null && (t.textContent = ""), Ke(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
1544
1552
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return
|
|
1553
|
+
function vo(e, t, n) {
|
|
1554
|
+
return Qr(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
1547
1555
|
}
|
|
1548
1556
|
de.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
1549
1557
|
Object.defineProperty(de.prototype, e, { configurable: !0, get: function() {
|
|
@@ -1553,18 +1561,18 @@ de.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
1553
1561
|
} });
|
|
1554
1562
|
});
|
|
1555
1563
|
var nr = L.event;
|
|
1556
|
-
function Bs() {
|
|
1557
|
-
}
|
|
1558
1564
|
function Fs() {
|
|
1565
|
+
}
|
|
1566
|
+
function $s() {
|
|
1559
1567
|
return this.cancelBubble;
|
|
1560
1568
|
}
|
|
1561
1569
|
function Hs() {
|
|
1562
1570
|
return this.defaultPrevented;
|
|
1563
1571
|
}
|
|
1564
1572
|
L.event = function(e) {
|
|
1565
|
-
return nr && (e = nr(e)), e.persist =
|
|
1573
|
+
return nr && (e = nr(e)), e.persist = Fs, e.isPropagationStopped = $s, e.isDefaultPrevented = Hs, e.nativeEvent = e;
|
|
1566
1574
|
};
|
|
1567
|
-
var
|
|
1575
|
+
var _o, rr = { configurable: !0, get: function() {
|
|
1568
1576
|
return this.class;
|
|
1569
1577
|
} }, or = L.vnode;
|
|
1570
1578
|
L.vnode = function(e) {
|
|
@@ -1573,7 +1581,7 @@ L.vnode = function(e) {
|
|
|
1573
1581
|
var o = t.indexOf("-") === -1;
|
|
1574
1582
|
for (var i in r = {}, n) {
|
|
1575
1583
|
var s = n[i];
|
|
1576
|
-
|
|
1584
|
+
Vs && i === "children" && t === "noscript" || i === "value" && "defaultValue" in n && s == null || (i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : /ondoubleclick/i.test(i) ? i = "ondblclick" : /^onchange(textarea|input)/i.test(i + t) && !Bs(n.type) ? i = "oninput" : /^onfocus$/i.test(i) ? i = "onfocusin" : /^onblur$/i.test(i) ? i = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i) ? i = i.toLowerCase() : o && Ns.test(i) ? i = i.replace(/[A-Z0-9]/g, "-$&").toLowerCase() : s === null && (s = void 0), /^oninput$/i.test(i) && (i = i.toLowerCase(), r[i] && (i = "oninputCapture")), r[i] = s);
|
|
1577
1585
|
}
|
|
1578
1586
|
t == "select" && r.multiple && Array.isArray(r.value) && (r.value = Ce(n.children).forEach(function(a) {
|
|
1579
1587
|
a.props.selected = r.value.indexOf(a.props.value) != -1;
|
|
@@ -1581,46 +1589,46 @@ L.vnode = function(e) {
|
|
|
1581
1589
|
a.props.selected = r.multiple ? r.defaultValue.indexOf(a.props.value) != -1 : r.defaultValue == a.props.value;
|
|
1582
1590
|
})), e.props = r, n.class != n.className && (rr.enumerable = "className" in n, n.className != null && (r.class = n.className), Object.defineProperty(r, "className", rr));
|
|
1583
1591
|
}
|
|
1584
|
-
e.$$typeof =
|
|
1592
|
+
e.$$typeof = ho, or && or(e);
|
|
1585
1593
|
};
|
|
1586
1594
|
var ir = L.__r;
|
|
1587
1595
|
L.__r = function(e) {
|
|
1588
|
-
ir && ir(e),
|
|
1596
|
+
ir && ir(e), _o = e.__c;
|
|
1589
1597
|
};
|
|
1590
|
-
var
|
|
1591
|
-
return
|
|
1592
|
-
} } } },
|
|
1593
|
-
function
|
|
1598
|
+
var wo = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
1599
|
+
return _o.__n[e.__c].props.value;
|
|
1600
|
+
} } } }, zs = "17.0.2";
|
|
1601
|
+
function yo(e) {
|
|
1594
1602
|
return q.bind(null, e);
|
|
1595
1603
|
}
|
|
1596
1604
|
function bn(e) {
|
|
1597
|
-
return !!e && e.$$typeof ===
|
|
1598
|
-
}
|
|
1599
|
-
function yo(e) {
|
|
1600
|
-
return bn(e) ? Is.apply(null, arguments) : e;
|
|
1605
|
+
return !!e && e.$$typeof === ho;
|
|
1601
1606
|
}
|
|
1602
1607
|
function bo(e) {
|
|
1603
|
-
return
|
|
1608
|
+
return bn(e) ? Us.apply(null, arguments) : e;
|
|
1604
1609
|
}
|
|
1605
1610
|
function xo(e) {
|
|
1611
|
+
return !!e.__k && (Ke(null, e), !0);
|
|
1612
|
+
}
|
|
1613
|
+
function Co(e) {
|
|
1606
1614
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
1607
1615
|
}
|
|
1608
|
-
var
|
|
1616
|
+
var ko = function(e, t) {
|
|
1609
1617
|
return e(t);
|
|
1610
|
-
},
|
|
1618
|
+
}, So = function(e, t) {
|
|
1611
1619
|
return e(t);
|
|
1612
|
-
},
|
|
1620
|
+
}, Eo = pe;
|
|
1613
1621
|
function xn(e) {
|
|
1614
1622
|
e();
|
|
1615
1623
|
}
|
|
1616
|
-
function
|
|
1624
|
+
function Lo(e) {
|
|
1617
1625
|
return e;
|
|
1618
1626
|
}
|
|
1619
|
-
function
|
|
1627
|
+
function Io() {
|
|
1620
1628
|
return [!1, xn];
|
|
1621
1629
|
}
|
|
1622
|
-
var
|
|
1623
|
-
function
|
|
1630
|
+
var Uo = pt;
|
|
1631
|
+
function To(e, t) {
|
|
1624
1632
|
var n = t(), r = Z({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
1625
1633
|
return pt(function() {
|
|
1626
1634
|
o.__ = n, o.v = t, Ft(o.__, t()) || i({ h: o });
|
|
@@ -1630,56 +1638,56 @@ function Uo(e, t) {
|
|
|
1630
1638
|
});
|
|
1631
1639
|
}, [e]), n;
|
|
1632
1640
|
}
|
|
1633
|
-
var
|
|
1634
|
-
const
|
|
1641
|
+
var qs = { useState: Z, useId: ro, useReducer: _n, useEffect: re, useLayoutEffect: pt, useInsertionEffect: Uo, useTransition: Io, useDeferredValue: Lo, useSyncExternalStore: To, startTransition: xn, useRef: Te, useImperativeHandle: eo, useMemo: Rt, useCallback: to, useContext: no, useDebugValue: wn, version: "17.0.2", Children: lo, render: go, hydrate: vo, unmountComponentAtNode: xo, createPortal: mo, createElement: q, createContext: Jr, createFactory: yo, cloneElement: bo, createRef: $r, Fragment: pe, isValidElement: bn, findDOMNode: Co, Component: de, PureComponent: It, memo: so, forwardRef: ao, flushSync: So, unstable_batchedUpdates: ko, StrictMode: Eo, Suspense: st, SuspenseList: He, lazy: fo, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: wo };
|
|
1642
|
+
const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1635
1643
|
__proto__: null,
|
|
1636
|
-
Children:
|
|
1644
|
+
Children: lo,
|
|
1637
1645
|
PureComponent: It,
|
|
1638
|
-
StrictMode:
|
|
1646
|
+
StrictMode: Eo,
|
|
1639
1647
|
Suspense: st,
|
|
1640
|
-
SuspenseList:
|
|
1641
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
1642
|
-
cloneElement:
|
|
1643
|
-
createFactory:
|
|
1644
|
-
createPortal:
|
|
1645
|
-
default:
|
|
1646
|
-
findDOMNode:
|
|
1647
|
-
flushSync:
|
|
1648
|
-
forwardRef:
|
|
1649
|
-
hydrate:
|
|
1648
|
+
SuspenseList: He,
|
|
1649
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: wo,
|
|
1650
|
+
cloneElement: bo,
|
|
1651
|
+
createFactory: yo,
|
|
1652
|
+
createPortal: mo,
|
|
1653
|
+
default: qs,
|
|
1654
|
+
findDOMNode: Co,
|
|
1655
|
+
flushSync: So,
|
|
1656
|
+
forwardRef: ao,
|
|
1657
|
+
hydrate: vo,
|
|
1650
1658
|
isValidElement: bn,
|
|
1651
|
-
lazy:
|
|
1652
|
-
memo:
|
|
1653
|
-
render:
|
|
1659
|
+
lazy: fo,
|
|
1660
|
+
memo: so,
|
|
1661
|
+
render: go,
|
|
1654
1662
|
startTransition: xn,
|
|
1655
|
-
unmountComponentAtNode:
|
|
1656
|
-
unstable_batchedUpdates:
|
|
1657
|
-
useDeferredValue:
|
|
1658
|
-
useInsertionEffect:
|
|
1659
|
-
useSyncExternalStore:
|
|
1660
|
-
useTransition:
|
|
1661
|
-
version:
|
|
1663
|
+
unmountComponentAtNode: xo,
|
|
1664
|
+
unstable_batchedUpdates: ko,
|
|
1665
|
+
useDeferredValue: Lo,
|
|
1666
|
+
useInsertionEffect: Uo,
|
|
1667
|
+
useSyncExternalStore: To,
|
|
1668
|
+
useTransition: Io,
|
|
1669
|
+
version: zs,
|
|
1662
1670
|
Component: de,
|
|
1663
1671
|
Fragment: pe,
|
|
1664
|
-
createContext:
|
|
1672
|
+
createContext: Jr,
|
|
1665
1673
|
createElement: q,
|
|
1666
|
-
createRef:
|
|
1667
|
-
useCallback:
|
|
1668
|
-
useContext:
|
|
1674
|
+
createRef: $r,
|
|
1675
|
+
useCallback: to,
|
|
1676
|
+
useContext: no,
|
|
1669
1677
|
useDebugValue: wn,
|
|
1670
1678
|
useEffect: re,
|
|
1671
|
-
useErrorBoundary:
|
|
1672
|
-
useId:
|
|
1673
|
-
useImperativeHandle:
|
|
1679
|
+
useErrorBoundary: Ps,
|
|
1680
|
+
useId: ro,
|
|
1681
|
+
useImperativeHandle: eo,
|
|
1674
1682
|
useLayoutEffect: pt,
|
|
1675
1683
|
useMemo: Rt,
|
|
1676
1684
|
useReducer: _n,
|
|
1677
1685
|
useRef: Te,
|
|
1678
1686
|
useState: Z
|
|
1679
1687
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1680
|
-
var
|
|
1681
|
-
const
|
|
1682
|
-
var
|
|
1688
|
+
var Po = { exports: {} }, Ro = {};
|
|
1689
|
+
const Do = /* @__PURE__ */ Ii(Ws);
|
|
1690
|
+
var jo = { exports: {} }, Ao = {};
|
|
1683
1691
|
/**
|
|
1684
1692
|
* @license React
|
|
1685
1693
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -1689,39 +1697,39 @@ var Do = { exports: {} }, jo = {};
|
|
|
1689
1697
|
* This source code is licensed under the MIT license found in the
|
|
1690
1698
|
* LICENSE file in the root directory of this source tree.
|
|
1691
1699
|
*/
|
|
1692
|
-
var Qe =
|
|
1693
|
-
function
|
|
1700
|
+
var Qe = Do;
|
|
1701
|
+
function Gs(e, t) {
|
|
1694
1702
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
1695
1703
|
}
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
1698
|
-
var n = t(), r =
|
|
1699
|
-
return
|
|
1700
|
-
o.value = n, o.getSnapshot = t,
|
|
1701
|
-
}, [e, n, t]),
|
|
1702
|
-
return
|
|
1703
|
-
|
|
1704
|
+
var Ks = typeof Object.is == "function" ? Object.is : Gs, Zs = Qe.useState, Ys = Qe.useEffect, Qs = Qe.useLayoutEffect, Js = Qe.useDebugValue;
|
|
1705
|
+
function Xs(e, t) {
|
|
1706
|
+
var n = t(), r = Zs({ inst: { value: n, getSnapshot: t } }), o = r[0].inst, i = r[1];
|
|
1707
|
+
return Qs(function() {
|
|
1708
|
+
o.value = n, o.getSnapshot = t, $t(o) && i({ inst: o });
|
|
1709
|
+
}, [e, n, t]), Ys(function() {
|
|
1710
|
+
return $t(o) && i({ inst: o }), e(function() {
|
|
1711
|
+
$t(o) && i({ inst: o });
|
|
1704
1712
|
});
|
|
1705
|
-
}, [e]),
|
|
1713
|
+
}, [e]), Js(n), n;
|
|
1706
1714
|
}
|
|
1707
|
-
function
|
|
1715
|
+
function $t(e) {
|
|
1708
1716
|
var t = e.getSnapshot;
|
|
1709
1717
|
e = e.value;
|
|
1710
1718
|
try {
|
|
1711
1719
|
var n = t();
|
|
1712
|
-
return !
|
|
1720
|
+
return !Ks(e, n);
|
|
1713
1721
|
} catch {
|
|
1714
1722
|
return !0;
|
|
1715
1723
|
}
|
|
1716
1724
|
}
|
|
1717
|
-
function
|
|
1725
|
+
function ea(e, t) {
|
|
1718
1726
|
return t();
|
|
1719
1727
|
}
|
|
1720
|
-
var
|
|
1721
|
-
|
|
1728
|
+
var ta = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? ea : Xs;
|
|
1729
|
+
Ao.useSyncExternalStore = Qe.useSyncExternalStore !== void 0 ? Qe.useSyncExternalStore : ta;
|
|
1722
1730
|
(function(e) {
|
|
1723
|
-
e.exports =
|
|
1724
|
-
})(
|
|
1731
|
+
e.exports = Ao;
|
|
1732
|
+
})(jo);
|
|
1725
1733
|
/**
|
|
1726
1734
|
* @license React
|
|
1727
1735
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -1731,19 +1739,19 @@ jo.useSyncExternalStore = Qe.useSyncExternalStore !== void 0 ? Qe.useSyncExterna
|
|
|
1731
1739
|
* This source code is licensed under the MIT license found in the
|
|
1732
1740
|
* LICENSE file in the root directory of this source tree.
|
|
1733
1741
|
*/
|
|
1734
|
-
var Dt =
|
|
1735
|
-
function
|
|
1742
|
+
var Dt = Do, na = jo.exports;
|
|
1743
|
+
function ra(e, t) {
|
|
1736
1744
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
1737
1745
|
}
|
|
1738
|
-
var
|
|
1739
|
-
|
|
1740
|
-
var i =
|
|
1746
|
+
var oa = typeof Object.is == "function" ? Object.is : ra, ia = na.useSyncExternalStore, sa = Dt.useRef, aa = Dt.useEffect, la = Dt.useMemo, ca = Dt.useDebugValue;
|
|
1747
|
+
Ro.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
|
|
1748
|
+
var i = sa(null);
|
|
1741
1749
|
if (i.current === null) {
|
|
1742
1750
|
var s = { hasValue: !1, value: null };
|
|
1743
1751
|
i.current = s;
|
|
1744
1752
|
} else
|
|
1745
1753
|
s = i.current;
|
|
1746
|
-
i =
|
|
1754
|
+
i = la(function() {
|
|
1747
1755
|
function c(f) {
|
|
1748
1756
|
if (!d) {
|
|
1749
1757
|
if (d = !0, l = f, f = r(f), o !== void 0 && s.hasValue) {
|
|
@@ -1753,7 +1761,7 @@ Po.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
|
|
|
1753
1761
|
}
|
|
1754
1762
|
return m = f;
|
|
1755
1763
|
}
|
|
1756
|
-
if (h = m,
|
|
1764
|
+
if (h = m, oa(l, f))
|
|
1757
1765
|
return h;
|
|
1758
1766
|
var g = r(f);
|
|
1759
1767
|
return o !== void 0 && o(h, g) ? h : (l = f, m = g);
|
|
@@ -1765,17 +1773,17 @@ Po.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
|
|
|
1765
1773
|
return c(p());
|
|
1766
1774
|
}];
|
|
1767
1775
|
}, [t, n, r, o]);
|
|
1768
|
-
var a =
|
|
1769
|
-
return
|
|
1776
|
+
var a = ia(e, i[0], i[1]);
|
|
1777
|
+
return aa(function() {
|
|
1770
1778
|
s.hasValue = !0, s.value = a;
|
|
1771
|
-
}, [a]),
|
|
1779
|
+
}, [a]), ca(a), a;
|
|
1772
1780
|
};
|
|
1773
1781
|
(function(e) {
|
|
1774
|
-
e.exports =
|
|
1775
|
-
})(
|
|
1776
|
-
const
|
|
1777
|
-
function
|
|
1778
|
-
const r =
|
|
1782
|
+
e.exports = Ro;
|
|
1783
|
+
})(Po);
|
|
1784
|
+
const da = /* @__PURE__ */ Li(Po.exports), { useSyncExternalStoreWithSelector: ua } = da;
|
|
1785
|
+
function pa(e, t = e.getState, n) {
|
|
1786
|
+
const r = ua(
|
|
1779
1787
|
e.subscribe,
|
|
1780
1788
|
e.getState,
|
|
1781
1789
|
e.getServerState || e.getState,
|
|
@@ -1785,9 +1793,9 @@ function ua(e, t = e.getState, n) {
|
|
|
1785
1793
|
return wn(r), r;
|
|
1786
1794
|
}
|
|
1787
1795
|
const sr = (e) => {
|
|
1788
|
-
const t = typeof e == "function" ?
|
|
1796
|
+
const t = typeof e == "function" ? Ts(e) : e, n = (r, o) => pa(t, r, o);
|
|
1789
1797
|
return Object.assign(n, t), n;
|
|
1790
|
-
},
|
|
1798
|
+
}, Oo = (e) => e ? sr(e) : sr, Ht = 1, Cn = {
|
|
1791
1799
|
eq(e, t) {
|
|
1792
1800
|
return e == t;
|
|
1793
1801
|
},
|
|
@@ -1838,7 +1846,7 @@ const sr = (e) => {
|
|
|
1838
1846
|
default:
|
|
1839
1847
|
return !0;
|
|
1840
1848
|
}
|
|
1841
|
-
},
|
|
1849
|
+
}, Mo = ({
|
|
1842
1850
|
cards: e,
|
|
1843
1851
|
index: t,
|
|
1844
1852
|
hasEndCard: n,
|
|
@@ -1865,7 +1873,7 @@ const sr = (e) => {
|
|
|
1865
1873
|
} else if (h === Ve.Skipped && !o && !(r instanceof Object && "taskStatus" in r && (r == null ? void 0 : r.taskStatus) === ue.GivenUp)) {
|
|
1866
1874
|
c = g;
|
|
1867
1875
|
break;
|
|
1868
|
-
} else if (o &&
|
|
1876
|
+
} else if (o && No(h) && Cn[h](r, v)) {
|
|
1869
1877
|
c = g;
|
|
1870
1878
|
break;
|
|
1871
1879
|
}
|
|
@@ -1875,10 +1883,10 @@ const sr = (e) => {
|
|
|
1875
1883
|
const m = e.findIndex((f) => f.type === I.Uploading);
|
|
1876
1884
|
let p;
|
|
1877
1885
|
return m > 0 && n ? p = e.length - 3 : m > 0 || n ? p = e.length - 2 : p = e.length - 1, t >= p || d === -1 || d !== null && d > p ? m > 0 && Object.values(i).some((h) => h.isSubmitted && !h.isComplete) ? m : n ? e.length - 1 : null : d !== null ? d : t + 1;
|
|
1878
|
-
},
|
|
1886
|
+
}, fa = 13, ma = (e, t) => e.reduce((n, r) => n.concat(n.map((o) => [...o, r])), [[]]).filter((n) => t || n.length > 0), ha = (e) => {
|
|
1879
1887
|
switch (e.type) {
|
|
1880
1888
|
case I.MultipleSelect:
|
|
1881
|
-
return !e || !e.props || !e.props.options ? null : e.props.options.length >
|
|
1889
|
+
return !e || !e.props || !e.props.options ? null : e.props.options.length > fa ? e.props.options.map((t) => [t.value]) : ma(e.props.options.map((t) => t.value), !e.props.properties.required);
|
|
1882
1890
|
case I.MultipleChoice: {
|
|
1883
1891
|
if (!e || !e.props || !e.props.options)
|
|
1884
1892
|
return null;
|
|
@@ -1891,7 +1899,7 @@ const sr = (e) => {
|
|
|
1891
1899
|
return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...e.props.properties.required ? [] : [null]];
|
|
1892
1900
|
case I.VideoVoice:
|
|
1893
1901
|
case I.Open:
|
|
1894
|
-
return [
|
|
1902
|
+
return [Ht, ...e.props.properties.required ? [] : [""]];
|
|
1895
1903
|
case I.RecordedTask:
|
|
1896
1904
|
return [{
|
|
1897
1905
|
taskStatus: ue.Completed
|
|
@@ -1905,11 +1913,11 @@ const sr = (e) => {
|
|
|
1905
1913
|
skipped: !0
|
|
1906
1914
|
}]];
|
|
1907
1915
|
case I.ConsentLegal:
|
|
1908
|
-
return [
|
|
1916
|
+
return [Ht, ...e.props.properties.required ? [] : [null]];
|
|
1909
1917
|
default:
|
|
1910
|
-
return [
|
|
1918
|
+
return [Ht];
|
|
1911
1919
|
}
|
|
1912
|
-
},
|
|
1920
|
+
}, No = (e) => e in Cn, ga = (e) => typeof e == "object" && e !== null && "taskStatus" in e, va = (e, t) => {
|
|
1913
1921
|
const n = /* @__PURE__ */ new Set([I.Thanks, I.Uploading]);
|
|
1914
1922
|
if (t >= e.length || t < 0 || n.has(e[t].type))
|
|
1915
1923
|
return 0;
|
|
@@ -1926,7 +1934,7 @@ const sr = (e) => {
|
|
|
1926
1934
|
o[i] = o[i + 1] + 1;
|
|
1927
1935
|
continue;
|
|
1928
1936
|
}
|
|
1929
|
-
let c = 0, d =
|
|
1937
|
+
let c = 0, d = ha(s);
|
|
1930
1938
|
if (d === null)
|
|
1931
1939
|
return r.length - 1 - t;
|
|
1932
1940
|
for (let l = 0; l < a.length && d.length !== 0; l++) {
|
|
@@ -1938,7 +1946,7 @@ const sr = (e) => {
|
|
|
1938
1946
|
const v = kn({
|
|
1939
1947
|
value: g
|
|
1940
1948
|
}, s.type, g);
|
|
1941
|
-
return !(v && m === Ve.Answered || !v && m === Ve.Skipped || m === Ve.GivenUp &&
|
|
1949
|
+
return !(v && m === Ve.Answered || !v && m === Ve.Skipped || m === Ve.GivenUp && ga(g) && g.taskStatus === ue.GivenUp || v && No(m) && Cn[m](g, f));
|
|
1942
1950
|
});
|
|
1943
1951
|
if (h.length < d.length) {
|
|
1944
1952
|
const g = parseInt(String(p), 10);
|
|
@@ -1951,7 +1959,7 @@ const sr = (e) => {
|
|
|
1951
1959
|
d.length > 0 && (c = Math.max(o[i + 1] + 1, c)), o[i] = c;
|
|
1952
1960
|
}
|
|
1953
1961
|
return o[t];
|
|
1954
|
-
},
|
|
1962
|
+
}, _a = (e) => !(e.type === I.Thanks || e.type === I.Uploading), z = Oo()((e, t) => ({
|
|
1955
1963
|
answers: void 0,
|
|
1956
1964
|
apiURL: "",
|
|
1957
1965
|
border: "#000000",
|
|
@@ -2088,14 +2096,14 @@ const sr = (e) => {
|
|
|
2088
2096
|
} = n.data, g = {
|
|
2089
2097
|
...n.data
|
|
2090
2098
|
}, v = g.value;
|
|
2091
|
-
|
|
2099
|
+
_a(f) && (f.value = v), g.answeredAt = m, delete g.type;
|
|
2092
2100
|
const _ = {
|
|
2093
2101
|
response: g,
|
|
2094
2102
|
responseGroupUid: s
|
|
2095
2103
|
};
|
|
2096
2104
|
let w = h === I.MultipleChoice ? Object.values(v).find((x) => x !== !1) : v;
|
|
2097
2105
|
h === I.MultipleSelect && (w = p[i].props.options.reduce((x, P) => (v[P.id] && x.push(P.value), x), []));
|
|
2098
|
-
const S = kn(g, h, w), b =
|
|
2106
|
+
const S = kn(g, h, w), b = Mo({
|
|
2099
2107
|
cards: p,
|
|
2100
2108
|
index: i,
|
|
2101
2109
|
selectedValue: w,
|
|
@@ -2269,7 +2277,7 @@ const sr = (e) => {
|
|
|
2269
2277
|
}, a),
|
|
2270
2278
|
body: JSON.stringify(m)
|
|
2271
2279
|
})).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
|
|
2272
|
-
},
|
|
2280
|
+
}, wa = async (e, t) => {
|
|
2273
2281
|
var r;
|
|
2274
2282
|
const n = await fetch(t, {
|
|
2275
2283
|
method: "POST",
|
|
@@ -2284,11 +2292,11 @@ const sr = (e) => {
|
|
|
2284
2292
|
return (r = o == null ? void 0 : o.upload) == null ? void 0 : r.url;
|
|
2285
2293
|
} else
|
|
2286
2294
|
return null;
|
|
2287
|
-
},
|
|
2295
|
+
}, Vo = () => MediaRecorder.isTypeSupported("video/webm") ? "video/webm" : "video/mp4", lr = (e) => {
|
|
2288
2296
|
const t = {
|
|
2289
2297
|
audioBitsPerSecond: 128e3,
|
|
2290
2298
|
videoBitsPerSecond: 25e5,
|
|
2291
|
-
mimeType:
|
|
2299
|
+
mimeType: Vo()
|
|
2292
2300
|
};
|
|
2293
2301
|
return new MediaRecorder(e, t);
|
|
2294
2302
|
}, cr = (e, t, n) => {
|
|
@@ -2303,10 +2311,10 @@ function dr(e, t, n, r, o, i) {
|
|
|
2303
2311
|
} = r, a = e.currentMediaRecordingUid;
|
|
2304
2312
|
if (!a)
|
|
2305
2313
|
return;
|
|
2306
|
-
s && s(a), e.onstop = () =>
|
|
2314
|
+
s && s(a), e.onstop = () => ya(t, e, n, r, a, o, i), e.stop();
|
|
2307
2315
|
}
|
|
2308
2316
|
}
|
|
2309
|
-
async function
|
|
2317
|
+
async function ya(e, t, n, r, o, i, s) {
|
|
2310
2318
|
const a = z.getState().viewDocument, {
|
|
2311
2319
|
[M.UploadCallback]: c,
|
|
2312
2320
|
[M.ProgressCallback]: d
|
|
@@ -2315,7 +2323,7 @@ async function wa(e, t, n, r, o, i, s) {
|
|
|
2315
2323
|
updatedAt: new Date().toISOString(),
|
|
2316
2324
|
mediaRecordingUid: o,
|
|
2317
2325
|
...r[M.PassthroughData]
|
|
2318
|
-
}, m = await
|
|
2326
|
+
}, m = await wa(l, e);
|
|
2319
2327
|
if (!m) {
|
|
2320
2328
|
c && c(null, {
|
|
2321
2329
|
message: "failed to get upload url"
|
|
@@ -2323,7 +2331,7 @@ async function wa(e, t, n, r, o, i, s) {
|
|
|
2323
2331
|
return;
|
|
2324
2332
|
}
|
|
2325
2333
|
const p = new Blob(s, {
|
|
2326
|
-
type:
|
|
2334
|
+
type: Vo()
|
|
2327
2335
|
});
|
|
2328
2336
|
if (!a.defaultView)
|
|
2329
2337
|
return;
|
|
@@ -2340,11 +2348,11 @@ async function wa(e, t, n, r, o, i, s) {
|
|
|
2340
2348
|
c && c(o, !0);
|
|
2341
2349
|
});
|
|
2342
2350
|
}
|
|
2343
|
-
const
|
|
2351
|
+
const ba = {
|
|
2344
2352
|
chunks: {}
|
|
2345
|
-
},
|
|
2353
|
+
}, xa = {
|
|
2346
2354
|
state: {
|
|
2347
|
-
...
|
|
2355
|
+
...ba
|
|
2348
2356
|
},
|
|
2349
2357
|
stopRecording(e) {
|
|
2350
2358
|
const {
|
|
@@ -2464,7 +2472,7 @@ const ya = {
|
|
|
2464
2472
|
const {
|
|
2465
2473
|
avRecorder: o,
|
|
2466
2474
|
screenRecorder: i
|
|
2467
|
-
} = this.state, s =
|
|
2475
|
+
} = this.state, s = Mo({
|
|
2468
2476
|
cards: n,
|
|
2469
2477
|
index: e,
|
|
2470
2478
|
selectedValue: t.value,
|
|
@@ -2477,16 +2485,16 @@ const ya = {
|
|
|
2477
2485
|
}));
|
|
2478
2486
|
});
|
|
2479
2487
|
}
|
|
2480
|
-
}, wt = Object.create(
|
|
2488
|
+
}, wt = Object.create(xa);
|
|
2481
2489
|
Object.freeze(wt);
|
|
2482
|
-
function
|
|
2490
|
+
function Bo(e) {
|
|
2483
2491
|
var t, n, r = "";
|
|
2484
2492
|
if (typeof e == "string" || typeof e == "number")
|
|
2485
2493
|
r += e;
|
|
2486
2494
|
else if (typeof e == "object")
|
|
2487
2495
|
if (Array.isArray(e))
|
|
2488
2496
|
for (t = 0; t < e.length; t++)
|
|
2489
|
-
e[t] && (n =
|
|
2497
|
+
e[t] && (n = Bo(e[t])) && (r && (r += " "), r += n);
|
|
2490
2498
|
else
|
|
2491
2499
|
for (t in e)
|
|
2492
2500
|
e[t] && (r && (r += " "), r += t);
|
|
@@ -2494,15 +2502,15 @@ function Vo(e) {
|
|
|
2494
2502
|
}
|
|
2495
2503
|
function R() {
|
|
2496
2504
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
2497
|
-
(e = arguments[n++]) && (t =
|
|
2505
|
+
(e = arguments[n++]) && (t = Bo(e)) && (r && (r += " "), r += t);
|
|
2498
2506
|
return r;
|
|
2499
2507
|
}
|
|
2500
|
-
var
|
|
2508
|
+
var Ca = 0;
|
|
2501
2509
|
function u(e, t, n, r, o, i) {
|
|
2502
2510
|
var s, a, c = {};
|
|
2503
2511
|
for (a in t)
|
|
2504
2512
|
a == "ref" ? s = t[a] : c[a] = t[a];
|
|
2505
|
-
var d = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --
|
|
2513
|
+
var d = { type: e, props: c, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --Ca, __source: o, __self: i };
|
|
2506
2514
|
if (typeof e == "function" && (s = e.defaultProps))
|
|
2507
2515
|
for (a in s)
|
|
2508
2516
|
c[a] === void 0 && (c[a] = s[a]);
|
|
@@ -2556,7 +2564,7 @@ const ee = (e) => u("button", {
|
|
|
2556
2564
|
hasViewedEmbed: p.hasViewedEmbed,
|
|
2557
2565
|
headers: p.headers,
|
|
2558
2566
|
useDesktopPrototype: p.useDesktopPrototype
|
|
2559
|
-
})), a = (n == null ? void 0 : n.conceptUrl) || ((m = n == null ? void 0 : n.consentDocument) == null ? void 0 : m.url), c = window.innerWidth <
|
|
2567
|
+
})), a = (n == null ? void 0 : n.conceptUrl) || ((m = n == null ? void 0 : n.consentDocument) == null ? void 0 : m.url), c = window.innerWidth < yi, d = i["userleap-platform"], l = (p, f) => {
|
|
2560
2568
|
p.preventDefault(), r(f);
|
|
2561
2569
|
};
|
|
2562
2570
|
if (!s && c && !o && a && ["email", "link"].includes(d)) {
|
|
@@ -2575,7 +2583,7 @@ const ee = (e) => u("button", {
|
|
|
2575
2583
|
});
|
|
2576
2584
|
}
|
|
2577
2585
|
return e();
|
|
2578
|
-
},
|
|
2586
|
+
}, Fo = (e, t) => {
|
|
2579
2587
|
const n = Te(0), r = () => {
|
|
2580
2588
|
if (e.current) {
|
|
2581
2589
|
const o = e.current;
|
|
@@ -2585,7 +2593,7 @@ const ee = (e) => u("button", {
|
|
|
2585
2593
|
}
|
|
2586
2594
|
};
|
|
2587
2595
|
return re(r, []), r;
|
|
2588
|
-
},
|
|
2596
|
+
}, $o = ({
|
|
2589
2597
|
border: e,
|
|
2590
2598
|
label: t,
|
|
2591
2599
|
isSelected: n,
|
|
@@ -2606,7 +2614,7 @@ const ee = (e) => u("button", {
|
|
|
2606
2614
|
styleNonce: T.styleNonce,
|
|
2607
2615
|
viewDocument: T.viewDocument
|
|
2608
2616
|
})), [h, g] = Z(!1);
|
|
2609
|
-
|
|
2617
|
+
Ea(f, e, p);
|
|
2610
2618
|
const v = ({
|
|
2611
2619
|
isSelected: T,
|
|
2612
2620
|
userText: V
|
|
@@ -2682,7 +2690,7 @@ const ee = (e) => u("button", {
|
|
|
2682
2690
|
})]
|
|
2683
2691
|
}), d && n && u("div", {
|
|
2684
2692
|
className: R([C.ChoiceTextEntryContainer, ...x]),
|
|
2685
|
-
children: u(
|
|
2693
|
+
children: u(ka, {
|
|
2686
2694
|
onTextChange: (T) => v({
|
|
2687
2695
|
isSelected: n,
|
|
2688
2696
|
userText: T
|
|
@@ -2693,7 +2701,7 @@ const ee = (e) => u("button", {
|
|
|
2693
2701
|
})
|
|
2694
2702
|
})]
|
|
2695
2703
|
});
|
|
2696
|
-
},
|
|
2704
|
+
}, ka = ({
|
|
2697
2705
|
promptText: e,
|
|
2698
2706
|
textValue: t,
|
|
2699
2707
|
onTextChange: n,
|
|
@@ -2703,7 +2711,7 @@ const ee = (e) => u("button", {
|
|
|
2703
2711
|
update: i
|
|
2704
2712
|
} = z((a) => ({
|
|
2705
2713
|
update: a.update
|
|
2706
|
-
})), s =
|
|
2714
|
+
})), s = Fo(o, () => i());
|
|
2707
2715
|
return re(() => {
|
|
2708
2716
|
o.current && o.current.focus();
|
|
2709
2717
|
}, []), u("textarea", {
|
|
@@ -2729,10 +2737,10 @@ const ee = (e) => u("button", {
|
|
|
2729
2737
|
rows: 1,
|
|
2730
2738
|
value: t
|
|
2731
2739
|
});
|
|
2732
|
-
}, pr = "ul-select-style-element", yt = "ul-select-active-dynamic-style", Ho = "ul-select-error-dynamic-style",
|
|
2740
|
+
}, pr = "ul-select-style-element", yt = "ul-select-active-dynamic-style", Ho = "ul-select-error-dynamic-style", Sa = (e) => e.tagName.toLowerCase() === "style", Ea = (e, t, n) => {
|
|
2733
2741
|
let r = e.getElementById(pr), o = !1;
|
|
2734
|
-
r || (r = e.createElement("style"), o = !0),
|
|
2735
|
-
},
|
|
2742
|
+
r || (r = e.createElement("style"), o = !0), Sa(r) && (r.id = pr, n && (r.nonce = n), r.textContent = La(t), o && e.head.appendChild(r));
|
|
2743
|
+
}, La = (e) => `
|
|
2736
2744
|
.${yt} {
|
|
2737
2745
|
border-color: ${e};
|
|
2738
2746
|
}
|
|
@@ -2743,7 +2751,7 @@ const ee = (e) => u("button", {
|
|
|
2743
2751
|
.${Ho} {
|
|
2744
2752
|
border-color: ${rt};
|
|
2745
2753
|
}
|
|
2746
|
-
`, Je = (e) => (e == null ? void 0 : e.buttonText) || "Next", Sn = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip",
|
|
2754
|
+
`, Je = (e) => (e == null ? void 0 : e.buttonText) || "Next", Sn = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Ia = ({
|
|
2747
2755
|
className: e,
|
|
2748
2756
|
message: t,
|
|
2749
2757
|
next: n,
|
|
@@ -2759,10 +2767,10 @@ const ee = (e) => u("button", {
|
|
|
2759
2767
|
headers: k.headers,
|
|
2760
2768
|
useMobileStyling: k.useMobileStyling,
|
|
2761
2769
|
border: k.border
|
|
2762
|
-
})), [d, l] = Z(!1), [m, p] = Z(""), [f, h] = Z(!1), g = s["userleap-platform"], v = r == null ? void 0 : r.collectName, _ = (r == null ? void 0 : r.nameLabelText) || "Full Name", w = (r == null ? void 0 : r.consentText) || "I agree to the stated conditions", S = (r == null ? void 0 : r.submitButtonText) || "Submit", b = !!m.trim(), E = d && (!v || b), D = (k,
|
|
2770
|
+
})), [d, l] = Z(!1), [m, p] = Z(""), [f, h] = Z(!1), g = s["userleap-platform"], v = r == null ? void 0 : r.collectName, _ = (r == null ? void 0 : r.nameLabelText) || "Full Name", w = (r == null ? void 0 : r.consentText) || "I agree to the stated conditions", S = (r == null ? void 0 : r.submitButtonText) || "Submit", b = !!m.trim(), E = d && (!v || b), D = (k, $ = !1) => {
|
|
2763
2771
|
k.preventDefault(), k.stopPropagation();
|
|
2764
2772
|
let y = null;
|
|
2765
|
-
if (
|
|
2773
|
+
if (!$) {
|
|
2766
2774
|
if (!E) {
|
|
2767
2775
|
h(!0);
|
|
2768
2776
|
return;
|
|
@@ -2777,13 +2785,13 @@ const ee = (e) => u("button", {
|
|
|
2777
2785
|
type: i
|
|
2778
2786
|
});
|
|
2779
2787
|
}, x = (k) => {
|
|
2780
|
-
|
|
2788
|
+
Si(k.target) && (k.preventDefault(), k.stopPropagation(), p(k.target.value));
|
|
2781
2789
|
}, P = (k) => {
|
|
2782
2790
|
We(k.target) && (k.target.style.borderColor = f && !b ? rt : c);
|
|
2783
2791
|
}, T = (k) => {
|
|
2784
2792
|
We(k.target) && (k.target.style.borderColor = f && !b ? rt : hn);
|
|
2785
2793
|
}, V = () => u("div", {
|
|
2786
|
-
children: [u(
|
|
2794
|
+
children: [u($o, {
|
|
2787
2795
|
allowTextEntry: !1,
|
|
2788
2796
|
border: c,
|
|
2789
2797
|
error: f && !d,
|
|
@@ -2845,7 +2853,7 @@ const ee = (e) => u("button", {
|
|
|
2845
2853
|
})]
|
|
2846
2854
|
}, o)
|
|
2847
2855
|
});
|
|
2848
|
-
},
|
|
2856
|
+
}, Ua = ({
|
|
2849
2857
|
activeValue: e,
|
|
2850
2858
|
border: t,
|
|
2851
2859
|
icon: n,
|
|
@@ -2890,7 +2898,7 @@ const ee = (e) => u("button", {
|
|
|
2890
2898
|
},
|
|
2891
2899
|
tabIndex: 0
|
|
2892
2900
|
});
|
|
2893
|
-
},
|
|
2901
|
+
}, Ta = ({
|
|
2894
2902
|
className: e,
|
|
2895
2903
|
labels: t,
|
|
2896
2904
|
message: n,
|
|
@@ -2916,24 +2924,24 @@ const ee = (e) => u("button", {
|
|
|
2916
2924
|
} = o;
|
|
2917
2925
|
w && (_ = Number(w));
|
|
2918
2926
|
const E = _ || 5, D = (V) => {
|
|
2919
|
-
var k,
|
|
2927
|
+
var k, $;
|
|
2920
2928
|
switch (S) {
|
|
2921
2929
|
case Ne.Star:
|
|
2922
2930
|
return (k = b[0]) == null ? void 0 : k.svg;
|
|
2923
2931
|
case Ne.Smiley:
|
|
2924
|
-
return (
|
|
2932
|
+
return ($ = b[V]) == null ? void 0 : $.svg;
|
|
2925
2933
|
default:
|
|
2926
2934
|
return String(V + 1);
|
|
2927
2935
|
}
|
|
2928
2936
|
}, x = [...Array(E)].map((V, k) => {
|
|
2929
|
-
const
|
|
2930
|
-
return u(
|
|
2937
|
+
const $ = k + 1;
|
|
2938
|
+
return u(Ua, {
|
|
2931
2939
|
activeValue: l,
|
|
2932
2940
|
border: a,
|
|
2933
2941
|
icon: D(k),
|
|
2934
2942
|
isPressed: p,
|
|
2935
2943
|
onSubmit: () => r({
|
|
2936
|
-
value:
|
|
2944
|
+
value: $,
|
|
2937
2945
|
questionId: i,
|
|
2938
2946
|
type: s
|
|
2939
2947
|
}),
|
|
@@ -2942,7 +2950,7 @@ const ee = (e) => u("button", {
|
|
|
2942
2950
|
setActiveValue: m,
|
|
2943
2951
|
setIsPressed: f,
|
|
2944
2952
|
useMobileStyling: d,
|
|
2945
|
-
value:
|
|
2953
|
+
value: $
|
|
2946
2954
|
}, k);
|
|
2947
2955
|
}), P = (V) => {
|
|
2948
2956
|
V.preventDefault(), V.stopPropagation(), r({
|
|
@@ -2984,7 +2992,7 @@ const ee = (e) => u("button", {
|
|
|
2984
2992
|
})]
|
|
2985
2993
|
}, i)
|
|
2986
2994
|
});
|
|
2987
|
-
},
|
|
2995
|
+
}, zo = ({
|
|
2988
2996
|
className: e,
|
|
2989
2997
|
message: t,
|
|
2990
2998
|
onSubmit: n,
|
|
@@ -3005,7 +3013,7 @@ const ee = (e) => u("button", {
|
|
|
3005
3013
|
isSelected: !1
|
|
3006
3014
|
}, x), {}), [m, p] = Z(l), f = c["userleap-platform"], h = s === I.MultipleChoice, g = o.required, v = Object.entries(m).some(([x, P]) => {
|
|
3007
3015
|
var k;
|
|
3008
|
-
const T = r.find((
|
|
3016
|
+
const T = r.find(($) => `${$.id}` === x), V = P.userText === void 0 || P.userText.trim() === "";
|
|
3009
3017
|
return ((k = T == null ? void 0 : T.optionProperties) == null ? void 0 : k.allowsTextEntry) && V && P.isSelected;
|
|
3010
3018
|
}), _ = Object.values(m).some((x) => x.isSelected), w = v || g && !_, S = r.map(({
|
|
3011
3019
|
id: x,
|
|
@@ -3014,26 +3022,26 @@ const ee = (e) => u("button", {
|
|
|
3014
3022
|
optionProperties: V
|
|
3015
3023
|
}, k) => {
|
|
3016
3024
|
var B, A;
|
|
3017
|
-
const
|
|
3025
|
+
const $ = `${x}`, {
|
|
3018
3026
|
allowsTextEntry: y
|
|
3019
3027
|
} = V || {
|
|
3020
3028
|
allowsTextEntry: !1
|
|
3021
3029
|
};
|
|
3022
|
-
return u(
|
|
3030
|
+
return u($o, {
|
|
3023
3031
|
allowTextEntry: y,
|
|
3024
3032
|
border: a,
|
|
3025
3033
|
error: !1,
|
|
3026
|
-
id:
|
|
3034
|
+
id: $,
|
|
3027
3035
|
index: k,
|
|
3028
3036
|
isRadio: h,
|
|
3029
|
-
isSelected: !!((B = m[
|
|
3037
|
+
isSelected: !!((B = m[$]) != null && B.isSelected),
|
|
3030
3038
|
label: P,
|
|
3031
3039
|
onUserInputChanged: (ae) => E(ae.id, ae.selected, ae.userText),
|
|
3032
3040
|
promptText: "Please specify",
|
|
3033
3041
|
text: (A = m[x]) == null ? void 0 : A.userText,
|
|
3034
3042
|
useMobileStyling: d,
|
|
3035
3043
|
value: T
|
|
3036
|
-
},
|
|
3044
|
+
}, $);
|
|
3037
3045
|
}), b = (x) => {
|
|
3038
3046
|
x.preventDefault(), x.stopPropagation(), n(m);
|
|
3039
3047
|
}, E = (x, P, T) => {
|
|
@@ -3074,14 +3082,14 @@ const ee = (e) => u("button", {
|
|
|
3074
3082
|
})]
|
|
3075
3083
|
}, i)
|
|
3076
3084
|
});
|
|
3077
|
-
},
|
|
3085
|
+
}, Pa = (e) => {
|
|
3078
3086
|
const {
|
|
3079
3087
|
questionId: t,
|
|
3080
3088
|
type: n,
|
|
3081
3089
|
next: r,
|
|
3082
3090
|
options: o
|
|
3083
3091
|
} = e;
|
|
3084
|
-
return u(
|
|
3092
|
+
return u(zo, {
|
|
3085
3093
|
...e,
|
|
3086
3094
|
onSubmit: (s) => {
|
|
3087
3095
|
const a = Object.entries(s).find(([, p]) => p.isSelected) || [void 0, void 0], [c, d] = a, l = o.find((p) => `${p.id}` === c), m = d != null && d.userText ? {
|
|
@@ -3099,13 +3107,13 @@ const ee = (e) => u("button", {
|
|
|
3099
3107
|
});
|
|
3100
3108
|
}
|
|
3101
3109
|
});
|
|
3102
|
-
},
|
|
3110
|
+
}, Ra = (e) => {
|
|
3103
3111
|
const {
|
|
3104
3112
|
questionId: t,
|
|
3105
3113
|
type: n,
|
|
3106
3114
|
next: r
|
|
3107
3115
|
} = e;
|
|
3108
|
-
return u(
|
|
3116
|
+
return u(zo, {
|
|
3109
3117
|
...e,
|
|
3110
3118
|
onSubmit: (i) => {
|
|
3111
3119
|
const s = {}, a = Object.entries(i).reduce((d, [l, m]) => (d[l] = m.isSelected, d), s), c = Object.entries(i).reduce((d, [l, m]) => {
|
|
@@ -3124,7 +3132,7 @@ const ee = (e) => u("button", {
|
|
|
3124
3132
|
});
|
|
3125
3133
|
}
|
|
3126
3134
|
});
|
|
3127
|
-
},
|
|
3135
|
+
}, Da = ({
|
|
3128
3136
|
className: e,
|
|
3129
3137
|
props: {
|
|
3130
3138
|
labels: t,
|
|
@@ -3205,7 +3213,7 @@ const ee = (e) => u("button", {
|
|
|
3205
3213
|
})]
|
|
3206
3214
|
}, i)
|
|
3207
3215
|
});
|
|
3208
|
-
},
|
|
3216
|
+
}, ja = ({
|
|
3209
3217
|
className: e,
|
|
3210
3218
|
message: t,
|
|
3211
3219
|
next: n,
|
|
@@ -3223,7 +3231,7 @@ const ee = (e) => u("button", {
|
|
|
3223
3231
|
headers: x.headers,
|
|
3224
3232
|
useMobileStyling: x.useMobileStyling,
|
|
3225
3233
|
update: x.update
|
|
3226
|
-
})), [l, m] = Z(""), p = Te(null), f = a["userleap-platform"], h = l.trim(), g = r.required === !0 && !h, v =
|
|
3234
|
+
})), [l, m] = Z(""), p = Te(null), f = a["userleap-platform"], h = l.trim(), g = r.required === !0 && !h, v = Fo(p, () => d()), _ = (x) => {
|
|
3227
3235
|
v(), x.preventDefault(), x.stopPropagation(), ot(x.target) && m(x.target.value);
|
|
3228
3236
|
}, w = (x) => {
|
|
3229
3237
|
x.preventDefault(), x.stopPropagation(), n({
|
|
@@ -3281,11 +3289,11 @@ const ee = (e) => u("button", {
|
|
|
3281
3289
|
});
|
|
3282
3290
|
};
|
|
3283
3291
|
var Ee = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(Ee || {});
|
|
3284
|
-
const jt = (e) => e.type === ne.AvPermission,
|
|
3292
|
+
const jt = (e) => e.type === ne.AvPermission, qo = (e) => e.type === ne.ScreenPermission, Aa = (e, t) => !(jt(t) ? t.permissionDescriptors : []).includes(Ze.Camera) || e.getVideoTracks().length > 0, Wo = (e, t) => {
|
|
3285
3293
|
if (e === void 0)
|
|
3286
3294
|
return Ee.RequestNeeded;
|
|
3287
3295
|
if (e) {
|
|
3288
|
-
if (!
|
|
3296
|
+
if (!Aa(e, t))
|
|
3289
3297
|
return Ee.RequestNeeded;
|
|
3290
3298
|
} else
|
|
3291
3299
|
return Ee.TryAgain;
|
|
@@ -3300,7 +3308,7 @@ const jt = (e) => e.type === ne.AvPermission, zo = (e) => e.type === ne.ScreenPe
|
|
|
3300
3308
|
recordingMediaTypes: void 0,
|
|
3301
3309
|
screenPermissionRequested: !1,
|
|
3302
3310
|
type: void 0
|
|
3303
|
-
}, ve =
|
|
3311
|
+
}, ve = Oo((e) => ({
|
|
3304
3312
|
...fr,
|
|
3305
3313
|
reset: () => {
|
|
3306
3314
|
e(fr);
|
|
@@ -3342,7 +3350,7 @@ function cn({
|
|
|
3342
3350
|
}
|
|
3343
3351
|
});
|
|
3344
3352
|
}
|
|
3345
|
-
function
|
|
3353
|
+
function Oa({
|
|
3346
3354
|
pages: e,
|
|
3347
3355
|
userId: t,
|
|
3348
3356
|
responseGroupUid: n,
|
|
@@ -3375,7 +3383,7 @@ function Aa({
|
|
|
3375
3383
|
const D = (p == null ? void 0 : p.active) && !E, x = (p == null ? void 0 : p.active) && f;
|
|
3376
3384
|
(D || x) && l++;
|
|
3377
3385
|
}
|
|
3378
|
-
|
|
3386
|
+
qo(e[l]) && h && (l++, c.emit(Y.BeginRecording, {
|
|
3379
3387
|
[M.RecordingMediaTypes]: w,
|
|
3380
3388
|
[M.StartRecordingCallback]: (S) => s({
|
|
3381
3389
|
mediaRecordingUids: S
|
|
@@ -3512,7 +3520,7 @@ function En({
|
|
|
3512
3520
|
return;
|
|
3513
3521
|
}
|
|
3514
3522
|
}
|
|
3515
|
-
const
|
|
3523
|
+
const Go = "ul-permission-graphics-container", Ko = "ul-permission-body", Zo = R([Go, "ul_recorded-task-inset-spacing"]), At = R(["ul-horizontal-button-container", "ul-horizontal-button-container-left"]), Yo = ({
|
|
3516
3524
|
richTextBody: e
|
|
3517
3525
|
}) => u("div", {
|
|
3518
3526
|
className: "ul-rich-text-body",
|
|
@@ -3549,7 +3557,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3549
3557
|
}, 1e3);
|
|
3550
3558
|
return () => clearInterval(s);
|
|
3551
3559
|
}, [t, n, i, e, r, o]);
|
|
3552
|
-
},
|
|
3560
|
+
}, Ma = ({
|
|
3553
3561
|
content: e,
|
|
3554
3562
|
pages: t,
|
|
3555
3563
|
required: n
|
|
@@ -3561,7 +3569,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3561
3569
|
} = e;
|
|
3562
3570
|
return Ln(t), u("div", {
|
|
3563
3571
|
className: "ul-task-page",
|
|
3564
|
-
children: [u(
|
|
3572
|
+
children: [u(Yo, {
|
|
3565
3573
|
richTextBody: i
|
|
3566
3574
|
}), u("div", {
|
|
3567
3575
|
className: At,
|
|
@@ -3576,7 +3584,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3576
3584
|
})]
|
|
3577
3585
|
})]
|
|
3578
3586
|
}, "start-task");
|
|
3579
|
-
},
|
|
3587
|
+
}, Na = ({
|
|
3580
3588
|
content: e,
|
|
3581
3589
|
pages: t,
|
|
3582
3590
|
properties: n
|
|
@@ -3607,11 +3615,11 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3607
3615
|
});
|
|
3608
3616
|
return u("div", {
|
|
3609
3617
|
className: "ul-task-page",
|
|
3610
|
-
children: [u(
|
|
3618
|
+
children: [u(Yo, {
|
|
3611
3619
|
richTextBody: e.taskDetail
|
|
3612
3620
|
}), s]
|
|
3613
3621
|
}, "complete-task");
|
|
3614
|
-
},
|
|
3622
|
+
}, Va = ({
|
|
3615
3623
|
content: e,
|
|
3616
3624
|
pages: t,
|
|
3617
3625
|
required: n
|
|
@@ -3622,7 +3630,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3622
3630
|
} = e, [i] = z((c) => [c.tabTitle]), [s, a] = Z(!1);
|
|
3623
3631
|
return u("div", {
|
|
3624
3632
|
children: [u("div", {
|
|
3625
|
-
className:
|
|
3633
|
+
className: Zo,
|
|
3626
3634
|
children: [u("p", {
|
|
3627
3635
|
style: {
|
|
3628
3636
|
marginTop: "auto"
|
|
@@ -3631,7 +3639,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3631
3639
|
}), u("div", {
|
|
3632
3640
|
className: "ul-select-tab-container",
|
|
3633
3641
|
children: u("p", {
|
|
3634
|
-
className:
|
|
3642
|
+
className: Ko,
|
|
3635
3643
|
children: i
|
|
3636
3644
|
})
|
|
3637
3645
|
})]
|
|
@@ -3650,14 +3658,14 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3650
3658
|
})]
|
|
3651
3659
|
})]
|
|
3652
3660
|
});
|
|
3653
|
-
},
|
|
3661
|
+
}, Ba = ({
|
|
3654
3662
|
content: e
|
|
3655
3663
|
}) => u("div", {
|
|
3656
|
-
className: R([
|
|
3664
|
+
className: R([Go, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"]),
|
|
3657
3665
|
dangerouslySetInnerHTML: {
|
|
3658
3666
|
__html: e.svg
|
|
3659
3667
|
}
|
|
3660
|
-
}, "ul-permission-request-graphic"),
|
|
3668
|
+
}, "ul-permission-request-graphic"), Fa = ({
|
|
3661
3669
|
content: e,
|
|
3662
3670
|
pages: t,
|
|
3663
3671
|
required: n
|
|
@@ -3678,14 +3686,14 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3678
3686
|
return () => clearInterval(c);
|
|
3679
3687
|
}, [a, t]), a ? u("div", {
|
|
3680
3688
|
children: [u("div", {
|
|
3681
|
-
className:
|
|
3689
|
+
className: Zo,
|
|
3682
3690
|
children: u("p", {
|
|
3683
3691
|
className: "ul-av-permission-denied-paragraph",
|
|
3684
3692
|
children: [u("span", {
|
|
3685
3693
|
className: "ul-av-permission-denied-headline",
|
|
3686
3694
|
children: r
|
|
3687
3695
|
}), u("span", {
|
|
3688
|
-
className:
|
|
3696
|
+
className: Ko,
|
|
3689
3697
|
children: o
|
|
3690
3698
|
})]
|
|
3691
3699
|
})
|
|
@@ -3703,7 +3711,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3703
3711
|
})]
|
|
3704
3712
|
})]
|
|
3705
3713
|
}) : null;
|
|
3706
|
-
},
|
|
3714
|
+
}, $a = ({
|
|
3707
3715
|
stream: e
|
|
3708
3716
|
}) => u("video", {
|
|
3709
3717
|
autoPlay: !0,
|
|
@@ -3724,7 +3732,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3724
3732
|
avStream: o
|
|
3725
3733
|
} = ve.getState();
|
|
3726
3734
|
return Ln(t), u("div", {
|
|
3727
|
-
children: [u(
|
|
3735
|
+
children: [u($a, {
|
|
3728
3736
|
stream: o
|
|
3729
3737
|
}), u("div", {
|
|
3730
3738
|
className: "ul-vertical-button-container-center",
|
|
@@ -3740,7 +3748,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3740
3748
|
})]
|
|
3741
3749
|
})]
|
|
3742
3750
|
});
|
|
3743
|
-
},
|
|
3751
|
+
}, za = ({
|
|
3744
3752
|
properties: e
|
|
3745
3753
|
}) => {
|
|
3746
3754
|
const {
|
|
@@ -3754,10 +3762,10 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3754
3762
|
return null;
|
|
3755
3763
|
switch (o == null ? void 0 : o.type) {
|
|
3756
3764
|
case ne.AvPermission: {
|
|
3757
|
-
const i =
|
|
3758
|
-
return i === Ee.RequestNeeded ? u(
|
|
3765
|
+
const i = Wo(r, o);
|
|
3766
|
+
return i === Ee.RequestNeeded ? u(Ba, {
|
|
3759
3767
|
content: o
|
|
3760
|
-
}) : i === Ee.TryAgain ? u(
|
|
3768
|
+
}) : i === Ee.TryAgain ? u(Fa, {
|
|
3761
3769
|
content: o,
|
|
3762
3770
|
pages: t,
|
|
3763
3771
|
required: n
|
|
@@ -3768,19 +3776,19 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3768
3776
|
});
|
|
3769
3777
|
}
|
|
3770
3778
|
case ne.ScreenPermission:
|
|
3771
|
-
return u(
|
|
3779
|
+
return u(Va, {
|
|
3772
3780
|
content: o,
|
|
3773
3781
|
pages: t,
|
|
3774
3782
|
required: n
|
|
3775
3783
|
});
|
|
3776
3784
|
case ne.StartTask:
|
|
3777
|
-
return u(
|
|
3785
|
+
return u(Ma, {
|
|
3778
3786
|
content: o,
|
|
3779
3787
|
pages: t,
|
|
3780
3788
|
required: n
|
|
3781
3789
|
});
|
|
3782
3790
|
case ne.CompleteTask:
|
|
3783
|
-
return u(
|
|
3791
|
+
return u(Na, {
|
|
3784
3792
|
content: o,
|
|
3785
3793
|
pages: t,
|
|
3786
3794
|
properties: e
|
|
@@ -3788,7 +3796,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3788
3796
|
default:
|
|
3789
3797
|
return null;
|
|
3790
3798
|
}
|
|
3791
|
-
},
|
|
3799
|
+
}, qa = ({
|
|
3792
3800
|
className: e,
|
|
3793
3801
|
properties: t,
|
|
3794
3802
|
next: n,
|
|
@@ -3803,7 +3811,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3803
3811
|
screenPermissionRequested: l
|
|
3804
3812
|
} = d, m = ve((v) => v.avStream);
|
|
3805
3813
|
let p = ve((v) => v.currentPage);
|
|
3806
|
-
p || (p =
|
|
3814
|
+
p || (p = Oa({
|
|
3807
3815
|
questionId: r,
|
|
3808
3816
|
surveyId: s,
|
|
3809
3817
|
next: (v) => {
|
|
@@ -3814,8 +3822,8 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3814
3822
|
userId: c
|
|
3815
3823
|
}));
|
|
3816
3824
|
let f = p.headline, h = p.captionText;
|
|
3817
|
-
const g =
|
|
3818
|
-
return
|
|
3825
|
+
const g = Wo(m, p);
|
|
3826
|
+
return qo(p) && l && (f = p.permissionDeniedHeadline, h = p.permissionDeniedCaptionText), jt(p) && g === Ee.Ready && (f = p.permissionGrantedHeadline, h = p.permissionGrantedCaptionText), u("div", {
|
|
3819
3827
|
className: R([..._e(C.CardMainContent, i["userleap-platform"])]),
|
|
3820
3828
|
children: u("div", {
|
|
3821
3829
|
className: R([e, "ul-center-horizontally", C.FadeInTransition]),
|
|
@@ -3824,20 +3832,20 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3824
3832
|
properties: {
|
|
3825
3833
|
captionText: h
|
|
3826
3834
|
}
|
|
3827
|
-
}), u(
|
|
3835
|
+
}), u(za, {
|
|
3828
3836
|
properties: t
|
|
3829
3837
|
})]
|
|
3830
3838
|
})
|
|
3831
3839
|
});
|
|
3832
|
-
},
|
|
3840
|
+
}, Wa = {
|
|
3833
3841
|
"{{user_id}}": "externalUserId",
|
|
3834
3842
|
"{{email}}": "email"
|
|
3835
|
-
},
|
|
3843
|
+
}, Ga = (e = void 0, t = {}) => {
|
|
3836
3844
|
if (!e)
|
|
3837
3845
|
return e;
|
|
3838
3846
|
let n = e;
|
|
3839
3847
|
const r = [];
|
|
3840
|
-
for (const [c, d] of Object.entries(
|
|
3848
|
+
for (const [c, d] of Object.entries(Wa))
|
|
3841
3849
|
if (n.toLowerCase().includes(c))
|
|
3842
3850
|
if (t[d]) {
|
|
3843
3851
|
const l = new RegExp(c, "gi");
|
|
@@ -3851,7 +3859,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3851
3859
|
return o;
|
|
3852
3860
|
const a = s.map((c) => c.join("=")).join("&");
|
|
3853
3861
|
return `${o}?${a}`;
|
|
3854
|
-
},
|
|
3862
|
+
}, Ka = ({
|
|
3855
3863
|
className: e,
|
|
3856
3864
|
message: t,
|
|
3857
3865
|
next: n,
|
|
@@ -3883,7 +3891,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3883
3891
|
className: "ul-card-button-group",
|
|
3884
3892
|
children: [u("a", {
|
|
3885
3893
|
className: "ul-card-text__button ul-card__text-url-prompt-button",
|
|
3886
|
-
href:
|
|
3894
|
+
href: Ga(r && r.buttonUrl, a),
|
|
3887
3895
|
id: "ul-card-text__button",
|
|
3888
3896
|
onClick: d,
|
|
3889
3897
|
onKeyPress: l,
|
|
@@ -3922,7 +3930,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3922
3930
|
})]
|
|
3923
3931
|
}, o)
|
|
3924
3932
|
});
|
|
3925
|
-
},
|
|
3933
|
+
}, Za = ({
|
|
3926
3934
|
className: e,
|
|
3927
3935
|
questionId: t
|
|
3928
3936
|
}) => {
|
|
@@ -3988,7 +3996,7 @@ const Wo = "ul-permission-graphics-container", Go = "ul-permission-body", Ko = R
|
|
|
3988
3996
|
}, Oe = "https://cdn.sprig.com", U = {
|
|
3989
3997
|
document: void 0,
|
|
3990
3998
|
videojs: void 0
|
|
3991
|
-
},
|
|
3999
|
+
}, Ya = `/* progress control styles */
|
|
3992
4000
|
.video-js .vjs-control {
|
|
3993
4001
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
3994
4002
|
}
|
|
@@ -4645,23 +4653,23 @@ span.ul-button-text {
|
|
|
4645
4653
|
.vjs-poster {
|
|
4646
4654
|
background-size: cover;
|
|
4647
4655
|
}
|
|
4648
|
-
`,
|
|
4656
|
+
`, Qa = (e) => {
|
|
4649
4657
|
const t = U.document.createElement("div");
|
|
4650
4658
|
return t.className = "ul-video-player-loading", t.id = In(e), ["first", "second", "third", "fourth"].map((n) => {
|
|
4651
4659
|
const r = U.document.createElement("div");
|
|
4652
4660
|
r.className = n, t.appendChild(r);
|
|
4653
4661
|
}), t;
|
|
4654
|
-
}, In = (e) => e + "-loading-spiner", G = "hidden", mr = ".m3u8", qt = "questionId", Wt = "ul-video-recorder-camera-off-button", Gt = "ul-recording-in-session",
|
|
4662
|
+
}, In = (e) => e + "-loading-spiner", G = "hidden", mr = ".m3u8", qt = "questionId", Wt = "ul-video-recorder-camera-off-button", Gt = "ul-recording-in-session", Ja = [
|
|
4655
4663
|
{ type: "link", content: `${Oe}/dependencies/videojs-record-4.5.0.min.css` },
|
|
4656
4664
|
{ type: "script", content: `${Oe}/dependencies/RecordRTC-5.6.2.js` },
|
|
4657
4665
|
{ type: "script", content: `${Oe}/dependencies/adapter.8.0.0.min.js` },
|
|
4658
4666
|
{ type: "script", content: `${Oe}/dependencies/videojs-record-4.5.0.min.js` },
|
|
4659
4667
|
{ type: "script", content: `${Oe}/userleap-web-upchunk-v2.2.2.js` }
|
|
4660
|
-
],
|
|
4668
|
+
], Qo = [
|
|
4661
4669
|
{ type: "link", content: `${Oe}/dependencies/video-js-7.18.0.min.css` },
|
|
4662
4670
|
{ type: "script", content: `${Oe}/dependencies/video-js-7.18.0.min.js` },
|
|
4663
|
-
{ type: "style", content:
|
|
4664
|
-
],
|
|
4671
|
+
{ type: "style", content: Ya }
|
|
4672
|
+
], Jo = "-video-player", Xo = "-secondary-video-player", ei = "-video-recorder";
|
|
4665
4673
|
let fe, hr;
|
|
4666
4674
|
const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, metadata: i }) => {
|
|
4667
4675
|
const s = U.document.documentElement;
|
|
@@ -4720,18 +4728,18 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4720
4728
|
},
|
|
4721
4729
|
body: JSON.stringify(c)
|
|
4722
4730
|
})).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", e);
|
|
4723
|
-
},
|
|
4731
|
+
}, Xa = (e, { type: t, content: n }) => new Promise(function(r, o) {
|
|
4724
4732
|
let i;
|
|
4725
4733
|
t === "script" ? (i = U.document.createElement("script"), i.src = n) : t === "link" ? (i = U.document.createElement("link"), i.rel = "stylesheet", i.href = n, i.type = "text/css") : (i = U.document.createElement("style"), i.innerHTML = n), i.onload = function() {
|
|
4726
4734
|
r(n);
|
|
4727
4735
|
}, i.onerror = function() {
|
|
4728
4736
|
o(n);
|
|
4729
4737
|
}, i.async = !1, i.id = btoa(n), e.appendChild(i);
|
|
4730
|
-
}),
|
|
4738
|
+
}), ti = (e, t) => {
|
|
4731
4739
|
if (e.length === 0)
|
|
4732
4740
|
return t && t();
|
|
4733
4741
|
Promise.all(
|
|
4734
|
-
e.reduce((n, r) => (n.push(
|
|
4742
|
+
e.reduce((n, r) => (n.push(Xa(U.document.head, r)), n), [])
|
|
4735
4743
|
).then(() => {
|
|
4736
4744
|
U.videojs = U.document.defaultView.videojs, t && t();
|
|
4737
4745
|
}).catch(function(n) {
|
|
@@ -4749,7 +4757,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4749
4757
|
}, Kt = (e, t) => {
|
|
4750
4758
|
const n = U.videojs(e.id());
|
|
4751
4759
|
return n == null ? void 0 : n.payload[t];
|
|
4752
|
-
},
|
|
4760
|
+
}, el = (e, t, n, r, o) => {
|
|
4753
4761
|
const { surveyId: i, responseGroupUid: s, visitorId: a, envId: c } = e.payload;
|
|
4754
4762
|
e.on("deviceError", function() {
|
|
4755
4763
|
console.warn("device error: ", e.deviceErrorCode), e.deviceErrorCode.message === "Permission denied" ? (e.deviceButton.addClass("permission-denied"), n && n(j.ERROR, { type: j.PERMISSION_DENIED }), Se({
|
|
@@ -4859,12 +4867,12 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4859
4867
|
});
|
|
4860
4868
|
}));
|
|
4861
4869
|
});
|
|
4862
|
-
},
|
|
4870
|
+
}, ni = (e, t) => {
|
|
4863
4871
|
const n = new (U.videojs.getComponent("Component"))(e);
|
|
4864
4872
|
return n.addClass("ul-buttons-panel"), t.map((r) => {
|
|
4865
4873
|
n.addChild(r);
|
|
4866
|
-
}),
|
|
4867
|
-
},
|
|
4874
|
+
}), tl(n), n;
|
|
4875
|
+
}, tl = (e) => {
|
|
4868
4876
|
e.children().forEach((t) => {
|
|
4869
4877
|
if (le[t.name_]) {
|
|
4870
4878
|
const n = bt(le[t.name_], `ul-${le[t.name_]}`);
|
|
@@ -4874,13 +4882,13 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4874
4882
|
}, bt = (e, t = "") => {
|
|
4875
4883
|
const n = U.document.createElement("span");
|
|
4876
4884
|
return n.className = "ul-button-text", n.innerHTML = e, n.id = t, n;
|
|
4877
|
-
},
|
|
4885
|
+
}, ri = (e, t, n, r, o = !1, i) => {
|
|
4878
4886
|
e.addClass("ul-video-player");
|
|
4879
4887
|
const s = new (U.videojs.getComponent("Component"))(e);
|
|
4880
4888
|
s.addClass("ul-control-panel"), e.progressBar = s.addChild("ProgressControl"), n && e.src(n), e.audioPlayerPlaceholder = new (U.videojs.getComponent("Component"))(e), e.audioPlayerPlaceholder.addClass("ul-audio-recorder-placeholder");
|
|
4881
|
-
const a = n && n.src ?
|
|
4889
|
+
const a = n && n.src ? cl(n.src) : null;
|
|
4882
4890
|
n && (o || !a) ? (e.children()[0].classList.add("vjs-hidden"), U.document.getElementById(`${e.id()}_html5_api`).style.height = "0px") : (e.audioPlayerPlaceholder.hide(), U.document.getElementById(`${e.id()}_html5_api`).style.height = "100%", a && e.poster(a)), e.on("play", () => {
|
|
4883
|
-
!o && n && !a &&
|
|
4891
|
+
!o && n && !a && ol(e, !1), i == null || i.play();
|
|
4884
4892
|
}), e.on("pause", () => {
|
|
4885
4893
|
i == null || i.pause();
|
|
4886
4894
|
}), e.on("seeked", () => {
|
|
@@ -4888,11 +4896,11 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4888
4896
|
}), e.on("ratechange", () => {
|
|
4889
4897
|
i == null || i.playbackRate(e.playbackRate());
|
|
4890
4898
|
}), e.addChild(e.audioPlayerPlaceholder, {}, 1), s.addChild(t), e.addChild(s), r && r(e);
|
|
4891
|
-
},
|
|
4892
|
-
e.addClass(`ul${
|
|
4899
|
+
}, nl = (e, t, n) => {
|
|
4900
|
+
e.addClass(`ul${Xo}`);
|
|
4893
4901
|
const r = new (U.videojs.getComponent("Component"))(e);
|
|
4894
4902
|
t && e.src(t), e.addChild(r), n && n(e);
|
|
4895
|
-
},
|
|
4903
|
+
}, rl = (e, t, n, r, o, i, s, a = !1) => {
|
|
4896
4904
|
hr = Date.now();
|
|
4897
4905
|
const d = Ut(t, {
|
|
4898
4906
|
controls: !1,
|
|
@@ -4923,10 +4931,10 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4923
4931
|
const { surveyId: l, questionId: m, responseGroupUid: p, visitorId: f, envId: h } = n;
|
|
4924
4932
|
let g;
|
|
4925
4933
|
const v = (k) => {
|
|
4926
|
-
const
|
|
4934
|
+
const $ = Wt, y = Wt + "-audio-only";
|
|
4927
4935
|
gr(d.uploadProgressLabel, "none"), fe && fe.startTime >= hr && fe.abort();
|
|
4928
4936
|
const B = U.document.getElementById("ul-camera-button");
|
|
4929
|
-
k ? (d.children()[0].classList.add("vjs-hidden"), b.removeClass(
|
|
4937
|
+
k ? (d.children()[0].classList.add("vjs-hidden"), b.removeClass($), b.addClass(y), B.innerHTML = le.TurnOnCamera, d.audioPlayerPlaceholder.removeClass("vjs-hidden"), g == null || g.getTracks().forEach((A) => {
|
|
4930
4938
|
A.stop();
|
|
4931
4939
|
}), window.navigator.mediaDevices.getUserMedia({ video: !0, audio: !0 }).then((A) => {
|
|
4932
4940
|
g = A, A.getVideoTracks().forEach((ae) => {
|
|
@@ -4934,7 +4942,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4934
4942
|
}), d.record().onDeviceReady(A);
|
|
4935
4943
|
}).catch(d.record().onDeviceError.bind(d.record()))) : (g == null || g.getVideoTracks().forEach((A) => {
|
|
4936
4944
|
A.enabled = !0;
|
|
4937
|
-
}), d.children()[0].classList.remove("vjs-hidden"), d.record().getDevice(), b.removeClass(y), b.addClass(
|
|
4945
|
+
}), d.children()[0].classList.remove("vjs-hidden"), d.record().getDevice(), b.removeClass(y), b.addClass($), B.innerHTML = le.TurnOffCamera, d.audioPlayerPlaceholder.addClass("vjs-hidden"));
|
|
4938
4946
|
}, _ = new (U.videojs.getComponent("Button"))(d, {
|
|
4939
4947
|
clickHandler: () => {
|
|
4940
4948
|
_.hasClass(G) || (Se({
|
|
@@ -4971,13 +4979,13 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4971
4979
|
if (d.record().isRecording())
|
|
4972
4980
|
d.record().stop(), k && (k.innerHTML = le.RecordButton), E.removeClass(Gt), _.removeClass(G);
|
|
4973
4981
|
else {
|
|
4974
|
-
const
|
|
4975
|
-
if (
|
|
4976
|
-
|
|
4982
|
+
const $ = U.document.getElementById("ul-recording-countdown-screen");
|
|
4983
|
+
if ($)
|
|
4984
|
+
$.remove(), k && (k.innerHTML = le.RecordButton), v(d.cameraOff), o(j.DELETE, {}), b.removeClass(G), _.addClass(G), E.removeClass(Gt), P.show();
|
|
4977
4985
|
else {
|
|
4978
4986
|
E.addClass(Gt), P.hide(), b.addClass(G), _.addClass(G), k && (k.innerHTML = le.StopButton);
|
|
4979
4987
|
const y = U.document.createElement("div");
|
|
4980
|
-
y.id = "ul-recording-countdown-screen", w.insertBefore(y, w.children[1]), y.style.height = `${w.offsetHeight}px`,
|
|
4988
|
+
y.id = "ul-recording-countdown-screen", w.insertBefore(y, w.children[1]), y.style.height = `${w.offsetHeight}px`, oi(d, 3);
|
|
4981
4989
|
}
|
|
4982
4990
|
}
|
|
4983
4991
|
}
|
|
@@ -4985,7 +4993,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4985
4993
|
E.addClass("ul-video-recorder-toggle-button"), E.el_.appendChild(bt(le.RecordButton, "ul-recorder-toggle"));
|
|
4986
4994
|
const D = U.document.createElement("p");
|
|
4987
4995
|
D.style.visibility = "hidden", D.className = "ul-upload-progress-label", e.appendChild(D), d.uploadProgressLabel = D;
|
|
4988
|
-
const x =
|
|
4996
|
+
const x = ni(d, [
|
|
4989
4997
|
_,
|
|
4990
4998
|
b,
|
|
4991
4999
|
"PlayToggle",
|
|
@@ -4994,27 +5002,27 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
4994
5002
|
]), P = x.children().find((k) => k.name_ === "FullscreenToggle");
|
|
4995
5003
|
P.hasClass("vjs-disabled") && P.hide();
|
|
4996
5004
|
const T = x.children().find((k) => k.name_ === "PlayToggle");
|
|
4997
|
-
T.hide(), i && b.addClass(G), !i && _.addClass(G),
|
|
5005
|
+
T.hide(), i && b.addClass(G), !i && _.addClass(G), ri(d, x, i, !1, a), d.on("stopRecord", () => {
|
|
4998
5006
|
E.hide(), T.show(), P.show(), _.removeClass(G);
|
|
4999
5007
|
}), d.on("deviceReady", () => {
|
|
5000
5008
|
E.show(), T.hide(), _.addClass(G);
|
|
5001
|
-
}),
|
|
5009
|
+
}), el(d, r, o, gr, s), i && (d.deviceButton && d.deviceButton.hide(), d.src(i), T.show(), E.hide(), _.removeClass(G));
|
|
5002
5010
|
const V = [{ name: "microphone" }];
|
|
5003
5011
|
!d.cameraOff && V.push({ name: "camera" }), Promise.all(V.map((k) => {
|
|
5004
|
-
var
|
|
5005
|
-
return (
|
|
5012
|
+
var $;
|
|
5013
|
+
return ($ = navigator == null ? void 0 : navigator.permissions) == null ? void 0 : $.query(k);
|
|
5006
5014
|
})).then((k) => {
|
|
5007
5015
|
k.reduce((y, B) => y & B.state === "granted", !0) && d && (d.deviceButton && d.deviceButton.hide(), !i && d.record().getDevice());
|
|
5008
5016
|
}).catch((k) => {
|
|
5009
5017
|
});
|
|
5010
|
-
},
|
|
5018
|
+
}, oi = (e, t = 3) => {
|
|
5011
5019
|
const n = U.document.getElementById("ul-recording-countdown-screen");
|
|
5012
5020
|
n && t === 0 ? (n.remove(), e.record().start()) : n && (n.innerHTML = `<span class='ul-countdown-text'>Recording in... ${t}</span>`, setTimeout(() => {
|
|
5013
|
-
|
|
5021
|
+
oi(e, t - 1);
|
|
5014
5022
|
}, 1e3));
|
|
5015
|
-
},
|
|
5023
|
+
}, ii = (e) => {
|
|
5016
5024
|
const t = U.document.createElement("div");
|
|
5017
|
-
return t.className = "ul-video-container", t.appendChild(
|
|
5025
|
+
return t.className = "ul-video-container", t.appendChild(Qa(e)), t;
|
|
5018
5026
|
}, un = (e, t) => {
|
|
5019
5027
|
const n = U.document.createElement("video");
|
|
5020
5028
|
n.id = e, n.className = "video-js vjs-default-skin ul-video-player-video";
|
|
@@ -5022,11 +5030,11 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5022
5030
|
r.className = "vjs-no-js", r.innerHTML = "To view this video please enable JavaScript, and consider upgrading to a web browser that";
|
|
5023
5031
|
const o = U.document.createElement("a");
|
|
5024
5032
|
return o.href = "https://videojs.com/html5-video-support/", o.target = "_blank", o.innerHTML = "supports HTML5 video", r.appendChild(o), n.appendChild(r), t.appendChild(n), t;
|
|
5025
|
-
},
|
|
5033
|
+
}, ol = (e, t) => {
|
|
5026
5034
|
t ? (e.children()[0].classList.add("vjs-hidden"), e.audioPlayerPlaceholder.show(), U.document.getElementById(`${e.id()}_html5_api`).style.height = "0px") : (e.children()[0].classList.remove("vjs-hidden"), e.audioPlayerPlaceholder.hide(), U.document.getElementById(`${e.id()}_html5_api`).style.height = "100%");
|
|
5027
|
-
}, Ut = (e, t) => U.document.getElementById(e) ? t ? U.videojs(e, t) : U.videojs(e) : (console.error(`Error in finding player element with ID, ${e}`), null),
|
|
5035
|
+
}, Ut = (e, t) => U.document.getElementById(e) ? t ? U.videojs(e, t) : U.videojs(e) : (console.error(`Error in finding player element with ID, ${e}`), null), il = (e, t, n, r = !1, o = "https://api.sprig.com", i = document, s = null, a = null) => {
|
|
5028
5036
|
U.document = i;
|
|
5029
|
-
const c = e +
|
|
5037
|
+
const c = e + Jo, d = ii(c);
|
|
5030
5038
|
return U.document.addEventListener("securitypolicyviolation", (l) => {
|
|
5031
5039
|
be(
|
|
5032
5040
|
new Error(`Voice & Video feature violates ${l.violatedDirective} web page CSP policies for the question player.`),
|
|
@@ -5034,7 +5042,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5034
5042
|
o,
|
|
5035
5043
|
{}
|
|
5036
5044
|
);
|
|
5037
|
-
}),
|
|
5045
|
+
}), ti(Qo, () => {
|
|
5038
5046
|
U.document.getElementById(In(c)).remove(), un(c, d);
|
|
5039
5047
|
const l = {
|
|
5040
5048
|
playsinline: !0,
|
|
@@ -5042,22 +5050,22 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5042
5050
|
fill: !0
|
|
5043
5051
|
};
|
|
5044
5052
|
try {
|
|
5045
|
-
const m = e +
|
|
5053
|
+
const m = e + Xo;
|
|
5046
5054
|
un(m, d);
|
|
5047
5055
|
const p = Ut(c, l), f = Ut(m, { muted: !0, ...l });
|
|
5048
5056
|
if (!p || !f)
|
|
5049
5057
|
return;
|
|
5050
|
-
|
|
5051
|
-
const h =
|
|
5052
|
-
g.hasClass("vjs-disabled") && g.hide(),
|
|
5058
|
+
nl(f, s, a), s || f.addClass(G);
|
|
5059
|
+
const h = ni(p, ["PlaybackRateMenuButton", "PlayToggle", "FullscreenToggle"]), g = h.children().find((v) => v.name_ === "FullscreenToggle");
|
|
5060
|
+
g.hasClass("vjs-disabled") && g.hide(), ri(p, h, t, n, r, f);
|
|
5053
5061
|
} catch (m) {
|
|
5054
5062
|
be(new Error(`Error when creating video player object ${m}`), "playerDeviceError", o, {});
|
|
5055
5063
|
return;
|
|
5056
5064
|
}
|
|
5057
5065
|
}), d;
|
|
5058
|
-
},
|
|
5066
|
+
}, sl = (e, t = {}, n = "https://api.userleap.com", r, o, i, s = !1, a = document) => {
|
|
5059
5067
|
U.document = a;
|
|
5060
|
-
const c = e +
|
|
5068
|
+
const c = e + ei, d = ii(c);
|
|
5061
5069
|
return U.document.addEventListener("securitypolicyviolation", (l) => {
|
|
5062
5070
|
be(
|
|
5063
5071
|
new Error(`Voice & Video feature violates ${l.violatedDirective} web page CSP policies for the recorder player.`),
|
|
@@ -5067,10 +5075,10 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5067
5075
|
t.visitorId,
|
|
5068
5076
|
t.envId
|
|
5069
5077
|
);
|
|
5070
|
-
}),
|
|
5078
|
+
}), ti(Qo.concat(Ja), () => {
|
|
5071
5079
|
un(c, d), U.document.getElementById(In(c)).remove();
|
|
5072
5080
|
try {
|
|
5073
|
-
|
|
5081
|
+
rl(
|
|
5074
5082
|
d,
|
|
5075
5083
|
c,
|
|
5076
5084
|
t,
|
|
@@ -5092,8 +5100,8 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5092
5100
|
return;
|
|
5093
5101
|
}
|
|
5094
5102
|
}), d;
|
|
5095
|
-
},
|
|
5096
|
-
const t = e +
|
|
5103
|
+
}, al = (e) => {
|
|
5104
|
+
const t = e + ei;
|
|
5097
5105
|
if (!!U.document.getElementById(t) && !!U.videojs) {
|
|
5098
5106
|
try {
|
|
5099
5107
|
if (!U.videojs(t).record().stream)
|
|
@@ -5103,10 +5111,10 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5103
5111
|
}
|
|
5104
5112
|
U.videojs(t).record().stop(), U.videojs(t).record().stopDevice();
|
|
5105
5113
|
}
|
|
5106
|
-
}, al = (e) => {
|
|
5107
|
-
const t = Ut(e + Qo);
|
|
5108
|
-
t == null || t.pause();
|
|
5109
5114
|
}, ll = (e) => {
|
|
5115
|
+
const t = Ut(e + Jo);
|
|
5116
|
+
t == null || t.pause();
|
|
5117
|
+
}, cl = (e) => {
|
|
5110
5118
|
if (!e)
|
|
5111
5119
|
return null;
|
|
5112
5120
|
const t = e.match(/https:\/\/stream.mux.com\/(.*)/);
|
|
@@ -5136,7 +5144,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5136
5144
|
RecordButton: "Record",
|
|
5137
5145
|
StopButton: "Stop",
|
|
5138
5146
|
PauseButton: "Pause"
|
|
5139
|
-
}, Xe = "ul-card-video__player_recorder",
|
|
5147
|
+
}, Xe = "ul-card-video__player_recorder", dl = "ul-card-video__skip_button", ul = "ul-video-interview-form", vr = "ul-video-btn", pl = ({
|
|
5140
5148
|
className: e,
|
|
5141
5149
|
message: t,
|
|
5142
5150
|
next: n,
|
|
@@ -5175,7 +5183,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5175
5183
|
});
|
|
5176
5184
|
}, T = (y) => {
|
|
5177
5185
|
if (y && y.children.length === 0) {
|
|
5178
|
-
const B =
|
|
5186
|
+
const B = il(Xe, {
|
|
5179
5187
|
src: x,
|
|
5180
5188
|
type: "application/x-mpegURL"
|
|
5181
5189
|
}, void 0, r.mediaType === j.MEDIA_TYPE_AUDIO, s, p);
|
|
@@ -5183,7 +5191,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5183
5191
|
}
|
|
5184
5192
|
}, V = (y) => {
|
|
5185
5193
|
if (y && y.children.length === 0) {
|
|
5186
|
-
const B =
|
|
5194
|
+
const B = sl(Xe, {
|
|
5187
5195
|
surveyId: m,
|
|
5188
5196
|
responseGroupUid: l,
|
|
5189
5197
|
questionId: o,
|
|
@@ -5196,7 +5204,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5196
5204
|
y.appendChild(B);
|
|
5197
5205
|
}
|
|
5198
5206
|
}, k = (y) => {
|
|
5199
|
-
y.preventDefault(), y.stopPropagation(),
|
|
5207
|
+
y.preventDefault(), y.stopPropagation(), al(Xe), v && w ? (c({
|
|
5200
5208
|
mediaRecordingUid: w,
|
|
5201
5209
|
isSubmitted: !0
|
|
5202
5210
|
}), n({
|
|
@@ -5210,11 +5218,11 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5210
5218
|
questionId: o,
|
|
5211
5219
|
type: i
|
|
5212
5220
|
});
|
|
5213
|
-
},
|
|
5221
|
+
}, $ = () => u(Re, {
|
|
5214
5222
|
defaultBody: () => u("button", {
|
|
5215
5223
|
className: `${vr} ul-record-response-btn`,
|
|
5216
5224
|
onClick: (y) => {
|
|
5217
|
-
y.preventDefault(), y.stopPropagation(),
|
|
5225
|
+
y.preventDefault(), y.stopPropagation(), ll(Xe), E(1);
|
|
5218
5226
|
}
|
|
5219
5227
|
}),
|
|
5220
5228
|
properties: r
|
|
@@ -5226,7 +5234,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5226
5234
|
},
|
|
5227
5235
|
children: u("form", {
|
|
5228
5236
|
className: R([e, C.VideoCard, C.FadeInTransition]),
|
|
5229
|
-
id:
|
|
5237
|
+
id: ul,
|
|
5230
5238
|
children: [u(we, {
|
|
5231
5239
|
message: t,
|
|
5232
5240
|
properties: r
|
|
@@ -5241,7 +5249,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5241
5249
|
children: [u("div", {
|
|
5242
5250
|
id: Xe,
|
|
5243
5251
|
ref: T
|
|
5244
|
-
}),
|
|
5252
|
+
}), $()]
|
|
5245
5253
|
}), u("div", {
|
|
5246
5254
|
style: {
|
|
5247
5255
|
display: b === 1 ? "block" : "none"
|
|
@@ -5262,7 +5270,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5262
5270
|
children: Je(r)
|
|
5263
5271
|
}), u("button", {
|
|
5264
5272
|
className: `ul-card-text__button ${C.InactiveButton}`,
|
|
5265
|
-
id:
|
|
5273
|
+
id: dl,
|
|
5266
5274
|
onClick: k,
|
|
5267
5275
|
style: {
|
|
5268
5276
|
display: r.required ? "none" : "block",
|
|
@@ -5275,7 +5283,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5275
5283
|
})]
|
|
5276
5284
|
})
|
|
5277
5285
|
});
|
|
5278
|
-
},
|
|
5286
|
+
}, fl = ({
|
|
5279
5287
|
className: e
|
|
5280
5288
|
}) => {
|
|
5281
5289
|
const {
|
|
@@ -5368,7 +5376,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5368
5376
|
d: "M89.8366 8.39143H88.715C87.9178 8.39143 87.4389 7.85531 87.4389 6.95693C87.4389 6.08096 87.8681 5.03659 88.7432 3.76444L88.7548 3.74748V3.38825L85.0271 2.86727C85.0284 2.71553 84.9886 2.56622 84.9118 2.43478C84.8351 2.30335 84.7241 2.19458 84.5905 2.11973C84.2563 1.938 83.8908 1.938 83.5879 2.11368C83.4361 2.2023 83.3122 2.33077 83.23 2.4848C83.1477 2.63884 83.1103 2.8124 83.1219 2.98618C83.1336 3.15996 83.1938 3.32714 83.2958 3.46914C83.3979 3.61114 83.5379 3.72238 83.7001 3.79049L82.5405 9.63753H83.8283L84.8977 4.08551L86.9115 4.42111C86.3701 5.38007 86.0953 6.27421 86.0953 7.07869C86.0953 8.56347 87.0041 9.53576 88.4734 9.62965V9.63753H91.1341V2.69099H89.8366V8.39143Z",
|
|
5369
5377
|
fill: "#5D696F"
|
|
5370
5378
|
})]
|
|
5371
|
-
}),
|
|
5379
|
+
}), ml = () => {
|
|
5372
5380
|
const {
|
|
5373
5381
|
border: e,
|
|
5374
5382
|
cards: t,
|
|
@@ -5389,7 +5397,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5389
5397
|
slugName: g.slugName,
|
|
5390
5398
|
surveyId: g.surveyId,
|
|
5391
5399
|
viewedCardCount: g.viewedCardCount
|
|
5392
|
-
})), d = Te(null), l = t.filter((g) => g.type !== I.Uploading && g.type !== I.Thanks), m =
|
|
5400
|
+
})), d = Te(null), l = t.filter((g) => g.type !== I.Uploading && g.type !== I.Thanks), m = va(t, r), p = c + 1, f = p / (p + m);
|
|
5393
5401
|
re(() => {
|
|
5394
5402
|
d.current && (d.current.style.width = `${f * 100}%`);
|
|
5395
5403
|
}, [f]);
|
|
@@ -5431,7 +5439,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5431
5439
|
children: u(_r, {})
|
|
5432
5440
|
})]
|
|
5433
5441
|
});
|
|
5434
|
-
},
|
|
5442
|
+
}, hl = () => {
|
|
5435
5443
|
const {
|
|
5436
5444
|
answers: e,
|
|
5437
5445
|
border: t,
|
|
@@ -5487,7 +5495,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5487
5495
|
i(ze);
|
|
5488
5496
|
},
|
|
5489
5497
|
endCard: s
|
|
5490
|
-
}),
|
|
5498
|
+
}), Ei(g);
|
|
5491
5499
|
};
|
|
5492
5500
|
if (e) {
|
|
5493
5501
|
for (const y of e)
|
|
@@ -5526,67 +5534,67 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5526
5534
|
};
|
|
5527
5535
|
switch (S) {
|
|
5528
5536
|
case I.ConsentLegal:
|
|
5529
|
-
return q(
|
|
5537
|
+
return q(Ia, {
|
|
5530
5538
|
...y,
|
|
5531
5539
|
...w,
|
|
5532
5540
|
key: b
|
|
5533
5541
|
});
|
|
5534
5542
|
case I.Likert:
|
|
5535
|
-
return q(
|
|
5543
|
+
return q(Ta, {
|
|
5536
5544
|
...y,
|
|
5537
5545
|
...w,
|
|
5538
5546
|
key: b
|
|
5539
5547
|
});
|
|
5540
5548
|
case I.MultipleChoice:
|
|
5541
|
-
return q(
|
|
5549
|
+
return q(Pa, {
|
|
5542
5550
|
...y,
|
|
5543
5551
|
...w,
|
|
5544
5552
|
key: b
|
|
5545
5553
|
});
|
|
5546
5554
|
case I.MultipleSelect:
|
|
5547
|
-
return q(
|
|
5555
|
+
return q(Ra, {
|
|
5548
5556
|
...y,
|
|
5549
5557
|
...w,
|
|
5550
5558
|
key: b
|
|
5551
5559
|
});
|
|
5552
5560
|
case I.NPS:
|
|
5553
|
-
return q(
|
|
5561
|
+
return q(Da, {
|
|
5554
5562
|
...y,
|
|
5555
5563
|
key: b,
|
|
5556
5564
|
props: w
|
|
5557
5565
|
});
|
|
5558
5566
|
case I.Open:
|
|
5559
|
-
return q(
|
|
5567
|
+
return q(ja, {
|
|
5560
5568
|
...y,
|
|
5561
5569
|
...w,
|
|
5562
5570
|
key: b
|
|
5563
5571
|
});
|
|
5564
5572
|
case I.RecordedTask:
|
|
5565
|
-
return q(
|
|
5573
|
+
return q(qa, {
|
|
5566
5574
|
...y,
|
|
5567
5575
|
...w,
|
|
5568
5576
|
key: b
|
|
5569
5577
|
});
|
|
5570
5578
|
case I.TextUrlPrompt:
|
|
5571
|
-
return q(
|
|
5579
|
+
return q(Ka, {
|
|
5572
5580
|
...y,
|
|
5573
5581
|
...w,
|
|
5574
5582
|
key: b
|
|
5575
5583
|
});
|
|
5576
5584
|
case I.Thanks:
|
|
5577
|
-
return q(
|
|
5585
|
+
return q(Za, {
|
|
5578
5586
|
...y,
|
|
5579
5587
|
...w,
|
|
5580
5588
|
key: b
|
|
5581
5589
|
});
|
|
5582
5590
|
case I.Uploading:
|
|
5583
|
-
return q(
|
|
5591
|
+
return q(fl, {
|
|
5584
5592
|
...y,
|
|
5585
5593
|
...w,
|
|
5586
5594
|
key: b
|
|
5587
5595
|
});
|
|
5588
5596
|
case I.VideoVoice:
|
|
5589
|
-
return q(
|
|
5597
|
+
return q(pl, {
|
|
5590
5598
|
...y,
|
|
5591
5599
|
...w,
|
|
5592
5600
|
key: b
|
|
@@ -5594,7 +5602,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5594
5602
|
default:
|
|
5595
5603
|
return null;
|
|
5596
5604
|
}
|
|
5597
|
-
},
|
|
5605
|
+
}, $ = (y) => {
|
|
5598
5606
|
var Rn;
|
|
5599
5607
|
const B = window.sprigAPI, A = y.target;
|
|
5600
5608
|
if (!B || !A)
|
|
@@ -5609,7 +5617,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5609
5617
|
return u("div", {
|
|
5610
5618
|
className: R("ul-app", qe(d) ? "ul-app--visible" : "ul-app--overlay"),
|
|
5611
5619
|
id: ze,
|
|
5612
|
-
onClick:
|
|
5620
|
+
onClick: $,
|
|
5613
5621
|
ref: v,
|
|
5614
5622
|
style: {
|
|
5615
5623
|
"--theme": t,
|
|
@@ -5628,7 +5636,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5628
5636
|
className: "ul-header",
|
|
5629
5637
|
children: "For development purposes only"
|
|
5630
5638
|
})
|
|
5631
|
-
}), k(), u(
|
|
5639
|
+
}), k(), u(ml, {})]
|
|
5632
5640
|
}), T() && u("div", {
|
|
5633
5641
|
className: R(W(C.CloseContainer, h)),
|
|
5634
5642
|
children: u("div", {
|
|
@@ -5653,8 +5661,8 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5653
5661
|
})]
|
|
5654
5662
|
})
|
|
5655
5663
|
});
|
|
5656
|
-
}, hl = `html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:left;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#ffffff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0 5px 20px}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:left;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{padding-top:15px;margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:left}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:left}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%;height:fit-content;flex:0 0 fit-content}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{box-shadow:unset;border-radius:unset;border:none!important;position:unset}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:white}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.likert-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-number-1{border-top-left-radius:5px;border-bottom-left-radius:5px}.likert-last-option{border-top-right-radius:5px;border-bottom-right-radius:5px}.likert-star--mobile{margin-left:-2px}.likert-star--desktop{margin-left:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile{margin-left:-2px}.likert-smiley--desktop{margin-left:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--likert__labels span:last-child{text-align:right}.select-label{flex:1;overflow-wrap:anywhere;cursor:pointer;padding-left:15px}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.nps-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.nps-number-0{border-top-left-radius:5px;border-bottom-left-radius:5px}.nps-number-10{border-top-right-radius:5px;border-bottom-right-radius:5px}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--nps__labels span:last-child{text-align:right}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:white}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#ffffff;border-radius:5px;text-align:left;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:30px}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.close-container--desktop,.close-container--mobile{height:22px;width:22px;border-radius:22px;background-color:#fff;align-items:center;justify-content:center}.close-container--desktop{top:25px;right:25px}.close-container--mobile{top:15px;right:10px}.close-container{background:transparent;box-sizing:border-box;display:flex;position:absolute}.close-btn{height:18px;width:18px;align-items:center;justify-content:center;display:flex;cursor:pointer}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:rgba(0,0,0,.01);border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}
|
|
5657
|
-
`,
|
|
5664
|
+
}, gl = `html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:left;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#ffffff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0 5px 20px}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:left;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{padding-top:15px;margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:left}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:left}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%;height:fit-content;flex:0 0 fit-content}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{box-shadow:unset;border-radius:unset;border:none!important;position:unset}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:white}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.likert-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-number-1{border-top-left-radius:5px;border-bottom-left-radius:5px}.likert-last-option{border-top-right-radius:5px;border-bottom-right-radius:5px}.likert-star--mobile{margin-left:-2px}.likert-star--desktop{margin-left:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile{margin-left:-2px}.likert-smiley--desktop{margin-left:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--likert__labels span:last-child{text-align:right}.select-label{flex:1;overflow-wrap:anywhere;cursor:pointer;padding-left:15px}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.nps-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.nps-number-0{border-top-left-radius:5px;border-bottom-left-radius:5px}.nps-number-10{border-top-right-radius:5px;border-bottom-right-radius:5px}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--nps__labels span:last-child{text-align:right}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:white}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#ffffff;border-radius:5px;text-align:left;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:30px}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.close-container--desktop,.close-container--mobile{height:22px;width:22px;border-radius:22px;background-color:#fff;align-items:center;justify-content:center}.close-container--desktop{top:25px;right:25px}.close-container--mobile{top:15px;right:10px}.close-container{background:transparent;box-sizing:border-box;display:flex;position:absolute}.close-btn{height:18px;width:18px;align-items:center;justify-content:center;display:flex;cursor:pointer}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:rgba(0,0,0,.01);border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}
|
|
5665
|
+
`, vl = (e, t) => {
|
|
5658
5666
|
const n = [...e], r = /* @__PURE__ */ new Set([I.VideoVoice, I.RecordedTask]);
|
|
5659
5667
|
return e.some((o) => r.has(o.type)) && n.push({
|
|
5660
5668
|
name: -2,
|
|
@@ -5669,7 +5677,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5669
5677
|
},
|
|
5670
5678
|
type: I.Thanks
|
|
5671
5679
|
}), n;
|
|
5672
|
-
},
|
|
5680
|
+
}, _l = ({
|
|
5673
5681
|
mode: e = null,
|
|
5674
5682
|
viewWindow: t,
|
|
5675
5683
|
viewDocument: n
|
|
@@ -5685,7 +5693,7 @@ const Se = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
5685
5693
|
l: t.navigator.language
|
|
5686
5694
|
};
|
|
5687
5695
|
};
|
|
5688
|
-
function
|
|
5696
|
+
function wl(e, t = !0) {
|
|
5689
5697
|
var b, E, D;
|
|
5690
5698
|
const {
|
|
5691
5699
|
answers: n,
|
|
@@ -5698,7 +5706,7 @@ function _l(e, t = !0) {
|
|
|
5698
5706
|
UpChunk: d,
|
|
5699
5707
|
viewDocument: l,
|
|
5700
5708
|
viewWindow: m
|
|
5701
|
-
} = e, p = qe(e.headers) ? e.frame : l.body, f = F, h =
|
|
5709
|
+
} = e, p = qe(e.headers) ? e.frame : l.body, f = F, h = vl(e.cards, !!i);
|
|
5702
5710
|
wt.configure(f, {
|
|
5703
5711
|
cards: h,
|
|
5704
5712
|
hasEndCard: !!i,
|
|
@@ -5721,7 +5729,7 @@ function _l(e, t = !0) {
|
|
|
5721
5729
|
hasViewedEmbed: !1,
|
|
5722
5730
|
isPreview: e.isPreview,
|
|
5723
5731
|
marketingUrl: "https://sprig.com",
|
|
5724
|
-
meta:
|
|
5732
|
+
meta: _l({
|
|
5725
5733
|
mode: e.mode,
|
|
5726
5734
|
viewWindow: m,
|
|
5727
5735
|
viewDocument: l
|
|
@@ -5753,7 +5761,7 @@ function _l(e, t = !0) {
|
|
|
5753
5761
|
const {
|
|
5754
5762
|
head: v
|
|
5755
5763
|
} = l, _ = l.createElement("style");
|
|
5756
|
-
if (_.id = "sprig-style", _.textContent =
|
|
5764
|
+
if (_.id = "sprig-style", _.textContent = gl, _.nonce = e.styleNonce, v.appendChild(_), e.fontFamily && a && parent) {
|
|
5757
5765
|
const x = l.createElement("link");
|
|
5758
5766
|
x.rel = "stylesheet", x.href = a, v.appendChild(x);
|
|
5759
5767
|
}
|
|
@@ -5767,20 +5775,20 @@ function _l(e, t = !0) {
|
|
|
5767
5775
|
}, v.appendChild(x);
|
|
5768
5776
|
} else
|
|
5769
5777
|
console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");
|
|
5770
|
-
const w = "2.22.
|
|
5778
|
+
const w = "2.22.3", S = s || ((D = c.eventEmitter) == null ? void 0 : D.emit);
|
|
5771
5779
|
S == null || S(oe.VerifyViewVersion, {
|
|
5772
5780
|
[Me.ViewVersion]: w
|
|
5773
|
-
}), p && t && Ke(u(
|
|
5781
|
+
}), p && t && Ke(u(hl, {}), p);
|
|
5774
5782
|
}
|
|
5775
|
-
const
|
|
5776
|
-
configure:
|
|
5783
|
+
const yl = {
|
|
5784
|
+
configure: wl
|
|
5777
5785
|
};
|
|
5778
5786
|
window.UserLeap && window.Sprig && (window.Sprig._gtm ? window.Sprig = window.UserLeap : window.UserLeap = window.Sprig);
|
|
5779
5787
|
window.UserLeap || (window.UserLeap = window.Sprig);
|
|
5780
5788
|
window.Sprig || (window.Sprig = window.UserLeap);
|
|
5781
|
-
const
|
|
5789
|
+
const bl = "rgba(255,255,255, 0.95)", xl = "rgba(0,0,0,0.9)", Cl = "360px", Zt = "0px", si = () => {
|
|
5782
5790
|
window.UserLeap.container = document.createElement("div"), window.UserLeap.container.className = "ul-container", document.body.appendChild(window.UserLeap.container);
|
|
5783
|
-
},
|
|
5791
|
+
}, ai = (e) => {
|
|
5784
5792
|
const t = window.UserLeap.container;
|
|
5785
5793
|
if (!!t)
|
|
5786
5794
|
try {
|
|
@@ -5793,13 +5801,13 @@ const yl = "rgba(255,255,255, 0.95)", bl = "rgba(0,0,0,0.9)", xl = "360px", Zt =
|
|
|
5793
5801
|
} catch (n) {
|
|
5794
5802
|
console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} ` + t), n instanceof Error && window.UserLeap.reportError("dismissActiveSurvey", n);
|
|
5795
5803
|
}
|
|
5796
|
-
},
|
|
5804
|
+
}, li = () => {
|
|
5797
5805
|
F.on(O.SurveyWillClose, ({
|
|
5798
5806
|
initiator: e
|
|
5799
5807
|
}) => {
|
|
5800
|
-
|
|
5808
|
+
ai(e);
|
|
5801
5809
|
});
|
|
5802
|
-
},
|
|
5810
|
+
}, kl = (e, t) => {
|
|
5803
5811
|
const r = {
|
|
5804
5812
|
...{
|
|
5805
5813
|
position: "fixed",
|
|
@@ -5813,8 +5821,8 @@ const yl = "rgba(255,255,255, 0.95)", bl = "rgba(0,0,0,0.9)", xl = "360px", Zt =
|
|
|
5813
5821
|
zIndex: 2147483646
|
|
5814
5822
|
}
|
|
5815
5823
|
}, o = t ? e.overlayStyleMobile : e.overlayStyle;
|
|
5816
|
-
r["background-color"] = o === "light" ?
|
|
5817
|
-
},
|
|
5824
|
+
r["background-color"] = o === "light" ? bl : xl, t || (r.margin = "auto"), window.UserLeap.container && Object.assign(window.UserLeap.container.style, r);
|
|
5825
|
+
}, Sl = (e, t, n) => {
|
|
5818
5826
|
var a, c;
|
|
5819
5827
|
const r = {
|
|
5820
5828
|
position: "fixed",
|
|
@@ -5825,7 +5833,7 @@ const yl = "rgba(255,255,255, 0.95)", bl = "rgba(0,0,0,0.9)", xl = "360px", Zt =
|
|
|
5825
5833
|
zIndex: 2147483646
|
|
5826
5834
|
}, o = Object.assign({}, t, window.UserLeap);
|
|
5827
5835
|
let i, s = !1;
|
|
5828
|
-
return n ? ((a = window.UserLeap.windowDimensions) != null && a.width ? r.width = `${window.UserLeap.windowDimensions.width}px` : r.width = "100%", (c = window.UserLeap.windowDimensions) != null && c.height ? r.maxHeight = `${window.UserLeap.windowDimensions.height - 20}px` : window.UserLeap.maxHeight ? r.maxHeight = window.UserLeap.maxHeight : r.maxHeight = `${document.body.clientHeight - 20}px`, ["light", "dark"].includes(o.overlayStyleMobile) && (s = !0)) : (r.width =
|
|
5836
|
+
return n ? ((a = window.UserLeap.windowDimensions) != null && a.width ? r.width = `${window.UserLeap.windowDimensions.width}px` : r.width = "100%", (c = window.UserLeap.windowDimensions) != null && c.height ? r.maxHeight = `${window.UserLeap.windowDimensions.height - 20}px` : window.UserLeap.maxHeight ? r.maxHeight = window.UserLeap.maxHeight : r.maxHeight = `${document.body.clientHeight - 20}px`, ["light", "dark"].includes(o.overlayStyleMobile) && (s = !0)) : (r.width = Cl, r.maxHeight = window.UserLeap.maxHeight || "66vh", o.framePosition === nt.BottomLeft ? i = {
|
|
5829
5837
|
left: Zt
|
|
5830
5838
|
} : o.framePosition === nt.TopLeft ? i = {
|
|
5831
5839
|
left: Zt,
|
|
@@ -5835,22 +5843,22 @@ const yl = "rgba(255,255,255, 0.95)", bl = "rgba(0,0,0,0.9)", xl = "360px", Zt =
|
|
|
5835
5843
|
} : o.framePosition === nt.Center && (s = !0, i = {
|
|
5836
5844
|
margin: "auto",
|
|
5837
5845
|
position: "static"
|
|
5838
|
-
}, r.maxHeight = null)), s &&
|
|
5839
|
-
},
|
|
5846
|
+
}, r.maxHeight = null)), s && kl(o, n), Object.assign(e.style, r, i), s;
|
|
5847
|
+
}, El = (e, t) => {
|
|
5840
5848
|
var a, c;
|
|
5841
5849
|
const n = "ul-frame";
|
|
5842
|
-
|
|
5850
|
+
si();
|
|
5843
5851
|
const r = document.createElement("iframe");
|
|
5844
5852
|
r.id = n, r.setAttribute("title", "Sprig User Feedback Dialog");
|
|
5845
|
-
const o =
|
|
5853
|
+
const o = Sl(r, e, t);
|
|
5846
5854
|
F.on(O.SurveyFadingOut, () => {
|
|
5847
5855
|
window.UserLeap.container && Object.assign(window.UserLeap.container.style, {
|
|
5848
5856
|
"background-color": "rgba(0,0,0,0)"
|
|
5849
5857
|
});
|
|
5850
|
-
}),
|
|
5858
|
+
}), li(), r.setHeight = (d) => {
|
|
5851
5859
|
parseInt(r.style.height) != d && (r.style.height = `${d}px`, F.emit(O.SurveyHeight, {
|
|
5852
5860
|
name: O.SurveyHeight,
|
|
5853
|
-
contentFrameHeight:
|
|
5861
|
+
contentFrameHeight: d
|
|
5854
5862
|
}));
|
|
5855
5863
|
}, (a = window.UserLeap.container) == null || a.appendChild(r), e && (t ? e.exitOnOverlayClickMobile : e.exitOnOverlayClick) && window.UserLeap.container && (window.UserLeap.container.onclick = () => {
|
|
5856
5864
|
F.emit(O.CloseSurveyOnOverlayClick);
|
|
@@ -5869,8 +5877,8 @@ const yl = "rgba(255,255,255, 0.95)", bl = "rgba(0,0,0,0.9)", xl = "360px", Zt =
|
|
|
5869
5877
|
hasOverlay: o,
|
|
5870
5878
|
iframe: r
|
|
5871
5879
|
};
|
|
5872
|
-
},
|
|
5873
|
-
class
|
|
5880
|
+
}, Ll = "!optimizely_experiments_";
|
|
5881
|
+
class Il {
|
|
5874
5882
|
constructor() {
|
|
5875
5883
|
te(this, "_optimizelyData", {});
|
|
5876
5884
|
}
|
|
@@ -5901,7 +5909,7 @@ class Ll {
|
|
|
5901
5909
|
return this._optimizelyData[this.transformExperimentId(t)];
|
|
5902
5910
|
}
|
|
5903
5911
|
transformExperimentId(t) {
|
|
5904
|
-
return
|
|
5912
|
+
return Ll + t;
|
|
5905
5913
|
}
|
|
5906
5914
|
getAndSetWebOptimizelyExperiments() {
|
|
5907
5915
|
var t;
|
|
@@ -5933,9 +5941,9 @@ class Ll {
|
|
|
5933
5941
|
}
|
|
5934
5942
|
}
|
|
5935
5943
|
}
|
|
5936
|
-
const xt = new
|
|
5944
|
+
const xt = new Il();
|
|
5937
5945
|
Object.freeze(xt);
|
|
5938
|
-
class
|
|
5946
|
+
class Ul {
|
|
5939
5947
|
constructor(t, n) {
|
|
5940
5948
|
te(this, "paused");
|
|
5941
5949
|
te(this, "queue");
|
|
@@ -5986,9 +5994,9 @@ class Il {
|
|
|
5986
5994
|
this.queue.length = 0;
|
|
5987
5995
|
}
|
|
5988
5996
|
}
|
|
5989
|
-
const
|
|
5997
|
+
const Tl = ["popState", "pushState", "replaceState"], Pl = {
|
|
5990
5998
|
test: "test"
|
|
5991
|
-
}, et = "!email",
|
|
5999
|
+
}, et = "!email", Rl = ["ios", "android"], Le = "environments", pn = "pageUrl", De = "visitors", wr = "ul-view-sdk-script", yr = Object.freeze({
|
|
5992
6000
|
contains: (e, t) => t.includes(e),
|
|
5993
6001
|
notContains: (e, t) => !t.includes(e),
|
|
5994
6002
|
exactly: (e, t) => t === e,
|
|
@@ -6012,7 +6020,7 @@ function Un(e, t) {
|
|
|
6012
6020
|
}
|
|
6013
6021
|
return i;
|
|
6014
6022
|
}
|
|
6015
|
-
function
|
|
6023
|
+
function Dl(e, t) {
|
|
6016
6024
|
const {
|
|
6017
6025
|
pageUrlEvents: n,
|
|
6018
6026
|
interactiveEvents: r,
|
|
@@ -6035,11 +6043,11 @@ function lt(e) {
|
|
|
6035
6043
|
if (o && o !== Fe.Web)
|
|
6036
6044
|
return;
|
|
6037
6045
|
const i = je("trackStartUrl"), s = i ? String(i) : null;
|
|
6038
|
-
t &&
|
|
6046
|
+
t && Vl(window.location.href), n && (di(), jl()), r && s && s !== window.location.href && e && Tl.includes(e.type) && window.UserLeap("dismissActiveSurvey", ye.PageChange);
|
|
6039
6047
|
}
|
|
6040
|
-
const
|
|
6048
|
+
const ci = {
|
|
6041
6049
|
capture: !0
|
|
6042
|
-
},
|
|
6050
|
+
}, jl = () => {
|
|
6043
6051
|
const t = window.UserLeap._config.interactiveEvents.filter((r) => Un(r, window.location.href)).map((r) => {
|
|
6044
6052
|
const {
|
|
6045
6053
|
name: o,
|
|
@@ -6048,17 +6056,24 @@ const li = {
|
|
|
6048
6056
|
selector: s,
|
|
6049
6057
|
innerText: a
|
|
6050
6058
|
} = i;
|
|
6051
|
-
return s ? (c) =>
|
|
6059
|
+
return s ? (c) => {
|
|
6060
|
+
if (We(c.target))
|
|
6061
|
+
try {
|
|
6062
|
+
c.target.closest(s) && window.UserLeap("track", o);
|
|
6063
|
+
} catch {
|
|
6064
|
+
}
|
|
6065
|
+
return !1;
|
|
6066
|
+
} : (c) => (We(c.target) && c.target.innerText === a && window.UserLeap("track", o), !1);
|
|
6052
6067
|
}), n = (r) => t.forEach((o) => o(r));
|
|
6053
|
-
window.UserLeap._config.interactiveEventsHandler = n, window.addEventListener("click", n,
|
|
6054
|
-
},
|
|
6055
|
-
window.UserLeap._config.interactiveEventsHandler && window.removeEventListener("click", window.UserLeap._config.interactiveEventsHandler,
|
|
6068
|
+
window.UserLeap._config.interactiveEventsHandler = n, window.addEventListener("click", n, ci);
|
|
6069
|
+
}, di = () => {
|
|
6070
|
+
window.UserLeap._config.interactiveEventsHandler && window.removeEventListener("click", window.UserLeap._config.interactiveEventsHandler, ci), delete window.UserLeap._config.interactiveEventsHandler;
|
|
6056
6071
|
};
|
|
6057
|
-
function
|
|
6072
|
+
function Al() {
|
|
6058
6073
|
["hashchange", "popstate"].forEach((e) => window.addEventListener(e, lt, !0));
|
|
6059
6074
|
}
|
|
6060
|
-
function
|
|
6061
|
-
["hashchange", "popstate"].forEach((e) => window.removeEventListener(e, lt, !0)), window.UserLeap._config.interactiveEvents &&
|
|
6075
|
+
function Ol() {
|
|
6076
|
+
["hashchange", "popstate"].forEach((e) => window.removeEventListener(e, lt, !0)), window.UserLeap._config.interactiveEvents && di();
|
|
6062
6077
|
}
|
|
6063
6078
|
function he(e, t, n) {
|
|
6064
6079
|
const r = [window.UserLeap._API_URL, "sdk", e];
|
|
@@ -6066,11 +6081,11 @@ function he(e, t, n) {
|
|
|
6066
6081
|
r.push(o), o === Le ? r.push(window.UserLeap.envId) : o === De && r.push(Tn());
|
|
6067
6082
|
}), n && r.push(n), r.join("/");
|
|
6068
6083
|
}
|
|
6069
|
-
function
|
|
6084
|
+
function Ml(e, t) {
|
|
6070
6085
|
let n = he("1", [Le], "questions?");
|
|
6071
6086
|
return e != null && (n += `&vid=${e}`), t && (t.surveyId && (n += `&surveyid=${t.surveyId}`), t.surveyTemplateId && (n += `&surveytemplateid=${t.surveyTemplateId}`)), n;
|
|
6072
6087
|
}
|
|
6073
|
-
function
|
|
6088
|
+
function Nl() {
|
|
6074
6089
|
try {
|
|
6075
6090
|
if (typeof localStorage < "u" && (localStorage.setItem("is_available", "yes"), localStorage.getItem("is_available") === "yes"))
|
|
6076
6091
|
return localStorage.removeItem("is_available"), !0;
|
|
@@ -6113,7 +6128,7 @@ function Q(e, t) {
|
|
|
6113
6128
|
i instanceof Error && console.warn(`[Sprig] (ERR-426) Unable to write to Local Storage:: ${i.message}`);
|
|
6114
6129
|
}
|
|
6115
6130
|
}
|
|
6116
|
-
function
|
|
6131
|
+
function ui() {
|
|
6117
6132
|
window.previewMode || (window.UserLeap.visitorId = Be(), Q("vid", window.UserLeap.visitorId), F.emit(O.VisitorIDUpdated, {
|
|
6118
6133
|
visitorId: window.UserLeap.visitorId
|
|
6119
6134
|
}));
|
|
@@ -6121,7 +6136,7 @@ function di() {
|
|
|
6121
6136
|
function Tn() {
|
|
6122
6137
|
return window.previewMode ? "0" : window.UserLeap.visitorId || "";
|
|
6123
6138
|
}
|
|
6124
|
-
function
|
|
6139
|
+
function Vl(e) {
|
|
6125
6140
|
if (!window.UserLeap.localStorageAvailable || e.endsWith("mock_snippet.html"))
|
|
6126
6141
|
return;
|
|
6127
6142
|
const t = window.UserLeap._config.pageUrlEvents;
|
|
@@ -6159,7 +6174,7 @@ function Nl(e) {
|
|
|
6159
6174
|
a instanceof Error && (a.stack = s || "", window.UserLeap.reportError("trackPageView", a)), console.warn("[Sprig] (ERR-425) Failed to update page views in local storage");
|
|
6160
6175
|
}
|
|
6161
6176
|
}
|
|
6162
|
-
function
|
|
6177
|
+
function Bl() {
|
|
6163
6178
|
const e = "Backbone" in window && window.Backbone && window.Backbone.history ? window.Backbone.history : window.history;
|
|
6164
6179
|
"pushState" in e && (e.pushState = ((t) => function(...r) {
|
|
6165
6180
|
const o = t.apply(this, r), i = new Event("pushState");
|
|
@@ -6167,18 +6182,18 @@ function Vl() {
|
|
|
6167
6182
|
})(e.pushState)), "replaceState" in e && (e.replaceState = ((t) => function(...r) {
|
|
6168
6183
|
const o = t.apply(this, r), i = new Event("replaceState");
|
|
6169
6184
|
return window.dispatchEvent(i), lt(i), o;
|
|
6170
|
-
})(e.replaceState)),
|
|
6185
|
+
})(e.replaceState)), Al();
|
|
6171
6186
|
}
|
|
6172
6187
|
async function Yt(e, t) {
|
|
6173
6188
|
const n = Tn();
|
|
6174
|
-
e && !t && (window.UserLeap._config.mode =
|
|
6175
|
-
const r = await ke(
|
|
6176
|
-
return r.ok ? (r.json.delay && await Ct(r.json.delay),
|
|
6189
|
+
e && !t && (window.UserLeap._config.mode = Pl.test);
|
|
6190
|
+
const r = await ke(Ml(n, e), {}, 0, !0);
|
|
6191
|
+
return r.ok ? (r.json.delay && await Ct(r.json.delay), pi(r.json)) : (r.reportError && r.error && (console.warn("[Sprig] (ERR-414) Failed to request questions from the server", r.error), window.UserLeap.reportError("getQuestions", r.error)), {
|
|
6177
6192
|
success: !1,
|
|
6178
6193
|
surveyState: "no survey"
|
|
6179
6194
|
});
|
|
6180
6195
|
}
|
|
6181
|
-
const
|
|
6196
|
+
const pi = async (e, t) => {
|
|
6182
6197
|
var y, B;
|
|
6183
6198
|
const {
|
|
6184
6199
|
context: n,
|
|
@@ -6191,8 +6206,8 @@ const ui = async (e, t) => {
|
|
|
6191
6206
|
uuid: d,
|
|
6192
6207
|
vid: l,
|
|
6193
6208
|
sessionReplay: m
|
|
6194
|
-
} = e, p = dt(window.UserLeap), f = Pn(p), h =
|
|
6195
|
-
if (m &&
|
|
6209
|
+
} = e, p = dt(window.UserLeap), f = Pn(p), h = Fl(p);
|
|
6210
|
+
if (m && xs(a, c, l, m, p, window.UserLeap._API_URL), l == null || !s || !s.length)
|
|
6196
6211
|
return {
|
|
6197
6212
|
success: !1,
|
|
6198
6213
|
message: "[Sprig] no survey found",
|
|
@@ -6229,9 +6244,9 @@ const ui = async (e, t) => {
|
|
|
6229
6244
|
const {
|
|
6230
6245
|
[Me.ViewVersion]: ae
|
|
6231
6246
|
} = A;
|
|
6232
|
-
ae !== p["x-ul-sdk-version"] &&
|
|
6247
|
+
ae !== p["x-ul-sdk-version"] && ai(), F.removeListener(oe.VerifyViewVersion, E);
|
|
6233
6248
|
};
|
|
6234
|
-
F.on(oe.VerifyViewVersion, E), qe(p) ? (v = "ul-direct-embeded-frame", w = document.head, S = window, b = !1, f && (
|
|
6249
|
+
F.on(oe.VerifyViewVersion, E), qe(p) ? (v = "ul-direct-embeded-frame", w = document.head, S = window, b = !1, f && (si(), _.id = v, window.UserLeap.container.appendChild(_), li(), F.emit(O.SurveyLifeCycle, {
|
|
6235
6250
|
state: "presented"
|
|
6236
6251
|
}), F.emit(O.SurveyPresented, {
|
|
6237
6252
|
name: O.SurveyPresented
|
|
@@ -6241,7 +6256,7 @@ const ui = async (e, t) => {
|
|
|
6241
6256
|
contentWindow: S,
|
|
6242
6257
|
hasOverlay: b,
|
|
6243
6258
|
iframe: _
|
|
6244
|
-
} =
|
|
6259
|
+
} = El(i, h), window.UserLeap.frameId = v, window.UserLeap.useMobileStyling = h;
|
|
6245
6260
|
const D = (A) => {
|
|
6246
6261
|
F.on(O.CloseSurveyOnOverlayClick, A);
|
|
6247
6262
|
}, x = Object.assign({
|
|
@@ -6283,13 +6298,13 @@ const ui = async (e, t) => {
|
|
|
6283
6298
|
}
|
|
6284
6299
|
const T = window.UserLeap.viewSDKURL ? window.UserLeap.viewSDKURL : x.path, V = document.getElementById(wr);
|
|
6285
6300
|
V && V.remove();
|
|
6286
|
-
const k = P(),
|
|
6301
|
+
const k = P(), $ = () => {
|
|
6287
6302
|
window.UserLeap.container && Object.assign(window.UserLeap.container.style, {
|
|
6288
6303
|
display: "flex"
|
|
6289
6304
|
});
|
|
6290
6305
|
};
|
|
6291
|
-
return x.installationMethod === Ie.Npm ? (
|
|
6292
|
-
window.UserLeap.container &&
|
|
6306
|
+
return x.installationMethod === Ie.Npm ? (yl.configure(x), b && window.UserLeap.container && $()) : T && (k.src = T, b && k.addEventListener("load", () => {
|
|
6307
|
+
window.UserLeap.container && $();
|
|
6293
6308
|
}), S == null || S.addEventListener("error", (A) => {
|
|
6294
6309
|
A.target instanceof HTMLScriptElement && A.target.src === T && window.UserLeap.reportError("loadFrameScript", new Error("Frame script failed to load"));
|
|
6295
6310
|
}, {
|
|
@@ -6300,16 +6315,16 @@ const ui = async (e, t) => {
|
|
|
6300
6315
|
surveyState: "ready"
|
|
6301
6316
|
};
|
|
6302
6317
|
};
|
|
6303
|
-
function
|
|
6318
|
+
function Fl(e) {
|
|
6304
6319
|
if (window.UserLeap.useMobileStyling !== void 0)
|
|
6305
6320
|
return window.UserLeap.useMobileStyling;
|
|
6306
6321
|
const t = window.UserLeap.windowDimensions && window.UserLeap.windowDimensions.width || document.body.clientWidth;
|
|
6307
|
-
return Pn(e) || t > 10 && t <
|
|
6322
|
+
return Pn(e) || t > 10 && t < wi;
|
|
6308
6323
|
}
|
|
6309
6324
|
function Pn(e) {
|
|
6310
|
-
return
|
|
6325
|
+
return Rl.includes(e[me.Platform]);
|
|
6311
6326
|
}
|
|
6312
|
-
function
|
|
6327
|
+
function $l(e) {
|
|
6313
6328
|
let t = e.length;
|
|
6314
6329
|
for (; t; ) {
|
|
6315
6330
|
const n = Math.floor(Math.random() * t);
|
|
@@ -6327,7 +6342,7 @@ function Hl(e) {
|
|
|
6327
6342
|
pageUrlEvents: n,
|
|
6328
6343
|
dismissOnPageChange: r
|
|
6329
6344
|
} = e;
|
|
6330
|
-
t &&
|
|
6345
|
+
t && $l(t), (t || n || r) && (Bl(), lt());
|
|
6331
6346
|
}
|
|
6332
6347
|
async function ke(e, t, n = 0, r = !1) {
|
|
6333
6348
|
var i, s;
|
|
@@ -6341,11 +6356,11 @@ async function ke(e, t, n = 0, r = !1) {
|
|
|
6341
6356
|
}
|
|
6342
6357
|
return o.json && o.json.logMessage && console.warn(`[Sprig] ${o.json.logMessage}`), o;
|
|
6343
6358
|
}
|
|
6344
|
-
async function
|
|
6359
|
+
async function zl(e) {
|
|
6345
6360
|
var t;
|
|
6346
6361
|
!((t = e == null ? void 0 : e.json) != null && t.delay) || (window.UserLeap.delayingSurvey = !0, await Ct(e.json.delay), window.UserLeap.delayingSurvey = !1);
|
|
6347
6362
|
}
|
|
6348
|
-
const
|
|
6363
|
+
const ql = function(e) {
|
|
6349
6364
|
if (!window.UserLeap)
|
|
6350
6365
|
return;
|
|
6351
6366
|
const t = async (r = {}) => {
|
|
@@ -6414,7 +6429,7 @@ const zl = function(e) {
|
|
|
6414
6429
|
}
|
|
6415
6430
|
o && Q("uid", o), i && Q("aid", i);
|
|
6416
6431
|
const f = p.json;
|
|
6417
|
-
return f.invalidPreviewKey && window.UserLeap.localStorageAvailable && localStorage.removeItem(J.Preview), await
|
|
6432
|
+
return f.invalidPreviewKey && window.UserLeap.localStorageAvailable && localStorage.removeItem(J.Preview), await zl(p), Dl(f.eventId, m) ? pi(f, c) : {
|
|
6418
6433
|
success: !1,
|
|
6419
6434
|
message: "Study should not be displayed after page navigation",
|
|
6420
6435
|
surveyState: "no survey"
|
|
@@ -6641,10 +6656,10 @@ const zl = function(e) {
|
|
|
6641
6656
|
}));
|
|
6642
6657
|
},
|
|
6643
6658
|
logoutUser() {
|
|
6644
|
-
window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null, window.UserLeap.localStorageAvailable && (localStorage.removeItem(J.Credentials), localStorage.removeItem(J.PageViews)), window.UserLeap._queue.isPaused() && window.UserLeap._queue.empty(),
|
|
6659
|
+
window.UserLeap.debugMode && console.info("[DEBUG] Sprig logout"), window.UserLeap.visitorId = null, window.UserLeap.userId = null, window.UserLeap.partnerAnonymousId = null, window.UserLeap.token = null, window.UserLeap.email = null, window.UserLeap.localStorageAvailable && (localStorage.removeItem(J.Credentials), localStorage.removeItem(J.PageViews)), window.UserLeap._queue.isPaused() && window.UserLeap._queue.empty(), ui(), Vn(), window.UserLeap._queue.unpause();
|
|
6645
6660
|
},
|
|
6646
6661
|
teardown() {
|
|
6647
|
-
|
|
6662
|
+
Ol(), window.UserLeap("dismissActiveSurvey", ye.API), delete window.UserLeap, delete window.Sprig, delete window._Sprig;
|
|
6648
6663
|
},
|
|
6649
6664
|
integrateOptimizely(r) {
|
|
6650
6665
|
const o = JSON.parse(r);
|
|
@@ -6653,7 +6668,7 @@ const zl = function(e) {
|
|
|
6653
6668
|
};
|
|
6654
6669
|
Object.assign(window.UserLeap, n);
|
|
6655
6670
|
};
|
|
6656
|
-
async function
|
|
6671
|
+
async function Wl(e) {
|
|
6657
6672
|
const t = dt(window.UserLeap);
|
|
6658
6673
|
let n = await ge(he("1", [Le], "config"), {
|
|
6659
6674
|
headers: t
|
|
@@ -6668,7 +6683,7 @@ async function ql(e) {
|
|
|
6668
6683
|
disabled: o.disabled
|
|
6669
6684
|
}) : Object.assign({}, o, e);
|
|
6670
6685
|
}
|
|
6671
|
-
async function
|
|
6686
|
+
async function Gl(e, t) {
|
|
6672
6687
|
const n = window.__cfg && window.__cfg.mode, r = Tn(), o = window.UserLeap.envId, i = window.document.documentElement, s = {
|
|
6673
6688
|
mode: n,
|
|
6674
6689
|
screenWidth: window.screen.width,
|
|
@@ -6695,13 +6710,13 @@ async function Wl(e, t) {
|
|
|
6695
6710
|
body: JSON.stringify(a)
|
|
6696
6711
|
}, 0, !0)).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", t);
|
|
6697
6712
|
}
|
|
6698
|
-
function
|
|
6699
|
-
const t = new URLSearchParams(window.location.search).get("sprigPreviewKey"), n =
|
|
6713
|
+
function Kl(e = {}) {
|
|
6714
|
+
const t = new URLSearchParams(window.location.search).get("sprigPreviewKey"), n = Nl();
|
|
6700
6715
|
window.UserLeap.localStorageAvailable = n, n && t && localStorage.setItem(J.Preview, t), window.UserLeap.UPDATES = mn;
|
|
6701
6716
|
async function r() {
|
|
6702
6717
|
if (window.UserLeap.loaded)
|
|
6703
6718
|
return;
|
|
6704
|
-
if (window.UserLeap.reportError =
|
|
6719
|
+
if (window.UserLeap.reportError = Gl, window.UserLeap.loaded = !0, window.UserLeap._config = Object.assign({}, e, window.UserLeap.config), window.UserLeap.delayingSurvey = !1, window.UserLeap._config && typeof window.UserLeap._config == "object")
|
|
6705
6720
|
for (const c in window.UserLeap._config)
|
|
6706
6721
|
window.UserLeap[c] = window.UserLeap._config[c];
|
|
6707
6722
|
if (!window.UserLeap.envId)
|
|
@@ -6723,13 +6738,13 @@ function Gl(e = {}) {
|
|
|
6723
6738
|
n && je("sampled") !== null && Q("sampled", null);
|
|
6724
6739
|
window.UserLeap._API_URL || (window.UserLeap._API_URL = "https://api.sprig.com");
|
|
6725
6740
|
const i = [...window.UserLeap._queue];
|
|
6726
|
-
window.UserLeap._queue = new
|
|
6741
|
+
window.UserLeap._queue = new Ul(window.UserLeap, []), window.UserLeap._queue.pause();
|
|
6727
6742
|
for (let c = 0; c < i.length; c++)
|
|
6728
6743
|
window.UserLeap._queue.push(i[c]);
|
|
6729
6744
|
const s = je("token");
|
|
6730
|
-
s ? (window.UserLeap.token = s, window.UserLeap.visitorId = je("vid"), window.UserLeap.userId = je("uid"), window.UserLeap.partnerAnonymousId = je("aid")) : (window.UserLeap.localStorageAvailable && localStorage.removeItem(J.Credentials),
|
|
6731
|
-
const a = await
|
|
6732
|
-
|
|
6745
|
+
s ? (window.UserLeap.token = s, window.UserLeap.visitorId = je("vid"), window.UserLeap.userId = je("uid"), window.UserLeap.partnerAnonymousId = je("aid")) : (window.UserLeap.localStorageAvailable && localStorage.removeItem(J.Credentials), ui());
|
|
6746
|
+
const a = await Wl(e);
|
|
6747
|
+
fs(window.document, a.maxReplayDurationSeconds, window.UserLeap.replayNonce, window.UserLeap.maxInflightReplayRequests, a.replaySettings), ql(a), await Hl(a), window.UserLeap._queue.unpause(), F.emit(O.SDKReady), F.emit(O.VisitorIDUpdated, {
|
|
6733
6748
|
visitorId: window.UserLeap.visitorId
|
|
6734
6749
|
});
|
|
6735
6750
|
}
|
|
@@ -6812,9 +6827,9 @@ const br = {
|
|
|
6812
6827
|
n !== "constructor" && (window.Sprig[n] = fn.prototype[n]);
|
|
6813
6828
|
});
|
|
6814
6829
|
const t = window.Sprig;
|
|
6815
|
-
return t.appId = e.envId, t._queue = [], window.UserLeap = t,
|
|
6830
|
+
return t.appId = e.envId, t._queue = [], window.UserLeap = t, Kl(e), window.Sprig;
|
|
6816
6831
|
}
|
|
6817
|
-
},
|
|
6832
|
+
}, Yl = {
|
|
6818
6833
|
sprig: br,
|
|
6819
6834
|
SprigAPI: fn,
|
|
6820
6835
|
configure: br.configure
|
|
@@ -6823,6 +6838,6 @@ export {
|
|
|
6823
6838
|
ye as DismissReason,
|
|
6824
6839
|
fn as SprigAPI,
|
|
6825
6840
|
O as SprigEvent,
|
|
6826
|
-
|
|
6841
|
+
Yl as default,
|
|
6827
6842
|
br as sprig
|
|
6828
6843
|
};
|