@sprig-technologies/sprig-browser 2.33.2 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{core-C0XvmpIu.js → core-DE6rbUl1.js} +420 -408
- package/dist/core-i4jnjCfb.cjs +12 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +20 -0
- package/dist/core.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.js +2 -2
- package/dist/{metricsReporter-uTmb1eaJ.js → metricsReporter-CEzz54S2.js} +2 -2
- package/dist/{metricsReporter-BLXrIaei.cjs → metricsReporter-Cc-ZSIZD.cjs} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +346 -339
- package/dist/{view-yOVTCqu5.cjs → view-Bze4Vd-1.cjs} +3 -3
- package/dist/{view-DuNLA499.js → view-C3KUMRoa.js} +228 -226
- package/package.json +1 -1
- package/dist/core-B164snRL.cjs +0 -12
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { A as ke, D as Wr, a as Zr, C as
|
|
2
|
-
import { e as
|
|
3
|
-
var
|
|
1
|
+
import { A as ke, D as Wr, a as Zr, C as Mt, i as Gr, E as Kr, b as Se, d as bt, r as Yr, e as Ot } from "./core-DE6rbUl1.js";
|
|
2
|
+
import { e as je, h as qe, S as J, s as lt, D as Ut, b as Qr, v as dt } from "./metricsReporter-CEzz54S2.js";
|
|
3
|
+
var De, P, Rn, fe, Ht, Nn, ct, Ln, Pe = {}, Mn = [], Jr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ze = Array.isArray;
|
|
4
4
|
function ae(e, t) {
|
|
5
5
|
for (var n in t) e[n] = t[n];
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function On(e) {
|
|
9
9
|
var t = e.parentNode;
|
|
10
10
|
t && t.removeChild(e);
|
|
11
11
|
}
|
|
12
12
|
function V(e, t, n) {
|
|
13
13
|
var r, o, i, s = {};
|
|
14
14
|
for (i in t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : s[i] = t[i];
|
|
15
|
-
if (arguments.length > 2 && (s.children = arguments.length > 3 ?
|
|
16
|
-
return
|
|
15
|
+
if (arguments.length > 2 && (s.children = arguments.length > 3 ? De.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) s[i] === void 0 && (s[i] = e.defaultProps[i]);
|
|
16
|
+
return Ie(e, s, r, o, null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++
|
|
18
|
+
function Ie(e, t, n, r, o) {
|
|
19
|
+
var i = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++Rn, __i: -1, __u: 0 };
|
|
20
20
|
return o == null && P.vnode != null && P.vnode(i), i;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Un() {
|
|
23
23
|
return { current: null };
|
|
24
24
|
}
|
|
25
25
|
function Z(e) {
|
|
@@ -33,37 +33,37 @@ function we(e, t) {
|
|
|
33
33
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
34
34
|
return typeof e.type == "function" ? we(e) : null;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Hn(e) {
|
|
37
37
|
var t, n;
|
|
38
38
|
if ((e = e.__) != null && e.__c != null) {
|
|
39
39
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) {
|
|
40
40
|
e.__e = e.__c.base = n.__e;
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
-
return
|
|
43
|
+
return Hn(e);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function ut(e) {
|
|
47
|
-
(!e.__d && (e.__d = !0) && fe.push(e) && !Ve.__r++ ||
|
|
47
|
+
(!e.__d && (e.__d = !0) && fe.push(e) && !Ve.__r++ || Ht !== P.debounceRendering) && ((Ht = P.debounceRendering) || Nn)(Ve);
|
|
48
48
|
}
|
|
49
49
|
function Ve() {
|
|
50
50
|
var e, t, n, r, o, i, s, d, a;
|
|
51
|
-
for (fe.sort(ct); e = fe.shift(); ) e.__d && (t = fe.length, r = void 0, i = (o = (n = e).__v).__e, d = [], a = [], (s = n.__P) && ((r = ae({}, o)).__v = o.__v + 1, P.vnode && P.vnode(r), yt(s, r, o, n.__n, s.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, d, i ?? we(o), !!(32 & o.__u), a), r.__.__k[r.__i] = r,
|
|
51
|
+
for (fe.sort(ct); e = fe.shift(); ) e.__d && (t = fe.length, r = void 0, i = (o = (n = e).__v).__e, d = [], a = [], (s = n.__P) && ((r = ae({}, o)).__v = o.__v + 1, P.vnode && P.vnode(r), yt(s, r, o, n.__n, s.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, d, i ?? we(o), !!(32 & o.__u), a), r.__.__k[r.__i] = r, qn(d, r, a), r.__e != i && Hn(r)), fe.length > t && fe.sort(ct));
|
|
52
52
|
Ve.__r = 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
var c, p, m, g, b, v = r && r.__k ||
|
|
54
|
+
function An(e, t, n, r, o, i, s, d, a, u, h) {
|
|
55
|
+
var c, p, m, g, b, v = r && r.__k || Mn, _ = t.length;
|
|
56
56
|
for (n.__d = a, function(f, T, S) {
|
|
57
57
|
var w, x, j, D, y, E = T.length, k = S.length, I = k, N = 0;
|
|
58
|
-
for (f.__k = [], w = 0; w < E; w++) (x = f.__k[w] = (x = T[w]) == null || typeof x == "boolean" || typeof x == "function" ? null : typeof x == "string" || typeof x == "number" || typeof x == "bigint" || x.constructor == String ?
|
|
58
|
+
for (f.__k = [], w = 0; w < E; w++) (x = f.__k[w] = (x = T[w]) == null || typeof x == "boolean" || typeof x == "function" ? null : typeof x == "string" || typeof x == "number" || typeof x == "bigint" || x.constructor == String ? Ie(null, x, null, null, x) : Ze(x) ? Ie(Z, { children: x }, null, null, null) : x.constructor === void 0 && x.__b > 0 ? Ie(x.type, x.props, x.key, x.ref ? x.ref : null, x.__v) : x) != null ? (x.__ = f, x.__b = f.__b + 1, y = Xr(x, S, D = w + N, I), x.__i = y, j = null, y !== -1 && (I--, (j = S[y]) && (j.__u |= 131072)), j == null || j.__v === null ? (y == -1 && N--, typeof x.type != "function" && (x.__u |= 65536)) : y !== D && (y === D + 1 ? N++ : y > D ? I > E - D ? N += y - D : N-- : N = y < D && y == D - 1 ? y - D : 0, y !== w + N && (x.__u |= 65536))) : (j = S[w]) && j.key == null && j.__e && (j.__e == f.__d && (f.__d = we(j)), pt(j, j, !1), S[w] = null, I--);
|
|
59
59
|
if (I) for (w = 0; w < k; w++) (j = S[w]) != null && !(131072 & j.__u) && (j.__e == f.__d && (f.__d = we(j)), pt(j, j));
|
|
60
|
-
}(n, t, v), a = n.__d, c = 0; c < _; c++) (m = n.__k[c]) != null && typeof m != "boolean" && typeof m != "function" && (p = m.__i === -1 ?
|
|
60
|
+
}(n, t, v), a = n.__d, c = 0; c < _; c++) (m = n.__k[c]) != null && typeof m != "boolean" && typeof m != "function" && (p = m.__i === -1 ? Pe : v[m.__i] || Pe, m.__i = c, yt(e, m, p, o, i, s, d, a, u, h), g = m.__e, m.ref && p.ref != m.ref && (p.ref && xt(p.ref, null, m), h.push(m.ref, m.__c || g, m)), b == null && g != null && (b = g), 65536 & m.__u || p.__k === m.__k ? a = Bn(m, a, e) : typeof m.type == "function" && m.__d !== void 0 ? a = m.__d : g && (a = g.nextSibling), m.__d = void 0, m.__u &= -196609);
|
|
61
61
|
n.__d = a, n.__e = b;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Bn(e, t, n) {
|
|
64
64
|
var r, o;
|
|
65
65
|
if (typeof e.type == "function") {
|
|
66
|
-
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t =
|
|
66
|
+
for (r = e.__k, o = 0; r && o < r.length; o++) r[o] && (r[o].__ = e, t = Bn(r[o], t, n));
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
69
|
return e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;
|
|
@@ -88,17 +88,17 @@ function Xr(e, t, n, r) {
|
|
|
88
88
|
}
|
|
89
89
|
return -1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function At(e, t, n) {
|
|
92
92
|
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Jr.test(t) ? n : n + "px";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Me(e, t, n, r, o) {
|
|
95
95
|
var i;
|
|
96
96
|
e: if (t === "style") if (typeof n == "string") e.style.cssText = n;
|
|
97
97
|
else {
|
|
98
|
-
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n ||
|
|
99
|
-
if (n) for (t in n) r && n[t] === r[t] ||
|
|
98
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || At(e.style, t, "");
|
|
99
|
+
if (n) for (t in n) r && n[t] === r[t] || At(e.style, t, n[t]);
|
|
100
100
|
}
|
|
101
|
-
else if (t[0] === "o" && t[1] === "n") i = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ?
|
|
101
|
+
else if (t[0] === "o" && t[1] === "n") i = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ? qt : Bt, i)) : e.removeEventListener(t, i ? qt : Bt, i);
|
|
102
102
|
else {
|
|
103
103
|
if (o) t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
104
104
|
else if (t !== "width" && t !== "height" && t !== "href" && t !== "list" && t !== "form" && t !== "tabIndex" && t !== "download" && t !== "rowSpan" && t !== "colSpan" && t !== "role" && t in e) try {
|
|
@@ -109,14 +109,14 @@ function Le(e, t, n, r, o) {
|
|
|
109
109
|
typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Bt(e) {
|
|
113
113
|
var t = this.l[e.type + !1];
|
|
114
114
|
if (e.t) {
|
|
115
115
|
if (e.t <= t.u) return;
|
|
116
116
|
} else e.t = Date.now();
|
|
117
117
|
return t(P.event ? P.event(e) : e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function qt(e) {
|
|
120
120
|
return this.l[e.type + !0](P.event ? P.event(e) : e);
|
|
121
121
|
}
|
|
122
122
|
function yt(e, t, n, r, o, i, s, d, a, u) {
|
|
@@ -143,14 +143,14 @@ function yt(e, t, n, r, o, i, s, d, a, u) {
|
|
|
143
143
|
} else do
|
|
144
144
|
c.__d = !1, w && w(t), h = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
145
145
|
while (c.__d && ++x < 25);
|
|
146
|
-
c.state = c.__s, c.getChildContext != null && (r = ae(ae({}, r), c.getChildContext())), p || c.getSnapshotBeforeUpdate == null || (b = c.getSnapshotBeforeUpdate(m, g)),
|
|
146
|
+
c.state = c.__s, c.getChildContext != null && (r = ae(ae({}, r), c.getChildContext())), p || c.getSnapshotBeforeUpdate == null || (b = c.getSnapshotBeforeUpdate(m, g)), An(e, Ze(D = h != null && h.type === Z && h.key == null ? h.props.children : h) ? D : [D], t, n, r, o, i, s, d, a, u), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), v && (c.__E = c.__ = null);
|
|
147
147
|
} catch (E) {
|
|
148
148
|
t.__v = null, a || i != null ? (t.__e = d, t.__u |= a ? 160 : 32, i[i.indexOf(d)] = null) : (t.__e = n.__e, t.__k = n.__k), P.__e(E, t, n);
|
|
149
149
|
}
|
|
150
150
|
else i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = eo(n.__e, t, n, r, o, i, s, a, u);
|
|
151
151
|
(h = P.diffed) && h(t);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function qn(e, t, n) {
|
|
154
154
|
t.__d = void 0;
|
|
155
155
|
for (var r = 0; r < n.length; r++) xt(n[r], n[++r], n[++r]);
|
|
156
156
|
P.__c && P.__c(t, e), e.some(function(o) {
|
|
@@ -177,12 +177,12 @@ function eo(e, t, n, r, o, i, s, d, a) {
|
|
|
177
177
|
}
|
|
178
178
|
if (f === null) v === _ || d && e.data === _ || (e.data = _);
|
|
179
179
|
else {
|
|
180
|
-
if (i = i &&
|
|
181
|
-
for (u in v) m = v[u], u == "children" || (u == "dangerouslySetInnerHTML" ? c = m : u === "key" || u in _ ||
|
|
182
|
-
for (u in _) m = _[u], u == "children" ? p = m : u == "dangerouslySetInnerHTML" ? h = m : u == "value" ? g = m : u == "checked" ? b = m : u === "key" || d && typeof m != "function" || v[u] === m ||
|
|
180
|
+
if (i = i && De.call(e.childNodes), v = n.props || Pe, !d && i != null) for (v = {}, u = 0; u < e.attributes.length; u++) v[(m = e.attributes[u]).name] = m.value;
|
|
181
|
+
for (u in v) m = v[u], u == "children" || (u == "dangerouslySetInnerHTML" ? c = m : u === "key" || u in _ || Me(e, u, null, m, o));
|
|
182
|
+
for (u in _) m = _[u], u == "children" ? p = m : u == "dangerouslySetInnerHTML" ? h = m : u == "value" ? g = m : u == "checked" ? b = m : u === "key" || d && typeof m != "function" || v[u] === m || Me(e, u, m, v[u], o);
|
|
183
183
|
if (h) d || c && (h.__html === c.__html || h.__html === e.innerHTML) || (e.innerHTML = h.__html), t.__k = [];
|
|
184
|
-
else if (c && (e.innerHTML = ""),
|
|
185
|
-
d || (u = "value", g !== void 0 && (g !== e[u] || f === "progress" && !g || f === "option" && g !== v[u]) &&
|
|
184
|
+
else if (c && (e.innerHTML = ""), An(e, Ze(p) ? p : [p], t, n, r, o && f !== "foreignObject", i, s, i ? i[0] : n.__k && we(n, 0), d, a), i != null) for (u = i.length; u--; ) i[u] != null && On(i[u]);
|
|
185
|
+
d || (u = "value", g !== void 0 && (g !== e[u] || f === "progress" && !g || f === "option" && g !== v[u]) && Me(e, u, g, v[u], !1), u = "checked", b !== void 0 && b !== e[u] && Me(e, u, b, v[u], !1));
|
|
186
186
|
}
|
|
187
187
|
return e;
|
|
188
188
|
}
|
|
@@ -204,25 +204,25 @@ function pt(e, t, n) {
|
|
|
204
204
|
r.base = r.__P = null, e.__c = void 0;
|
|
205
205
|
}
|
|
206
206
|
if (r = e.__k) for (o = 0; o < r.length; o++) r[o] && pt(r[o], t, n || typeof e.type != "function");
|
|
207
|
-
n || e.__e == null ||
|
|
207
|
+
n || e.__e == null || On(e.__e), e.__ = e.__e = e.__d = void 0;
|
|
208
208
|
}
|
|
209
209
|
function to(e, t, n) {
|
|
210
210
|
return this.constructor(e, n);
|
|
211
211
|
}
|
|
212
212
|
function Ce(e, t, n) {
|
|
213
213
|
var r, o, i, s;
|
|
214
|
-
P.__ && P.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], yt(t, e = (!r && n || t).__k = V(Z, null, [e]), o ||
|
|
214
|
+
P.__ && P.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], yt(t, e = (!r && n || t).__k = V(Z, null, [e]), o || Pe, Pe, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? De.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), qn(i, e, s);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
Ce(e, t,
|
|
216
|
+
function Vn(e, t) {
|
|
217
|
+
Ce(e, t, Vn);
|
|
218
218
|
}
|
|
219
219
|
function no(e, t, n) {
|
|
220
220
|
var r, o, i, s, d = ae({}, e.props);
|
|
221
221
|
for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t) i == "key" ? r = t[i] : i == "ref" ? o = t[i] : d[i] = t[i] === void 0 && s !== void 0 ? s[i] : t[i];
|
|
222
|
-
return arguments.length > 2 && (d.children = arguments.length > 3 ?
|
|
222
|
+
return arguments.length > 2 && (d.children = arguments.length > 3 ? De.call(arguments, 2) : n), Ie(e.type, d, r || e.key, o || e.ref, null);
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
var n = { __c: t = "__cC" +
|
|
224
|
+
function zn(e, t) {
|
|
225
|
+
var n = { __c: t = "__cC" + Ln++, __: e, Consumer: function(r, o) {
|
|
226
226
|
return r.children(o);
|
|
227
227
|
}, Provider: function(r) {
|
|
228
228
|
var o, i;
|
|
@@ -242,21 +242,21 @@ function Vn(e, t) {
|
|
|
242
242
|
} };
|
|
243
243
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
De = Mn.slice, P = { __e: function(e, t, n, r) {
|
|
246
246
|
for (var o, i, s; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
247
247
|
if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), s = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), s = o.__d), s) return o.__E = o;
|
|
248
248
|
} catch (d) {
|
|
249
249
|
e = d;
|
|
250
250
|
}
|
|
251
251
|
throw e;
|
|
252
|
-
} },
|
|
252
|
+
} }, Rn = 0, te.prototype.setState = function(e, t) {
|
|
253
253
|
var n;
|
|
254
254
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ae({}, this.state), typeof e == "function" && (e = e(ae({}, n), this.props)), e && ae(n, e), e != null && this.__v && (t && this._sb.push(t), ut(this));
|
|
255
255
|
}, te.prototype.forceUpdate = function(e) {
|
|
256
256
|
this.__v && (this.__e = !0, e && this.__h.push(e), ut(this));
|
|
257
|
-
}, te.prototype.render = Z, fe = [],
|
|
257
|
+
}, te.prototype.render = Z, fe = [], Nn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ct = function(e, t) {
|
|
258
258
|
return e.__v.__b - t.__v.__b;
|
|
259
|
-
}, Ve.__r = 0,
|
|
259
|
+
}, Ve.__r = 0, Ln = 0;
|
|
260
260
|
var ro = 0;
|
|
261
261
|
function l(e, t, n, r, o, i) {
|
|
262
262
|
var s, d, a = {};
|
|
@@ -265,18 +265,18 @@ function l(e, t, n, r, o, i) {
|
|
|
265
265
|
if (typeof e == "function" && (s = e.defaultProps)) for (d in s) a[d] === void 0 && (a[d] = s[d]);
|
|
266
266
|
return P.vnode && P.vnode(u), u;
|
|
267
267
|
}
|
|
268
|
-
var de, q, Qe,
|
|
268
|
+
var de, q, Qe, Vt, Ee = 0, $n = [], Oe = [], zt = P.__b, $t = P.__r, Ft = P.diffed, Wt = P.__c, Zt = P.unmount;
|
|
269
269
|
function be(e, t) {
|
|
270
270
|
P.__h && P.__h(q, e, Ee || t), Ee = 0;
|
|
271
271
|
var n = q.__H || (q.__H = { __: [], __h: [] });
|
|
272
272
|
return e >= n.__.length && n.__.push({ __V: Oe }), n.__[e];
|
|
273
273
|
}
|
|
274
274
|
function z(e) {
|
|
275
|
-
return Ee = 1, kt(
|
|
275
|
+
return Ee = 1, kt(Gn, e);
|
|
276
276
|
}
|
|
277
277
|
function kt(e, t, n) {
|
|
278
278
|
var r = be(de++, 2);
|
|
279
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
279
|
+
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Gn(void 0, t), function(d) {
|
|
280
280
|
var a = r.__N ? r.__N[0] : r.__[0], u = r.t(a, d);
|
|
281
281
|
a !== u && (r.__N = [u, r.__[1]], r.__c.setState({}));
|
|
282
282
|
}], r.__c = q, !q.u)) {
|
|
@@ -312,17 +312,17 @@ function F(e, t) {
|
|
|
312
312
|
var n = be(de++, 3);
|
|
313
313
|
!P.__s && Ct(n.__H, t) && (n.__ = e, n.i = t, q.__H.__h.push(n));
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Re(e, t) {
|
|
316
316
|
var n = be(de++, 4);
|
|
317
317
|
!P.__s && Ct(n.__H, t) && (n.__ = e, n.i = t, q.__h.push(n));
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
return Ee = 5,
|
|
319
|
+
function X(e) {
|
|
320
|
+
return Ee = 5, Ne(function() {
|
|
321
321
|
return { current: e };
|
|
322
322
|
}, []);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
Ee = 6,
|
|
324
|
+
function Fn(e, t, n) {
|
|
325
|
+
Ee = 6, Re(function() {
|
|
326
326
|
return typeof e == "function" ? (e(t()), function() {
|
|
327
327
|
return e(null);
|
|
328
328
|
}) : e ? (e.current = t(), function() {
|
|
@@ -330,23 +330,23 @@ function $n(e, t, n) {
|
|
|
330
330
|
}) : void 0;
|
|
331
331
|
}, n == null ? n : n.concat(e));
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Ne(e, t) {
|
|
334
334
|
var n = be(de++, 7);
|
|
335
335
|
return Ct(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
|
336
336
|
}
|
|
337
337
|
function ze(e, t) {
|
|
338
|
-
return Ee = 8,
|
|
338
|
+
return Ee = 8, Ne(function() {
|
|
339
339
|
return e;
|
|
340
340
|
}, t);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Wn(e) {
|
|
343
343
|
var t = q.context[e.__c], n = be(de++, 9);
|
|
344
344
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(q)), t.props.value) : e.__;
|
|
345
345
|
}
|
|
346
346
|
function wt(e, t) {
|
|
347
347
|
P.useDebugValue && P.useDebugValue(t ? t(e) : e);
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Zn() {
|
|
350
350
|
var e = be(de++, 11);
|
|
351
351
|
if (!e.__) {
|
|
352
352
|
for (var t = q.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
@@ -356,24 +356,24 @@ function Wn() {
|
|
|
356
356
|
return e.__;
|
|
357
357
|
}
|
|
358
358
|
function oo() {
|
|
359
|
-
for (var e; e =
|
|
359
|
+
for (var e; e = $n.shift(); ) if (e.__P && e.__H) try {
|
|
360
360
|
e.__H.__h.forEach(Ue), e.__H.__h.forEach(ht), e.__H.__h = [];
|
|
361
361
|
} catch (t) {
|
|
362
362
|
e.__H.__h = [], P.__e(t, e.__v);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
P.__b = function(e) {
|
|
366
|
-
q = null,
|
|
366
|
+
q = null, zt && zt(e);
|
|
367
367
|
}, P.__r = function(e) {
|
|
368
|
-
|
|
368
|
+
$t && $t(e), de = 0;
|
|
369
369
|
var t = (q = e.__c).__H;
|
|
370
370
|
t && (Qe === q ? (t.__h = [], q.__h = [], t.__.forEach(function(n) {
|
|
371
371
|
n.__N && (n.__ = n.__N), n.__V = Oe, n.__N = n.i = void 0;
|
|
372
372
|
})) : (t.__h.forEach(Ue), t.__h.forEach(ht), t.__h = [], de = 0)), Qe = q;
|
|
373
373
|
}, P.diffed = function(e) {
|
|
374
|
-
|
|
374
|
+
Ft && Ft(e);
|
|
375
375
|
var t = e.__c;
|
|
376
|
-
t && t.__H && (t.__H.__h.length && (
|
|
376
|
+
t && t.__H && (t.__H.__h.length && ($n.push(t) !== 1 && Vt === P.requestAnimationFrame || ((Vt = P.requestAnimationFrame) || io)(oo)), t.__H.__.forEach(function(n) {
|
|
377
377
|
n.i && (n.__H = n.i), n.__V !== Oe && (n.__ = n.__V), n.i = void 0, n.__V = Oe;
|
|
378
378
|
})), Qe = q = null;
|
|
379
379
|
}, P.__c = function(e, t) {
|
|
@@ -387,9 +387,9 @@ P.__b = function(e) {
|
|
|
387
387
|
o.__h && (o.__h = []);
|
|
388
388
|
}), t = [], P.__e(r, n.__v);
|
|
389
389
|
}
|
|
390
|
-
}),
|
|
390
|
+
}), Wt && Wt(e, t);
|
|
391
391
|
}, P.unmount = function(e) {
|
|
392
|
-
|
|
392
|
+
Zt && Zt(e);
|
|
393
393
|
var t, n = e.__c;
|
|
394
394
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
395
395
|
try {
|
|
@@ -399,12 +399,12 @@ P.__b = function(e) {
|
|
|
399
399
|
}
|
|
400
400
|
}), n.__H = void 0, t && P.__e(t, n.__v));
|
|
401
401
|
};
|
|
402
|
-
var
|
|
402
|
+
var Gt = typeof requestAnimationFrame == "function";
|
|
403
403
|
function io(e) {
|
|
404
404
|
var t, n = function() {
|
|
405
|
-
clearTimeout(r),
|
|
405
|
+
clearTimeout(r), Gt && cancelAnimationFrame(t), setTimeout(e);
|
|
406
406
|
}, r = setTimeout(n, 100);
|
|
407
|
-
|
|
407
|
+
Gt && (t = requestAnimationFrame(n));
|
|
408
408
|
}
|
|
409
409
|
function Ue(e) {
|
|
410
410
|
var t = q, n = e.__c;
|
|
@@ -419,10 +419,10 @@ function Ct(e, t) {
|
|
|
419
419
|
return n !== e[r];
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Gn(e, t) {
|
|
423
423
|
return typeof t == "function" ? t(e) : t;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Kn(e, t) {
|
|
426
426
|
for (var n in t) e[n] = t[n];
|
|
427
427
|
return e;
|
|
428
428
|
}
|
|
@@ -434,7 +434,7 @@ function mt(e, t) {
|
|
|
434
434
|
function $e(e) {
|
|
435
435
|
this.props = e;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function Yn(e, t) {
|
|
438
438
|
function n(o) {
|
|
439
439
|
var i = this.props.ref, s = i == o.ref;
|
|
440
440
|
return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !s : mt(this.props, o);
|
|
@@ -447,21 +447,21 @@ function Kn(e, t) {
|
|
|
447
447
|
($e.prototype = new te()).isPureReactComponent = !0, $e.prototype.shouldComponentUpdate = function(e, t) {
|
|
448
448
|
return mt(this.props, e) || mt(this.state, t);
|
|
449
449
|
};
|
|
450
|
-
var
|
|
450
|
+
var Kt = P.__b;
|
|
451
451
|
P.__b = function(e) {
|
|
452
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
452
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Kt && Kt(e);
|
|
453
453
|
};
|
|
454
454
|
var so = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
455
455
|
function Et(e) {
|
|
456
456
|
function t(n) {
|
|
457
|
-
var r =
|
|
457
|
+
var r = Kn({}, n);
|
|
458
458
|
return delete r.ref, e(r, n.ref || null);
|
|
459
459
|
}
|
|
460
460
|
return t.$$typeof = so, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var Yt = function(e, t) {
|
|
463
463
|
return e == null ? null : le(le(e).map(t));
|
|
464
|
-
},
|
|
464
|
+
}, Qn = { map: Yt, forEach: Yt, count: function(e) {
|
|
465
465
|
return e ? le(e).length : 0;
|
|
466
466
|
}, only: function(e) {
|
|
467
467
|
var t = le(e);
|
|
@@ -474,27 +474,27 @@ P.__e = function(e, t, n, r) {
|
|
|
474
474
|
}
|
|
475
475
|
ao(e, t, n, r);
|
|
476
476
|
};
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var Qt = P.unmount;
|
|
478
|
+
function Jn(e, t, n) {
|
|
479
479
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
480
480
|
typeof r.__c == "function" && r.__c();
|
|
481
|
-
}), e.__c.__H = null), (e =
|
|
482
|
-
return
|
|
481
|
+
}), e.__c.__H = null), (e = Kn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
482
|
+
return Jn(r, t, n);
|
|
483
483
|
})), e;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Xn(e, t, n) {
|
|
486
486
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
487
|
-
return
|
|
487
|
+
return Xn(r, t, n);
|
|
488
488
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Te() {
|
|
491
491
|
this.__u = 0, this.t = null, this.__b = null;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function er(e) {
|
|
494
494
|
var t = e.__.__c;
|
|
495
495
|
return t && t.__a && t.__a(e);
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function tr(e) {
|
|
498
498
|
var t, n, r;
|
|
499
499
|
function o(i) {
|
|
500
500
|
if (t || (t = e()).then(function(s) {
|
|
@@ -512,11 +512,11 @@ function xe() {
|
|
|
512
512
|
}
|
|
513
513
|
P.unmount = function(e) {
|
|
514
514
|
var t = e.__c;
|
|
515
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
516
|
-
}, (
|
|
515
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Qt && Qt(e);
|
|
516
|
+
}, (Te.prototype = new te()).__c = function(e, t) {
|
|
517
517
|
var n = t.__c, r = this;
|
|
518
518
|
r.t == null && (r.t = []), r.t.push(n);
|
|
519
|
-
var o =
|
|
519
|
+
var o = er(r.__v), i = !1, s = function() {
|
|
520
520
|
i || (i = !0, n.__R = null, o ? o(d) : d());
|
|
521
521
|
};
|
|
522
522
|
n.__R = s;
|
|
@@ -524,27 +524,27 @@ P.unmount = function(e) {
|
|
|
524
524
|
if (!--r.__u) {
|
|
525
525
|
if (r.state.__a) {
|
|
526
526
|
var a = r.state.__a;
|
|
527
|
-
r.__v.__k[0] =
|
|
527
|
+
r.__v.__k[0] = Xn(a, a.__c.__P, a.__c.__O);
|
|
528
528
|
}
|
|
529
529
|
var u;
|
|
530
530
|
for (r.setState({ __a: r.__b = null }); u = r.t.pop(); ) u.forceUpdate();
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(s, s);
|
|
534
|
-
},
|
|
534
|
+
}, Te.prototype.componentWillUnmount = function() {
|
|
535
535
|
this.t = [];
|
|
536
|
-
},
|
|
536
|
+
}, Te.prototype.render = function(e, t) {
|
|
537
537
|
if (this.__b) {
|
|
538
538
|
if (this.__v.__k) {
|
|
539
539
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
540
|
-
this.__v.__k[0] =
|
|
540
|
+
this.__v.__k[0] = Jn(this.__b, n, r.__O = r.__P);
|
|
541
541
|
}
|
|
542
542
|
this.__b = null;
|
|
543
543
|
}
|
|
544
544
|
var o = t.__a && V(Z, null, e.fallback);
|
|
545
545
|
return o && (o.__u &= -33), [V(Z, null, t.__a ? null : e.children), o];
|
|
546
546
|
};
|
|
547
|
-
var
|
|
547
|
+
var Jt = function(e, t, n) {
|
|
548
548
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size)) for (n = e.u; n; ) {
|
|
549
549
|
for (; n.length > 3; ) n.pop()();
|
|
550
550
|
if (n[1] < n[0]) break;
|
|
@@ -568,15 +568,15 @@ function co(e) {
|
|
|
568
568
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
569
569
|
} }), Ce(V(lo, { context: t.context }, e.__v), t.l);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function nr(e, t) {
|
|
572
572
|
var n = V(co, { __v: e, i: t });
|
|
573
573
|
return n.containerInfo = t, n;
|
|
574
574
|
}
|
|
575
575
|
(xe.prototype = new te()).__a = function(e) {
|
|
576
|
-
var t = this, n =
|
|
576
|
+
var t = this, n = er(t.__v), r = t.o.get(e);
|
|
577
577
|
return r[0]++, function(o) {
|
|
578
578
|
var i = function() {
|
|
579
|
-
t.props.revealOrder ? (r.push(o),
|
|
579
|
+
t.props.revealOrder ? (r.push(o), Jt(t, e, r)) : o();
|
|
580
580
|
};
|
|
581
581
|
n ? n(i) : i();
|
|
582
582
|
};
|
|
@@ -589,17 +589,17 @@ function tr(e, t) {
|
|
|
589
589
|
}, xe.prototype.componentDidUpdate = xe.prototype.componentDidMount = function() {
|
|
590
590
|
var e = this;
|
|
591
591
|
this.o.forEach(function(t, n) {
|
|
592
|
-
|
|
592
|
+
Jt(e, n, t);
|
|
593
593
|
});
|
|
594
594
|
};
|
|
595
|
-
var
|
|
595
|
+
var rr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, uo = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/, po = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, ho = /[A-Z0-9]/g, mo = typeof document < "u", go = function(e) {
|
|
596
596
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
597
597
|
};
|
|
598
|
-
function
|
|
598
|
+
function or(e, t, n) {
|
|
599
599
|
return t.__k == null && (t.textContent = ""), Ce(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function ir(e, t, n) {
|
|
602
|
+
return Vn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
603
603
|
}
|
|
604
604
|
te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
605
605
|
Object.defineProperty(te.prototype, e, { configurable: !0, get: function() {
|
|
@@ -608,7 +608,7 @@ te.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
608
608
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
609
609
|
} });
|
|
610
610
|
});
|
|
611
|
-
var
|
|
611
|
+
var Xt = P.event;
|
|
612
612
|
function vo() {
|
|
613
613
|
}
|
|
614
614
|
function fo() {
|
|
@@ -618,11 +618,11 @@ function _o() {
|
|
|
618
618
|
return this.defaultPrevented;
|
|
619
619
|
}
|
|
620
620
|
P.event = function(e) {
|
|
621
|
-
return
|
|
621
|
+
return Xt && (e = Xt(e)), e.persist = vo, e.isPropagationStopped = fo, e.isDefaultPrevented = _o, e.nativeEvent = e;
|
|
622
622
|
};
|
|
623
623
|
var St, bo = { enumerable: !1, configurable: !0, get: function() {
|
|
624
624
|
return this.class;
|
|
625
|
-
} },
|
|
625
|
+
} }, en = P.vnode;
|
|
626
626
|
P.vnode = function(e) {
|
|
627
627
|
typeof e.type == "string" && function(t) {
|
|
628
628
|
var n = t.props, r = t.type, o = {};
|
|
@@ -638,34 +638,34 @@ P.vnode = function(e) {
|
|
|
638
638
|
})), r == "select" && o.defaultValue != null && (o.value = le(n.children).forEach(function(a) {
|
|
639
639
|
a.props.selected = o.multiple ? o.defaultValue.indexOf(a.props.value) != -1 : o.defaultValue == a.props.value;
|
|
640
640
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", bo)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
641
|
-
}(e), e.$$typeof =
|
|
641
|
+
}(e), e.$$typeof = rr, en && en(e);
|
|
642
642
|
};
|
|
643
|
-
var
|
|
643
|
+
var tn = P.__r;
|
|
644
644
|
P.__r = function(e) {
|
|
645
|
-
|
|
645
|
+
tn && tn(e), St = e.__c;
|
|
646
646
|
};
|
|
647
|
-
var
|
|
647
|
+
var nn = P.diffed;
|
|
648
648
|
P.diffed = function(e) {
|
|
649
|
-
|
|
649
|
+
nn && nn(e);
|
|
650
650
|
var t = e.props, n = e.__e;
|
|
651
651
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), St = null;
|
|
652
652
|
};
|
|
653
|
-
var
|
|
653
|
+
var sr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
654
654
|
return St.__n[e.__c].props.value;
|
|
655
655
|
} } } };
|
|
656
|
-
function
|
|
656
|
+
function ar(e) {
|
|
657
657
|
return V.bind(null, e);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
return !!e && e.$$typeof ===
|
|
661
|
-
}
|
|
662
|
-
function ar(e) {
|
|
663
|
-
return Ne(e) && e.type === Z;
|
|
659
|
+
function Le(e) {
|
|
660
|
+
return !!e && e.$$typeof === rr;
|
|
664
661
|
}
|
|
665
662
|
function lr(e) {
|
|
666
|
-
return
|
|
663
|
+
return Le(e) && e.type === Z;
|
|
667
664
|
}
|
|
668
665
|
function dr(e) {
|
|
666
|
+
return Le(e) ? no.apply(null, arguments) : e;
|
|
667
|
+
}
|
|
668
|
+
function jt(e) {
|
|
669
669
|
return !!e.__k && (Ce(null, e), !0);
|
|
670
670
|
}
|
|
671
671
|
function cr(e) {
|
|
@@ -676,19 +676,19 @@ var ur = function(e, t) {
|
|
|
676
676
|
}, pr = function(e, t) {
|
|
677
677
|
return e(t);
|
|
678
678
|
}, hr = Z;
|
|
679
|
-
function
|
|
679
|
+
function It(e) {
|
|
680
680
|
e();
|
|
681
681
|
}
|
|
682
682
|
function mr(e) {
|
|
683
683
|
return e;
|
|
684
684
|
}
|
|
685
685
|
function gr() {
|
|
686
|
-
return [!1,
|
|
686
|
+
return [!1, It];
|
|
687
687
|
}
|
|
688
|
-
var vr =
|
|
688
|
+
var vr = Re, fr = Le;
|
|
689
689
|
function _r(e, t) {
|
|
690
690
|
var n = t(), r = z({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
691
|
-
return
|
|
691
|
+
return Re(function() {
|
|
692
692
|
o.__ = n, o.v = t, Je(o) && i({ h: o });
|
|
693
693
|
}, [e, n, t]), F(function() {
|
|
694
694
|
return Je(o) && i({ h: o }), e(function() {
|
|
@@ -705,15 +705,15 @@ function Je(e) {
|
|
|
705
705
|
return !0;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
var yo = { useState: z, useId:
|
|
709
|
-
const xo = Object.freeze(Object.defineProperty({ __proto__: null, Children:
|
|
708
|
+
var yo = { useState: z, useId: Zn, useReducer: kt, useEffect: F, useLayoutEffect: Re, useInsertionEffect: vr, useTransition: gr, useDeferredValue: mr, useSyncExternalStore: _r, startTransition: It, useRef: X, useImperativeHandle: Fn, useMemo: Ne, useCallback: ze, useContext: Wn, useDebugValue: wt, version: "17.0.2", Children: Qn, render: or, hydrate: ir, unmountComponentAtNode: jt, createPortal: nr, createElement: V, createContext: zn, createFactory: ar, cloneElement: dr, createRef: Un, Fragment: Z, isValidElement: Le, isElement: fr, isFragment: lr, findDOMNode: cr, Component: te, PureComponent: $e, memo: Yn, forwardRef: Et, flushSync: pr, unstable_batchedUpdates: ur, StrictMode: hr, Suspense: Te, SuspenseList: xe, lazy: tr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: sr };
|
|
709
|
+
const xo = Object.freeze(Object.defineProperty({ __proto__: null, Children: Qn, Component: te, Fragment: Z, PureComponent: $e, StrictMode: hr, Suspense: Te, SuspenseList: xe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: sr, cloneElement: dr, createContext: zn, createElement: V, createFactory: ar, createPortal: nr, createRef: Un, default: yo, findDOMNode: cr, flushSync: pr, forwardRef: Et, hydrate: ir, isElement: fr, isFragment: lr, isValidElement: Le, lazy: tr, memo: Yn, render: or, startTransition: It, unmountComponentAtNode: jt, unstable_batchedUpdates: ur, useCallback: ze, useContext: Wn, useDebugValue: wt, useDeferredValue: mr, useEffect: F, useErrorBoundary: function(e) {
|
|
710
710
|
var t = be(de++, 10), n = z();
|
|
711
711
|
return t.__ = e, q.componentDidCatch || (q.componentDidCatch = function(r, o) {
|
|
712
712
|
t.__ && t.__(r, o), n[1](r);
|
|
713
713
|
}), [n[0], function() {
|
|
714
714
|
n[1](void 0);
|
|
715
715
|
}];
|
|
716
|
-
}, useId:
|
|
716
|
+
}, useId: Zn, useImperativeHandle: Fn, useInsertionEffect: vr, useLayoutEffect: Re, useMemo: Ne, useReducer: kt, useRef: X, useState: z, useSyncExternalStore: _r, useTransition: gr, version: "17.0.2" }, Symbol.toStringTag, { value: "Module" })), rn = (e) => {
|
|
717
717
|
let t;
|
|
718
718
|
const n = /* @__PURE__ */ new Set(), r = (s, d) => {
|
|
719
719
|
const a = typeof s == "function" ? s(t) : s;
|
|
@@ -743,13 +743,13 @@ function wo(e) {
|
|
|
743
743
|
} });
|
|
744
744
|
}), n;
|
|
745
745
|
}
|
|
746
|
-
var
|
|
746
|
+
var on = { exports: {} }, Xe = {};
|
|
747
747
|
const br = wo(xo);
|
|
748
|
-
var
|
|
748
|
+
var sn, an, ln, dn, cn = { exports: {} }, et = {};
|
|
749
749
|
function Co() {
|
|
750
|
-
return
|
|
751
|
-
if (
|
|
752
|
-
|
|
750
|
+
return an || (an = 1, cn.exports = function() {
|
|
751
|
+
if (sn) return et;
|
|
752
|
+
sn = 1;
|
|
753
753
|
var e = br, t = typeof Object.is == "function" ? Object.is : function(a, u) {
|
|
754
754
|
return a === u && (a !== 0 || 1 / a == 1 / u) || a != a && u != u;
|
|
755
755
|
}, n = e.useState, r = e.useEffect, o = e.useLayoutEffect, i = e.useDebugValue;
|
|
@@ -776,11 +776,11 @@ function Co() {
|
|
|
776
776
|
}, [a]), i(h), h;
|
|
777
777
|
};
|
|
778
778
|
return et.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, et;
|
|
779
|
-
}()),
|
|
779
|
+
}()), cn.exports;
|
|
780
780
|
}
|
|
781
|
-
var Eo = (
|
|
782
|
-
if (
|
|
783
|
-
|
|
781
|
+
var Eo = (dn || (dn = 1, on.exports = function() {
|
|
782
|
+
if (ln) return Xe;
|
|
783
|
+
ln = 1;
|
|
784
784
|
var e = br, t = Co(), n = typeof Object.is == "function" ? Object.is : function(a, u) {
|
|
785
785
|
return a === u && (a !== 0 || 1 / a == 1 / u) || a != a && u != u;
|
|
786
786
|
}, r = t.useSyncExternalStore, o = e.useRef, i = e.useEffect, s = e.useMemo, d = e.useDebugValue;
|
|
@@ -815,14 +815,14 @@ var Eo = (ln || (ln = 1, rn.exports = function() {
|
|
|
815
815
|
g.hasValue = !0, g.value = b;
|
|
816
816
|
}, [b]), d(b), b;
|
|
817
817
|
}, Xe;
|
|
818
|
-
}()),
|
|
819
|
-
const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So,
|
|
820
|
-
const t = typeof e == "function" ? ((r) => r ?
|
|
818
|
+
}()), on.exports);
|
|
819
|
+
const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, un = (e) => {
|
|
820
|
+
const t = typeof e == "function" ? ((r) => r ? rn(r) : rn)(e) : e, n = (r, o) => function(i, s = i.getState, d) {
|
|
821
821
|
const a = jo(i.subscribe, i.getState, i.getServerState || i.getState, s, d);
|
|
822
822
|
return wt(a), a;
|
|
823
823
|
}(t, r, o);
|
|
824
824
|
return Object.assign(n, t), n;
|
|
825
|
-
}, yr = (e) => e ?
|
|
825
|
+
}, yr = (e) => e ? un(e) : un, Io = 1, To = 2, Tt = { eq: (e, t) => e == t, neq(e, t) {
|
|
826
826
|
return !this.eq(e, t);
|
|
827
827
|
}, gt: (e, t) => e > t, gte: (e, t) => e >= t, lt: (e, t) => e < t, lte: (e, t) => e <= t, list_exact: (e, t) => !(!Array.isArray(e) || !Array.isArray(t)) && e.slice().sort().join(",") === t.slice().sort().join(","), list_all: (e, t) => !(!Array.isArray(e) || !Array.isArray(t)) && !t.some((n) => e.indexOf(n) === -1), list_alo(e, t) {
|
|
828
828
|
if (!Array.isArray(t)) return !1;
|
|
@@ -876,9 +876,9 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
876
876
|
if (!(c != null && c.length)) continue;
|
|
877
877
|
const m = c[0];
|
|
878
878
|
if (m.questionIndex === void 0 || m.questionIndex > r.length) continue;
|
|
879
|
-
let g =
|
|
879
|
+
let g = pn({ comparator: m.comparator, response: r[m.questionIndex], type: i.type, value: m.value });
|
|
880
880
|
for (let b = 1; b < c.length; b += 2) {
|
|
881
|
-
const v = c[b], _ = c[b + 1], f =
|
|
881
|
+
const v = c[b], _ = c[b + 1], f = pn({ comparator: _.comparator, response: r[_.questionIndex], type: e[_.questionIndex].type, value: _.value });
|
|
882
882
|
v === Io ? g && (g = f) : v === To && (g || (g = f));
|
|
883
883
|
}
|
|
884
884
|
if (g) {
|
|
@@ -889,7 +889,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
889
889
|
const a = e.findIndex((h) => h.type === "uploading");
|
|
890
890
|
let u;
|
|
891
891
|
return u = a > 0 ? n ? e.length - 3 : e.length - 2 : e.length - 1, t >= u || s === -1 || s !== null && s > u ? a > 0 && Object.values(o).some((c) => c.isSubmitted && !c.isComplete) ? a : n ? e.length - 1 : null : s === -1 ? null : s;
|
|
892
|
-
},
|
|
892
|
+
}, pn = ({ comparator: e, response: t, type: n, value: r }) => {
|
|
893
893
|
if (e === "answered") switch (n) {
|
|
894
894
|
case "texturlprompt":
|
|
895
895
|
return t === void 0;
|
|
@@ -935,7 +935,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
935
935
|
default:
|
|
936
936
|
return !1;
|
|
937
937
|
}
|
|
938
|
-
return
|
|
938
|
+
return Tt[e](t, r);
|
|
939
939
|
}, Do = (e) => {
|
|
940
940
|
var r, o, i;
|
|
941
941
|
switch (e.type) {
|
|
@@ -972,7 +972,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
972
972
|
return [1];
|
|
973
973
|
}
|
|
974
974
|
var t, n;
|
|
975
|
-
}, Ro = (e) => e in
|
|
975
|
+
}, Ro = (e) => e in Tt, No = (e) => typeof e == "object" && e !== null && "taskStatus" in e, Lo = (e, t = []) => t.reduce((n, r) => {
|
|
976
976
|
const { group: o, target: i } = r;
|
|
977
977
|
if (!(o != null && o.length)) return [...n];
|
|
978
978
|
const s = o.filter((d) => !!Number(d) || typeof d == "object" && d.questionIndex === e).map((d) => {
|
|
@@ -982,14 +982,14 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
982
982
|
return [...n, ...s];
|
|
983
983
|
}, []), tt = /* @__PURE__ */ new Set(["thanks", "uploading"]), U = yr()((e, t) => ({ allResponses: [], answers: void 0, apiURL: "", border: "#000000", cards: [], close: async (n = ke) => {
|
|
984
984
|
const r = t(), { fadeout: o, remove: i, trackHistory: s, studyType: d } = r;
|
|
985
|
-
await o(n), nt(r) || s({ event: "closed" }), Qr.info("SurveyClosing", { surveyId: r.surveyId }),
|
|
985
|
+
await o(n), nt(r) || s({ event: "closed" }), Qr.info("SurveyClosing", { surveyId: r.surveyId }), Mt.enable(), i({ initiator: Ut.Closed, studyType: d });
|
|
986
986
|
}, configureExitOnOverlayClick: () => {
|
|
987
987
|
}, customMetadata: {}, destroy: async (n) => {
|
|
988
988
|
const { eventEmitFn: r, fadeout: o, remove: i, studyType: s, surveyId: d } = t();
|
|
989
|
-
r("survey.complete", d), await o(n),
|
|
990
|
-
}, endCard: { headline: "" }, envId: "", eventEmitFn:
|
|
989
|
+
r("survey.complete", d), await o(n), Mt.enable(), i({ initiator: Ut.Complete, studyType: s });
|
|
990
|
+
}, endCard: { headline: "" }, envId: "", eventEmitFn: je.emit.bind(je), fadeout: async (n) => {
|
|
991
991
|
const { eventEmitFn: r, headers: o, viewDocument: i } = t();
|
|
992
|
-
return qe(o) ? Promise.resolve() : (r(
|
|
992
|
+
return qe(o) ? Promise.resolve() : (r(J.SurveyFadingOut), new Promise((s) => {
|
|
993
993
|
const d = i.getElementById(n);
|
|
994
994
|
d ? (d.addEventListener("transitionend", () => {
|
|
995
995
|
s();
|
|
@@ -1025,15 +1025,15 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1025
1025
|
const j = m[w];
|
|
1026
1026
|
m[w] && i && i("survey.question", { qid: j.name, props: j.props }), e({ cards: m, hasViewedEmbed: !1, index: w, viewedCardCount: c + 1 });
|
|
1027
1027
|
}, pendingRemoveIframeReason: null, previewKey: null, previewMode: void 0, recorder: () => {
|
|
1028
|
-
}, recorderEventEmitter:
|
|
1028
|
+
}, recorderEventEmitter: je, resolveTrackedPromise: () => {
|
|
1029
1029
|
const { removeIframeIfReady: n } = t();
|
|
1030
1030
|
e((r) => ({ unresolvedRequestCount: r.unresolvedRequestCount - 1 })), n();
|
|
1031
1031
|
}, responseGroupUid: "", remove: ({ initiator: n, studyType: r }) => {
|
|
1032
1032
|
const { eventEmitFn: o, removeIframeIfReady: i, surveyId: s } = t();
|
|
1033
|
-
e({ pendingRemoveIframeReason: n, studyType: r }), o(
|
|
1033
|
+
e({ pendingRemoveIframeReason: n, studyType: r }), o(J.SurveyCloseRequested, { name: J.SurveyCloseRequested, initiator: n, studyType: r, "survey.id": s }), i();
|
|
1034
1034
|
}, removeIframeIfReady: () => {
|
|
1035
1035
|
const { eventEmitFn: n, pendingRemoveIframeReason: r, unresolvedRequestCount: o, studyType: i, surveyId: s } = t();
|
|
1036
|
-
r && o === 0 && (n(
|
|
1036
|
+
r && o === 0 && (n(J.SurveyWillClose, { name: J.SurveyWillClose, initiator: r, studyType: i, "survey.id": s }), e({ pendingRemoveIframeReason: null, studyType: i }));
|
|
1037
1037
|
}, seen: async () => {
|
|
1038
1038
|
const { trackHistory: n } = t();
|
|
1039
1039
|
return n({ event: "seen", isNew: !0 });
|
|
@@ -1041,12 +1041,12 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1041
1041
|
const s = t();
|
|
1042
1042
|
if (!i || nt(s)) return;
|
|
1043
1043
|
const d = { responseGroupUid: i, meta: s.meta, customMetadata: s.customMetadata, responses: [o], completedAt: n, previewKey: s.previewKey }, a = await s.trackPromise(lt(`${s.apiURL}/sdk/1/environments/${s.envId}/visitors/${s.userId}/responses/submit`, { body: JSON.stringify(d), headers: s.headers, method: "POST" }));
|
|
1044
|
-
a.ok ? s.eventEmitFn(
|
|
1044
|
+
a.ok ? s.eventEmitFn(J.QuestionAnswered, { ...o, questionIndex: r, "survey.id": s.surveyId }) : a.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", a.error), await s.trackPromise(hn(s, "submitResponse", a.error)));
|
|
1045
1045
|
}, surveyId: 0, tabTitle: "", trackHistory: async ({ event: n, index: r, isNew: o = !1 }) => {
|
|
1046
1046
|
const i = t();
|
|
1047
1047
|
if (nt(i)) return;
|
|
1048
1048
|
const { cards: s, index: d } = i, a = r !== void 0 ? s[r] : s[d], u = { sid: i.surveyId, qid: a.name, action: n, vid: i.userId, eid: i.envId, isNew: o, responseGroupUid: i.responseGroupUid, previewKey: i.previewKey }, h = await i.trackPromise(lt(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`, { body: JSON.stringify(u), headers: i.headers, method: "POST" }));
|
|
1049
|
-
!h.ok && h.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", h.error), await i.trackPromise(
|
|
1049
|
+
!h.ok && h.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", h.error), await i.trackPromise(hn(i, "trackHistory", h.error)));
|
|
1050
1050
|
}, trackPromise: async (n) => {
|
|
1051
1051
|
const { resolveTrackedPromise: r } = t();
|
|
1052
1052
|
return e((o) => ({ unresolvedRequestCount: o.unresolvedRequestCount + 1 })), n.then((o) => (r(), o)).catch((o) => {
|
|
@@ -1058,20 +1058,20 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1058
1058
|
var _, f, T;
|
|
1059
1059
|
!c && !d && ((_ = s == null ? void 0 : s.setWidth) == null || _.call(s, Wr));
|
|
1060
1060
|
const [g, b, v] = Zr(u, h && !d, c);
|
|
1061
|
-
c ? (i(
|
|
1061
|
+
c ? (i(J.SurveyHeight, { name: J.SurveyHeight, contentFrameHeight: g, "survey.id": a }), i(J.SurveyWidth, { name: J.SurveyWidth, contentFrameWidth: b, "survey.id": a })) : ((f = s.setHeight) == null || f.call(s, g), e({ minScrollableHeight: v }), !d && m && ((T = s.setWidth) == null || T.call(s, b)));
|
|
1062
1062
|
}, 100);
|
|
1063
|
-
}, uploadingCardViewed: !1, uploadProgress: {}, useDesktopPrototype: void 0, useMobileStyling: !1, userId: "", viewDocument: window.document, viewedCardCount: 0 })), nt = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview || e.previewMode,
|
|
1063
|
+
}, uploadingCardViewed: !1, uploadProgress: {}, useDesktopPrototype: void 0, useMobileStyling: !1, userId: "", viewDocument: window.document, viewedCardCount: 0 })), nt = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview || e.previewMode, hn = async (e, t, n) => {
|
|
1064
1064
|
const { mode: r, userId: o, envId: i, apiURL: s, headers: d, viewDocument: a } = e, u = a.documentElement, h = { mode: r, screenWidth: window.screen.width, screenHeight: window.screen.height, clientWidth: u.clientWidth, clientHeight: u.clientHeight, location: window.location.href, language: window.navigator.language }, c = { action: t, err: { message: `${n == null ? void 0 : n.name} - ${n == null ? void 0 : n.message}`, stack: n == null ? void 0 : n.stack }, meta: h, vid: o, envId: i };
|
|
1065
1065
|
(await lt(`${s}/sdk/1/errors`, { method: "POST", headers: Object.assign({ "x-ul-error": window.btoa(`userleap-${Date.now()}-error`) }, d), body: JSON.stringify(c) })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
|
|
1066
|
-
}, wr = (e) => V("svg", { fill: "none", height: 24, viewBox: "0 0 24 24", width: 24, xmlns: "http://www.w3.org/2000/svg", ...e }, V("path", { d: "M17 10L12 15L7 10", stroke: "#0B2330", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 })), Cr = (e) => V("svg", { fill: "none", height: 10, viewBox: "0 0 10 10", width: 10, xmlns: "http://www.w3.org/2000/svg", ...e }, V("path", { d: "M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005", stroke: "white", strokeLinecap: "round", strokeWidth: 2 })), Mo = ({ visible: e }) => l("div", { className: "sprig-check-background", style: { opacity: e ? 1 : 0 }, children: l(Cr, { className: "sprig-check" }) }),
|
|
1067
|
-
const d =
|
|
1066
|
+
}, wr = (e) => V("svg", { fill: "none", height: 24, viewBox: "0 0 24 24", width: 24, xmlns: "http://www.w3.org/2000/svg", ...e }, V("path", { d: "M17 10L12 15L7 10", stroke: "#0B2330", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 })), Cr = (e) => V("svg", { fill: "none", height: 10, viewBox: "0 0 10 10", width: 10, xmlns: "http://www.w3.org/2000/svg", ...e }, V("path", { d: "M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005", stroke: "white", strokeLinecap: "round", strokeWidth: 2 })), Mo = ({ visible: e }) => l("div", { className: "sprig-check-background", style: { opacity: e ? 1 : 0 }, children: l(Cr, { className: "sprig-check" }) }), mn = "250ms", Oo = Et(({ animate: e, children: t, header: n, isOpen: r, onClick: o, showHeaderCheck: i }, s) => {
|
|
1067
|
+
const d = X(null), [a, u] = z(0), [h, c] = z("none"), [p, m] = z(!0);
|
|
1068
1068
|
return F(() => {
|
|
1069
1069
|
var b;
|
|
1070
1070
|
const g = (b = d.current) == null ? void 0 : b.getBoundingClientRect();
|
|
1071
1071
|
u(r && g ? g.height : 0);
|
|
1072
1072
|
}, [r]), F(() => {
|
|
1073
|
-
!a && r || !p || m(!1), c(e && !p ? `height ${
|
|
1074
|
-
}, [e, p, a, r]), l("div", { className: "sprig-accordion", ref: s, children: [l("button", { className: "sprig-accordion-header-container", onClick: o, type: "button", children: [l("div", { className: "sprig-header-label-container", children: [l("span", { className: "sprig-header-label", children: n }), l(Mo, { visible: i })] }), l(wr, { className: "sprig-caret", style: { transitionDuration: e ?
|
|
1073
|
+
!a && r || !p || m(!1), c(e && !p ? `height ${mn} ease` : "none");
|
|
1074
|
+
}, [e, p, a, r]), l("div", { className: "sprig-accordion", ref: s, children: [l("button", { className: "sprig-accordion-header-container", onClick: o, type: "button", children: [l("div", { className: "sprig-header-label-container", children: [l("span", { className: "sprig-header-label", children: n }), l(Mo, { visible: i })] }), l(wr, { className: "sprig-caret", style: { transitionDuration: e ? mn : "0", transform: r ? "rotate(-180deg)" : "none" } })] }), l("div", { className: "sprig-accordion-body", style: { transition: h, height: a }, children: l("div", { ref: d, children: t }) })] });
|
|
1075
1075
|
}), L = (...e) => e.filter(Boolean).join(" "), W = (e, t, n) => {
|
|
1076
1076
|
const r = t ? "--mobile" : "--desktop";
|
|
1077
1077
|
return `${e + r} ${e + (n ? `${r}_${n}` : "")} ${e}`;
|
|
@@ -1084,33 +1084,33 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1084
1084
|
});
|
|
1085
1085
|
});
|
|
1086
1086
|
return r && o.observe(r), () => {
|
|
1087
|
-
r && o.
|
|
1087
|
+
r && o.disconnect();
|
|
1088
1088
|
};
|
|
1089
1089
|
}, [e]), t;
|
|
1090
|
-
},
|
|
1091
|
-
const { cards: e, close: t, endCard: n, headers: r, index: o } = U((d) => ({ cards: d.cards, close: d.close, endCard: d.endCard, headers: d.headers, index: d.index, useMobileStyling: d.useMobileStyling })), i = e.length, s =
|
|
1090
|
+
}, gn = ({ plainText: e, richText: t, id: n, className: r, isHeader: o }) => t ? l("div", { className: r, dangerouslySetInnerHTML: { __html: t }, id: n }) : e ? l(o ? "h1" : "p", { className: r, id: n, children: e }) : null, Ho = () => {
|
|
1091
|
+
const { cards: e, close: t, endCard: n, headers: r, index: o } = U((d) => ({ cards: d.cards, close: d.close, endCard: d.endCard, headers: d.headers, index: d.index, useMobileStyling: d.useMobileStyling })), i = e.length, s = Ne(() => () => t(ke), [t]);
|
|
1092
1092
|
return ["email", "link"].includes(r["userleap-platform"]) || n && o + 1 === i ? null : l("div", { "aria-label": "Close button", className: "close-btn", onClick: s, onKeyPress: (d) => {
|
|
1093
1093
|
d.key === "Enter" && s();
|
|
1094
1094
|
}, role: "button", tabIndex: 0, children: l("svg", { fill: "none", height: "16px", viewBox: "0 0 13 13", width: "16px", xmlns: "http://www.w3.org/2000/svg", children: l("path", { d: "M2.54964 1.78369L1.78369 2.54964L5.73405 6.5L1.78369 10.4504L2.54964 11.2163L6.5 7.26595L10.4504 11.2163L11.2163 10.4504L7.26595 6.5L11.2163 2.54964L10.4504 1.78369L6.5 5.73405L2.54964 1.78369Z", fill: "#262136" }) }) });
|
|
1095
1095
|
}, ne = ({ message: e, properties: t }) => {
|
|
1096
|
-
const n =
|
|
1097
|
-
return l("div", { className: L("question-header-container", "sprig-header-container", o ? "sprig-border-bottom" : null), ref: n, children: [l("div", { className: "question-header-button-container", children: [l(
|
|
1098
|
-
},
|
|
1096
|
+
const n = X(null), r = t == null ? void 0 : t.captionText, o = Er();
|
|
1097
|
+
return l("div", { className: L("question-header-container", "sprig-header-container", o ? "sprig-border-bottom" : null), ref: n, children: [l("div", { className: "question-header-button-container", children: [l(gn, { className: "ul-question", id: "ul-question", isHeader: !0, plainText: e, richText: t == null ? void 0 : t.questionHtml }), l(Ho, {})] }), l(gn, { className: "ul-caption", id: "ul-caption", plainText: r, richText: t == null ? void 0 : t.captionHtml })] });
|
|
1098
|
+
}, vn = ({ buttonText: e = "View Prototype", handleClick: t }) => l("button", { className: "prototype-button", onClick: t, children: e }, "prototype-btn"), ce = ({ defaultBody: e, embeddedType: t = "prototype", properties: n }) => {
|
|
1099
1099
|
var c;
|
|
1100
1100
|
const { handleClickEmbedButton: r, hasViewedEmbed: o, headers: i, useDesktopPrototype: s } = U((p) => ({ handleClickEmbedButton: p.handleClickEmbedButton, hasViewedEmbed: p.hasViewedEmbed, headers: p.headers, useDesktopPrototype: p.useDesktopPrototype })), d = (n == null ? void 0 : n.conceptUrl) || ((c = n == null ? void 0 : n.consentDocument) == null ? void 0 : c.url), a = window.innerWidth < Kr, u = i["userleap-platform"], h = (p, m) => {
|
|
1101
1101
|
p.preventDefault(), r(m);
|
|
1102
1102
|
};
|
|
1103
1103
|
if (!s && a && !o && d && ["email", "link"].includes(u)) {
|
|
1104
|
-
if (t === "prototype") return l(
|
|
1104
|
+
if (t === "prototype") return l(vn, { handleClick: (p) => {
|
|
1105
1105
|
h(p, "question.prototype.click");
|
|
1106
1106
|
} });
|
|
1107
|
-
if (t === "pdf") return l(
|
|
1107
|
+
if (t === "pdf") return l(vn, { buttonText: (n == null ? void 0 : n.viewDocumentText) || "View Document", handleClick: (p) => {
|
|
1108
1108
|
h(p, "question.agreement.click");
|
|
1109
1109
|
} });
|
|
1110
1110
|
}
|
|
1111
1111
|
return e();
|
|
1112
1112
|
}, Sr = ({ isSelected: e, id: t, divId: n, themeColor: r }) => l("div", { "aria-checked": e, "aria-labelledby": `label-${t}`, className: "select-checkbox", id: n, role: "checkbox", style: e ? { backgroundColor: r, borderColor: r, boxShadow: "none" } : {}, tabIndex: 0, children: e && l(Cr, {}) }), jr = (e, t) => {
|
|
1113
|
-
const n =
|
|
1113
|
+
const n = X(0);
|
|
1114
1114
|
return () => {
|
|
1115
1115
|
if (e.current) {
|
|
1116
1116
|
const r = e.current;
|
|
@@ -1137,7 +1137,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1137
1137
|
const D = a ? `radio-${d}` : `checkbox-${d}`, y = o || _ ? [He] : [], E = [...h ? [Ir] : [], ...y], k = r ? { "aria-labelledby": `label-${d}` } : { "aria-label": e };
|
|
1138
1138
|
return l("div", { className: L(W("choice", u), ...E), id: `choice-div-${d}`, style: { ...n, ...h ? { borderColor: Se } : {} }, ...j, children: [l("div", { className: L("choice-label-container"), children: [a ? l("div", { ...k, className: L("select-radio", ...y), id: D, role: "radio", tabIndex: 0 }) : l(Sr, { divId: D, id: d, isSelected: o, themeColor: t }), r && l("label", { className: L(W("select-label", u)), htmlFor: D, id: `label-${d}`, children: r })] }), c && o && l("div", { className: L("choice-text-entry-container", ...y), children: l(Ao, { onTextChange: (I) => T({ isSelected: o, userText: I }), promptText: m || "Please specify", textValue: s, useMobileStyling: u }) })] });
|
|
1139
1139
|
}, Ao = ({ promptText: e, textValue: t, onTextChange: n, useMobileStyling: r }) => {
|
|
1140
|
-
const o =
|
|
1140
|
+
const o = X(null), { update: i } = U((d) => ({ update: d.update })), s = jr(o, () => i());
|
|
1141
1141
|
return F(() => (s(), o.current && o.current.focus(), () => {
|
|
1142
1142
|
i();
|
|
1143
1143
|
}), []), l("textarea", { "aria-label": e, "aria-multiline": "true", "aria-placeholder": e, className: L(W("choice-text-input", r)), "data-gramm": "false", maxLength: 5e3, name: "text", onChange: (d) => {
|
|
@@ -1147,9 +1147,9 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1147
1147
|
}, onKeyPress: (d) => {
|
|
1148
1148
|
d.stopPropagation();
|
|
1149
1149
|
}, placeholder: e, ref: o, role: "textbox", rows: 1, value: t });
|
|
1150
|
-
},
|
|
1151
|
-
let r = e.getElementById(
|
|
1152
|
-
r || (r = e.createElement("style"), o = !0), r.tagName.toLowerCase() === "style" && (r.id =
|
|
1150
|
+
}, fn = "ul-select-style-element", He = "ul-select-active-dynamic-style", Ir = "ul-select-error-dynamic-style", Bo = (e, t, n) => {
|
|
1151
|
+
let r = e.getElementById(fn), o = !1;
|
|
1152
|
+
r || (r = e.createElement("style"), o = !0), r.tagName.toLowerCase() === "style" && (r.id = fn, n && (r.nonce = n), r.textContent = qo(t), o && e.head.appendChild(r));
|
|
1153
1153
|
}, qo = (e) => `
|
|
1154
1154
|
.${He} {
|
|
1155
1155
|
border-color: ${e};
|
|
@@ -1164,7 +1164,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1164
1164
|
`, ue = ({ children: e }) => l("div", { className: "sprig-question-body", children: e }), ge = ({ children: e }) => {
|
|
1165
1165
|
const t = Er();
|
|
1166
1166
|
return l("div", { className: L("sprig-question-footer-container", t ? "sprig-border-top" : null), children: e });
|
|
1167
|
-
}, ye = (e) => (e == null ? void 0 : e.buttonText) || "Next",
|
|
1167
|
+
}, ye = (e) => (e == null ? void 0 : e.buttonText) || "Next", Pt = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Vo = ({ className: e, message: t, next: n, properties: r, questionId: o, type: i }) => {
|
|
1168
1168
|
const { useMobileStyling: s, border: d } = U((y) => ({ useMobileStyling: y.useMobileStyling, border: y.border })), [a, u] = z(!1), [h, c] = z(""), [p, m] = z(!1), g = r == null ? void 0 : r.collectName, b = (r == null ? void 0 : r.nameLabelText) || "Full Name", v = (r == null ? void 0 : r.consentText) || "I agree to the stated conditions", _ = (r == null ? void 0 : r.submitButtonText) || "Submit", f = !!h.trim(), T = a && (!g || f), S = (y, E = !1) => {
|
|
1169
1169
|
y.preventDefault(), y.stopPropagation();
|
|
1170
1170
|
let k = null;
|
|
@@ -1181,7 +1181,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1181
1181
|
y.currentTarget.style.borderColor = p && !f ? Se : bt;
|
|
1182
1182
|
}, D = () => l(ge, { children: [l("div", { className: "sprig-stretch", children: [l(Ge, { allowTextEntry: !1, border: d, error: p && !a, id: "consent", isRadio: !1, isSelected: a, label: v, onUserInputChanged: ({ selected: y }) => {
|
|
1183
1183
|
y !== a && u(!a);
|
|
1184
|
-
}, useMobileStyling: s }), g && l("input", { "aria-label": b, "aria-placeholder": b, className: L(W("ul-consent-legal__name-input", s)), "data-gramm": "false", maxLength: 250, name: "name", onBlur: j, onFocus: x, onInput: w, placeholder: b, style: p && !f ? { borderColor: Se } : {}, tabIndex: 0, value: h })] }), l("div", { className: "ul-card__button-wrapper ul-card-vertical__button-wrapper", children: [l(Y, { className: T ? "" : "sprig-button-disabled", onClick: S, children: _ }), r.required === !1 && l("button", { className: "ul-card-skip__button", onClick: (y) => S(y, !0), children:
|
|
1184
|
+
}, useMobileStyling: s }), g && l("input", { "aria-label": b, "aria-placeholder": b, className: L(W("ul-consent-legal__name-input", s)), "data-gramm": "false", maxLength: 250, name: "name", onBlur: j, onFocus: x, onInput: w, placeholder: b, style: p && !f ? { borderColor: Se } : {}, tabIndex: 0, value: h })] }), l("div", { className: "ul-card__button-wrapper ul-card-vertical__button-wrapper", children: [l(Y, { className: T ? "" : "sprig-button-disabled", onClick: S, children: _ }), r.required === !1 && l("button", { className: "ul-card-skip__button", onClick: (y) => S(y, !0), children: Pt(r) })] })] });
|
|
1185
1185
|
return l("div", { className: L(e, "ul-card__consent-legal", "fade-in-transition"), children: [l(ne, { message: t, properties: { questionHtml: r.questionHtml } }), l(Z, { children: [r != null && r.richTextBody ? l(ue, { children: l("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: r != null && r.richTextBody ? { __html: r.richTextBody } : void 0, id: "ul-card__consent-legal-body-container" }) }) : null, l(ce, { properties: r, defaultBody: D, embeddedType: "pdf" })] })] }, o);
|
|
1186
1186
|
}, zo = ({ activeValue: e, border: t, icon: n, isPressed: r, onSubmit: o, range: i, scaleLabelType: s, setActiveValue: d, setIsPressed: a, useMobileStyling: u, value: h, viewDocument: c }) => {
|
|
1187
1187
|
const p = `option-${h}`, m = s === "number", g = s === "star", b = m && h === e, [v, _] = h <= e && g || h === e ? r ? [t, 1] : [t, 0.3] : ["", 1];
|
|
@@ -1228,7 +1228,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1228
1228
|
const t = getComputedStyle(e);
|
|
1229
1229
|
return parseFloat(t.marginTop) + parseFloat(t.marginBottom) + (parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth));
|
|
1230
1230
|
}, Wo = ({ columns: e, onSelect: t, options: n, selectedOptions: r }) => {
|
|
1231
|
-
const o =
|
|
1231
|
+
const o = X([]), { border: i, useMobileStyling: s } = U((p) => ({ border: p.border, useMobileStyling: p.useMobileStyling })), d = n.findIndex((p) => r[p.id] === null), [a, u] = z(d), h = ze((p, m) => {
|
|
1232
1232
|
t(p, m);
|
|
1233
1233
|
const g = a + 1, b = n[g];
|
|
1234
1234
|
if (b && r[b.id] === null) {
|
|
@@ -1247,7 +1247,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1247
1247
|
}, [i, e, a, h, r, s]);
|
|
1248
1248
|
return l("div", { children: n.map((p, m) => c(m, p)) });
|
|
1249
1249
|
}, Zo = ({ columns: e, onSelect: t, options: n, selectedOptions: r }) => {
|
|
1250
|
-
const { border: o, useMobileStyling: i } = U((c) => ({ border: c.border, useMobileStyling: c.useMobileStyling })), s = n.length, d = e.length, a =
|
|
1250
|
+
const { border: o, useMobileStyling: i } = U((c) => ({ border: c.border, useMobileStyling: c.useMobileStyling })), s = n.length, d = e.length, a = X(null), [u, h] = z(!1);
|
|
1251
1251
|
return F(() => {
|
|
1252
1252
|
const c = a.current, p = new ResizeObserver((m) => {
|
|
1253
1253
|
window.requestAnimationFrame(() => {
|
|
@@ -1376,7 +1376,7 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1376
1376
|
};
|
|
1377
1377
|
return l("form", { className: L(e, "ul-card--nps", "fade-in-transition"), children: [l(ne, { message: n, properties: r }), l(ce, { properties: r, defaultBody: () => l(Z, { children: [l(ue, { children: [l("div", { className: "ul-card--nps__numbers", children: p }), l("div", { className: "ul-card--nps__labels", children: [l("span", { children: h }), l("span", { children: c })] })] }), !r.required && l(ge, { children: l("div", { className: "ul-vertical-centered-container", children: l(Y, { onClick: m, children: ye(r) }) }) })] }) })] }, i);
|
|
1378
1378
|
}, ei = ({ className: e, message: t, next: n, properties: r, questionId: o, type: i }) => {
|
|
1379
|
-
const { border: s, useMobileStyling: d, update: a } = U((S) => ({ border: S.border, useMobileStyling: S.useMobileStyling, update: S.update })), [u, h] = z(""), c =
|
|
1379
|
+
const { border: s, useMobileStyling: d, update: a } = U((S) => ({ border: S.border, useMobileStyling: S.useMobileStyling, update: S.update })), [u, h] = z(""), c = X(null), p = u.trim(), m = r.required === !0 && !p, g = jr(c, () => a()), b = (S) => {
|
|
1380
1380
|
g(), S.preventDefault(), S.stopPropagation(), h(S.currentTarget.value);
|
|
1381
1381
|
}, v = (S) => {
|
|
1382
1382
|
S.preventDefault(), S.stopPropagation(), n({ value: u, questionId: o, type: i });
|
|
@@ -1386,9 +1386,9 @@ const So = ko(Eo), { useSyncExternalStoreWithSelector: jo } = So, cn = (e) => {
|
|
|
1386
1386
|
S.currentTarget.style.borderColor = bt;
|
|
1387
1387
|
};
|
|
1388
1388
|
return l("form", { className: L(e, "ul-card--text", "fade-in-transition"), id: "text-form", children: [l(ne, { message: t, properties: r }), l(ce, { defaultBody: () => l("div", { className: "ul-card-text", children: [l(ue, { children: l("div", { className: "ul-card-text__container", children: l("textarea", { "aria-labelledby": "ul-question", "aria-describedby": "ul-caption", "aria-multiline": "true", "aria-placeholder": _, className: L(W("ul-card-text__input", d)), "data-gramm": "false", maxLength: 5e3, name: "text", onBlur: T, onChange: b, onFocus: f, placeholder: _, ref: c, role: "textbox", tabIndex: 0 }) }) }), l(ge, { children: [l(Y, { disabled: m, onClick: v, children: ye(r) }), r.footerHtml && l("div", { className: "footer", dangerouslySetInnerHTML: { __html: r.footerHtml } })] })] }), properties: r })] }, o);
|
|
1389
|
-
}, gt = 1, Dr = 2, Rr = 3, Fe = (e) => e.type === "av_permission",
|
|
1390
|
-
}, passthroughData: void 0, recordingMediaTypes: void 0, screenPermissionRequested: !1, type: void 0 }, ie = yr((e) => ({ ...
|
|
1391
|
-
e(
|
|
1389
|
+
}, gt = 1, Dr = 2, Rr = 3, Fe = (e) => e.type === "av_permission", _n = (e) => e.type === "screen_permission", Nr = (e, t) => e === void 0 ? gt : e ? ((n, r) => !(Fe(r) ? r.permissionDescriptors : []).includes("camera") || n.getVideoTracks().length > 0)(e, t) ? Rr : gt : Dr, bn = { avStream: null, currentPage: null, mediaRecordingUids: null, nextQuestion: () => {
|
|
1390
|
+
}, passthroughData: void 0, recordingMediaTypes: void 0, screenPermissionRequested: !1, type: void 0 }, ie = yr((e) => ({ ...bn, reset: () => {
|
|
1391
|
+
e(bn);
|
|
1392
1392
|
}, updatePage: (t) => {
|
|
1393
1393
|
e(t);
|
|
1394
1394
|
} }));
|
|
@@ -1416,7 +1416,7 @@ function ft({ status: e }) {
|
|
|
1416
1416
|
a.value.taskDurationMillisecond = u, r && (a.value.mediaRecordingUids = r), o(), t(a);
|
|
1417
1417
|
} });
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Dt({ pages: e, setIsRequestingPermission: t }) {
|
|
1420
1420
|
const { recorderEventEmitter: n, eventEmitFn: r } = U.getState(), { updatePage: o, currentPage: i, recordingMediaTypes: s, screenPermissionRequested: d } = ie.getState();
|
|
1421
1421
|
if (!i) return;
|
|
1422
1422
|
const a = e.indexOf(i);
|
|
@@ -1440,7 +1440,7 @@ function Pt({ pages: e, setIsRequestingPermission: t }) {
|
|
|
1440
1440
|
return;
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L(Lr, "ul_recorded-task-inset-spacing"), Ke = L("ul-horizontal-button-container", "ul-horizontal-button-container-left"), Ur = ({ richTextBody: e }) => l("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: e }, id: "ul-task-detail-container" }), Ye = ({ required: e, skipButtonText: t, bottom: n = !1 }) => e ? null : l(Y, { className: L(n && "ul-skip-button-below", "ul-button-inactive"), onClick: ft.bind(null, { status: "abandoned" }), children: t || "Skip" }),
|
|
1443
|
+
const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L(Lr, "ul_recorded-task-inset-spacing"), Ke = L("ul-horizontal-button-container", "ul-horizontal-button-container-left"), Ur = ({ richTextBody: e }) => l("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: e }, id: "ul-task-detail-container" }), Ye = ({ required: e, skipButtonText: t, bottom: n = !1 }) => e ? null : l(Y, { className: L(n && "ul-skip-button-below", "ul-button-inactive"), onClick: ft.bind(null, { status: "abandoned" }), children: t || "Skip" }), Rt = (e) => {
|
|
1444
1444
|
const { avStream: t, captureStream: n, recordingMediaTypes: r, updatePage: o } = ie.getState(), i = (r == null ? void 0 : r.includes("audio")) || (r == null ? void 0 : r.includes("video"));
|
|
1445
1445
|
F(() => {
|
|
1446
1446
|
const s = setInterval(() => {
|
|
@@ -1450,15 +1450,15 @@ const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L
|
|
|
1450
1450
|
}, [t, n, i, e, r, o]);
|
|
1451
1451
|
}, ti = ({ content: e, pages: t, required: n }) => {
|
|
1452
1452
|
const { buttonText: r, skipButtonText: o, taskDetail: i } = e;
|
|
1453
|
-
return
|
|
1453
|
+
return Rt(t), l("div", { className: "ul-task-page", children: [i && l(Ur, { richTextBody: i }), l("div", { className: Ke, children: [l(Y, { onClick: Dt.bind(null, { pages: t }), children: r }), l(Ye, { required: n, skipButtonText: o })] })] }, "start-task");
|
|
1454
1454
|
}, ni = ({ content: e, pages: t, properties: n }) => {
|
|
1455
1455
|
const { buttonText: r, skipButtonText: o } = e;
|
|
1456
|
-
|
|
1456
|
+
Rt(t);
|
|
1457
1457
|
const i = l(ce, { properties: n, defaultBody: () => l("div", { className: Ke, children: [l(Y, { className: "ul-complete-task-button", onClick: ft.bind(null, { status: "completed" }), children: r }), l(Y, { className: L("ul-button-inactive"), onClick: ft.bind(null, { status: "given.up" }), children: o })] }) });
|
|
1458
1458
|
return l("div", { className: "ul-task-page", children: [e.taskDetail && l(Ur, { richTextBody: e.taskDetail }), i] }, "complete-task");
|
|
1459
1459
|
}, ri = ({ content: e, pages: t, required: n }) => {
|
|
1460
1460
|
const { buttonText: r, skipButtonText: o } = e, [i] = U((a) => [a.tabTitle]), [s, d] = z(!1);
|
|
1461
|
-
return l("div", { children: [l("div", { className: Or, children: [l("p", { style: { marginTop: "auto" }, children: e.selectTabText }), l("div", { className: "ul-select-tab-container", children: l("p", { className: Mr, children: i }) })] }), l("div", { className: n ? "" : Ke, children: [l(Y, { disabled: s, onClick:
|
|
1461
|
+
return l("div", { children: [l("div", { className: Or, children: [l("p", { style: { marginTop: "auto" }, children: e.selectTabText }), l("div", { className: "ul-select-tab-container", children: l("p", { className: Mr, children: i }) })] }), l("div", { className: n ? "" : Ke, children: [l(Y, { disabled: s, onClick: Dt.bind(null, { pages: t, setIsRequestingPermission: d }), children: r }), l(Ye, { required: n, skipButtonText: o })] })] });
|
|
1462
1462
|
}, oi = ({ content: e }) => l("div", { className: L(Lr, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"), dangerouslySetInnerHTML: { __html: e.svg } }, "ul-permission-request-graphic"), ii = ({ content: e, pages: t, required: n }) => {
|
|
1463
1463
|
const { permissionDeniedHeadline: r, permissionDeniedBody: o, skipButtonText: i, tryAgainButtonText: s } = e, d = Fe(t[0]) ? t[0] : null;
|
|
1464
1464
|
return F(() => {
|
|
@@ -1471,7 +1471,7 @@ const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L
|
|
|
1471
1471
|
t && (t.srcObject = e || null);
|
|
1472
1472
|
} }), ai = ({ content: e, pages: t, required: n }) => {
|
|
1473
1473
|
const { skipButtonText: r } = e, { avStream: o } = ie.getState();
|
|
1474
|
-
return
|
|
1474
|
+
return Rt(t), l("div", { children: [l(si, { stream: o }), l("div", { className: "ul-vertical-button-container-center", children: [l(Y, { onClick: Dt.bind(null, { pages: t }), children: e.buttonText }), l(Ye, { bottom: !0, required: n, skipButtonText: r })] })] });
|
|
1475
1475
|
}, li = ({ properties: e }) => {
|
|
1476
1476
|
const { pages: t, required: n } = e, { avStream: r, currentPage: o } = ie.getState();
|
|
1477
1477
|
if (o === void 0) return null;
|
|
@@ -1501,7 +1501,7 @@ const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L
|
|
|
1501
1501
|
const { permissionDescriptors: A } = H, G = A == null ? void 0 : A.includes("microphone"), $ = A == null ? void 0 : A.includes("camera");
|
|
1502
1502
|
G && B.push("audio"), $ && B.push("video"), (k != null && k.active && !$ || k != null && k.active && I) && y++;
|
|
1503
1503
|
}
|
|
1504
|
-
|
|
1504
|
+
_n(b[y]) && N && (y++, j.emit("begin.recording", { "recording.media.types": B, "start.recording.callback": (A) => w({ mediaRecordingUids: A }) })), w({ currentPage: b[y], avStream: k, screenPermissionRequested: N, nextQuestion: S, type: O, passthroughData: D, recordingMediaTypes: B, captureStream: C });
|
|
1505
1505
|
} });
|
|
1506
1506
|
const E = b[y];
|
|
1507
1507
|
return E.type === "av_permission" && vt({ currentPage: E, pages: b }), E;
|
|
@@ -1510,7 +1510,7 @@ const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L
|
|
|
1510
1510
|
}, pages: t.pages, responseGroupUid: s, userId: d }));
|
|
1511
1511
|
let p = c.headline, m = c.captionText;
|
|
1512
1512
|
const g = Nr(h, c);
|
|
1513
|
-
return
|
|
1513
|
+
return _n(c) && u && (p = c.permissionDeniedHeadline, m = c.permissionDeniedCaptionText), Fe(c) && g === Rr && (p = c.permissionGrantedHeadline, m = c.permissionGrantedCaptionText), l("div", { className: L(e, "ul-center-horizontally", "fade-in-transition"), children: [l(ne, { message: p, properties: { captionText: m } }), l(ue, { children: l(li, { properties: t }) })] });
|
|
1514
1514
|
}, ci = { "{{user_id}}": "externalUserId", "{{email}}": "email" }, ui = ({ className: e, message: t, next: n, properties: r, questionId: o, type: i }) => {
|
|
1515
1515
|
const { visitorAttributes: s } = U((p) => ({ visitorAttributes: p.visitorAttributes })), d = (p, m = !1) => {
|
|
1516
1516
|
n({ value: m ? { skipped: !0 } : void 0, questionId: o, type: i });
|
|
@@ -1534,7 +1534,7 @@ const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L
|
|
|
1534
1534
|
const v = g.slice(0, g.indexOf("?")), _ = g.slice(g.indexOf("?") + 1).split("&").map((f) => f.split("=")).filter((f) => !b.includes(f[1]));
|
|
1535
1535
|
return _.length === 0 ? v : `${v}?${_.map((f) => f.join("=")).join("&")}`;
|
|
1536
1536
|
})(r && r.buttonUrl, s);
|
|
1537
|
-
return l("div", { className: L(e, "ul-card__text-url-prompt", "fade-in-transition"), children: [l(ne, { message: t, properties: { questionHtml: r.questionHtml } }), l(ue, { children: (h = r == null ? void 0 : r.richTextBody, c = r == null ? void 0 : r.body, h ? l("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: h }, id: "ul-card__text-url-body-container" }) : c ? l("div", { className: "ul-rich-text-body", id: "ul-card__text-url-body-container", children: (c ? c.split(/\n\s*\n/g) : []).map((p, m) => l("p", { children: p }, m)) }) : null) }), l(ce, { defaultBody: () => l(ge, { children: l("div", { className: "ul-card-button-group", children: [l("a", { className: "ul-card-text__button ul-card__text-url-prompt-button", href: u, id: "ul-card-text__button", onClick: d, onKeyPress: a, rel: "noreferrer", role: u ? "link" : "button", tabIndex: 0, target: "_blank", children: ye(r) }), r.required === !1 && l("button", { className: "ul-card-skip__button", onClick: (p) => d(0, !0), children:
|
|
1537
|
+
return l("div", { className: L(e, "ul-card__text-url-prompt", "fade-in-transition"), children: [l(ne, { message: t, properties: { questionHtml: r.questionHtml } }), l(ue, { children: (h = r == null ? void 0 : r.richTextBody, c = r == null ? void 0 : r.body, h ? l("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: h }, id: "ul-card__text-url-body-container" }) : c ? l("div", { className: "ul-rich-text-body", id: "ul-card__text-url-body-container", children: (c ? c.split(/\n\s*\n/g) : []).map((p, m) => l("p", { children: p }, m)) }) : null) }), l(ce, { defaultBody: () => l(ge, { children: l("div", { className: "ul-card-button-group", children: [l("a", { className: "ul-card-text__button ul-card__text-url-prompt-button", href: u, id: "ul-card-text__button", onClick: d, onKeyPress: a, rel: "noreferrer", role: u ? "link" : "button", tabIndex: 0, target: "_blank", children: ye(r) }), r.required === !1 && l("button", { className: "ul-card-skip__button", onClick: (p) => d(0, !0), children: Pt(r) })] }) }), properties: r })] }, o);
|
|
1538
1538
|
var h, c;
|
|
1539
1539
|
}, pi = ({ className: e, questionId: t }) => {
|
|
1540
1540
|
const { border: n, destroy: r, endCard: o, forceBrandedLogo: i } = U((a) => ({ border: a.border, destroy: a.destroy, endCard: a.endCard, forceBrandedLogo: a.forceBrandedLogo }));
|
|
@@ -1545,7 +1545,7 @@ const Lr = "ul-permission-graphics-container", Mr = "ul-permission-body", Or = L
|
|
|
1545
1545
|
}, [r, i]);
|
|
1546
1546
|
const s = o && o.subheader ? l("p", { className: "ul-caption", children: o.subheader }) : null, d = o && o.headline ? o.headline : "";
|
|
1547
1547
|
return l("div", { className: L(e, "ul-card--thanks", "fade-in-transition"), children: l("div", { children: l("div", { className: "ul-card--thanks-content", children: [l("div", { className: "ul-thanks-check", children: l("svg", { "aria-labelledby": "title", fill: "none", height: "99", viewBox: "0 0 81 99", width: "81", xmlns: "http://www.w3.org/2000/svg", children: [l("path", { clipRule: "evenodd", d: "M40.5 77C60.9345 77 77.5 60.4345 77.5 40C77.5 19.5655 60.9345 3 40.5 3C20.0655 3 3.5 19.5655 3.5 40C3.5 60.4345 20.0655 77 40.5 77ZM80.5 40C80.5 62.0914 62.5914 80 40.5 80C18.4086 80 0.5 62.0914 0.5 40C0.5 17.9086 18.4086 0 40.5 0C62.5914 0 80.5 17.9086 80.5 40Z", fill: n, fillRule: "evenodd" }), l("path", { clipRule: "evenodd", d: "M55.025 22.9046C55.6299 23.4705 55.6616 24.4198 55.0956 25.0247C54.8724 25.2634 54.6109 25.5285 54.3157 25.8277C52.2547 27.9168 48.5549 31.667 44.8135 39.6658C43.2818 42.9406 42.0864 45.8386 41.0823 48.2729C40.6539 49.3116 40.2603 50.2659 39.8902 51.129C39.287 52.5359 38.7248 53.7508 38.1744 54.625C37.8997 55.0613 37.5806 55.4905 37.2017 55.8245C36.8201 56.1607 36.2613 56.5 35.5457 56.5C34.6742 56.5 34.0892 55.9692 33.7774 55.6083C33.4502 55.2296 33.1752 54.7511 32.9396 54.301C32.7305 53.9013 32.5088 53.4367 32.2797 52.9565C32.2429 52.8794 32.2059 52.8019 32.1688 52.7243C31.8942 52.1499 31.5959 51.534 31.2537 50.8868C29.8886 48.305 27.8539 45.2878 24.2343 43.1382C23.522 42.7152 23.2875 41.7949 23.7105 41.0826C24.1335 40.3703 25.0539 40.1358 25.7662 40.5588C30.0556 43.1062 32.4149 46.6647 33.9058 49.4845C34.2776 50.1876 34.5973 50.8487 34.8753 51.4302C34.9147 51.5124 34.9529 51.5926 34.9902 51.6707C35.2222 52.1567 35.4164 52.5637 35.5978 52.9102C35.6151 52.9434 35.6321 52.9754 35.6485 53.0061C36.0565 52.3531 36.5341 51.3434 37.133 49.9468C37.4781 49.1418 37.8572 48.2229 38.2761 47.2074C39.2886 44.7532 40.5339 41.7347 42.0961 38.3948C46.0591 29.9221 50.0641 25.8648 52.1535 23.7482C52.4423 23.4556 52.6944 23.2002 52.9048 22.9753C53.4708 22.3703 54.42 22.3387 55.025 22.9046ZM35.1994 53.5892C35.1994 53.5892 35.2 53.5888 35.2012 53.5879C35.2 53.5889 35.1994 53.5893 35.1994 53.5892ZM36.0666 53.6682C36.0732 53.674 36.0765 53.6775 36.0765 53.6777C36.0765 53.678 36.0732 53.6751 36.0666 53.6682Z", fill: n, fillRule: "evenodd" }), l("path", { d: "M69.5 97C69.5 98.1046 56.2924 99 40 99C23.7076 99 10.5 98.1046 10.5 97C10.5 95.8954 23.7076 95 40 95C56.2924 95 69.5 95.8954 69.5 97Z", fill: "black", fillOpacity: "0.2" })] }) }), l(ne, { message: d }), s] }) }) }, t);
|
|
1548
|
-
}, _e = "https://cdn.sprig.com", R = { document: void 0, videojs: void 0 },
|
|
1548
|
+
}, _e = "https://cdn.sprig.com", R = { document: void 0, videojs: void 0 }, Nt = (e) => e + "-loading-spiner", K = "hidden", yn = ".m3u8", rt = "questionId", ot = "ul-video-recorder-camera-off-button", it = "ul-recording-in-session", hi = [{ type: "link", content: `${_e}/dependencies/videojs-record-4.5.0.min.css` }, { type: "script", content: `${_e}/dependencies/RecordRTC-5.6.2.js` }, { type: "script", content: `${_e}/dependencies/adapter.8.0.0.min.js` }, { type: "script", content: `${_e}/dependencies/videojs-record-4.5.0.min.js` }, { type: "script", content: `${_e}/userleap-web-upchunk-v2.2.2.js` }], Hr = [{ type: "link", content: `${_e}/dependencies/video-js-7.18.0.min.css` }, { type: "script", content: `${_e}/dependencies/video-js-7.18.0.min.js` }, { type: "style", content: `/* progress control styles */
|
|
1549
1549
|
.video-js .vjs-control {
|
|
1550
1550
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
1551
1551
|
}
|
|
@@ -2202,8 +2202,8 @@ span.ul-button-text {
|
|
|
2202
2202
|
.vjs-poster {
|
|
2203
2203
|
background-size: cover;
|
|
2204
2204
|
}
|
|
2205
|
-
` }], Ar = "-video-player",
|
|
2206
|
-
let oe,
|
|
2205
|
+
` }], Ar = "-video-player", xn = "-secondary-video-player", kn = "-video-recorder";
|
|
2206
|
+
let oe, wn;
|
|
2207
2207
|
const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, metadata: i }) => {
|
|
2208
2208
|
const s = R.document.documentElement;
|
|
2209
2209
|
if (!r || !o) return;
|
|
@@ -2227,7 +2227,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2227
2227
|
}).catch(function(n) {
|
|
2228
2228
|
console.log(n + " failed to load");
|
|
2229
2229
|
});
|
|
2230
|
-
},
|
|
2230
|
+
}, Cn = (e, t, n) => {
|
|
2231
2231
|
if (t === "start" && (e.style.visibility = "visible"), t === "none") e.style.visibility = K;
|
|
2232
2232
|
else if (t === "success") e.style.visibility = K, e.innerHTML = "Upload succeeded!";
|
|
2233
2233
|
else {
|
|
@@ -2267,7 +2267,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2267
2267
|
i == null || i.playbackRate(e.playbackRate());
|
|
2268
2268
|
}), e.addChild(e.audioPlayerPlaceholder, {}, 1), s.addChild(t), e.addChild(s), r && r(e);
|
|
2269
2269
|
}, gi = (e, t, n, r, o, i, s, d = !1) => {
|
|
2270
|
-
|
|
2270
|
+
wn = Date.now();
|
|
2271
2271
|
const a = We(t, { controls: !1, bigPlayButton: !1, fluid: !1, width: 1280, height: 720, playsinline: !0, plugins: { record: { audio: !0, video: { mandatory: { minWidth: 1280, minHeight: 720 } }, frameWidth: 1280, frameHeight: 720, maxLength: 600, autoMuteDevice: !0 } } });
|
|
2272
2272
|
if (!a) return;
|
|
2273
2273
|
a.payload = n;
|
|
@@ -2275,7 +2275,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2275
2275
|
let g;
|
|
2276
2276
|
const b = (E) => {
|
|
2277
2277
|
const k = ot, I = ot + "-audio-only";
|
|
2278
|
-
|
|
2278
|
+
Cn(a.uploadProgressLabel, "none"), oe && oe.startTime >= wn && oe.abort();
|
|
2279
2279
|
const N = R.document.getElementById("ul-camera-button");
|
|
2280
2280
|
E ? (a.children()[0].classList.add("vjs-hidden"), T.removeClass(k), T.addClass(I), N.innerHTML = ee.TurnOnCamera, a.audioPlayerPlaceholder.removeClass("vjs-hidden"), g == null || g.getTracks().forEach((C) => {
|
|
2281
2281
|
C.stop();
|
|
@@ -2344,8 +2344,8 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2344
2344
|
const he = await (async () => {
|
|
2345
2345
|
const re = await fetch(`${k}/2/environments/integrations/upload`, { method: "POST", cache: "no-cache", headers: { "Content-Type": "application/json" }, body: JSON.stringify(pe) });
|
|
2346
2346
|
if (re.ok) {
|
|
2347
|
-
const
|
|
2348
|
-
return I && I(M.UPLOAD_STARTED, { [M.UPLOAD_ID]:
|
|
2347
|
+
const Lt = await re.json();
|
|
2348
|
+
return I && I(M.UPLOAD_STARTED, { [M.UPLOAD_ID]: Lt.upload.id, [M.MEDIA_TYPE]: $, [M.MEDIA_RECORDING_UID]: Q }), Lt.upload.url;
|
|
2349
2349
|
}
|
|
2350
2350
|
return I && I(M.ERROR, { type: M.OTHER, response: re }), se(new Error("failed to get upload response with url"), "finishRecord", k, C, B, A), null;
|
|
2351
2351
|
})();
|
|
@@ -2357,7 +2357,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2357
2357
|
N(E.uploadProgressLabel, "success"), I && I(M.UPLOAD_FINISHED, { [M.MEDIA_RECORDING_UID]: Q }), me({ event: "Video Upload Success", apiBase: k, headers: C, visitorId: B, envId: A, metadata: { mediaRecordingUid: Q, questionId: G, responseGroupUid: O, surveyId: H, mediaType: $, url: he, elapsedMs: oe.startTime && Date.now() - oe.startTime } });
|
|
2358
2358
|
}));
|
|
2359
2359
|
});
|
|
2360
|
-
})(a, r, o,
|
|
2360
|
+
})(a, r, o, Cn, s);
|
|
2361
2361
|
const y = [{ name: "microphone" }];
|
|
2362
2362
|
!a.cameraOff && y.push({ name: "camera" }), Promise.all(y.map((E) => {
|
|
2363
2363
|
var k;
|
|
@@ -2375,7 +2375,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2375
2375
|
const t = R.document.createElement("div");
|
|
2376
2376
|
return t.className = "ul-video-container", t.appendChild(((n) => {
|
|
2377
2377
|
const r = R.document.createElement("div");
|
|
2378
|
-
return r.className = "ul-video-player-loading", r.id =
|
|
2378
|
+
return r.className = "ul-video-player-loading", r.id = Nt(n), ["first", "second", "third", "fourth"].map((o) => {
|
|
2379
2379
|
const i = R.document.createElement("div");
|
|
2380
2380
|
i.className = o, r.appendChild(i);
|
|
2381
2381
|
}), r;
|
|
@@ -2395,15 +2395,15 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2395
2395
|
return R.document.addEventListener("securitypolicyviolation", (h) => {
|
|
2396
2396
|
se(new Error(`Voice & Video feature violates ${h.violatedDirective} web page CSP policies for the question player.`), "playerDeviceError", o, {});
|
|
2397
2397
|
}), Br(Hr, () => {
|
|
2398
|
-
R.document.getElementById(
|
|
2398
|
+
R.document.getElementById(Nt(a)).remove(), _t(a, u);
|
|
2399
2399
|
const h = { playsinline: !0, playbackRates: [0.5, 1, 1.5, 2], fill: !0 };
|
|
2400
2400
|
try {
|
|
2401
|
-
const c = e +
|
|
2401
|
+
const c = e + xn;
|
|
2402
2402
|
_t(c, u);
|
|
2403
2403
|
const p = We(a, h), m = We(c, { muted: !0, ...h });
|
|
2404
2404
|
if (!p || !m) return;
|
|
2405
2405
|
((v, _, f) => {
|
|
2406
|
-
v.addClass(`ul${
|
|
2406
|
+
v.addClass(`ul${xn}`);
|
|
2407
2407
|
const T = new (R.videojs.getComponent("Component"))(v);
|
|
2408
2408
|
_ && v.src(_), v.addChild(T), f && f(v);
|
|
2409
2409
|
})(m, s, d), s || m.addClass(K);
|
|
@@ -2417,9 +2417,9 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2417
2417
|
if (!e) return null;
|
|
2418
2418
|
const t = e.match(/https:\/\/stream.mux.com\/(.*)/);
|
|
2419
2419
|
let n = t ? t[1] : null;
|
|
2420
|
-
return n.includes(
|
|
2421
|
-
}, M = { UPLOAD_STARTED: "upload.started", UPLOAD_PROGRESS: "upload.progress", UPLOAD_FINISHED: "upload.finished", DELETE: "delete", ERROR: "error", MEDIA_TYPE: "media.type", PERMISSION_DENIED: "permission_denied", OTHER: "other", UPLOAD_ID: "upload.id", UPLOAD_PROGRESS_PCT: "upload.progress.pct", MEDIA_RECORDING_UID: "media.recording.uid", MEDIA_TYPE_VIDEO: "video", MEDIA_TYPE_AUDIO: "audio" }, ee = { PlaybackRateMenuButton: "Speed", PlayToggle: "Play", FullscreenToggle: "Expand", TurnOnCamera: "Turn on", TurnOffCamera: "Turn off", DeleteButton: "Delete", RecordButton: "Record", StopButton: "Stop", PauseButton: "Pause" }, ve = "ul-card-video__player_recorder",
|
|
2422
|
-
const { apiURL: s, envId: d, handleUploadUpdate: a, headers: u, responseGroupUid: h, surveyId: c, update: p, viewDocument: m, visitorId: g } = U((k) => ({ apiURL: k.apiURL, envId: k.envId, handleUploadUpdate: k.handleUploadUpdate, headers: k.headers, responseGroupUid: k.responseGroupUid, surveyId: k.surveyId, update: k.update, viewDocument: k.viewDocument, visitorId: k.userId })), [b, v] = z(!1), [_, f] = z(null), [T, S] = z(null), [w, x] = z(at), j =
|
|
2420
|
+
return n.includes(yn) && (n = n.replace(yn, "")), n ? `https://image.mux.com/${n}/thumbnail.jpg?time=0` : null;
|
|
2421
|
+
}, M = { UPLOAD_STARTED: "upload.started", UPLOAD_PROGRESS: "upload.progress", UPLOAD_FINISHED: "upload.finished", DELETE: "delete", ERROR: "error", MEDIA_TYPE: "media.type", PERMISSION_DENIED: "permission_denied", OTHER: "other", UPLOAD_ID: "upload.id", UPLOAD_PROGRESS_PCT: "upload.progress.pct", MEDIA_RECORDING_UID: "media.recording.uid", MEDIA_TYPE_VIDEO: "video", MEDIA_TYPE_AUDIO: "audio" }, ee = { PlaybackRateMenuButton: "Speed", PlayToggle: "Play", FullscreenToggle: "Expand", TurnOnCamera: "Turn on", TurnOffCamera: "Turn off", DeleteButton: "Delete", RecordButton: "Record", StopButton: "Stop", PauseButton: "Pause" }, ve = "ul-card-video__player_recorder", En = "ul-video-btn", at = 0, Sn = 1, bi = ({ className: e, message: t, next: n, properties: r, questionId: o, type: i }) => {
|
|
2422
|
+
const { apiURL: s, envId: d, handleUploadUpdate: a, headers: u, responseGroupUid: h, surveyId: c, update: p, viewDocument: m, visitorId: g } = U((k) => ({ apiURL: k.apiURL, envId: k.envId, handleUploadUpdate: k.handleUploadUpdate, headers: k.headers, responseGroupUid: k.responseGroupUid, surveyId: k.surveyId, update: k.update, viewDocument: k.viewDocument, visitorId: k.userId })), [b, v] = z(!1), [_, f] = z(null), [T, S] = z(null), [w, x] = z(at), j = X(null), D = r && r.videoUrl;
|
|
2423
2423
|
F(() => {
|
|
2424
2424
|
const k = j.current, I = new ResizeObserver(() => {
|
|
2425
2425
|
p();
|
|
@@ -2432,7 +2432,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2432
2432
|
k === M.UPLOAD_STARTED ? (f(I[M.UPLOAD_ID]), S(I[M.MEDIA_RECORDING_UID]), v(!0)) : k === M.DELETE ? (f(null), S(null), v(!1)) : k === M.UPLOAD_PROGRESS ? isNaN(I[M.UPLOAD_PROGRESS_PCT]) ? a({ mediaRecordingUid: I[M.MEDIA_RECORDING_UID], isComplete: !0 }) : a({ mediaRecordingUid: I[M.MEDIA_RECORDING_UID], progressPct: I[M.UPLOAD_PROGRESS_PCT] }) : k === M.UPLOAD_FINISHED && a({ mediaRecordingUid: I[M.MEDIA_RECORDING_UID], isComplete: !0 });
|
|
2433
2433
|
}, E = (k) => {
|
|
2434
2434
|
k.preventDefault(), k.stopPropagation(), document.getElementById(ve) && ((I) => {
|
|
2435
|
-
const N = I +
|
|
2435
|
+
const N = I + kn;
|
|
2436
2436
|
if (R.document.getElementById(N) && R.videojs) {
|
|
2437
2437
|
try {
|
|
2438
2438
|
if (!R.videojs(N).record().stream) return;
|
|
@@ -2448,22 +2448,22 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2448
2448
|
const I = fi(ve, { src: D, type: "application/x-mpegURL" }, void 0, r.mediaType === M.MEDIA_TYPE_AUDIO, s, m);
|
|
2449
2449
|
k.appendChild(I);
|
|
2450
2450
|
}
|
|
2451
|
-
} }), l(ce, { defaultBody: () => l("button", { className: `${
|
|
2451
|
+
} }), l(ce, { defaultBody: () => l("button", { className: `${En} ul-record-response-btn`, onClick: (k) => {
|
|
2452
2452
|
k.preventDefault(), k.stopPropagation(), document.getElementById(ve) && ((I) => {
|
|
2453
2453
|
const N = We(I + Ar);
|
|
2454
2454
|
N == null || N.pause();
|
|
2455
|
-
})(ve), x(
|
|
2456
|
-
} }), properties: r })] }), l("div", { style: { display: w ===
|
|
2455
|
+
})(ve), x(Sn);
|
|
2456
|
+
} }), properties: r })] }), l("div", { style: { display: w === Sn ? "block" : "none" }, children: [l("button", { className: `${En} ul-back-question-btn`, onClick: (k) => {
|
|
2457
2457
|
k.preventDefault(), k.stopPropagation(), x(at);
|
|
2458
2458
|
}, style: { display: r.hideRecordedPrompt ? "none" : "block" } }), l("div", { id: "ul-recorder-player-container", ref: (k) => {
|
|
2459
2459
|
if (k && k.children.length === 0) {
|
|
2460
2460
|
const I = ((N, C = {}, H = "https://api.userleap.com", O, B, A, G = !1, $ = document) => {
|
|
2461
2461
|
R.document = $;
|
|
2462
|
-
const Q = N +
|
|
2462
|
+
const Q = N + kn, pe = $r(Q);
|
|
2463
2463
|
return R.document.addEventListener("securitypolicyviolation", (he) => {
|
|
2464
2464
|
se(new Error(`Voice & Video feature violates ${he.violatedDirective} web page CSP policies for the recorder player.`), "recorderDeviceError", H, A, C.visitorId, C.envId);
|
|
2465
2465
|
}), Br(Hr.concat(hi), () => {
|
|
2466
|
-
_t(Q, pe), R.document.getElementById(
|
|
2466
|
+
_t(Q, pe), R.document.getElementById(Nt(Q)).remove();
|
|
2467
2467
|
try {
|
|
2468
2468
|
gi(pe, Q, C, H, O, B, A, G);
|
|
2469
2469
|
} catch (he) {
|
|
@@ -2473,15 +2473,15 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2473
2473
|
})(ve, { surveyId: c, responseGroupUid: h, questionId: o, visitorId: g, envId: d }, s, y, void 0, { ...u, "x-ul-video-recorder-origin": "sdk" }, r.mediaType === M.MEDIA_TYPE_AUDIO, m);
|
|
2474
2474
|
k.appendChild(I);
|
|
2475
2475
|
}
|
|
2476
|
-
} })] })] }), l(ge, { children: [l(Y, { disabled: !b, onClick: E, children: ye(r) }), l("button", { className: "ul-card-text__button ul-button-inactive ul-card-skip__button", id: "ul-card-video__skip_button", onClick: E, style: { display: r.required ? "none" : "block", ...b ? { display: "none" } : {} }, children:
|
|
2476
|
+
} })] })] }), l(ge, { children: [l(Y, { disabled: !b, onClick: E, children: ye(r) }), l("button", { className: "ul-card-text__button ul-button-inactive ul-card-skip__button", id: "ul-card-video__skip_button", onClick: E, style: { display: r.required ? "none" : "block", ...b ? { display: "none" } : {} }, children: Pt(r) })] })] });
|
|
2477
2477
|
}, yi = ({ className: e }) => {
|
|
2478
2478
|
const { uploadProgress: t } = U((i) => ({ uploadProgress: i.uploadProgress }));
|
|
2479
2479
|
let n, r;
|
|
2480
2480
|
Object.values(t).filter((i) => i.isSubmitted).length > 1 ? (n = "Your responses are processing", r = "Please keep this tab open until your responses are fully processed.") : (n = "Your response is processing", r = "Please keep this tab open until your response is fully processed.");
|
|
2481
2481
|
const o = Math.round(Math.min(99, ...Object.values(t).filter((i) => i.isSubmitted).map((i) => i.progressPct || 0)));
|
|
2482
2482
|
return l("div", { className: L(e, "ul-card--uploading", "fade-in-transition"), children: [l("div", { "aria-busy": "true", "aria-label": "Processing...", "aria-live": "polite", className: "ul-loading-spinner-container", role: "progressbar", children: l("div", { className: "ul-loading-spinner", children: [l("div", { className: "first" }), l("div", { className: "second" }), l("div", { className: "third" }), l("div", { className: "fourth" })] }) }), l(ne, { message: `${n} (${o}% complete)` }), l("p", { className: "ul-caption", children: r })] });
|
|
2483
|
-
},
|
|
2484
|
-
const { border: e, cards: t, forceBrandedLogo: n, headers: r, index: o, marketingUrl: i, showSurveyBrand: s, slugName: d, surveyId: a, viewedCardCount: u } = U((_) => ({ border: _.border, cards: _.cards, forceBrandedLogo: _.forceBrandedLogo, headers: _.headers, index: _.index, marketingUrl: _.marketingUrl, showSurveyBrand: _.showSurveyBrand, slugName: _.slugName, surveyId: _.surveyId, viewedCardCount: _.viewedCardCount })), h =
|
|
2483
|
+
}, jn = ({ logoOnly: e = !1, style: t = {} }) => l("svg", { alt: (e ? "Powered by " : "") + "Sprig", width: e ? "35" : "112", height: "15", viewBox: e ? "79 0 31 15" : "0 0 112 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { display: "block", ...t }, children: [!e && l("path", { d: "M0.648926 12.0181V2.8584H4.21631C6.0127 2.8584 7.25684 4.06445 7.25684 5.86084V5.87354C7.25684 7.66357 6.0127 8.88867 4.21631 8.88867H2.0708V12.0181H0.648926ZM3.86084 4.05811H2.0708V7.69531H3.86084C5.09229 7.69531 5.80957 7.02881 5.80957 5.87988V5.86719C5.80957 4.72461 5.09229 4.05811 3.86084 4.05811ZM11.6621 12.1514C9.63721 12.1514 8.39941 10.7993 8.39941 8.57764V8.56494C8.39941 6.34961 9.64355 4.99121 11.6621 4.99121C13.6743 4.99121 14.9185 6.34326 14.9185 8.56494V8.57764C14.9185 10.7993 13.6807 12.1514 11.6621 12.1514ZM11.6621 11.0024C12.8428 11.0024 13.5156 10.1011 13.5156 8.57764V8.56494C13.5156 7.03516 12.8428 6.14014 11.6621 6.14014C10.4751 6.14014 9.80859 7.03516 9.80859 8.56494V8.57764C9.80859 10.1074 10.4751 11.0024 11.6621 11.0024ZM17.6226 12.0181L15.7183 5.12451H17.1021L18.3398 10.4438H18.4414L19.8633 5.12451H21.1709L22.5928 10.4438H22.7007L23.9321 5.12451H25.2969L23.3989 12.0181H21.9834L20.5552 6.87646H20.4473L19.0254 12.0181H17.6226ZM29.334 12.1514C27.3154 12.1514 26.0967 10.7739 26.0967 8.59033V8.58398C26.0967 6.43213 27.3408 4.99121 29.2642 4.99121C31.1875 4.99121 32.3682 6.38135 32.3682 8.45068V8.93311H27.4805C27.5059 10.2534 28.2295 11.0215 29.3657 11.0215C30.248 11.0215 30.7749 10.5835 30.9399 10.228L30.9653 10.1772L32.292 10.1709L32.2793 10.228C32.0508 11.1357 31.0986 12.1514 29.334 12.1514ZM29.2705 6.12109C28.3311 6.12109 27.6201 6.76221 27.4995 7.94922H31.0034C30.8955 6.71777 30.2036 6.12109 29.2705 6.12109ZM34.0059 12.0181V5.12451H35.3833V6.16553H35.4849C35.7324 5.43555 36.3735 5.00391 37.2939 5.00391C37.5161 5.00391 37.7573 5.03564 37.897 5.06738V6.33691C37.6494 6.28613 37.4146 6.25439 37.1543 6.25439C36.1006 6.25439 35.3833 6.90186 35.3833 7.89844V12.0181H34.0059ZM41.9277 12.1514C39.9092 12.1514 38.6904 10.7739 38.6904 8.59033V8.58398C38.6904 6.43213 39.9346 4.99121 41.8579 4.99121C43.7812 4.99121 44.9619 6.38135 44.9619 8.45068V8.93311H40.0742C40.0996 10.2534 40.8232 11.0215 41.9595 11.0215C42.8418 11.0215 43.3687 10.5835 43.5337 10.228L43.5591 10.1772L44.8857 10.1709L44.873 10.228C44.6445 11.1357 43.6924 12.1514 41.9277 12.1514ZM41.8643 6.12109C40.9248 6.12109 40.2139 6.76221 40.0933 7.94922H43.5972C43.4893 6.71777 42.7974 6.12109 41.8643 6.12109ZM49.1133 12.1323C47.3804 12.1323 46.2568 10.7422 46.2568 8.57764V8.56494C46.2568 6.38135 47.3613 5.00391 49.1133 5.00391C50.0591 5.00391 50.8652 5.47363 51.2334 6.21631H51.3413V2.42041H52.7124V12.0181H51.3413V10.9326H51.2334C50.8335 11.688 50.0781 12.1323 49.1133 12.1323ZM49.5068 10.958C50.6558 10.958 51.3604 10.0503 51.3604 8.57764V8.56494C51.3604 7.09229 50.6494 6.18457 49.5068 6.18457C48.3516 6.18457 47.6597 7.08594 47.6597 8.56494V8.57764C47.6597 10.0566 48.3516 10.958 49.5068 10.958ZM61.98 12.1323C61.0151 12.1323 60.2598 11.688 59.8599 10.9326H59.7583V12.0181H58.3809V2.42041H59.7583V6.21631H59.8599C60.228 5.47363 61.0342 5.00391 61.98 5.00391C63.7319 5.00391 64.8364 6.38135 64.8364 8.56494V8.57764C64.8364 10.7422 63.7192 12.1323 61.98 12.1323ZM61.5928 10.958C62.7417 10.958 63.4336 10.0566 63.4336 8.57764V8.56494C63.4336 7.08594 62.7417 6.18457 61.5928 6.18457C60.4438 6.18457 59.7329 7.09229 59.7329 8.56494V8.57764C59.7329 10.0503 60.4438 10.958 61.5928 10.958ZM66.8867 14.4429C66.7153 14.4429 66.5122 14.4302 66.3345 14.4111V13.3257C66.4678 13.3447 66.6392 13.3511 66.7979 13.3511C67.439 13.3511 67.8262 13.0781 68.0293 12.3799L68.1309 12.0244L65.6299 5.12451H67.1152L68.8418 10.6343H68.9624L70.6826 5.12451H72.1299L69.5654 12.2847C68.9814 13.9287 68.2832 14.4429 66.8867 14.4429Z", fill: "black", fillOpacity: "0.7" }), l("path", { d: "M81.1088 6.63629C79.6878 6.32154 78.9672 5.76865 78.9672 4.99369C78.9672 4.19299 79.736 3.5886 80.7556 3.5886C81.8066 3.5886 82.5995 4.25285 82.5995 5.13336V5.20352H84.0518V5.13336C84.0518 3.52424 82.6405 2.30774 80.7693 2.30774C79.8676 2.30774 79.0414 2.58451 78.4433 3.08655C78.1463 3.33144 77.9077 3.63818 77.7448 3.98479C77.5818 4.33141 77.4984 4.70934 77.5005 5.09153C77.4946 5.44197 77.5675 5.78934 77.714 6.10857C77.8605 6.42779 78.0769 6.71092 78.3475 6.93752C78.8512 7.37584 79.5659 7.70024 80.4709 7.90299C81.9949 8.23898 82.7676 8.81054 82.7676 9.60094C82.7676 10.4576 81.9258 11.1032 80.813 11.1032C79.6571 11.1032 78.7854 10.3856 78.7854 9.43424V9.36408H77.3318V9.43424C77.3318 11.1167 78.8219 12.3847 80.7973 12.3847C81.7421 12.3847 82.6093 12.0983 83.2393 11.5769C83.5519 11.3237 83.8034 11.0048 83.9753 10.6433C84.1472 10.2818 84.2352 9.88702 84.2329 9.48766C84.2329 8.05875 83.1833 7.09907 81.1088 6.63629Z", fill: "black", fillOpacity: "0.7" }), l("path", { d: "M89.2394 4.68276C88.6963 4.67605 88.1596 4.79915 87.6751 5.04156C87.1905 5.28397 86.7725 5.63851 86.4566 6.07497V4.85204H85.0747V14.8479H86.4566V11.0356C86.7725 11.472 87.1906 11.8265 87.6751 12.0688C88.1596 12.3111 88.6963 12.434 89.2394 12.4272C91.3836 12.4272 93 10.7627 93 8.55495C93 6.34723 91.3836 4.68276 89.2394 4.68276ZM91.5608 8.84202C91.5057 9.41605 91.2512 9.95356 90.8406 10.3633C90.4299 10.773 89.8883 11.0296 89.3078 11.0896C88.5363 11.1669 87.8177 10.9461 87.2841 10.4692C86.7505 9.99222 86.4566 9.3106 86.4566 8.55495C86.4566 7.10159 87.5538 6.00546 89.0087 6.00546C89.7619 6.00546 90.4421 6.29124 90.9171 6.81002C91.407 7.34232 91.6357 8.06385 91.5608 8.84202Z", fill: "black", fillOpacity: "0.7" }), l("path", { d: "M109.95 4.85407V6.06349C109.298 5.18298 108.292 4.68286 107.153 4.68286C105.017 4.68286 103.406 6.31709 103.406 8.48426C103.406 10.6514 105.017 12.285 107.153 12.285C108.296 12.285 109.303 11.79 109.95 10.9185V11.1046C109.95 12.6101 108.993 13.5826 107.513 13.5826C106.513 13.5826 105.68 13.1494 105.284 12.424L105.264 12.3867H103.838L103.871 12.48C104.112 13.1892 104.583 13.8001 105.211 14.2179C105.841 14.6324 106.637 14.8512 107.513 14.8512C108.637 14.8512 109.594 14.4972 110.28 13.8285C110.967 13.1597 111.332 12.2194 111.332 11.1213V4.85407H109.95ZM109.175 10.3502C108.588 10.905 107.752 11.138 106.879 10.9887C106.361 10.8984 105.886 10.6475 105.523 10.2725C105.16 9.89751 104.927 9.41787 104.859 8.90328C104.736 8.03757 104.999 7.21756 105.581 6.655C106.069 6.19093 106.723 5.93643 107.401 5.94699C107.565 5.94713 107.729 5.96026 107.891 5.98625C108.946 6.15489 109.781 7.01609 109.921 8.0852C110.039 8.96507 109.766 9.78958 109.175 10.3502Z", fill: "black", fillOpacity: "0.7" }), l("path", { d: "M101.89 2.12378C101.63 2.06766 101.358 2.11486 101.133 2.25518C100.908 2.39551 100.747 2.61769 100.687 2.87371C100.626 3.12973 100.67 3.39902 100.809 3.62339C100.947 3.84775 101.17 4.00917 101.428 4.07275C101.503 4.08936 101.58 4.09778 101.657 4.09786C101.906 4.09824 102.146 4.0083 102.331 3.84518C102.517 3.68206 102.636 3.45714 102.664 3.21327C102.693 2.9694 102.63 2.72361 102.487 2.5227C102.344 2.32179 102.132 2.17981 101.89 2.12378Z", fill: "black", fillOpacity: "0.7" }), l("path", { d: "M100.967 10.934H99.7755C98.9285 10.934 98.4196 10.3644 98.4196 9.40982C98.4196 8.4791 98.8757 7.36945 99.8054 6.01778L99.8178 5.99976V5.61807L95.8571 5.06453C95.8585 4.90331 95.8162 4.74466 95.7346 4.60501C95.653 4.46536 95.5352 4.34979 95.3932 4.27027C95.0381 4.07718 94.6498 4.07717 94.3279 4.26383C94.1667 4.35799 94.035 4.4945 93.9476 4.65816C93.8602 4.82182 93.8205 5.00623 93.8328 5.19087C93.8452 5.37552 93.9092 5.55315 94.0176 5.70402C94.1261 5.85489 94.2748 5.97309 94.4472 6.04546L93.2151 12.258H94.5833L95.7196 6.35891L97.8593 6.7155C97.284 7.73439 96.9921 8.68442 96.9921 9.53919C96.9921 11.1168 97.9577 12.1498 99.5187 12.2496V12.258H102.346V4.87723H100.967V10.934Z", fill: "black", fillOpacity: "0.7" })] }), xi = () => {
|
|
2484
|
+
const { border: e, cards: t, forceBrandedLogo: n, headers: r, index: o, marketingUrl: i, showSurveyBrand: s, slugName: d, surveyId: a, viewedCardCount: u } = U((_) => ({ border: _.border, cards: _.cards, forceBrandedLogo: _.forceBrandedLogo, headers: _.headers, index: _.index, marketingUrl: _.marketingUrl, showSurveyBrand: _.showSurveyBrand, slugName: _.slugName, surveyId: _.surveyId, viewedCardCount: _.viewedCardCount })), h = X(null), c = t.filter((_) => _.type !== "uploading" && _.type !== "thanks"), p = ((_, f) => {
|
|
2485
2485
|
const T = /* @__PURE__ */ new Set(["thanks", "uploading"]);
|
|
2486
2486
|
if (f >= _.length || f < 0 || T.has(_[f].type)) return 0;
|
|
2487
2487
|
const S = _.filter((x) => !T.has(x.type));
|
|
@@ -2498,7 +2498,7 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2498
2498
|
for (let k = 0; k < D.length && E.length !== 0; k++) {
|
|
2499
2499
|
const { comparator: I, target: N, value: C } = D[k], H = E.filter((O) => {
|
|
2500
2500
|
const B = Po({ value: O }, j.type, O), A = xr(O, j.type);
|
|
2501
|
-
return !(B && I === "answered" || A && I === "partial" || !B && !A && I === "skipped" || I === "given_up" && No(O) && O.taskStatus === "given.up" || B && j.type === "open" && (I === "contains" || I === "notcontains") || B && Ro(I) &&
|
|
2501
|
+
return !(B && I === "answered" || A && I === "partial" || !B && !A && I === "skipped" || I === "given_up" && No(O) && O.taskStatus === "given.up" || B && j.type === "open" && (I === "contains" || I === "notcontains") || B && Ro(I) && Tt[I](O, C));
|
|
2502
2502
|
});
|
|
2503
2503
|
if (H.length < E.length) {
|
|
2504
2504
|
const O = parseInt(String(N), 10);
|
|
@@ -2515,15 +2515,15 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2515
2515
|
h.current && (h.current.style.width = 100 * g + "%");
|
|
2516
2516
|
}, [g]);
|
|
2517
2517
|
const v = t[o].type === "thanks";
|
|
2518
|
-
return l("footer", { className: "ul-footer " + (r["userleap-platform"] === "link" ? "ul-footer__link" : ""), children: v && n ? l("a", { dir: "ltr", href: b, rel: "noreferrer", target: "_blank", children: l("div", { className: "thank-you-card-link", children: [l("div", { className: "sprig-box-logo", children: l(
|
|
2519
|
-
},
|
|
2520
|
-
const { answers: e, border: t, cards: n, close: r, configureExitOnOverlayClick: o, destroy: i, endCard: s, eventEmitFn: d, fontFamily: a, headers: u, index: h, minScrollableHeight: c, next: p, previewMode: m, productConfig: g, seen: b, showStripes: v, studyType: _, surveyId: f, update: T, useMobileStyling: S, viewDocument: w } = U((C) => ({ answers: C.answers, border: C.border, cards: C.cards, close: C.close, configureExitOnOverlayClick: C.configureExitOnOverlayClick, destroy: C.destroy, endCard: C.endCard, eventEmitFn: C.eventEmitFn, fontFamily: C.fontFamily, headers: C.headers, index: C.index, previewMode: C.previewMode, productConfig: C.productConfig, minScrollableHeight: C.minScrollableHeight, next: C.next, seen: C.seen, showStripes: C.showStripes, studyType: C.studyType, surveyId: C.surveyId, update: C.update, useMobileStyling: C.useMobileStyling, viewDocument: C.viewDocument })), x =
|
|
2518
|
+
return l("footer", { className: "ul-footer " + (r["userleap-platform"] === "link" ? "ul-footer__link" : ""), children: v && n ? l("a", { dir: "ltr", href: b, rel: "noreferrer", target: "_blank", children: l("div", { className: "thank-you-card-link", children: [l("div", { className: "sprig-box-logo", children: l(jn, { logoOnly: !0, style: { margin: "auto" } }) }), l("div", { children: l("p", { children: ["Capture insights about your own product", l(In, { style: { display: "inline-flex", marginInlineStart: "4px", verticalAlign: "middle" } })] }) })] }) }) : l(Z, { children: [c.length > 1 && l("div", { id: "ul-progress-bar-container", children: l("div", { id: "ul-progress-bar-current", ref: h, style: { border: `1px solid ${e || "#000"}` } }) }), s ? l("div", { className: n ? "yellow-footer-logo" : "", style: { marginTop: "4px", marginBottom: "4px" }, children: l("a", { href: b, rel: "noreferrer", target: "_blank", children: l("div", { style: { display: "flex" }, children: [l(jn, { logoOnly: !1 }), n && l(In, { style: { display: "block", margin: "auto 0 auto 4px", transform: "rotateY(0deg) rotate(-45deg)" } })] }) }) }) : null] }) });
|
|
2519
|
+
}, In = ({ style: e }) => l("svg", { fill: "none", height: "10", style: e, viewBox: "0 0 12 10", width: "12", xmlns: "http://www.w3.org/2000/svg", children: [l("path", { d: "M1.47839 5.2085L10.9384 5.2085", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" }), l("path", { d: "M7.0686 1.15845L10.9386 5.20845L7.0686 9.25845", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" })] }), ki = () => {
|
|
2520
|
+
const { answers: e, border: t, cards: n, close: r, configureExitOnOverlayClick: o, destroy: i, endCard: s, eventEmitFn: d, fontFamily: a, headers: u, index: h, minScrollableHeight: c, next: p, previewMode: m, productConfig: g, seen: b, showStripes: v, studyType: _, surveyId: f, update: T, useMobileStyling: S, viewDocument: w } = U((C) => ({ answers: C.answers, border: C.border, cards: C.cards, close: C.close, configureExitOnOverlayClick: C.configureExitOnOverlayClick, destroy: C.destroy, endCard: C.endCard, eventEmitFn: C.eventEmitFn, fontFamily: C.fontFamily, headers: C.headers, index: C.index, previewMode: C.previewMode, productConfig: C.productConfig, minScrollableHeight: C.minScrollableHeight, next: C.next, seen: C.seen, showStripes: C.showStripes, studyType: C.studyType, surveyId: C.surveyId, update: C.update, useMobileStyling: C.useMobileStyling, viewDocument: C.viewDocument })), x = X(null), j = X(!1), D = u["userleap-platform"], { props: y, type: E, name: k } = n[h];
|
|
2521
2521
|
F(() => {
|
|
2522
2522
|
if (window.Sprig) return window.Sprig.trackHistory = (C) => U.getState().trackHistory(C), () => {
|
|
2523
2523
|
window.Sprig.trackHistory = void 0;
|
|
2524
2524
|
};
|
|
2525
2525
|
}, []), F(() => {
|
|
2526
|
-
x.current && (x.current.classList.contains("ul-app--visible") || x.current.classList.add("ul-app--visible"), !j.current && d && (j.current = !0, d(
|
|
2526
|
+
x.current && (x.current.classList.contains("ul-app--visible") || x.current.classList.add("ul-app--visible"), !j.current && d && (j.current = !0, d(J.SurveyAppeared, { name: J.SurveyAppeared, "survey.id": f })));
|
|
2527
2527
|
}, [d, f]), F(() => {
|
|
2528
2528
|
const C = () => {
|
|
2529
2529
|
w.visibilityState === "visible" && (b(), w.removeEventListener("visibilitychange", C));
|
|
@@ -2600,15 +2600,15 @@ const me = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
|
|
|
2600
2600
|
return null;
|
|
2601
2601
|
}
|
|
2602
2602
|
})() }), l(xi, {})] }) }) }) });
|
|
2603
|
-
}, Fr = () => MediaRecorder.isTypeSupported("video/webm") ? "video/webm" : "video/mp4",
|
|
2603
|
+
}, Fr = () => MediaRecorder.isTypeSupported("video/webm") ? "video/webm" : "video/mp4", Tn = (e) => {
|
|
2604
2604
|
const t = { audioBitsPerSecond: 128e3, videoBitsPerSecond: 25e5, mimeType: Fr() };
|
|
2605
2605
|
return new MediaRecorder(e, t);
|
|
2606
|
-
},
|
|
2606
|
+
}, Pn = (e, t, n) => {
|
|
2607
2607
|
n[t] = [], e.ondataavailable = function(r) {
|
|
2608
2608
|
n[t].push(r.data);
|
|
2609
2609
|
}, e.currentMediaRecordingUid = t, e.start();
|
|
2610
2610
|
};
|
|
2611
|
-
function
|
|
2611
|
+
function Dn(e, t, n, r, o, i) {
|
|
2612
2612
|
if (e && e.state !== "inactive") {
|
|
2613
2613
|
const { "begin.callback": s } = r, d = e.currentMediaRecordingUid;
|
|
2614
2614
|
if (!d) return;
|
|
@@ -2638,7 +2638,7 @@ function Pn(e, t, n, r, o, i) {
|
|
|
2638
2638
|
}
|
|
2639
2639
|
const wi = { state: { chunks: {} }, stopRecording(e) {
|
|
2640
2640
|
const { uploadApiEndpoint: t, avRecorder: n, screenRecorder: r, UpChunk: o } = this.state, i = this.state.avStream && this.state.avStream.getVideoTracks().length > 0 ? "video" : "audio";
|
|
2641
|
-
this.state.chunks && t && o && (n != null && n.currentMediaRecordingUid &&
|
|
2641
|
+
this.state.chunks && t && o && (n != null && n.currentMediaRecordingUid && Dn(n, t, i, e, o, this.state.chunks[n == null ? void 0 : n.currentMediaRecordingUid]), r != null && r.currentMediaRecordingUid && Dn(r, t, "screen", e, o, this.state.chunks[r == null ? void 0 : r.currentMediaRecordingUid]));
|
|
2642
2642
|
}, handleCancelledStream(e) {
|
|
2643
2643
|
const t = e.getVideoTracks(), n = e.getAudioTracks();
|
|
2644
2644
|
let r = t.length && t[0];
|
|
@@ -2685,14 +2685,14 @@ const wi = { state: { chunks: {} }, stopRecording(e) {
|
|
|
2685
2685
|
if (!t) return;
|
|
2686
2686
|
const r = [];
|
|
2687
2687
|
if (t.includes("video") && this.state.avStream) {
|
|
2688
|
-
this.state.avRecorder =
|
|
2688
|
+
this.state.avRecorder = Tn(this.state.avStream);
|
|
2689
2689
|
const o = dt();
|
|
2690
|
-
|
|
2690
|
+
Pn(this.state.avRecorder, o, this.state.chunks), r.push(o);
|
|
2691
2691
|
}
|
|
2692
2692
|
if (t.includes("screen") && this.state.captureStream) {
|
|
2693
|
-
this.state.screenRecorder =
|
|
2693
|
+
this.state.screenRecorder = Tn(this.state.captureStream);
|
|
2694
2694
|
const o = dt();
|
|
2695
|
-
|
|
2695
|
+
Pn(this.state.screenRecorder, o, this.state.chunks), r.push(o);
|
|
2696
2696
|
}
|
|
2697
2697
|
r && n && n(r);
|
|
2698
2698
|
}, async finishTaskCallback(e) {
|
|
@@ -2724,13 +2724,13 @@ const Ci = ({ mode: e = null, viewWindow: t, viewDocument: n, trackPageViewUrl:
|
|
|
2724
2724
|
return { mode: e, sw: t.screen.width, sh: t.screen.height, cw: o.clientWidth, ch: o.clientHeight, p: r ?? i, l: t.navigator.language };
|
|
2725
2725
|
}, ji = { configure: function(e, t = !0) {
|
|
2726
2726
|
var _;
|
|
2727
|
-
const { answers: n, apiURL: r, endCard: o, eventEmitFn: i, fontFamilyURL: s, frame: d, previewKey: a, viewDocument: u, viewWindow: h } = e, c = qe(e.headers) ? e.frame : u.body, p = e.UpChunk || window.UpChunk, m =
|
|
2727
|
+
const { answers: n, apiURL: r, endCard: o, eventEmitFn: i, fontFamilyURL: s, frame: d, previewKey: a, viewDocument: u, viewWindow: h } = e, c = qe(e.headers) ? e.frame : u.body, p = e.UpChunk || window.UpChunk, m = je, g = ((f, T) => {
|
|
2728
2728
|
const S = [...f], w = /* @__PURE__ */ new Set(["videovoice", "recordedtask"]);
|
|
2729
2729
|
return f.some((x) => w.has(x.type)) && S.push({ name: -2, props: { routingOptions: [] }, type: "uploading" }), T && S.push({ name: -1, props: { routingOptions: [] }, type: "thanks" }), S;
|
|
2730
2730
|
})(e.cards, !!o);
|
|
2731
2731
|
Be.configure(m, { cards: g, hasEndCard: !!o, apiURL: r, UpChunk: p }), U.setState({ apiURL: r, answers: n, border: e.border, index: e.startingQuestionIdx || 0, cards: g, configureExitOnOverlayClick: e.configureExitOnOverlayClick, customMetadata: e.customMetadata, endCard: e.endCard, envId: e.envId, eventEmitFn: i, fontFamily: e.fontFamily, forceBrandedLogo: e.forceBrandedLogo, frame: d, headers: e.headers, hasViewedEmbed: !1, isPreview: e.isPreview, marketingUrl: "https://sprig.com", meta: Ci({ mode: e.mode, viewWindow: h, viewDocument: u, trackPageViewUrl: e.trackPageViewUrl }), mode: e.mode, previewKey: a, previewMode: e.previewMode, productConfig: e.productConfig, recorder: Be, recorderEventEmitter: m, responseGroupUid: e.responseGroupUid, showStripes: e.showStripes, showSurveyBrand: e.showSurveyBrand, slugName: e.slugName, styleNonce: e.styleNonce, studyType: e.studyType, surveyId: e.surveyId, tabTitle: e.tabTitle, uploadingCardViewed: !1, uploadProgress: {}, useMobileStyling: e.useMobileStyling, useDesktopPrototype: e.useDesktopPrototype, userId: e.userId, viewDocument: e.viewDocument, visitorAttributes: e.visitorAttributes, viewedCardCount: e.startingQuestionIdx || 0 });
|
|
2732
2732
|
const { head: b } = u;
|
|
2733
|
-
if (Mt({ document: u, elementId: "sprig-style", styleString: '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}ol,ul{padding-inline-start:1em}.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)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:start;min-width:200px;min-height:0;justify-content:center}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026;margin:15px}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.sprig-container{display:flex;flex-direction:column;width:100%;height:fit-content;flex:1 1 auto;min-height:0;justify-content:center}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;padding:0;min-height:0;position:relative;text-align:center;word-break:break-word;overflow:auto}.ul-card__container--desktop_feedbackButton{box-shadow:unset}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;display:flex;gap:16px;justify-content:center;align-self:stretch}.sprig-question-footer-container{align-items:center;width:100%;height:fit-content;display:flex;flex-direction:column;padding:12px 20px 0}.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}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;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,.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;z-index:2;height:fit-content}.sprig-border-bottom{border-bottom:1px solid rgba(0,0,0,.1)}.sprig-border-top{border-top:1px solid rgba(0,0,0,.1)}.question-header-container{z-index:1}.sprig-header-container{padding:16px}.question-header-button-container{display:grid;grid-template-columns:97fr 3fr;align-items:center;justify-content:space-between;width:100%;height:fit-content}.ul-card--thanks-content .question-header-button-container{justify-content:center}.sprig-question-body{padding:0 20px;min-height:0;flex-shrink:1;overflow:auto;position:relative;align-self:stretch;width:100%}.sprig-stretch{align-self:stretch}.ul-question{color:#343442;display:block;font-size:17px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-question ol,.ul-question ul,.ul-caption ol,.ul-caption ul{margin-left:1em}.ul-caption{flex:1 0 auto;font-size:14px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start;margin-top:4px}.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{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.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;-webkit-hyphens:auto;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}.select-checkbox{height:16px;width:16px;display:flex;box-sizing:border-box;background-color:"transparent";align-items:center;justify-content:center;border-radius:4px;border:1px solid #b0b5b7;flex-shrink:0}.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}.footer{width:100%;margin-top:12px;font-size:12px;line-height:12px;color:#000000b3}[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{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@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;align-self:stretch}.sprig-accordion{width:100%;margin-bottom:8px}.sprig-accordion-body{width:100%;overflow:hidden}.sprig-accordion-header-container{background:transparent;border:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;cursor:pointer;margin:8px 0 0;padding:0;font-family:inherit}.sprig-header-label-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex:1 1 0}.sprig-header-label{color:#343442;font-size:15px;font-weight:590;line-height:21px;text-align:start;overflow:hidden}.sprig-check-background{flex:0 0 16px;height:16px;width:16px;border-radius:8px;margin-right:8px;background-color:#efefee;display:flex;align-items:center;justify-content:center}.sprig-check{height:9px;width:9px;margin-left:-1px}.sprig-check path{stroke:#506067;stroke-width:1.5}.sprig-caret{height:20px;width:20px;transition-property:transform}.sprig-caret path{stroke:#000}.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:#00000003;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:#fff}.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}.ul-card--likert__numbers>button{padding:unset}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-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:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-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;background:unset;border:unset}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px;background:unset;border:unset}.likert-smiley>svg{margin:0 auto}.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--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(107px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;overflow:auto}.ul-card--matrix_question_container{display:flex;flex-direction:column}.ul-matrix-scroll-gradient{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl){-webkit-mask-image:linear-gradient(270deg,#000,90%,transparent);mask-image:linear-gradient(270deg,#000,90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl)+.ul-matrix-scroll-arrow{rotate:180deg}.ul-matrix-scroll-arrow{align-self:flex-end;background:none;border:none;color:#000;padding:0;position:absolute;top:45%}.ul-matrix-scroll-arrow:hover{cursor:pointer}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{max-width:100%}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.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}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-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;padding:unset}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.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-text{margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-direction:column;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:#00000003;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:#fff}.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;max-width:-webkit-fill-available}#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:#fff;border-radius:5px;text-align:start;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:15px;justify-content:center;flex-direction:column}.select-button{align-items:center;background-color:transparent;border-radius:8px;border:1px solid #0b2330;box-shadow:0 0 0 2px #c8cccc;cursor:pointer;display:flex;font-size:15px;justify-content:space-between;margin-bottom:8px;padding:4px 8px 4px 16px;width:100%}.select-button:hover{background-color:#f3f3f3}.select-button:active{background-color:#eee}.select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-button.select-button-placeholder{color:#b0b5b7}.select-button svg{flex-shrink:0}.select-list{position:relative;height:fit-content;padding:4px 0;z-index:100;background-color:#fff;border:1px solid #E2E3E1;box-shadow:0 16px 24px #0b23300d,0 4px 12px #0b233008;border-radius:8px;overflow-y:scroll;width:100%}.select-option{align-items:center;cursor:pointer;display:flex;font-size:15px;gap:16px;line-height:20px;padding:8px 16px}.select-option:hover{background-color:#f3f3f3}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}form{margin-block-end:0;margin-block-start:0}#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;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin-top:auto;flex-grow:0;width:100%;min-height:10px;height:fit-content;flex-shrink:0}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%;height:0}.close-btn{cursor:pointer;height:16px;margin-inline-end:-10px;position:relative;top:-10px;width:16px;z-index:1;align-self:flex-start;justify-self:end;flex-shrink:0}.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:16px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{align-self:stretch;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:0;height:fit-content;line-height:16.5px;margin:0 20px;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}' }), e.customStyles && Mt({ document: u, elementId: "ul-custom-style", styleString: e.customStyles, nonce: e.styleNonce }), e.fontFamily && s && parent) {
|
|
2733
|
+
if (Ot({ document: u, elementId: "sprig-style", styleString: '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}ol,ul{padding-inline-start:1em}.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)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:start;min-width:200px;min-height:0;justify-content:center}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026;margin:15px}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.sprig-container{display:flex;flex-direction:column;width:100%;height:fit-content;flex:1 1 auto;min-height:0;justify-content:center}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;padding:0;min-height:0;position:relative;text-align:center;word-break:break-word;overflow:auto}.ul-card__container--desktop_feedbackButton{box-shadow:unset}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;display:flex;gap:16px;justify-content:center;align-self:stretch}.sprig-question-footer-container{align-items:center;width:100%;height:fit-content;display:flex;flex-direction:column;padding:12px 20px 0}.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}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;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,.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;z-index:2;height:fit-content}.sprig-border-bottom{border-bottom:1px solid rgba(0,0,0,.1)}.sprig-border-top{border-top:1px solid rgba(0,0,0,.1)}.question-header-container{z-index:1}.sprig-header-container{padding:16px}.question-header-button-container{display:grid;grid-template-columns:97fr 3fr;align-items:center;justify-content:space-between;width:100%;height:fit-content}.ul-card--thanks-content .question-header-button-container{justify-content:center}.sprig-question-body{padding:0 20px;min-height:0;flex-shrink:1;overflow:auto;position:relative;align-self:stretch;width:100%}.sprig-stretch{align-self:stretch}.ul-question{color:#343442;display:block;font-size:17px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-question ol,.ul-question ul,.ul-caption ol,.ul-caption ul{margin-left:1em}.ul-caption{flex:1 0 auto;font-size:14px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start;margin-top:4px}.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{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.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;-webkit-hyphens:auto;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}.select-checkbox{height:16px;width:16px;display:flex;box-sizing:border-box;background-color:"transparent";align-items:center;justify-content:center;border-radius:4px;border:1px solid #b0b5b7;flex-shrink:0}.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}.footer{width:100%;margin-top:12px;font-size:12px;line-height:12px;color:#000000b3}[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{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@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;align-self:stretch}.sprig-accordion{width:100%;margin-bottom:8px}.sprig-accordion-body{width:100%;overflow:hidden}.sprig-accordion-header-container{background:transparent;border:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;cursor:pointer;margin:8px 0 0;padding:0;font-family:inherit}.sprig-header-label-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex:1 1 0}.sprig-header-label{color:#343442;font-size:15px;font-weight:590;line-height:21px;text-align:start;overflow:hidden}.sprig-check-background{flex:0 0 16px;height:16px;width:16px;border-radius:8px;margin-right:8px;background-color:#efefee;display:flex;align-items:center;justify-content:center}.sprig-check{height:9px;width:9px;margin-left:-1px}.sprig-check path{stroke:#506067;stroke-width:1.5}.sprig-caret{height:20px;width:20px;transition-property:transform}.sprig-caret path{stroke:#000}.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:#00000003;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:#fff}.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}.ul-card--likert__numbers>button{padding:unset}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-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:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-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;background:unset;border:unset}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px;background:unset;border:unset}.likert-smiley>svg{margin:0 auto}.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--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(107px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;overflow:auto}.ul-card--matrix_question_container{display:flex;flex-direction:column}.ul-matrix-scroll-gradient{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl){-webkit-mask-image:linear-gradient(270deg,#000,90%,transparent);mask-image:linear-gradient(270deg,#000,90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl)+.ul-matrix-scroll-arrow{rotate:180deg}.ul-matrix-scroll-arrow{align-self:flex-end;background:none;border:none;color:#000;padding:0;position:absolute;top:45%}.ul-matrix-scroll-arrow:hover{cursor:pointer}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{max-width:100%}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.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}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-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;padding:unset}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.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-text{margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-direction:column;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:#00000003;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:#fff}.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;max-width:-webkit-fill-available}#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:#fff;border-radius:5px;text-align:start;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:15px;justify-content:center;flex-direction:column}.select-button{align-items:center;background-color:transparent;border-radius:8px;border:1px solid #0b2330;box-shadow:0 0 0 2px #c8cccc;cursor:pointer;display:flex;font-size:15px;justify-content:space-between;margin-bottom:8px;padding:4px 8px 4px 16px;width:100%}.select-button:hover{background-color:#f3f3f3}.select-button:active{background-color:#eee}.select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-button.select-button-placeholder{color:#b0b5b7}.select-button svg{flex-shrink:0}.select-list{position:relative;height:fit-content;padding:4px 0;z-index:100;background-color:#fff;border:1px solid #E2E3E1;box-shadow:0 16px 24px #0b23300d,0 4px 12px #0b233008;border-radius:8px;overflow-y:scroll;width:100%}.select-option{align-items:center;cursor:pointer;display:flex;font-size:15px;gap:16px;line-height:20px;padding:8px 16px}.select-option:hover{background-color:#f3f3f3}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}form{margin-block-end:0;margin-block-start:0}#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;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin-top:auto;flex-grow:0;width:100%;min-height:10px;height:fit-content;flex-shrink:0}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%;height:0}.close-btn{cursor:pointer;height:16px;margin-inline-end:-10px;position:relative;top:-10px;width:16px;z-index:1;align-self:flex-start;justify-self:end;flex-shrink:0}.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:16px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{align-self:stretch;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:0;height:fit-content;line-height:16.5px;margin:0 20px;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}' }), e.customStyles && Ot({ document: u, elementId: "ul-custom-style", styleString: e.customStyles, nonce: e.styleNonce }), e.fontFamily && s && parent) {
|
|
2734
2734
|
const f = u.createElement("link");
|
|
2735
2735
|
f.rel = "stylesheet", f.href = s, b.appendChild(f);
|
|
2736
2736
|
}
|
|
@@ -2743,7 +2743,9 @@ const Ci = ({ mode: e = null, viewWindow: t, viewDocument: n, trackPageViewUrl:
|
|
|
2743
2743
|
}, b.appendChild(f);
|
|
2744
2744
|
}
|
|
2745
2745
|
const v = i || ((_ = d.eventEmitter) == null ? void 0 : _.emit);
|
|
2746
|
-
v == null || v("verify.view.version", { "view.version": "2.
|
|
2746
|
+
v == null || v("verify.view.version", { "view.version": "2.34.0" }), c && t && (Ce(l(ki, {}), c), je.once(J.SurveyClosed, () => {
|
|
2747
|
+
jt(c);
|
|
2748
|
+
}));
|
|
2747
2749
|
} };
|
|
2748
2750
|
export {
|
|
2749
2751
|
ji as default
|