@sprig-technologies/sprig-bundled 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-2R2XP7B7.js → index-Ist5vU7V.js} +2944 -2779
- package/dist/index.d.ts +9 -4
- package/dist/index.js +1 -1
- package/dist/{view-MqQxb9ia.js → view-nGTo3A44.js} +791 -749
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as pr, a as fr, C as
|
|
2
|
-
var Te,
|
|
1
|
+
import { g as pr, a as fr, C as b, b as G, T as W, i as ze, c as yt, D as xt, A as _e, I as ee, e as Le, s as $e, S as oe, d as ye, P as Ke, f as _r, R as hr, u as Ye, h as mr, j as gr, k as br, l as w, E as vr, m as H, n as xe, o as st, p as pe, q as z, r as Se, t as B, v as I, M as Q, w as yr, x as xr, y as Cr, z as Ct, B as kr } from "./index-Ist5vU7V.js";
|
|
2
|
+
var Te, x, tn, ce, kt, nn, Je, rn, we = {}, on = [], Sr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ve = Array.isArray;
|
|
3
3
|
function J(e, t) {
|
|
4
4
|
for (var n in t)
|
|
5
5
|
e[n] = t[n];
|
|
@@ -9,7 +9,7 @@ function an(e) {
|
|
|
9
9
|
var t = e.parentNode;
|
|
10
10
|
t && t.removeChild(e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function V(e, t, n) {
|
|
13
13
|
var r, o, i, a = {};
|
|
14
14
|
for (i in t)
|
|
15
15
|
i == "key" ? r = t[i] : i == "ref" ? o = t[i] : a[i] = t[i];
|
|
@@ -20,7 +20,7 @@ function U(e, t, n) {
|
|
|
20
20
|
}
|
|
21
21
|
function Ce(e, t, n, r, o) {
|
|
22
22
|
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 ?? ++tn, __i: -1, __u: 0 };
|
|
23
|
-
return o == null &&
|
|
23
|
+
return o == null && x.vnode != null && x.vnode(i), i;
|
|
24
24
|
}
|
|
25
25
|
function sn() {
|
|
26
26
|
return { current: null };
|
|
@@ -31,13 +31,13 @@ function j(e) {
|
|
|
31
31
|
function Z(e, t) {
|
|
32
32
|
this.props = e, this.context = t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function he(e, t) {
|
|
35
35
|
if (t == null)
|
|
36
|
-
return e.__ ?
|
|
36
|
+
return e.__ ? he(e.__, e.__i + 1) : null;
|
|
37
37
|
for (var n; t < e.__k.length; t++)
|
|
38
38
|
if ((n = e.__k[t]) != null && n.__e != null)
|
|
39
39
|
return n.__e;
|
|
40
|
-
return typeof e.type == "function" ?
|
|
40
|
+
return typeof e.type == "function" ? he(e) : null;
|
|
41
41
|
}
|
|
42
42
|
function ln(e) {
|
|
43
43
|
var t, n;
|
|
@@ -51,27 +51,27 @@ function ln(e) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function Xe(e) {
|
|
54
|
-
(!e.__d && (e.__d = !0) &&
|
|
54
|
+
(!e.__d && (e.__d = !0) && ce.push(e) && !Oe.__r++ || kt !== x.debounceRendering) && ((kt = x.debounceRendering) || nn)(Oe);
|
|
55
55
|
}
|
|
56
56
|
function Oe() {
|
|
57
57
|
var e, t, n, r, o, i, a, l, c;
|
|
58
|
-
for (
|
|
59
|
-
e.__d && (t =
|
|
58
|
+
for (ce.sort(Je); e = ce.shift(); )
|
|
59
|
+
e.__d && (t = ce.length, r = void 0, i = (o = (n = e).__v).__e, l = [], c = [], (a = n.__P) && ((r = J({}, o)).__v = o.__v + 1, x.vnode && x.vnode(r), lt(a, r, o, n.__n, a.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, l, i ?? he(o), !!(32 & o.__u), c), r.__.__k[r.__i] = r, dn(l, r, c), r.__e != i && ln(r)), ce.length > t && ce.sort(Je));
|
|
60
60
|
Oe.__r = 0;
|
|
61
61
|
}
|
|
62
62
|
function cn(e, t, n, r, o, i, a, l, c, d, p) {
|
|
63
|
-
var s, _, f,
|
|
63
|
+
var s, _, f, m, g, y = r && r.__k || on, v = t.length;
|
|
64
64
|
for (n.__d = c, wr(n, t, y), c = n.__d, s = 0; s < v; s++)
|
|
65
|
-
(f = n.__k[s]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? we : y[f.__i] || we, f.__i = s, lt(e, f, _, o, i, a, l, c, d, p),
|
|
66
|
-
n.__d = c, n.__e =
|
|
65
|
+
(f = n.__k[s]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ? we : y[f.__i] || we, f.__i = s, lt(e, f, _, o, i, a, l, c, d, p), m = f.__e, f.ref && _.ref != f.ref && (_.ref && ct(_.ref, null, f), p.push(f.ref, f.__c || m, f)), g == null && m != null && (g = m), 65536 & f.__u || _.__k === f.__k ? c = un(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : m && (c = m.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
66
|
+
n.__d = c, n.__e = g;
|
|
67
67
|
}
|
|
68
68
|
function wr(e, t, n) {
|
|
69
69
|
var r, o, i, a, l, c = t.length, d = n.length, p = d, s = 0;
|
|
70
70
|
for (e.__k = [], r = 0; r < c; r++)
|
|
71
|
-
(o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Ce(null, o, null, null, o) : Ve(o) ? Ce(j, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ce(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l = Tr(o, n, a = r + s, p), o.__i = l, i = null, l !== -1 && (p--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && s--, typeof o.type != "function" && (o.__u |= 65536)) : l !== a && (l === a + 1 ? s++ : l > a ? p > c - a ? s += l - a : s-- : s = l < a && l == a - 1 ? l - a : 0, l !== r + s && (o.__u |= 65536))) : (i = n[r]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d =
|
|
71
|
+
(o = e.__k[r] = (o = t[r]) == null || typeof o == "boolean" || typeof o == "function" ? null : typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? Ce(null, o, null, null, o) : Ve(o) ? Ce(j, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? Ce(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o) != null ? (o.__ = e, o.__b = e.__b + 1, l = Tr(o, n, a = r + s, p), o.__i = l, i = null, l !== -1 && (p--, (i = n[l]) && (i.__u |= 131072)), i == null || i.__v === null ? (l == -1 && s--, typeof o.type != "function" && (o.__u |= 65536)) : l !== a && (l === a + 1 ? s++ : l > a ? p > c - a ? s += l - a : s-- : s = l < a && l == a - 1 ? l - a : 0, l !== r + s && (o.__u |= 65536))) : (i = n[r]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d = he(i)), et(i, i, !1), n[r] = null, p--);
|
|
72
72
|
if (p)
|
|
73
73
|
for (r = 0; r < d; r++)
|
|
74
|
-
(i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d =
|
|
74
|
+
(i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = he(i)), et(i, i));
|
|
75
75
|
}
|
|
76
76
|
function un(e, t, n) {
|
|
77
77
|
var r, o;
|
|
@@ -109,7 +109,7 @@ function Tr(e, t, n, r) {
|
|
|
109
109
|
function St(e, t, n) {
|
|
110
110
|
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Sr.test(t) ? n : n + "px";
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ne(e, t, n, r, o) {
|
|
113
113
|
var i;
|
|
114
114
|
e:
|
|
115
115
|
if (t === "style")
|
|
@@ -144,94 +144,94 @@ function wt(e) {
|
|
|
144
144
|
return;
|
|
145
145
|
} else
|
|
146
146
|
e.t = Date.now();
|
|
147
|
-
return t(
|
|
147
|
+
return t(x.event ? x.event(e) : e);
|
|
148
148
|
}
|
|
149
149
|
function Tt(e) {
|
|
150
|
-
return this.l[e.type + !0](
|
|
150
|
+
return this.l[e.type + !0](x.event ? x.event(e) : e);
|
|
151
151
|
}
|
|
152
152
|
function lt(e, t, n, r, o, i, a, l, c, d) {
|
|
153
|
-
var p, s, _, f,
|
|
153
|
+
var p, s, _, f, m, g, y, v, C, k, R, P, S, A, N, h = t.type;
|
|
154
154
|
if (t.constructor !== void 0)
|
|
155
155
|
return null;
|
|
156
|
-
128 & n.__u && (c = !!(32 & n.__u), i = [l = t.__e = n.__e]), (p =
|
|
156
|
+
128 & n.__u && (c = !!(32 & n.__u), i = [l = t.__e = n.__e]), (p = x.__b) && p(t);
|
|
157
157
|
e:
|
|
158
|
-
if (typeof
|
|
158
|
+
if (typeof h == "function")
|
|
159
159
|
try {
|
|
160
|
-
if (v = t.props,
|
|
161
|
-
|
|
160
|
+
if (v = t.props, C = (p = h.contextType) && r[p.__c], k = p ? C ? C.props.value : p.__ : r, n.__c ? y = (s = t.__c = n.__c).__ = s.__E : ("prototype" in h && h.prototype.render ? t.__c = s = new h(v, k) : (t.__c = s = new Z(v, k), s.constructor = h, s.render = Er), C && C.sub(s), s.props = v, s.state || (s.state = {}), s.context = k, s.__n = r, _ = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), h.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = J({}, s.__s)), J(s.__s, h.getDerivedStateFromProps(v, s.__s))), f = s.props, m = s.state, s.__v = t, _)
|
|
161
|
+
h.getDerivedStateFromProps == null && s.componentWillMount != null && s.componentWillMount(), s.componentDidMount != null && s.__h.push(s.componentDidMount);
|
|
162
162
|
else {
|
|
163
|
-
if (
|
|
164
|
-
for (t.__v !== n.__v && (s.props = v, s.state = s.__s, s.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(
|
|
165
|
-
|
|
166
|
-
}),
|
|
167
|
-
s.__h.push(s._sb[
|
|
163
|
+
if (h.getDerivedStateFromProps == null && v !== f && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, k), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, k) === !1 || t.__v === n.__v)) {
|
|
164
|
+
for (t.__v !== n.__v && (s.props = v, s.state = s.__s, s.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(T) {
|
|
165
|
+
T && (T.__ = t);
|
|
166
|
+
}), R = 0; R < s._sb.length; R++)
|
|
167
|
+
s.__h.push(s._sb[R]);
|
|
168
168
|
s._sb = [], s.__h.length && a.push(s);
|
|
169
169
|
break e;
|
|
170
170
|
}
|
|
171
|
-
s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s,
|
|
172
|
-
s.componentDidUpdate(f,
|
|
171
|
+
s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s, k), s.componentDidUpdate != null && s.__h.push(function() {
|
|
172
|
+
s.componentDidUpdate(f, m, g);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
if (s.context =
|
|
176
|
-
for (s.state = s.__s, s.__d = !1,
|
|
177
|
-
s.__h.push(s._sb[
|
|
175
|
+
if (s.context = k, s.props = v, s.__P = e, s.__e = !1, P = x.__r, S = 0, "prototype" in h && h.prototype.render) {
|
|
176
|
+
for (s.state = s.__s, s.__d = !1, P && P(t), p = s.render(s.props, s.state, s.context), A = 0; A < s._sb.length; A++)
|
|
177
|
+
s.__h.push(s._sb[A]);
|
|
178
178
|
s._sb = [];
|
|
179
179
|
} else
|
|
180
180
|
do
|
|
181
|
-
s.__d = !1,
|
|
182
|
-
while (s.__d && ++
|
|
183
|
-
s.state = s.__s, s.getChildContext != null && (r = J(J({}, r), s.getChildContext())), _ || s.getSnapshotBeforeUpdate == null || (
|
|
184
|
-
} catch (
|
|
185
|
-
t.__v = null, c || i != null ? (t.__e = l, t.__u |= c ? 160 : 32, i[i.indexOf(l)] = null) : (t.__e = n.__e, t.__k = n.__k),
|
|
181
|
+
s.__d = !1, P && P(t), p = s.render(s.props, s.state, s.context), s.state = s.__s;
|
|
182
|
+
while (s.__d && ++S < 25);
|
|
183
|
+
s.state = s.__s, s.getChildContext != null && (r = J(J({}, r), s.getChildContext())), _ || s.getSnapshotBeforeUpdate == null || (g = s.getSnapshotBeforeUpdate(f, m)), cn(e, Ve(N = p != null && p.type === j && p.key == null ? p.props.children : p) ? N : [N], t, n, r, o, i, a, l, c, d), s.base = t.__e, t.__u &= -161, s.__h.length && a.push(s), y && (s.__E = s.__ = null);
|
|
184
|
+
} catch (T) {
|
|
185
|
+
t.__v = null, c || i != null ? (t.__e = l, t.__u |= c ? 160 : 32, i[i.indexOf(l)] = null) : (t.__e = n.__e, t.__k = n.__k), x.__e(T, t, n);
|
|
186
186
|
}
|
|
187
187
|
else
|
|
188
188
|
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Pr(n.__e, t, n, r, o, i, a, c, d);
|
|
189
|
-
(p =
|
|
189
|
+
(p = x.diffed) && p(t);
|
|
190
190
|
}
|
|
191
191
|
function dn(e, t, n) {
|
|
192
192
|
t.__d = void 0;
|
|
193
193
|
for (var r = 0; r < n.length; r++)
|
|
194
194
|
ct(n[r], n[++r], n[++r]);
|
|
195
|
-
|
|
195
|
+
x.__c && x.__c(t, e), e.some(function(o) {
|
|
196
196
|
try {
|
|
197
197
|
e = o.__h, o.__h = [], e.some(function(i) {
|
|
198
198
|
i.call(o);
|
|
199
199
|
});
|
|
200
200
|
} catch (i) {
|
|
201
|
-
|
|
201
|
+
x.__e(i, o.__v);
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
function Pr(e, t, n, r, o, i, a, l, c) {
|
|
206
|
-
var d, p, s, _, f,
|
|
207
|
-
if (
|
|
206
|
+
var d, p, s, _, f, m, g, y = n.props, v = t.props, C = t.type;
|
|
207
|
+
if (C === "svg" && (o = !0), i != null) {
|
|
208
208
|
for (d = 0; d < i.length; d++)
|
|
209
|
-
if ((f = i[d]) && "setAttribute" in f == !!
|
|
209
|
+
if ((f = i[d]) && "setAttribute" in f == !!C && (C ? f.localName === C : f.nodeType === 3)) {
|
|
210
210
|
e = f, i[d] = null;
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
if (e == null) {
|
|
215
|
-
if (
|
|
215
|
+
if (C === null)
|
|
216
216
|
return document.createTextNode(v);
|
|
217
|
-
e = o ? document.createElementNS("http://www.w3.org/2000/svg",
|
|
217
|
+
e = o ? document.createElementNS("http://www.w3.org/2000/svg", C) : document.createElement(C, v.is && v), i = null, l = !1;
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
219
|
+
if (C === null)
|
|
220
220
|
y === v || l && e.data === v || (e.data = v);
|
|
221
221
|
else {
|
|
222
222
|
if (i = i && Te.call(e.childNodes), y = n.props || we, !l && i != null)
|
|
223
223
|
for (y = {}, d = 0; d < e.attributes.length; d++)
|
|
224
224
|
y[(f = e.attributes[d]).name] = f.value;
|
|
225
225
|
for (d in y)
|
|
226
|
-
f = y[d], d == "children" || (d == "dangerouslySetInnerHTML" ? s = f : d === "key" || d in v ||
|
|
226
|
+
f = y[d], d == "children" || (d == "dangerouslySetInnerHTML" ? s = f : d === "key" || d in v || Ne(e, d, null, f, o));
|
|
227
227
|
for (d in v)
|
|
228
|
-
f = v[d], d == "children" ? _ = f : d == "dangerouslySetInnerHTML" ? p = f : d == "value" ?
|
|
228
|
+
f = v[d], d == "children" ? _ = f : d == "dangerouslySetInnerHTML" ? p = f : d == "value" ? m = f : d == "checked" ? g = f : d === "key" || l && typeof f != "function" || y[d] === f || Ne(e, d, f, y[d], o);
|
|
229
229
|
if (p)
|
|
230
230
|
l || s && (p.__html === s.__html || p.__html === e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
|
|
231
|
-
else if (s && (e.innerHTML = ""), cn(e, Ve(_) ? _ : [_], t, n, r, o &&
|
|
231
|
+
else if (s && (e.innerHTML = ""), cn(e, Ve(_) ? _ : [_], t, n, r, o && C !== "foreignObject", i, a, i ? i[0] : n.__k && he(n, 0), l, c), i != null)
|
|
232
232
|
for (d = i.length; d--; )
|
|
233
233
|
i[d] != null && an(i[d]);
|
|
234
|
-
l || (d = "value",
|
|
234
|
+
l || (d = "value", m !== void 0 && (m !== e[d] || C === "progress" && !m || C === "option" && m !== y[d]) && Ne(e, d, m, y[d], !1), d = "checked", g !== void 0 && g !== e[d] && Ne(e, d, g, y[d], !1));
|
|
235
235
|
}
|
|
236
236
|
return e;
|
|
237
237
|
}
|
|
@@ -239,17 +239,17 @@ function ct(e, t, n) {
|
|
|
239
239
|
try {
|
|
240
240
|
typeof e == "function" ? e(t) : e.current = t;
|
|
241
241
|
} catch (r) {
|
|
242
|
-
|
|
242
|
+
x.__e(r, n);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
function et(e, t, n) {
|
|
246
246
|
var r, o;
|
|
247
|
-
if (
|
|
247
|
+
if (x.unmount && x.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || ct(r, null, t)), (r = e.__c) != null) {
|
|
248
248
|
if (r.componentWillUnmount)
|
|
249
249
|
try {
|
|
250
250
|
r.componentWillUnmount();
|
|
251
251
|
} catch (i) {
|
|
252
|
-
|
|
252
|
+
x.__e(i, t);
|
|
253
253
|
}
|
|
254
254
|
r.base = r.__P = null, e.__c = void 0;
|
|
255
255
|
}
|
|
@@ -261,14 +261,14 @@ function et(e, t, n) {
|
|
|
261
261
|
function Er(e, t, n) {
|
|
262
262
|
return this.constructor(e, n);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function me(e, t, n) {
|
|
265
265
|
var r, o, i, a;
|
|
266
|
-
|
|
266
|
+
x.__ && x.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], lt(t, e = (!r && n || t).__k = V(j, null, [e]), o || we, we, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? Te.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, a), dn(i, e, a);
|
|
267
267
|
}
|
|
268
268
|
function pn(e, t) {
|
|
269
|
-
|
|
269
|
+
me(e, t, pn);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Rr(e, t, n) {
|
|
272
272
|
var r, o, i, a, l = J({}, e.props);
|
|
273
273
|
for (i in e.type && e.type.defaultProps && (a = e.type.defaultProps), t)
|
|
274
274
|
i == "key" ? r = t[i] : i == "ref" ? o = t[i] : l[i] = t[i] === void 0 && a !== void 0 ? a[i] : t[i];
|
|
@@ -295,7 +295,7 @@ function fn(e, t) {
|
|
|
295
295
|
} };
|
|
296
296
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
297
297
|
}
|
|
298
|
-
Te = on.slice,
|
|
298
|
+
Te = on.slice, x = { __e: function(e, t, n, r) {
|
|
299
299
|
for (var o, i, a; t = t.__; )
|
|
300
300
|
if ((o = t.__c) && !o.__)
|
|
301
301
|
try {
|
|
@@ -310,7 +310,7 @@ Te = on.slice, C = { __e: function(e, t, n, r) {
|
|
|
310
310
|
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = J({}, this.state), typeof e == "function" && (e = e(J({}, n), this.props)), e && J(n, e), e != null && this.__v && (t && this._sb.push(t), Xe(this));
|
|
311
311
|
}, Z.prototype.forceUpdate = function(e) {
|
|
312
312
|
this.__v && (this.__e = !0, e && this.__h.push(e), Xe(this));
|
|
313
|
-
}, Z.prototype.render = j,
|
|
313
|
+
}, Z.prototype.render = j, ce = [], nn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Je = function(e, t) {
|
|
314
314
|
return e.__v.__b - t.__v.__b;
|
|
315
315
|
}, Oe.__r = 0, rn = 0;
|
|
316
316
|
function _n(e) {
|
|
@@ -326,22 +326,22 @@ function _n(e) {
|
|
|
326
326
|
e[t] && (r && (r += " "), r += t);
|
|
327
327
|
return r;
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function L() {
|
|
330
330
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
331
331
|
(e = arguments[n++]) && (t = _n(e)) && (r && (r += " "), r += t);
|
|
332
332
|
return r;
|
|
333
333
|
}
|
|
334
|
-
var te, M, We, Pt,
|
|
335
|
-
function
|
|
336
|
-
|
|
334
|
+
var te, M, We, Pt, ge = 0, hn = [], Ie = [], Et = x.__b, Rt = x.__r, Nt = x.diffed, Lt = x.__c, It = x.unmount;
|
|
335
|
+
function ue(e, t) {
|
|
336
|
+
x.__h && x.__h(M, e, ge || t), ge = 0;
|
|
337
337
|
var n = M.__H || (M.__H = { __: [], __h: [] });
|
|
338
|
-
return e >= n.__.length && n.__.push({ __V:
|
|
338
|
+
return e >= n.__.length && n.__.push({ __V: Ie }), n.__[e];
|
|
339
339
|
}
|
|
340
340
|
function D(e) {
|
|
341
|
-
return
|
|
341
|
+
return ge = 1, ut(yn, e);
|
|
342
342
|
}
|
|
343
343
|
function ut(e, t, n) {
|
|
344
|
-
var r =
|
|
344
|
+
var r = ue(te++, 2);
|
|
345
345
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : yn(void 0, t), function(l) {
|
|
346
346
|
var c = r.__N ? r.__N[0] : r.__[0], d = r.t(c, l);
|
|
347
347
|
c !== d && (r.__N = [d, r.__[1]], r.__c.setState({}));
|
|
@@ -376,21 +376,21 @@ function ut(e, t, n) {
|
|
|
376
376
|
}
|
|
377
377
|
return r.__N || r.__;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
var n =
|
|
381
|
-
!
|
|
379
|
+
function F(e, t) {
|
|
380
|
+
var n = ue(te++, 3);
|
|
381
|
+
!x.__s && pt(n.__H, t) && (n.__ = e, n.i = t, M.__H.__h.push(n));
|
|
382
382
|
}
|
|
383
383
|
function Pe(e, t) {
|
|
384
|
-
var n =
|
|
385
|
-
!
|
|
384
|
+
var n = ue(te++, 4);
|
|
385
|
+
!x.__s && pt(n.__H, t) && (n.__ = e, n.i = t, M.__h.push(n));
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
387
|
+
function ne(e) {
|
|
388
|
+
return ge = 5, He(function() {
|
|
389
389
|
return { current: e };
|
|
390
390
|
}, []);
|
|
391
391
|
}
|
|
392
392
|
function mn(e, t, n) {
|
|
393
|
-
|
|
393
|
+
ge = 6, Pe(function() {
|
|
394
394
|
return typeof e == "function" ? (e(t()), function() {
|
|
395
395
|
return e(null);
|
|
396
396
|
}) : e ? (e.current = t(), function() {
|
|
@@ -399,23 +399,23 @@ function mn(e, t, n) {
|
|
|
399
399
|
}, n == null ? n : n.concat(e));
|
|
400
400
|
}
|
|
401
401
|
function He(e, t) {
|
|
402
|
-
var n =
|
|
402
|
+
var n = ue(te++, 7);
|
|
403
403
|
return pt(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
|
404
404
|
}
|
|
405
405
|
function gn(e, t) {
|
|
406
|
-
return
|
|
406
|
+
return ge = 8, He(function() {
|
|
407
407
|
return e;
|
|
408
408
|
}, t);
|
|
409
409
|
}
|
|
410
410
|
function bn(e) {
|
|
411
|
-
var t = M.context[e.__c], n =
|
|
411
|
+
var t = M.context[e.__c], n = ue(te++, 9);
|
|
412
412
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(M)), t.props.value) : e.__;
|
|
413
413
|
}
|
|
414
414
|
function dt(e, t) {
|
|
415
|
-
|
|
415
|
+
x.useDebugValue && x.useDebugValue(t ? t(e) : e);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
var t =
|
|
417
|
+
function Nr(e) {
|
|
418
|
+
var t = ue(te++, 10), n = D();
|
|
419
419
|
return t.__ = e, M.componentDidCatch || (M.componentDidCatch = function(r, o) {
|
|
420
420
|
t.__ && t.__(r, o), n[1](r);
|
|
421
421
|
}), [n[0], function() {
|
|
@@ -423,7 +423,7 @@ function Rr(e) {
|
|
|
423
423
|
}];
|
|
424
424
|
}
|
|
425
425
|
function vn() {
|
|
426
|
-
var e =
|
|
426
|
+
var e = ue(te++, 11);
|
|
427
427
|
if (!e.__) {
|
|
428
428
|
for (var t = M.__v; t !== null && !t.__m && t.__ !== null; )
|
|
429
429
|
t = t.__;
|
|
@@ -432,30 +432,30 @@ function vn() {
|
|
|
432
432
|
}
|
|
433
433
|
return e.__;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Lr() {
|
|
436
436
|
for (var e; e = hn.shift(); )
|
|
437
437
|
if (e.__P && e.__H)
|
|
438
438
|
try {
|
|
439
439
|
e.__H.__h.forEach(Ae), e.__H.__h.forEach(tt), e.__H.__h = [];
|
|
440
440
|
} catch (t) {
|
|
441
|
-
e.__H.__h = [],
|
|
441
|
+
e.__H.__h = [], x.__e(t, e.__v);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
|
|
444
|
+
x.__b = function(e) {
|
|
445
445
|
M = null, Et && Et(e);
|
|
446
|
-
},
|
|
447
|
-
|
|
446
|
+
}, x.__r = function(e) {
|
|
447
|
+
Rt && Rt(e), te = 0;
|
|
448
448
|
var t = (M = e.__c).__H;
|
|
449
449
|
t && (We === M ? (t.__h = [], M.__h = [], t.__.forEach(function(n) {
|
|
450
|
-
n.__N && (n.__ = n.__N), n.__V =
|
|
450
|
+
n.__N && (n.__ = n.__N), n.__V = Ie, n.__N = n.i = void 0;
|
|
451
451
|
})) : (t.__h.forEach(Ae), t.__h.forEach(tt), t.__h = [], te = 0)), We = M;
|
|
452
|
-
},
|
|
453
|
-
|
|
452
|
+
}, x.diffed = function(e) {
|
|
453
|
+
Nt && Nt(e);
|
|
454
454
|
var t = e.__c;
|
|
455
|
-
t && t.__H && (t.__H.__h.length && (hn.push(t) !== 1 && Pt ===
|
|
456
|
-
n.i && (n.__H = n.i), n.__V !==
|
|
455
|
+
t && t.__H && (t.__H.__h.length && (hn.push(t) !== 1 && Pt === x.requestAnimationFrame || ((Pt = x.requestAnimationFrame) || Ir)(Lr)), t.__H.__.forEach(function(n) {
|
|
456
|
+
n.i && (n.__H = n.i), n.__V !== Ie && (n.__ = n.__V), n.i = void 0, n.__V = Ie;
|
|
457
457
|
})), We = M = null;
|
|
458
|
-
},
|
|
458
|
+
}, x.__c = function(e, t) {
|
|
459
459
|
t.some(function(n) {
|
|
460
460
|
try {
|
|
461
461
|
n.__h.forEach(Ae), n.__h = n.__h.filter(function(r) {
|
|
@@ -464,11 +464,11 @@ C.__b = function(e) {
|
|
|
464
464
|
} catch (r) {
|
|
465
465
|
t.some(function(o) {
|
|
466
466
|
o.__h && (o.__h = []);
|
|
467
|
-
}), t = [],
|
|
467
|
+
}), t = [], x.__e(r, n.__v);
|
|
468
468
|
}
|
|
469
|
-
}),
|
|
470
|
-
},
|
|
471
|
-
|
|
469
|
+
}), Lt && Lt(e, t);
|
|
470
|
+
}, x.unmount = function(e) {
|
|
471
|
+
It && It(e);
|
|
472
472
|
var t, n = e.__c;
|
|
473
473
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
474
474
|
try {
|
|
@@ -476,10 +476,10 @@ C.__b = function(e) {
|
|
|
476
476
|
} catch (o) {
|
|
477
477
|
t = o;
|
|
478
478
|
}
|
|
479
|
-
}), n.__H = void 0, t &&
|
|
479
|
+
}), n.__H = void 0, t && x.__e(t, n.__v));
|
|
480
480
|
};
|
|
481
481
|
var At = typeof requestAnimationFrame == "function";
|
|
482
|
-
function
|
|
482
|
+
function Ir(e) {
|
|
483
483
|
var t, n = function() {
|
|
484
484
|
clearTimeout(r), At && cancelAnimationFrame(t), setTimeout(e);
|
|
485
485
|
}, r = setTimeout(n, 100);
|
|
@@ -524,15 +524,15 @@ function Cn(e, t) {
|
|
|
524
524
|
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : nt(this.props, o);
|
|
525
525
|
}
|
|
526
526
|
function r(o) {
|
|
527
|
-
return this.shouldComponentUpdate = n,
|
|
527
|
+
return this.shouldComponentUpdate = n, V(e, o);
|
|
528
528
|
}
|
|
529
529
|
return r.displayName = "Memo(" + (e.displayName || e.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
|
|
530
530
|
}
|
|
531
531
|
(Ue.prototype = new Z()).isPureReactComponent = !0, Ue.prototype.shouldComponentUpdate = function(e, t) {
|
|
532
532
|
return nt(this.props, e) || nt(this.state, t);
|
|
533
533
|
};
|
|
534
|
-
var Mt =
|
|
535
|
-
|
|
534
|
+
var Mt = x.__b;
|
|
535
|
+
x.__b = function(e) {
|
|
536
536
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mt && Mt(e);
|
|
537
537
|
};
|
|
538
538
|
var Ar = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
@@ -552,8 +552,8 @@ var $t = function(e, t) {
|
|
|
552
552
|
if (t.length !== 1)
|
|
553
553
|
throw "Children.only";
|
|
554
554
|
return t[0];
|
|
555
|
-
}, toArray: X }, Mr =
|
|
556
|
-
|
|
555
|
+
}, toArray: X }, Mr = x.__e;
|
|
556
|
+
x.__e = function(e, t, n, r) {
|
|
557
557
|
if (e.then) {
|
|
558
558
|
for (var o, i = t; i = i.__; )
|
|
559
559
|
if ((o = i.__c) && o.__c)
|
|
@@ -561,7 +561,7 @@ C.__e = function(e, t, n, r) {
|
|
|
561
561
|
}
|
|
562
562
|
Mr(e, t, n, r);
|
|
563
563
|
};
|
|
564
|
-
var Ot =
|
|
564
|
+
var Ot = x.unmount;
|
|
565
565
|
function wn(e, t, n) {
|
|
566
566
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
567
567
|
typeof r.__c == "function" && r.__c();
|
|
@@ -592,14 +592,14 @@ function En(e) {
|
|
|
592
592
|
throw r;
|
|
593
593
|
if (!n)
|
|
594
594
|
throw t;
|
|
595
|
-
return
|
|
595
|
+
return V(n, i);
|
|
596
596
|
}
|
|
597
597
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function fe() {
|
|
600
600
|
this.u = null, this.o = null;
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
x.unmount = function(e) {
|
|
603
603
|
var t = e.__c;
|
|
604
604
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Ot && Ot(e);
|
|
605
605
|
}, (ke.prototype = new Z()).__c = function(e, t) {
|
|
@@ -631,8 +631,8 @@ C.unmount = function(e) {
|
|
|
631
631
|
}
|
|
632
632
|
this.__b = null;
|
|
633
633
|
}
|
|
634
|
-
var o = t.__a &&
|
|
635
|
-
return o && (o.__u &= -33), [
|
|
634
|
+
var o = t.__a && V(j, null, e.fallback);
|
|
635
|
+
return o && (o.__u &= -33), [V(j, null, t.__a ? null : e.children), o];
|
|
636
636
|
};
|
|
637
637
|
var Ut = function(e, t, n) {
|
|
638
638
|
if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
|
|
@@ -652,20 +652,20 @@ function $r(e) {
|
|
|
652
652
|
function Or(e) {
|
|
653
653
|
var t = this, n = e.i;
|
|
654
654
|
t.componentWillUnmount = function() {
|
|
655
|
-
|
|
655
|
+
me(null, t.l), t.l = null, t.i = null;
|
|
656
656
|
}, t.i && t.i !== n && t.componentWillUnmount(), t.l || (t.i = n, t.l = { nodeType: 1, parentNode: n, childNodes: [], appendChild: function(r) {
|
|
657
657
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
658
658
|
}, insertBefore: function(r, o) {
|
|
659
659
|
this.childNodes.push(r), t.i.appendChild(r);
|
|
660
660
|
}, removeChild: function(r) {
|
|
661
661
|
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), t.i.removeChild(r);
|
|
662
|
-
} }),
|
|
662
|
+
} }), me(V($r, { context: t.context }, e.__v), t.l);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
var n =
|
|
664
|
+
function Rn(e, t) {
|
|
665
|
+
var n = V(Or, { __v: e, i: t });
|
|
666
666
|
return n.containerInfo = t, n;
|
|
667
667
|
}
|
|
668
|
-
(
|
|
668
|
+
(fe.prototype = new Z()).__a = function(e) {
|
|
669
669
|
var t = this, n = Pn(t.__v), r = t.o.get(e);
|
|
670
670
|
return r[0]++, function(o) {
|
|
671
671
|
var i = function() {
|
|
@@ -673,26 +673,26 @@ function Nn(e, t) {
|
|
|
673
673
|
};
|
|
674
674
|
n ? n(i) : i();
|
|
675
675
|
};
|
|
676
|
-
},
|
|
676
|
+
}, fe.prototype.render = function(e) {
|
|
677
677
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
678
678
|
var t = X(e.children);
|
|
679
679
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
680
680
|
for (var n = t.length; n--; )
|
|
681
681
|
this.o.set(t[n], this.u = [1, 0, this.u]);
|
|
682
682
|
return e.children;
|
|
683
|
-
},
|
|
683
|
+
}, fe.prototype.componentDidUpdate = fe.prototype.componentDidMount = function() {
|
|
684
684
|
var e = this;
|
|
685
685
|
this.o.forEach(function(t, n) {
|
|
686
686
|
Ut(e, n, t);
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
var
|
|
689
|
+
var Nn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ur = /^(?: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]/, Vr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Hr = /[A-Z0-9]/g, Br = typeof document < "u", Dr = function(e) {
|
|
690
690
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
691
691
|
};
|
|
692
|
-
function In(e, t, n) {
|
|
693
|
-
return t.__k == null && (t.textContent = ""), he(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
694
|
-
}
|
|
695
692
|
function Ln(e, t, n) {
|
|
693
|
+
return t.__k == null && (t.textContent = ""), me(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
694
|
+
}
|
|
695
|
+
function In(e, t, n) {
|
|
696
696
|
return pn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
697
697
|
}
|
|
698
698
|
Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
@@ -702,7 +702,7 @@ Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
702
702
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
703
703
|
} });
|
|
704
704
|
});
|
|
705
|
-
var Vt =
|
|
705
|
+
var Vt = x.event;
|
|
706
706
|
function jr() {
|
|
707
707
|
}
|
|
708
708
|
function Fr() {
|
|
@@ -711,13 +711,13 @@ function Fr() {
|
|
|
711
711
|
function qr() {
|
|
712
712
|
return this.defaultPrevented;
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
x.event = function(e) {
|
|
715
715
|
return Vt && (e = Vt(e)), e.persist = jr, e.isPropagationStopped = Fr, e.isDefaultPrevented = qr, e.nativeEvent = e;
|
|
716
716
|
};
|
|
717
717
|
var ft, zr = { enumerable: !1, configurable: !0, get: function() {
|
|
718
718
|
return this.class;
|
|
719
|
-
} }, Ht =
|
|
720
|
-
|
|
719
|
+
} }, Ht = x.vnode;
|
|
720
|
+
x.vnode = function(e) {
|
|
721
721
|
typeof e.type == "string" && function(t) {
|
|
722
722
|
var n = t.props, r = t.type, o = {};
|
|
723
723
|
for (var i in n) {
|
|
@@ -732,14 +732,14 @@ C.vnode = function(e) {
|
|
|
732
732
|
})), r == "select" && o.defaultValue != null && (o.value = X(n.children).forEach(function(c) {
|
|
733
733
|
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
734
734
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", zr)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
735
|
-
}(e), e.$$typeof =
|
|
735
|
+
}(e), e.$$typeof = Nn, Ht && Ht(e);
|
|
736
736
|
};
|
|
737
|
-
var Bt =
|
|
738
|
-
|
|
737
|
+
var Bt = x.__r;
|
|
738
|
+
x.__r = function(e) {
|
|
739
739
|
Bt && Bt(e), ft = e.__c;
|
|
740
740
|
};
|
|
741
|
-
var Dt =
|
|
742
|
-
|
|
741
|
+
var Dt = x.diffed;
|
|
742
|
+
x.diffed = function(e) {
|
|
743
743
|
Dt && Dt(e);
|
|
744
744
|
var t = e.props, n = e.__e;
|
|
745
745
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), ft = null;
|
|
@@ -748,19 +748,19 @@ var An = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
|
748
748
|
return ft.__n[e.__c].props.value;
|
|
749
749
|
} } } }, Wr = "17.0.2";
|
|
750
750
|
function Mn(e) {
|
|
751
|
-
return
|
|
751
|
+
return V.bind(null, e);
|
|
752
752
|
}
|
|
753
753
|
function Ee(e) {
|
|
754
|
-
return !!e && e.$$typeof ===
|
|
754
|
+
return !!e && e.$$typeof === Nn;
|
|
755
755
|
}
|
|
756
756
|
function $n(e) {
|
|
757
757
|
return Ee(e) && e.type === j;
|
|
758
758
|
}
|
|
759
759
|
function On(e) {
|
|
760
|
-
return Ee(e) ?
|
|
760
|
+
return Ee(e) ? Rr.apply(null, arguments) : e;
|
|
761
761
|
}
|
|
762
762
|
function Un(e) {
|
|
763
|
-
return !!e.__k && (
|
|
763
|
+
return !!e.__k && (me(null, e), !0);
|
|
764
764
|
}
|
|
765
765
|
function Vn(e) {
|
|
766
766
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
@@ -784,7 +784,7 @@ function Wn(e, t) {
|
|
|
784
784
|
var n = t(), r = D({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
785
785
|
return Pe(function() {
|
|
786
786
|
o.__ = n, o.v = t, Ze(o) && i({ h: o });
|
|
787
|
-
}, [e, n, t]),
|
|
787
|
+
}, [e, n, t]), F(function() {
|
|
788
788
|
return Ze(o) && i({ h: o }), e(function() {
|
|
789
789
|
Ze(o) && i({ h: o });
|
|
790
790
|
});
|
|
@@ -799,7 +799,7 @@ function Ze(e) {
|
|
|
799
799
|
return !0;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
var Zr = { useState: D, useId: vn, useReducer: ut, useEffect:
|
|
802
|
+
var Zr = { useState: D, useId: vn, useReducer: ut, useEffect: F, useLayoutEffect: Pe, useInsertionEffect: qn, useTransition: Fn, useDeferredValue: jn, useSyncExternalStore: Wn, startTransition: _t, useRef: ne, useImperativeHandle: mn, useMemo: He, useCallback: gn, useContext: bn, useDebugValue: dt, version: "17.0.2", Children: Sn, render: Ln, hydrate: In, unmountComponentAtNode: Un, createPortal: Rn, createElement: V, createContext: fn, createFactory: Mn, cloneElement: On, createRef: sn, Fragment: j, isValidElement: Ee, isElement: zn, isFragment: $n, findDOMNode: Vn, Component: Z, PureComponent: Ue, memo: Cn, forwardRef: kn, flushSync: Bn, unstable_batchedUpdates: Hn, StrictMode: Dn, Suspense: ke, SuspenseList: fe, lazy: En, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: An };
|
|
803
803
|
const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
804
804
|
__proto__: null,
|
|
805
805
|
Children: Sn,
|
|
@@ -808,25 +808,25 @@ const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
808
808
|
PureComponent: Ue,
|
|
809
809
|
StrictMode: Dn,
|
|
810
810
|
Suspense: ke,
|
|
811
|
-
SuspenseList:
|
|
811
|
+
SuspenseList: fe,
|
|
812
812
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: An,
|
|
813
813
|
cloneElement: On,
|
|
814
814
|
createContext: fn,
|
|
815
|
-
createElement:
|
|
815
|
+
createElement: V,
|
|
816
816
|
createFactory: Mn,
|
|
817
|
-
createPortal:
|
|
817
|
+
createPortal: Rn,
|
|
818
818
|
createRef: sn,
|
|
819
819
|
default: Zr,
|
|
820
820
|
findDOMNode: Vn,
|
|
821
821
|
flushSync: Bn,
|
|
822
822
|
forwardRef: kn,
|
|
823
|
-
hydrate:
|
|
823
|
+
hydrate: In,
|
|
824
824
|
isElement: zn,
|
|
825
825
|
isFragment: $n,
|
|
826
826
|
isValidElement: Ee,
|
|
827
827
|
lazy: En,
|
|
828
828
|
memo: Cn,
|
|
829
|
-
render:
|
|
829
|
+
render: Ln,
|
|
830
830
|
startTransition: _t,
|
|
831
831
|
unmountComponentAtNode: Un,
|
|
832
832
|
unstable_batchedUpdates: Hn,
|
|
@@ -834,15 +834,15 @@ const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
834
834
|
useContext: bn,
|
|
835
835
|
useDebugValue: dt,
|
|
836
836
|
useDeferredValue: jn,
|
|
837
|
-
useEffect:
|
|
838
|
-
useErrorBoundary:
|
|
837
|
+
useEffect: F,
|
|
838
|
+
useErrorBoundary: Nr,
|
|
839
839
|
useId: vn,
|
|
840
840
|
useImperativeHandle: mn,
|
|
841
841
|
useInsertionEffect: qn,
|
|
842
842
|
useLayoutEffect: Pe,
|
|
843
843
|
useMemo: He,
|
|
844
844
|
useReducer: ut,
|
|
845
|
-
useRef:
|
|
845
|
+
useRef: ne,
|
|
846
846
|
useState: D,
|
|
847
847
|
useSyncExternalStore: Wn,
|
|
848
848
|
useTransition: Fn,
|
|
@@ -870,11 +870,11 @@ var Kn = { exports: {} }, Yn = {};
|
|
|
870
870
|
* This source code is licensed under the MIT license found in the
|
|
871
871
|
* LICENSE file in the root directory of this source tree.
|
|
872
872
|
*/
|
|
873
|
-
var
|
|
873
|
+
var be = Qn;
|
|
874
874
|
function Kr(e, t) {
|
|
875
875
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
876
876
|
}
|
|
877
|
-
var Yr = typeof Object.is == "function" ? Object.is : Kr, Jr =
|
|
877
|
+
var Yr = typeof Object.is == "function" ? Object.is : Kr, Jr = be.useState, Xr = be.useEffect, eo = be.useLayoutEffect, to = be.useDebugValue;
|
|
878
878
|
function no(e, t) {
|
|
879
879
|
var n = t(), r = Jr({ inst: { value: n, getSnapshot: t } }), o = r[0].inst, i = r[1];
|
|
880
880
|
return eo(function() {
|
|
@@ -899,7 +899,7 @@ function ro(e, t) {
|
|
|
899
899
|
return t();
|
|
900
900
|
}
|
|
901
901
|
var oo = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? ro : no;
|
|
902
|
-
Yn.useSyncExternalStore =
|
|
902
|
+
Yn.useSyncExternalStore = be.useSyncExternalStore !== void 0 ? be.useSyncExternalStore : oo;
|
|
903
903
|
Kn.exports = Yn;
|
|
904
904
|
var io = Kn.exports;
|
|
905
905
|
/**
|
|
@@ -927,16 +927,16 @@ Gn.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
|
|
|
927
927
|
function c(f) {
|
|
928
928
|
if (!d) {
|
|
929
929
|
if (d = !0, p = f, f = r(f), o !== void 0 && a.hasValue) {
|
|
930
|
-
var
|
|
931
|
-
if (o(
|
|
932
|
-
return s =
|
|
930
|
+
var m = a.value;
|
|
931
|
+
if (o(m, f))
|
|
932
|
+
return s = m;
|
|
933
933
|
}
|
|
934
934
|
return s = f;
|
|
935
935
|
}
|
|
936
|
-
if (
|
|
937
|
-
return
|
|
938
|
-
var
|
|
939
|
-
return o !== void 0 && o(
|
|
936
|
+
if (m = s, lo(p, f))
|
|
937
|
+
return m;
|
|
938
|
+
var g = r(f);
|
|
939
|
+
return o !== void 0 && o(m, g) ? m : (p = f, s = g);
|
|
940
940
|
}
|
|
941
941
|
var d = !1, p, s, _ = n === void 0 ? null : n;
|
|
942
942
|
return [function() {
|
|
@@ -1030,31 +1030,31 @@ const qt = 1, ht = {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
}, vo = (e, t, n) => {
|
|
1032
1032
|
switch (t) {
|
|
1033
|
-
case
|
|
1033
|
+
case b.VideoVoice:
|
|
1034
1034
|
return !!(e && e.value);
|
|
1035
|
-
case
|
|
1035
|
+
case b.Open:
|
|
1036
1036
|
return !!n;
|
|
1037
|
-
case
|
|
1037
|
+
case b.MultipleSelect:
|
|
1038
1038
|
return !!(n && Object.keys(n).length);
|
|
1039
|
-
case
|
|
1039
|
+
case b.RecordedTask:
|
|
1040
1040
|
return (n == null ? void 0 : n.taskStatus) === W.Completed;
|
|
1041
|
-
case
|
|
1041
|
+
case b.TextUrlPrompt:
|
|
1042
1042
|
return !e.value;
|
|
1043
|
-
case
|
|
1043
|
+
case b.ConsentLegal:
|
|
1044
1044
|
return n !== null;
|
|
1045
|
-
case
|
|
1045
|
+
case b.MultipleChoice:
|
|
1046
1046
|
return n !== void 0;
|
|
1047
|
-
case
|
|
1047
|
+
case b.Matrix:
|
|
1048
1048
|
return !!(n && Object.values(n).every((r) => r !== null));
|
|
1049
|
-
case
|
|
1049
|
+
case b.NPS:
|
|
1050
1050
|
return n !== null;
|
|
1051
|
-
case
|
|
1051
|
+
case b.Likert:
|
|
1052
1052
|
return n !== null;
|
|
1053
1053
|
default:
|
|
1054
1054
|
return !0;
|
|
1055
1055
|
}
|
|
1056
1056
|
}, Xn = (e, t) => {
|
|
1057
|
-
if (t ===
|
|
1057
|
+
if (t === b.Matrix) {
|
|
1058
1058
|
const n = Object.keys(e).length, r = Object.values(e).filter((o) => o !== null).length;
|
|
1059
1059
|
return r > 0 && r < n;
|
|
1060
1060
|
}
|
|
@@ -1081,7 +1081,7 @@ const qt = 1, ht = {
|
|
|
1081
1081
|
const f = s[0];
|
|
1082
1082
|
if (f.questionIndex === void 0 || f.questionIndex > r.length)
|
|
1083
1083
|
continue;
|
|
1084
|
-
let
|
|
1084
|
+
let m = zt({
|
|
1085
1085
|
comparator: f.comparator,
|
|
1086
1086
|
// @ts-expect-error - unknown response type
|
|
1087
1087
|
response: r[f.questionIndex],
|
|
@@ -1089,8 +1089,8 @@ const qt = 1, ht = {
|
|
|
1089
1089
|
type: i.type,
|
|
1090
1090
|
value: f.value
|
|
1091
1091
|
});
|
|
1092
|
-
for (let
|
|
1093
|
-
const y = s[
|
|
1092
|
+
for (let g = 1; g < s.length; g += 2) {
|
|
1093
|
+
const y = s[g], v = s[g + 1], C = zt({
|
|
1094
1094
|
comparator: v.comparator,
|
|
1095
1095
|
// @ts-expect-error - unknown response type
|
|
1096
1096
|
response: r[v.questionIndex],
|
|
@@ -1098,14 +1098,14 @@ const qt = 1, ht = {
|
|
|
1098
1098
|
type: e[v.questionIndex].type,
|
|
1099
1099
|
value: v.value
|
|
1100
1100
|
});
|
|
1101
|
-
y === rt.And ?
|
|
1101
|
+
y === rt.And ? m && (m = C) : y === rt.Or && (m || (m = C));
|
|
1102
1102
|
}
|
|
1103
|
-
if (
|
|
1103
|
+
if (m) {
|
|
1104
1104
|
a = _ === -1 && n ? e.length - 1 : _;
|
|
1105
1105
|
break;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
const c = e.findIndex((p) => p.type ===
|
|
1108
|
+
const c = e.findIndex((p) => p.type === b.Uploading);
|
|
1109
1109
|
let d;
|
|
1110
1110
|
return c > 0 ? d = n ? e.length - 3 : e.length - 2 : d = e.length - 1, t >= d || a === -1 || a !== null && a > d ? c > 0 && Object.values(o).some((s) => s.isSubmitted && !s.isComplete) ? c : n ? e.length - 1 : null : a === -1 ? null : a;
|
|
1111
1111
|
}, zt = ({
|
|
@@ -1116,53 +1116,53 @@ const qt = 1, ht = {
|
|
|
1116
1116
|
}) => {
|
|
1117
1117
|
if (e === G.Answered)
|
|
1118
1118
|
switch (n) {
|
|
1119
|
-
case
|
|
1119
|
+
case b.TextUrlPrompt:
|
|
1120
1120
|
return t === void 0;
|
|
1121
|
-
case
|
|
1121
|
+
case b.ConsentLegal:
|
|
1122
1122
|
return t && t.submitted === !0;
|
|
1123
|
-
case
|
|
1123
|
+
case b.RecordedTask:
|
|
1124
1124
|
return "taskStatus" in t && t.taskStatus === W.Completed;
|
|
1125
|
-
case
|
|
1125
|
+
case b.Likert:
|
|
1126
1126
|
return Number.isInteger(t);
|
|
1127
|
-
case
|
|
1127
|
+
case b.Open:
|
|
1128
1128
|
return t && t.length > 0;
|
|
1129
|
-
case
|
|
1130
|
-
case
|
|
1129
|
+
case b.MultipleChoice:
|
|
1130
|
+
case b.MultipleSelect:
|
|
1131
1131
|
return Object.keys(t).length > 0;
|
|
1132
|
-
case
|
|
1132
|
+
case b.Matrix:
|
|
1133
1133
|
return Object.values(t).every((o) => o !== null);
|
|
1134
|
-
case
|
|
1134
|
+
case b.NPS:
|
|
1135
1135
|
return Number.isInteger(t);
|
|
1136
|
-
case
|
|
1136
|
+
case b.VideoVoice:
|
|
1137
1137
|
return !!(t != null && t.mediaRecordingUid);
|
|
1138
1138
|
default:
|
|
1139
1139
|
return !1;
|
|
1140
1140
|
}
|
|
1141
1141
|
if (e === G.GivenUp)
|
|
1142
|
-
return n ===
|
|
1142
|
+
return n === b.RecordedTask ? "taskStatus" in t && t.taskStatus === W.GivenUp : !0;
|
|
1143
1143
|
if (e === G.Partial)
|
|
1144
|
-
return n ===
|
|
1144
|
+
return n === b.Matrix ? Xn(t, n) : !1;
|
|
1145
1145
|
if (e === G.Skipped)
|
|
1146
1146
|
switch (n) {
|
|
1147
|
-
case
|
|
1147
|
+
case b.TextUrlPrompt:
|
|
1148
1148
|
return t == null ? void 0 : t.skipped;
|
|
1149
|
-
case
|
|
1149
|
+
case b.ConsentLegal:
|
|
1150
1150
|
return t === null;
|
|
1151
|
-
case
|
|
1151
|
+
case b.RecordedTask:
|
|
1152
1152
|
return "taskStatus" in t && t.taskStatus === W.Abandoned;
|
|
1153
|
-
case
|
|
1153
|
+
case b.Likert:
|
|
1154
1154
|
return t === null;
|
|
1155
|
-
case
|
|
1155
|
+
case b.Open:
|
|
1156
1156
|
return (t == null ? void 0 : t.length) === 0;
|
|
1157
|
-
case
|
|
1157
|
+
case b.MultipleChoice:
|
|
1158
1158
|
return t === void 0;
|
|
1159
|
-
case
|
|
1159
|
+
case b.MultipleSelect:
|
|
1160
1160
|
return (t == null ? void 0 : t.length) === 0;
|
|
1161
|
-
case
|
|
1161
|
+
case b.Matrix:
|
|
1162
1162
|
return Object.values(t).every((o) => o === null);
|
|
1163
|
-
case
|
|
1163
|
+
case b.NPS:
|
|
1164
1164
|
return t === null;
|
|
1165
|
-
case
|
|
1165
|
+
case b.VideoVoice:
|
|
1166
1166
|
return t === null;
|
|
1167
1167
|
default:
|
|
1168
1168
|
return !1;
|
|
@@ -1171,15 +1171,15 @@ const qt = 1, ht = {
|
|
|
1171
1171
|
}, yo = 13, xo = (e, t) => e.reduce((n, r) => n.concat(n.map((o) => [...o, r])), [[]]).filter((n) => t || n.length > 0), Co = (e) => {
|
|
1172
1172
|
var t, n, r;
|
|
1173
1173
|
switch (e.type) {
|
|
1174
|
-
case
|
|
1174
|
+
case b.MultipleSelect:
|
|
1175
1175
|
return !e || !e.props || !e.props.options ? null : e.props.options.length > yo ? e.props.options.map((o) => [o.value]) : xo(e.props.options.map((o) => o.value), !e.props.properties.required);
|
|
1176
|
-
case
|
|
1176
|
+
case b.MultipleChoice: {
|
|
1177
1177
|
if (!e || !e.props || !e.props.options)
|
|
1178
1178
|
return null;
|
|
1179
1179
|
const o = e.props.options.map((i) => i.value);
|
|
1180
1180
|
return e.props.properties.required || o.push(void 0), o;
|
|
1181
1181
|
}
|
|
1182
|
-
case
|
|
1182
|
+
case b.Matrix: {
|
|
1183
1183
|
if (!((t = e == null ? void 0 : e.props) != null && t.options))
|
|
1184
1184
|
return null;
|
|
1185
1185
|
const o = e.props.properties.matrixColumn, i = e.props.options, a = i.reduce((p, s) => (p[s.id] = null, p), {}), l = {
|
|
@@ -1188,16 +1188,16 @@ const qt = 1, ht = {
|
|
|
1188
1188
|
}, c = i.reduce((p, s) => (p[s.id] = o[0].value, p), {}), d = [l, c];
|
|
1189
1189
|
return e.props.properties.required || d.push(a), d;
|
|
1190
1190
|
}
|
|
1191
|
-
case
|
|
1191
|
+
case b.Likert: {
|
|
1192
1192
|
const o = Number((r = (n = e.props) == null ? void 0 : n.properties) == null ? void 0 : r.range) || 5;
|
|
1193
1193
|
return [...Array.from(Array(o).keys()).map((a) => a + 1), ...e.props.properties.required ? [] : [null]];
|
|
1194
1194
|
}
|
|
1195
|
-
case
|
|
1195
|
+
case b.NPS:
|
|
1196
1196
|
return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...e.props.properties.required ? [] : [null]];
|
|
1197
|
-
case
|
|
1198
|
-
case
|
|
1197
|
+
case b.VideoVoice:
|
|
1198
|
+
case b.Open:
|
|
1199
1199
|
return ["1", ...e.props.properties.required ? [] : [""]];
|
|
1200
|
-
case
|
|
1200
|
+
case b.RecordedTask:
|
|
1201
1201
|
return [{
|
|
1202
1202
|
taskStatus: W.Completed
|
|
1203
1203
|
}, {
|
|
@@ -1205,11 +1205,11 @@ const qt = 1, ht = {
|
|
|
1205
1205
|
}, ...e.props.properties.required ? [] : [{
|
|
1206
1206
|
taskStatus: W.Abandoned
|
|
1207
1207
|
}]];
|
|
1208
|
-
case
|
|
1208
|
+
case b.TextUrlPrompt:
|
|
1209
1209
|
return [void 0, ...e.props.properties.required ? [] : [{
|
|
1210
1210
|
skipped: !0
|
|
1211
1211
|
}]];
|
|
1212
|
-
case
|
|
1212
|
+
case b.ConsentLegal:
|
|
1213
1213
|
return [qt, ...e.props.properties.required ? [] : [null]];
|
|
1214
1214
|
default:
|
|
1215
1215
|
return [qt];
|
|
@@ -1234,7 +1234,7 @@ const qt = 1, ht = {
|
|
|
1234
1234
|
});
|
|
1235
1235
|
return [...n, ...a];
|
|
1236
1236
|
}, []), To = (e, t) => {
|
|
1237
|
-
const n = /* @__PURE__ */ new Set([
|
|
1237
|
+
const n = /* @__PURE__ */ new Set([b.Thanks, b.Uploading]);
|
|
1238
1238
|
if (t >= e.length || t < 0 || n.has(e[t].type))
|
|
1239
1239
|
return 0;
|
|
1240
1240
|
const r = e.filter((i) => !n.has(i.type));
|
|
@@ -1258,30 +1258,30 @@ const qt = 1, ht = {
|
|
|
1258
1258
|
comparator: s,
|
|
1259
1259
|
target: _,
|
|
1260
1260
|
value: f
|
|
1261
|
-
} = l[p],
|
|
1261
|
+
} = l[p], m = d.filter((g) => {
|
|
1262
1262
|
const y = vo({
|
|
1263
|
-
value:
|
|
1264
|
-
}, a.type,
|
|
1265
|
-
return !(y && s === G.Answered || v && s === G.Partial || !y && !v && s === G.Skipped || s === G.GivenUp && So(
|
|
1263
|
+
value: g
|
|
1264
|
+
}, a.type, g), v = Xn(g, a.type);
|
|
1265
|
+
return !(y && s === G.Answered || v && s === G.Partial || !y && !v && s === G.Skipped || s === G.GivenUp && So(g) && g.taskStatus === W.GivenUp || y && a.type === b.Open && (s === G.Contains || s === G.DoesNotContain) || y && ko(s) && ht[s](g, f));
|
|
1266
1266
|
});
|
|
1267
|
-
if (
|
|
1268
|
-
const
|
|
1269
|
-
if (
|
|
1267
|
+
if (m.length < d.length) {
|
|
1268
|
+
const g = parseInt(String(_), 10);
|
|
1269
|
+
if (g !== -1 && g <= i || g >= r.length)
|
|
1270
1270
|
return r.length - 1 - t;
|
|
1271
|
-
c = Math.max(o[
|
|
1271
|
+
c = Math.max(o[g] + 1, c);
|
|
1272
1272
|
}
|
|
1273
|
-
d =
|
|
1273
|
+
d = m;
|
|
1274
1274
|
}
|
|
1275
1275
|
d.length > 0 && (c = Math.max(o[i + 1] + 1, c)), o[i] = c;
|
|
1276
1276
|
}
|
|
1277
1277
|
return o[t];
|
|
1278
|
-
}, Po = (e) => !(e.type ===
|
|
1278
|
+
}, Po = (e) => !(e.type === b.Thanks || e.type === b.Uploading), $ = Jn()((e, t) => ({
|
|
1279
1279
|
allResponses: [],
|
|
1280
1280
|
answers: void 0,
|
|
1281
1281
|
apiURL: "",
|
|
1282
1282
|
border: "#000000",
|
|
1283
1283
|
cards: [],
|
|
1284
|
-
close: async (n =
|
|
1284
|
+
close: async (n = _e) => {
|
|
1285
1285
|
const r = t(), {
|
|
1286
1286
|
fadeout: o,
|
|
1287
1287
|
remove: i,
|
|
@@ -1310,14 +1310,14 @@ const qt = 1, ht = {
|
|
|
1310
1310
|
headline: ""
|
|
1311
1311
|
},
|
|
1312
1312
|
envId: "",
|
|
1313
|
-
eventEmitFn:
|
|
1313
|
+
eventEmitFn: Le.emit.bind(Le),
|
|
1314
1314
|
fadeout: async (n) => {
|
|
1315
1315
|
const {
|
|
1316
1316
|
eventEmitFn: r,
|
|
1317
1317
|
headers: o,
|
|
1318
1318
|
viewDocument: i
|
|
1319
1319
|
} = t();
|
|
1320
|
-
return $e(o) ? Promise.resolve() : (r(
|
|
1320
|
+
return $e(o) ? Promise.resolve() : (r(oe.SurveyFadingOut), new Promise((a) => {
|
|
1321
1321
|
const l = i.getElementById(n);
|
|
1322
1322
|
l ? (l.addEventListener("transitionend", () => {
|
|
1323
1323
|
a();
|
|
@@ -1346,7 +1346,7 @@ const qt = 1, ht = {
|
|
|
1346
1346
|
progressPct: o,
|
|
1347
1347
|
isSubmitted: i
|
|
1348
1348
|
}) => {
|
|
1349
|
-
var f,
|
|
1349
|
+
var f, m, g;
|
|
1350
1350
|
const {
|
|
1351
1351
|
cards: a,
|
|
1352
1352
|
destroy: l,
|
|
@@ -1355,18 +1355,18 @@ const qt = 1, ht = {
|
|
|
1355
1355
|
} = t(), p = r || ((f = d[n]) == null ? void 0 : f.isComplete), s = {
|
|
1356
1356
|
...d,
|
|
1357
1357
|
[n]: {
|
|
1358
|
-
progressPct: p ? 100 : o || ((
|
|
1358
|
+
progressPct: p ? 100 : o || ((m = d[n]) == null ? void 0 : m.progressPct),
|
|
1359
1359
|
isComplete: p,
|
|
1360
|
-
isSubmitted: i || ((
|
|
1360
|
+
isSubmitted: i || ((g = d[n]) == null ? void 0 : g.isSubmitted)
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
if (e({
|
|
1364
1364
|
uploadProgress: s
|
|
1365
|
-
}), a[c].type !==
|
|
1365
|
+
}), a[c].type !== b.Uploading)
|
|
1366
1366
|
return;
|
|
1367
1367
|
const _ = Object.entries(d).every(([y, v]) => !v.isSubmitted || v.isComplete || n == y && r);
|
|
1368
1368
|
if (_ && c >= a.length - 1)
|
|
1369
|
-
return l(
|
|
1369
|
+
return l(_e);
|
|
1370
1370
|
e({
|
|
1371
1371
|
index: _ ? c + 1 : c,
|
|
1372
1372
|
uploadingCardViewed: !0
|
|
@@ -1406,51 +1406,51 @@ const qt = 1, ht = {
|
|
|
1406
1406
|
trackHistory: d,
|
|
1407
1407
|
uploadProgress: p,
|
|
1408
1408
|
viewedCardCount: s
|
|
1409
|
-
} = t(), _ = Date.now(), f = [...o],
|
|
1410
|
-
type:
|
|
1409
|
+
} = t(), _ = Date.now(), f = [...o], m = f[a], {
|
|
1410
|
+
type: g
|
|
1411
1411
|
} = n.data, y = {
|
|
1412
1412
|
...n.data
|
|
1413
1413
|
}, v = y.value;
|
|
1414
|
-
Po(
|
|
1415
|
-
const
|
|
1414
|
+
Po(m) && (m.value = v), y.answeredAt = _, delete y.type;
|
|
1415
|
+
const C = {
|
|
1416
1416
|
response: y,
|
|
1417
1417
|
responseGroupUid: l,
|
|
1418
1418
|
questionIndex: a
|
|
1419
1419
|
};
|
|
1420
|
-
let
|
|
1421
|
-
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
allResponses:
|
|
1420
|
+
let k = g === b.MultipleChoice ? Object.values(v).find((N) => N !== !1) : v;
|
|
1421
|
+
g === b.MultipleSelect && (k = f[a].props.options.reduce((N, h) => (v[h.id] && N.push(h.value), N), []));
|
|
1422
|
+
const R = r.slice(0);
|
|
1423
|
+
R[a] = k, e({
|
|
1424
|
+
allResponses: R
|
|
1425
1425
|
});
|
|
1426
|
-
const
|
|
1426
|
+
const P = er({
|
|
1427
1427
|
cards: f,
|
|
1428
1428
|
index: a,
|
|
1429
1429
|
hasEndCard: !!n.endCard,
|
|
1430
1430
|
uploadProgress: p,
|
|
1431
|
-
allResponses:
|
|
1431
|
+
allResponses: R
|
|
1432
1432
|
});
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1433
|
+
if (P === null) {
|
|
1434
|
+
C.completedAt = _, c(C), n.completeSurvey();
|
|
1435
1435
|
return;
|
|
1436
1436
|
} else
|
|
1437
|
-
[
|
|
1438
|
-
const
|
|
1439
|
-
[
|
|
1437
|
+
[b.Thanks, b.Uploading].includes(f[P].type) && (C.completedAt = _);
|
|
1438
|
+
const S = c(C);
|
|
1439
|
+
[b.Thanks, b.Uploading].includes(f[P].type) || S.finally(() => {
|
|
1440
1440
|
d({
|
|
1441
1441
|
event: "seen",
|
|
1442
|
-
index:
|
|
1442
|
+
index: P
|
|
1443
1443
|
});
|
|
1444
1444
|
});
|
|
1445
|
-
const
|
|
1446
|
-
f[
|
|
1447
|
-
[ye.QuestionId]:
|
|
1448
|
-
[ye.Props]:
|
|
1445
|
+
const A = f[P];
|
|
1446
|
+
f[P] && i && i(ee.CurrentQuestion, {
|
|
1447
|
+
[ye.QuestionId]: A.name,
|
|
1448
|
+
[ye.Props]: A.props
|
|
1449
1449
|
// Only return the upcoming card
|
|
1450
1450
|
}), e({
|
|
1451
1451
|
cards: f,
|
|
1452
1452
|
hasViewedEmbed: !1,
|
|
1453
|
-
index:
|
|
1453
|
+
index: P,
|
|
1454
1454
|
viewedCardCount: s + 1
|
|
1455
1455
|
});
|
|
1456
1456
|
},
|
|
@@ -1458,7 +1458,7 @@ const qt = 1, ht = {
|
|
|
1458
1458
|
previewKey: null,
|
|
1459
1459
|
recorder: () => {
|
|
1460
1460
|
},
|
|
1461
|
-
recorderEventEmitter:
|
|
1461
|
+
recorderEventEmitter: Le,
|
|
1462
1462
|
resolveTrackedPromise: () => {
|
|
1463
1463
|
const {
|
|
1464
1464
|
removeIframeIfReady: n
|
|
@@ -1484,8 +1484,8 @@ const qt = 1, ht = {
|
|
|
1484
1484
|
pendingRemoveIframeReason: r,
|
|
1485
1485
|
unresolvedRequestCount: o
|
|
1486
1486
|
} = t();
|
|
1487
|
-
r && o === 0 && (n(
|
|
1488
|
-
name:
|
|
1487
|
+
r && o === 0 && (n(oe.SurveyWillClose, {
|
|
1488
|
+
name: oe.SurveyWillClose,
|
|
1489
1489
|
initiator: r
|
|
1490
1490
|
}), e({
|
|
1491
1491
|
pendingRemoveIframeReason: null
|
|
@@ -1522,7 +1522,8 @@ const qt = 1, ht = {
|
|
|
1522
1522
|
previewKey: a.previewKey
|
|
1523
1523
|
};
|
|
1524
1524
|
ze(`Submitting response: ${JSON.stringify(o.value, null, 2)} for survey: ${a.surveyId}`), n && (ze("Survey complete"), hr({
|
|
1525
|
-
id: a.surveyId
|
|
1525
|
+
id: a.surveyId,
|
|
1526
|
+
userAgent: window.navigator.userAgent
|
|
1526
1527
|
}));
|
|
1527
1528
|
const c = await a.trackPromise(Ye(`${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/responses/submit`, {
|
|
1528
1529
|
body: JSON.stringify(l),
|
|
@@ -1533,7 +1534,7 @@ const qt = 1, ht = {
|
|
|
1533
1534
|
c.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", c.error), await a.trackPromise(Wt(a, "submitResponse", c.error)));
|
|
1534
1535
|
return;
|
|
1535
1536
|
}
|
|
1536
|
-
a.eventEmitFn(
|
|
1537
|
+
a.eventEmitFn(oe.QuestionAnswered, {
|
|
1537
1538
|
...o,
|
|
1538
1539
|
questionIndex: r
|
|
1539
1540
|
});
|
|
@@ -1587,14 +1588,14 @@ const qt = 1, ht = {
|
|
|
1587
1588
|
frame: a,
|
|
1588
1589
|
useMobileStyling: l,
|
|
1589
1590
|
viewDocument: c
|
|
1590
|
-
} = t(), p = n[r].type ===
|
|
1591
|
+
} = t(), p = n[r].type === b.Matrix;
|
|
1591
1592
|
setTimeout(() => {
|
|
1592
|
-
var f,
|
|
1593
|
+
var f, m;
|
|
1593
1594
|
const [s, _] = mr(c);
|
|
1594
|
-
$e(o) ? i(
|
|
1595
|
-
name:
|
|
1595
|
+
$e(o) ? i(oe.SurveyHeight, {
|
|
1596
|
+
name: oe.SurveyHeight,
|
|
1596
1597
|
contentFrameHeight: s
|
|
1597
|
-
}) : ((f = a.setHeight) == null || f.call(a, s), l || (
|
|
1598
|
+
}) : ((f = a.setHeight) == null || f.call(a, s), l || (m = a.setWidth) == null || m.call(a, p ? _ : parseInt(gr)));
|
|
1598
1599
|
}, 100);
|
|
1599
1600
|
},
|
|
1600
1601
|
uploadingCardViewed: !1,
|
|
@@ -1654,11 +1655,11 @@ function u(e, t, n, r, o, i) {
|
|
|
1654
1655
|
if (typeof e == "function" && (a = e.defaultProps))
|
|
1655
1656
|
for (l in a)
|
|
1656
1657
|
c[l] === void 0 && (c[l] = a[l]);
|
|
1657
|
-
return
|
|
1658
|
+
return x.vnode && x.vnode(d), d;
|
|
1658
1659
|
}
|
|
1659
|
-
const
|
|
1660
|
+
const q = (e) => u("button", {
|
|
1660
1661
|
...e,
|
|
1661
|
-
className:
|
|
1662
|
+
className: L("ul-card-text__button", e.className),
|
|
1662
1663
|
id: "ul-card-text__button"
|
|
1663
1664
|
}), Y = ({
|
|
1664
1665
|
message: e,
|
|
@@ -1724,7 +1725,7 @@ const F = (e) => u("button", {
|
|
|
1724
1725
|
}
|
|
1725
1726
|
return e();
|
|
1726
1727
|
}, tr = (e, t) => {
|
|
1727
|
-
const n =
|
|
1728
|
+
const n = ne(0), r = () => {
|
|
1728
1729
|
if (e.current) {
|
|
1729
1730
|
const o = e.current;
|
|
1730
1731
|
o.style.height = "1px";
|
|
@@ -1732,7 +1733,7 @@ const F = (e) => u("button", {
|
|
|
1732
1733
|
n.current !== d && t(), n.current = d, o.style.height = `${d}px`;
|
|
1733
1734
|
}
|
|
1734
1735
|
};
|
|
1735
|
-
return
|
|
1736
|
+
return F(r, []), r;
|
|
1736
1737
|
}, mt = ({
|
|
1737
1738
|
ariaLabel: e,
|
|
1738
1739
|
border: t,
|
|
@@ -1748,50 +1749,50 @@ const F = (e) => u("button", {
|
|
|
1748
1749
|
allowTextEntry: s,
|
|
1749
1750
|
noneOfTheAbove: _,
|
|
1750
1751
|
promptText: f,
|
|
1751
|
-
onUserInputChanged:
|
|
1752
|
+
onUserInputChanged: m
|
|
1752
1753
|
}) => {
|
|
1753
1754
|
const {
|
|
1754
|
-
styleNonce:
|
|
1755
|
+
styleNonce: g,
|
|
1755
1756
|
viewDocument: y
|
|
1756
|
-
} = $((
|
|
1757
|
-
styleNonce:
|
|
1758
|
-
viewDocument:
|
|
1759
|
-
})), [v,
|
|
1760
|
-
|
|
1761
|
-
const
|
|
1762
|
-
isSelected:
|
|
1763
|
-
userText:
|
|
1757
|
+
} = $((U) => ({
|
|
1758
|
+
styleNonce: U.styleNonce,
|
|
1759
|
+
viewDocument: U.viewDocument
|
|
1760
|
+
})), [v, C] = D(!1);
|
|
1761
|
+
Lo(y, t, g);
|
|
1762
|
+
const k = ({
|
|
1763
|
+
isSelected: U,
|
|
1764
|
+
userText: de
|
|
1764
1765
|
}) => {
|
|
1765
|
-
|
|
1766
|
+
m && m({
|
|
1766
1767
|
id: l || "",
|
|
1767
|
-
selected:
|
|
1768
|
+
selected: U,
|
|
1768
1769
|
value: i,
|
|
1769
|
-
userText:
|
|
1770
|
+
userText: de,
|
|
1770
1771
|
noneOfTheAbove: _
|
|
1771
1772
|
});
|
|
1772
|
-
},
|
|
1773
|
-
|
|
1773
|
+
}, R = (U) => {
|
|
1774
|
+
U.stopPropagation(), k({
|
|
1774
1775
|
isSelected: c || !o,
|
|
1775
1776
|
userText: a
|
|
1776
|
-
}),
|
|
1777
|
-
},
|
|
1778
|
-
v ||
|
|
1779
|
-
},
|
|
1780
|
-
v &&
|
|
1781
|
-
},
|
|
1782
|
-
(
|
|
1777
|
+
}), C(!1);
|
|
1778
|
+
}, P = () => {
|
|
1779
|
+
v || C(!0);
|
|
1780
|
+
}, S = () => {
|
|
1781
|
+
v && C(!1);
|
|
1782
|
+
}, A = (U) => {
|
|
1783
|
+
(U.key === "Enter" || U.key === " ") && R(U);
|
|
1783
1784
|
}, N = {
|
|
1784
|
-
onClick: (
|
|
1785
|
-
onKeyPress: (
|
|
1785
|
+
onClick: (U) => R(U),
|
|
1786
|
+
onKeyPress: (U) => A(U)
|
|
1786
1787
|
};
|
|
1787
|
-
"ontouchstart" in y.documentElement ? (N.onTouchStart =
|
|
1788
|
-
const
|
|
1788
|
+
"ontouchstart" in y.documentElement ? (N.onTouchStart = S, N.onTouchCancel = S, N.onTouchEnd = S) : (N.onMouseDown = P, N.onMouseLeave = S);
|
|
1789
|
+
const h = c ? `radio-${l}` : `checkbox-${l}`, T = o || v ? [Me] : [], O = [...p ? [nr] : [], ...T], se = r ? {
|
|
1789
1790
|
"aria-labelledby": `label-${l}`
|
|
1790
1791
|
} : {
|
|
1791
1792
|
"aria-label": e
|
|
1792
1793
|
};
|
|
1793
1794
|
return u("div", {
|
|
1794
|
-
className:
|
|
1795
|
+
className: L([...H(w.Choice, d), ...O]),
|
|
1795
1796
|
id: `choice-div-${l}`,
|
|
1796
1797
|
style: {
|
|
1797
1798
|
...n,
|
|
@@ -1801,18 +1802,18 @@ const F = (e) => u("button", {
|
|
|
1801
1802
|
},
|
|
1802
1803
|
...N,
|
|
1803
1804
|
children: [u("div", {
|
|
1804
|
-
className:
|
|
1805
|
+
className: L([w.ChoiceLabelContainer]),
|
|
1805
1806
|
children: [c ? u("div", {
|
|
1806
|
-
...
|
|
1807
|
-
className:
|
|
1808
|
-
id:
|
|
1807
|
+
...se,
|
|
1808
|
+
className: L([w.ChoiceRadio, ...T]),
|
|
1809
|
+
id: h,
|
|
1809
1810
|
role: "radio",
|
|
1810
1811
|
tabIndex: 0
|
|
1811
1812
|
}) : u("div", {
|
|
1812
1813
|
"aria-checked": o,
|
|
1813
1814
|
"aria-labelledby": `label-${l}`,
|
|
1814
1815
|
className: w.ChoiceCheckbox,
|
|
1815
|
-
id:
|
|
1816
|
+
id: h,
|
|
1816
1817
|
role: "checkbox",
|
|
1817
1818
|
style: o ? {
|
|
1818
1819
|
backgroundColor: t,
|
|
@@ -1834,17 +1835,17 @@ const F = (e) => u("button", {
|
|
|
1834
1835
|
})
|
|
1835
1836
|
})
|
|
1836
1837
|
}), r && u("label", {
|
|
1837
|
-
className:
|
|
1838
|
-
htmlFor:
|
|
1838
|
+
className: L(H(w.ChoiceLabel, d)),
|
|
1839
|
+
htmlFor: h,
|
|
1839
1840
|
id: `label-${l}`,
|
|
1840
1841
|
children: r
|
|
1841
1842
|
})]
|
|
1842
1843
|
}), s && o && u("div", {
|
|
1843
|
-
className:
|
|
1844
|
-
children: u(
|
|
1845
|
-
onTextChange: (
|
|
1844
|
+
className: L([w.ChoiceTextEntryContainer, ...T]),
|
|
1845
|
+
children: u(Ro, {
|
|
1846
|
+
onTextChange: (U) => k({
|
|
1846
1847
|
isSelected: o,
|
|
1847
|
-
userText:
|
|
1848
|
+
userText: U
|
|
1848
1849
|
}),
|
|
1849
1850
|
promptText: f || "Please specify",
|
|
1850
1851
|
textValue: a,
|
|
@@ -1852,24 +1853,24 @@ const F = (e) => u("button", {
|
|
|
1852
1853
|
})
|
|
1853
1854
|
})]
|
|
1854
1855
|
});
|
|
1855
|
-
},
|
|
1856
|
+
}, Ro = ({
|
|
1856
1857
|
promptText: e,
|
|
1857
1858
|
textValue: t,
|
|
1858
1859
|
onTextChange: n,
|
|
1859
1860
|
useMobileStyling: r
|
|
1860
1861
|
}) => {
|
|
1861
|
-
const o =
|
|
1862
|
+
const o = ne(null), {
|
|
1862
1863
|
update: i
|
|
1863
1864
|
} = $((l) => ({
|
|
1864
1865
|
update: l.update
|
|
1865
1866
|
})), a = tr(o, () => i());
|
|
1866
|
-
return
|
|
1867
|
+
return F(() => {
|
|
1867
1868
|
o.current && o.current.focus();
|
|
1868
1869
|
}, []), u("textarea", {
|
|
1869
1870
|
"aria-label": e,
|
|
1870
1871
|
"aria-multiline": "true",
|
|
1871
1872
|
"aria-placeholder": e,
|
|
1872
|
-
className:
|
|
1873
|
+
className: L(H(w.ChoiceTextInput, r)),
|
|
1873
1874
|
"data-gramm": "false",
|
|
1874
1875
|
maxLength: 5e3,
|
|
1875
1876
|
name: "text",
|
|
@@ -1888,10 +1889,10 @@ const F = (e) => u("button", {
|
|
|
1888
1889
|
rows: 1,
|
|
1889
1890
|
value: t
|
|
1890
1891
|
});
|
|
1891
|
-
}, Gt = "ul-select-style-element", Me = "ul-select-active-dynamic-style", nr = "ul-select-error-dynamic-style",
|
|
1892
|
+
}, Gt = "ul-select-style-element", Me = "ul-select-active-dynamic-style", nr = "ul-select-error-dynamic-style", No = (e) => e.tagName.toLowerCase() === "style", Lo = (e, t, n) => {
|
|
1892
1893
|
let r = e.getElementById(Gt), o = !1;
|
|
1893
|
-
r || (r = e.createElement("style"), o = !0),
|
|
1894
|
-
},
|
|
1894
|
+
r || (r = e.createElement("style"), o = !0), No(r) && (r.id = Gt, n && (r.nonce = n), r.textContent = Io(t), o && e.head.appendChild(r));
|
|
1895
|
+
}, Io = (e) => `
|
|
1895
1896
|
.${Me} {
|
|
1896
1897
|
border-color: ${e};
|
|
1897
1898
|
}
|
|
@@ -1902,7 +1903,7 @@ const F = (e) => u("button", {
|
|
|
1902
1903
|
.${nr} {
|
|
1903
1904
|
border-color: ${xe};
|
|
1904
1905
|
}
|
|
1905
|
-
`,
|
|
1906
|
+
`, ve = (e) => (e == null ? void 0 : e.buttonText) || "Next", rr = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Ao = ({
|
|
1906
1907
|
className: e,
|
|
1907
1908
|
message: t,
|
|
1908
1909
|
next: n,
|
|
@@ -1913,32 +1914,32 @@ const F = (e) => u("button", {
|
|
|
1913
1914
|
const {
|
|
1914
1915
|
useMobileStyling: a,
|
|
1915
1916
|
border: l
|
|
1916
|
-
} = $((
|
|
1917
|
-
useMobileStyling:
|
|
1918
|
-
border:
|
|
1919
|
-
})), [c, d] = D(!1), [p, s] = D(""), [_, f] = D(!1),
|
|
1920
|
-
|
|
1921
|
-
let
|
|
1922
|
-
if (!
|
|
1923
|
-
if (!
|
|
1917
|
+
} = $((h) => ({
|
|
1918
|
+
useMobileStyling: h.useMobileStyling,
|
|
1919
|
+
border: h.border
|
|
1920
|
+
})), [c, d] = D(!1), [p, s] = D(""), [_, f] = D(!1), m = r == null ? void 0 : r.collectName, g = (r == null ? void 0 : r.nameLabelText) || "Full Name", y = (r == null ? void 0 : r.consentText) || "I agree to the stated conditions", v = (r == null ? void 0 : r.submitButtonText) || "Submit", C = !!p.trim(), k = c && (!m || C), R = (h, T = !1) => {
|
|
1921
|
+
h.preventDefault(), h.stopPropagation();
|
|
1922
|
+
let O = null;
|
|
1923
|
+
if (!T) {
|
|
1924
|
+
if (!k) {
|
|
1924
1925
|
f(!0);
|
|
1925
1926
|
return;
|
|
1926
1927
|
}
|
|
1927
|
-
|
|
1928
|
+
O = {
|
|
1928
1929
|
submitted: !0
|
|
1929
|
-
},
|
|
1930
|
+
}, m && (O.name = p);
|
|
1930
1931
|
}
|
|
1931
1932
|
n({
|
|
1932
|
-
value:
|
|
1933
|
+
value: O,
|
|
1933
1934
|
questionId: o,
|
|
1934
1935
|
type: i
|
|
1935
1936
|
});
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1938
|
-
},
|
|
1939
|
-
|
|
1940
|
-
},
|
|
1941
|
-
|
|
1937
|
+
}, P = (h) => {
|
|
1938
|
+
h.preventDefault(), h.stopPropagation(), s(h.currentTarget.value);
|
|
1939
|
+
}, S = (h) => {
|
|
1940
|
+
h.currentTarget.style.borderColor = _ && !C ? xe : l;
|
|
1941
|
+
}, A = (h) => {
|
|
1942
|
+
h.currentTarget.style.borderColor = _ && !C ? xe : st;
|
|
1942
1943
|
}, N = () => u("div", {
|
|
1943
1944
|
children: [u(mt, {
|
|
1944
1945
|
allowTextEntry: !1,
|
|
@@ -1948,42 +1949,42 @@ const F = (e) => u("button", {
|
|
|
1948
1949
|
isSelected: c,
|
|
1949
1950
|
label: y,
|
|
1950
1951
|
onUserInputChanged: ({
|
|
1951
|
-
selected:
|
|
1952
|
+
selected: h
|
|
1952
1953
|
}) => {
|
|
1953
|
-
|
|
1954
|
+
h !== c && d(!c);
|
|
1954
1955
|
},
|
|
1955
1956
|
useMobileStyling: a
|
|
1956
|
-
}),
|
|
1957
|
-
"aria-label":
|
|
1958
|
-
"aria-placeholder":
|
|
1959
|
-
className:
|
|
1957
|
+
}), m && u("input", {
|
|
1958
|
+
"aria-label": g,
|
|
1959
|
+
"aria-placeholder": g,
|
|
1960
|
+
className: L(H(w.ConsentLegalNameInput, a)),
|
|
1960
1961
|
"data-gramm": "false",
|
|
1961
1962
|
maxLength: 250,
|
|
1962
1963
|
name: "name",
|
|
1963
|
-
onBlur:
|
|
1964
|
-
onFocus:
|
|
1965
|
-
onInput:
|
|
1966
|
-
placeholder:
|
|
1967
|
-
style: _ && !
|
|
1964
|
+
onBlur: A,
|
|
1965
|
+
onFocus: S,
|
|
1966
|
+
onInput: P,
|
|
1967
|
+
placeholder: g,
|
|
1968
|
+
style: _ && !C ? {
|
|
1968
1969
|
borderColor: xe
|
|
1969
1970
|
} : {},
|
|
1970
1971
|
tabIndex: 0,
|
|
1971
1972
|
value: p
|
|
1972
1973
|
}), u("div", {
|
|
1973
1974
|
className: "ul-card__button-wrapper ul-card-vertical__button-wrapper",
|
|
1974
|
-
children: [u(
|
|
1975
|
-
className:
|
|
1976
|
-
onClick:
|
|
1975
|
+
children: [u(q, {
|
|
1976
|
+
className: k ? "" : w.ButtonDisabled,
|
|
1977
|
+
onClick: R,
|
|
1977
1978
|
children: v
|
|
1978
1979
|
}), r.required === !1 && u("button", {
|
|
1979
1980
|
className: w.SkipButton,
|
|
1980
|
-
onClick: (
|
|
1981
|
+
onClick: (h) => R(h, !0),
|
|
1981
1982
|
children: rr(r)
|
|
1982
1983
|
})]
|
|
1983
1984
|
})]
|
|
1984
1985
|
});
|
|
1985
1986
|
return u("div", {
|
|
1986
|
-
className:
|
|
1987
|
+
className: L([e, "ul-card__consent-legal", w.FadeInTransition]),
|
|
1987
1988
|
children: [u(Y, {
|
|
1988
1989
|
message: t
|
|
1989
1990
|
}), u("div", {
|
|
@@ -2011,16 +2012,16 @@ const F = (e) => u("button", {
|
|
|
2011
2012
|
useMobileStyling: d,
|
|
2012
2013
|
value: p
|
|
2013
2014
|
}) => {
|
|
2014
|
-
const s = `option-${p}`, _ = a ===
|
|
2015
|
+
const s = `option-${p}`, _ = a === pe.Number, f = a === pe.Star, m = _ && p === e, [g, y] = p <= e && f || p === e ? r ? [t, 1] : [t, 0.3] : ["", 1], v = () => {
|
|
2015
2016
|
switch (a) {
|
|
2016
|
-
case
|
|
2017
|
-
return
|
|
2018
|
-
case
|
|
2019
|
-
return
|
|
2017
|
+
case pe.Star:
|
|
2018
|
+
return L([...H(w.LikertStar, d), ...H(`${w.LikertStar}-${p}`, d)]);
|
|
2019
|
+
case pe.Smiley:
|
|
2020
|
+
return L([...H(w.LikertSmiley, d), ...H(`${w.LikertSmiley}-${p}`, d)]);
|
|
2020
2021
|
default:
|
|
2021
|
-
return
|
|
2022
|
+
return L(p === i ? [...H(w.LikertNumber, d), ...H(`${w.LikertNumber}-${p}`, d), ...H("likert-last-option", d)] : [...H(w.LikertNumber, d), ...H(`${w.LikertNumber}-${p}`, d)]);
|
|
2022
2023
|
}
|
|
2023
|
-
},
|
|
2024
|
+
}, C = () => {
|
|
2024
2025
|
l(-1), c(!1);
|
|
2025
2026
|
};
|
|
2026
2027
|
return u("div", {
|
|
@@ -2033,13 +2034,13 @@ const F = (e) => u("button", {
|
|
|
2033
2034
|
onClick: () => o(),
|
|
2034
2035
|
onPointerDown: () => c(!0),
|
|
2035
2036
|
onPointerEnter: () => l(p),
|
|
2036
|
-
onPointerLeave:
|
|
2037
|
+
onPointerLeave: C,
|
|
2037
2038
|
role: "radio",
|
|
2038
2039
|
style: {
|
|
2039
|
-
color: _ ? "" :
|
|
2040
|
-
borderColor:
|
|
2041
|
-
fillOpacity:
|
|
2042
|
-
zIndex:
|
|
2040
|
+
color: _ ? "" : g,
|
|
2041
|
+
borderColor: m ? g : "",
|
|
2042
|
+
fillOpacity: m ? "" : y,
|
|
2043
|
+
zIndex: m ? 3 : "auto"
|
|
2043
2044
|
},
|
|
2044
2045
|
tabIndex: 0
|
|
2045
2046
|
});
|
|
@@ -2058,78 +2059,78 @@ const F = (e) => u("button", {
|
|
|
2058
2059
|
} = $((N) => ({
|
|
2059
2060
|
border: N.border,
|
|
2060
2061
|
useMobileStyling: N.useMobileStyling
|
|
2061
|
-
})), [d, p] = D(-1), [s, _] = D(!1), f = t && t.left,
|
|
2062
|
-
let
|
|
2062
|
+
})), [d, p] = D(-1), [s, _] = D(!1), f = t && t.left, m = t && t.right;
|
|
2063
|
+
let g;
|
|
2063
2064
|
const {
|
|
2064
2065
|
range: y,
|
|
2065
2066
|
scaleLabelType: v,
|
|
2066
|
-
ratingIcons:
|
|
2067
|
+
ratingIcons: C
|
|
2067
2068
|
} = o;
|
|
2068
|
-
y && (
|
|
2069
|
-
const
|
|
2070
|
-
var
|
|
2069
|
+
y && (g = Number(y));
|
|
2070
|
+
const k = g || 5, R = (N) => {
|
|
2071
|
+
var h, T;
|
|
2071
2072
|
switch (v) {
|
|
2072
|
-
case
|
|
2073
|
-
return (
|
|
2074
|
-
case
|
|
2075
|
-
return (
|
|
2073
|
+
case pe.Star:
|
|
2074
|
+
return (h = C[0]) == null ? void 0 : h.svg;
|
|
2075
|
+
case pe.Smiley:
|
|
2076
|
+
return (T = C[N]) == null ? void 0 : T.svg;
|
|
2076
2077
|
default:
|
|
2077
2078
|
return String(N + 1);
|
|
2078
2079
|
}
|
|
2079
|
-
},
|
|
2080
|
-
const
|
|
2080
|
+
}, P = [...Array(k)].map((N, h) => {
|
|
2081
|
+
const T = h + 1;
|
|
2081
2082
|
return u(Mo, {
|
|
2082
2083
|
activeValue: d,
|
|
2083
2084
|
border: l,
|
|
2084
|
-
icon:
|
|
2085
|
+
icon: R(h),
|
|
2085
2086
|
isPressed: s,
|
|
2086
2087
|
onSubmit: () => r({
|
|
2087
|
-
value:
|
|
2088
|
+
value: T,
|
|
2088
2089
|
questionId: i,
|
|
2089
2090
|
type: a
|
|
2090
2091
|
}),
|
|
2091
|
-
range:
|
|
2092
|
+
range: k,
|
|
2092
2093
|
scaleLabelType: v,
|
|
2093
2094
|
setActiveValue: p,
|
|
2094
2095
|
setIsPressed: _,
|
|
2095
2096
|
useMobileStyling: c,
|
|
2096
|
-
value:
|
|
2097
|
-
},
|
|
2098
|
-
}),
|
|
2097
|
+
value: T
|
|
2098
|
+
}, h);
|
|
2099
|
+
}), S = (N) => {
|
|
2099
2100
|
N.preventDefault(), N.stopPropagation(), r({
|
|
2100
2101
|
value: null,
|
|
2101
2102
|
questionId: i,
|
|
2102
2103
|
type: a
|
|
2103
2104
|
});
|
|
2104
|
-
},
|
|
2105
|
+
}, A = () => u(j, {
|
|
2105
2106
|
children: [u("div", {
|
|
2106
|
-
"aria-label": `Rating (1 - ${
|
|
2107
|
+
"aria-label": `Rating (1 - ${k})`,
|
|
2107
2108
|
className: "ul-card--likert__numbers",
|
|
2108
2109
|
role: "radiogroup",
|
|
2109
|
-
children:
|
|
2110
|
+
children: P
|
|
2110
2111
|
}), u("div", {
|
|
2111
2112
|
className: "ul-card--likert__labels",
|
|
2112
2113
|
children: [u("span", {
|
|
2113
2114
|
children: f
|
|
2114
2115
|
}), u("span", {
|
|
2115
|
-
children:
|
|
2116
|
+
children: m
|
|
2116
2117
|
})]
|
|
2117
2118
|
}), !o.required && u("div", {
|
|
2118
2119
|
className: "ul-vertical-centered-container",
|
|
2119
|
-
children: u(
|
|
2120
|
-
onClick:
|
|
2121
|
-
children:
|
|
2120
|
+
children: u(q, {
|
|
2121
|
+
onClick: S,
|
|
2122
|
+
children: ve(o)
|
|
2122
2123
|
})
|
|
2123
2124
|
})]
|
|
2124
2125
|
});
|
|
2125
2126
|
return u("form", {
|
|
2126
|
-
className:
|
|
2127
|
+
className: L([e, "ul-card--likert", w.FadeInTransition]),
|
|
2127
2128
|
children: [u(Y, {
|
|
2128
2129
|
message: n,
|
|
2129
2130
|
properties: o
|
|
2130
2131
|
}), u(ae, {
|
|
2131
2132
|
properties: o,
|
|
2132
|
-
defaultBody:
|
|
2133
|
+
defaultBody: A
|
|
2133
2134
|
})]
|
|
2134
2135
|
}, i);
|
|
2135
2136
|
}, Oo = ({
|
|
@@ -2144,35 +2145,51 @@ const F = (e) => u("button", {
|
|
|
2144
2145
|
const {
|
|
2145
2146
|
border: l,
|
|
2146
2147
|
useMobileStyling: c
|
|
2147
|
-
} = $((
|
|
2148
|
-
border:
|
|
2149
|
-
useMobileStyling:
|
|
2150
|
-
})), d = o.matrixColumn, p = r.length, s = d.length, _ = o.required, f = (
|
|
2151
|
-
|
|
2152
|
-
|
|
2148
|
+
} = $((h) => ({
|
|
2149
|
+
border: h.border,
|
|
2150
|
+
useMobileStyling: h.useMobileStyling
|
|
2151
|
+
})), d = o.matrixColumn, p = r.length, s = d.length, _ = o.required, f = ne(null), [m, g] = D(!1), y = () => {
|
|
2152
|
+
const h = f.current;
|
|
2153
|
+
h && g(h.clientWidth + Math.abs(h.scrollLeft) < h.scrollWidth);
|
|
2154
|
+
};
|
|
2155
|
+
F(() => {
|
|
2156
|
+
let h;
|
|
2157
|
+
if (f.current) {
|
|
2158
|
+
h = f.current;
|
|
2159
|
+
const T = new ResizeObserver((O) => {
|
|
2160
|
+
g(Math.round(O[0].contentRect.width) < h.scrollWidth);
|
|
2161
|
+
});
|
|
2162
|
+
return T.observe(h), () => {
|
|
2163
|
+
h && T.unobserve(h);
|
|
2164
|
+
};
|
|
2165
|
+
}
|
|
2166
|
+
}, []);
|
|
2167
|
+
const v = (h) => {
|
|
2168
|
+
h.preventDefault(), h.stopPropagation(), n({
|
|
2169
|
+
value: k,
|
|
2153
2170
|
questionId: i,
|
|
2154
2171
|
type: a
|
|
2155
2172
|
});
|
|
2156
|
-
},
|
|
2157
|
-
|
|
2158
|
-
...
|
|
2159
|
-
[
|
|
2173
|
+
}, C = r.reduce((h, T) => (h[T.id] = null, h), {}), [k, R] = D(C), P = (h, T) => {
|
|
2174
|
+
R((O) => ({
|
|
2175
|
+
...O,
|
|
2176
|
+
[h]: T
|
|
2160
2177
|
}));
|
|
2161
|
-
},
|
|
2178
|
+
}, S = _ && Object.values(k).every((h) => h == null), A = r.map((h) => u(j, {
|
|
2162
2179
|
children: [u("div", {
|
|
2163
|
-
"aria-label":
|
|
2180
|
+
"aria-label": h.label,
|
|
2164
2181
|
className: "ul-matrix-row-label",
|
|
2165
|
-
children:
|
|
2166
|
-
},
|
|
2182
|
+
children: h.label
|
|
2183
|
+
}, h.label), u("div", {
|
|
2167
2184
|
className: "ul-matrix-row-options",
|
|
2168
2185
|
role: "radiogroup",
|
|
2169
|
-
children: d.map((
|
|
2170
|
-
const
|
|
2186
|
+
children: d.map((T, O) => {
|
|
2187
|
+
const se = O === s - 1;
|
|
2171
2188
|
return u("div", {
|
|
2172
|
-
className:
|
|
2189
|
+
className: L("ul-matrix-option-wrapper", se && "ul-matrix-last-option"),
|
|
2173
2190
|
children: u(mt, {
|
|
2174
2191
|
allowTextEntry: !1,
|
|
2175
|
-
ariaLabel: `${
|
|
2192
|
+
ariaLabel: `${h.label}-${T.label}`,
|
|
2176
2193
|
border: l,
|
|
2177
2194
|
choiceStyle: {
|
|
2178
2195
|
background: "transparent",
|
|
@@ -2181,44 +2198,69 @@ const F = (e) => u("button", {
|
|
|
2181
2198
|
padding: "0"
|
|
2182
2199
|
},
|
|
2183
2200
|
error: !1,
|
|
2184
|
-
id: `${
|
|
2201
|
+
id: `${h.id}-${T.value}`,
|
|
2185
2202
|
isRadio: !0,
|
|
2186
|
-
isSelected:
|
|
2187
|
-
onUserInputChanged: () =>
|
|
2203
|
+
isSelected: k[h.id] === T.value,
|
|
2204
|
+
onUserInputChanged: () => P(h.id, T.value),
|
|
2188
2205
|
useMobileStyling: c
|
|
2189
2206
|
})
|
|
2190
|
-
},
|
|
2207
|
+
}, T.value);
|
|
2191
2208
|
})
|
|
2192
2209
|
})]
|
|
2193
|
-
})),
|
|
2210
|
+
})), N = () => u("div", {
|
|
2211
|
+
className: "ul-card--matrix_question_container",
|
|
2194
2212
|
children: [u("div", {
|
|
2195
|
-
className: "ul-card--matrix_container",
|
|
2213
|
+
className: L(["ul-card--matrix_container", m && "ul-matrix-scroll-gradient"]),
|
|
2214
|
+
onScroll: () => {
|
|
2215
|
+
y();
|
|
2216
|
+
},
|
|
2217
|
+
ref: f,
|
|
2196
2218
|
children: u("div", {
|
|
2197
2219
|
className: "ul-card--matrix_grid",
|
|
2198
2220
|
style: `--numColumns: ${s}; --numRows: ${p + 1}`,
|
|
2199
|
-
children: [u("div", {}), " ", d.map((
|
|
2221
|
+
children: [u("div", {}), " ", d.map((h) => u("div", {
|
|
2200
2222
|
className: "ul-matrix-column-label",
|
|
2201
|
-
children:
|
|
2202
|
-
},
|
|
2223
|
+
children: h.label
|
|
2224
|
+
}, h.label)), A]
|
|
2225
|
+
})
|
|
2226
|
+
}), m && u("button", {
|
|
2227
|
+
className: "ul-matrix-scroll-arrow",
|
|
2228
|
+
onClick: (h) => {
|
|
2229
|
+
h.preventDefault();
|
|
2230
|
+
const T = f.current;
|
|
2231
|
+
if (T) {
|
|
2232
|
+
const O = getComputedStyle(T).direction === "rtl";
|
|
2233
|
+
T.scrollLeft = O ? T.clientWidth - T.scrollWidth : T.scrollWidth;
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2236
|
+
children: u("svg", {
|
|
2237
|
+
fill: "currentColor",
|
|
2238
|
+
height: "32",
|
|
2239
|
+
viewBox: "0 0 256 256",
|
|
2240
|
+
width: "32",
|
|
2241
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2242
|
+
children: u("path", {
|
|
2243
|
+
d: "M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"
|
|
2244
|
+
})
|
|
2203
2245
|
})
|
|
2204
2246
|
}), u("div", {
|
|
2205
2247
|
className: "ul-card__button-wrapper",
|
|
2206
|
-
children: u(
|
|
2207
|
-
disabled:
|
|
2208
|
-
children:
|
|
2248
|
+
children: u(q, {
|
|
2249
|
+
disabled: S,
|
|
2250
|
+
children: ve(o)
|
|
2209
2251
|
})
|
|
2210
2252
|
})]
|
|
2211
2253
|
});
|
|
2212
2254
|
return u("form", {
|
|
2213
|
-
className:
|
|
2255
|
+
className: L([e, w.FadeInTransition, "ul-card__matrix"]),
|
|
2214
2256
|
id: "text-form",
|
|
2215
|
-
onSubmit:
|
|
2257
|
+
onSubmit: v,
|
|
2216
2258
|
children: [u(Y, {
|
|
2217
2259
|
message: t,
|
|
2218
2260
|
properties: o
|
|
2219
2261
|
}), u(ae, {
|
|
2220
2262
|
properties: o,
|
|
2221
|
-
defaultBody:
|
|
2263
|
+
defaultBody: N
|
|
2222
2264
|
})]
|
|
2223
2265
|
}, i);
|
|
2224
2266
|
}, or = ({
|
|
@@ -2233,85 +2275,85 @@ const F = (e) => u("button", {
|
|
|
2233
2275
|
const {
|
|
2234
2276
|
border: l,
|
|
2235
2277
|
useMobileStyling: c
|
|
2236
|
-
} = $((
|
|
2237
|
-
border:
|
|
2238
|
-
useMobileStyling:
|
|
2239
|
-
})), d = r.reduce((
|
|
2278
|
+
} = $((S) => ({
|
|
2279
|
+
border: S.border,
|
|
2280
|
+
useMobileStyling: S.useMobileStyling
|
|
2281
|
+
})), d = r.reduce((S, A) => (S[A.id] = {
|
|
2240
2282
|
isSelected: !1
|
|
2241
|
-
},
|
|
2242
|
-
var I;
|
|
2243
|
-
return (I = x.optionProperties) == null ? void 0 : I.noneOfTheAbove;
|
|
2244
|
-
}), m = Object.entries(p).some(([x, I]) => {
|
|
2283
|
+
}, S), {}), [p, s] = D(d), _ = a === b.MultipleChoice, f = o.required, m = r.find((S) => {
|
|
2245
2284
|
var A;
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
id
|
|
2250
|
-
|
|
2285
|
+
return (A = S.optionProperties) == null ? void 0 : A.noneOfTheAbove;
|
|
2286
|
+
}), g = Object.entries(p).some(([S, A]) => {
|
|
2287
|
+
var T;
|
|
2288
|
+
const N = r.find((O) => `${O.id}` === S), h = A.userText === void 0 || A.userText.trim() === "";
|
|
2289
|
+
return ((T = N == null ? void 0 : N.optionProperties) == null ? void 0 : T.allowsTextEntry) && h && A.isSelected;
|
|
2290
|
+
}), y = Object.values(p).some((S) => S.isSelected), v = g || f && !y, C = r.map(({
|
|
2291
|
+
id: S,
|
|
2292
|
+
label: A,
|
|
2251
2293
|
value: N,
|
|
2252
|
-
optionProperties:
|
|
2294
|
+
optionProperties: h
|
|
2253
2295
|
}) => {
|
|
2254
|
-
var
|
|
2255
|
-
const
|
|
2256
|
-
allowsTextEntry:
|
|
2257
|
-
noneOfTheAbove:
|
|
2296
|
+
var U, de;
|
|
2297
|
+
const T = `${S}`, {
|
|
2298
|
+
allowsTextEntry: O,
|
|
2299
|
+
noneOfTheAbove: se
|
|
2258
2300
|
} = {
|
|
2259
2301
|
allowsTextEntry: !1,
|
|
2260
2302
|
noneOfTheAbove: !1,
|
|
2261
|
-
...
|
|
2303
|
+
...h
|
|
2262
2304
|
};
|
|
2263
2305
|
return u(mt, {
|
|
2264
|
-
allowTextEntry:
|
|
2306
|
+
allowTextEntry: O,
|
|
2265
2307
|
border: l,
|
|
2266
2308
|
error: !1,
|
|
2267
|
-
id:
|
|
2309
|
+
id: T,
|
|
2268
2310
|
isRadio: _,
|
|
2269
|
-
noneOfTheAbove:
|
|
2270
|
-
isSelected: !!((
|
|
2271
|
-
label:
|
|
2272
|
-
onUserInputChanged: (
|
|
2311
|
+
noneOfTheAbove: se,
|
|
2312
|
+
isSelected: !!((U = p[T]) != null && U.isSelected),
|
|
2313
|
+
label: A,
|
|
2314
|
+
onUserInputChanged: (E) => R(E.id, E.selected, E.userText, E.noneOfTheAbove),
|
|
2273
2315
|
promptText: "Please specify",
|
|
2274
|
-
text: (
|
|
2316
|
+
text: (de = p[S]) == null ? void 0 : de.userText,
|
|
2275
2317
|
useMobileStyling: c,
|
|
2276
2318
|
value: N
|
|
2277
|
-
},
|
|
2278
|
-
}),
|
|
2279
|
-
|
|
2280
|
-
},
|
|
2281
|
-
const
|
|
2282
|
-
if ((_ ||
|
|
2283
|
-
for (const
|
|
2284
|
-
|
|
2319
|
+
}, T);
|
|
2320
|
+
}), k = (S) => {
|
|
2321
|
+
S.preventDefault(), S.stopPropagation(), n(p);
|
|
2322
|
+
}, R = (S, A, N, h) => {
|
|
2323
|
+
const T = Object.assign({}, p);
|
|
2324
|
+
if ((_ || h) && A)
|
|
2325
|
+
for (const O of Object.values(T))
|
|
2326
|
+
O.isSelected = !1, delete O.userText;
|
|
2285
2327
|
else
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
isSelected:
|
|
2328
|
+
m && !h && p[m.id].isSelected && (T[m.id].isSelected = !1);
|
|
2329
|
+
T[S] = {
|
|
2330
|
+
isSelected: A,
|
|
2289
2331
|
userText: N
|
|
2290
|
-
}, s(
|
|
2291
|
-
},
|
|
2332
|
+
}, s(T);
|
|
2333
|
+
}, P = () => u("div", {
|
|
2292
2334
|
children: [u("div", {
|
|
2293
|
-
className:
|
|
2335
|
+
className: L(H(w.ChoiceGroup, c)),
|
|
2294
2336
|
role: _ ? "radiogroup" : "group",
|
|
2295
|
-
children:
|
|
2337
|
+
children: C
|
|
2296
2338
|
}), u("div", {
|
|
2297
2339
|
className: "ul-card__button-wrapper",
|
|
2298
|
-
children: u(
|
|
2340
|
+
children: u(q, {
|
|
2299
2341
|
disabled: v,
|
|
2300
|
-
onClick:
|
|
2301
|
-
children:
|
|
2342
|
+
onClick: k,
|
|
2343
|
+
children: ve(o)
|
|
2302
2344
|
})
|
|
2303
2345
|
})]
|
|
2304
2346
|
});
|
|
2305
2347
|
return u("form", {
|
|
2306
|
-
className:
|
|
2348
|
+
className: L([e, "ul-card--multiple", w.FadeInTransition]),
|
|
2307
2349
|
id: "text-form",
|
|
2308
|
-
onSubmit:
|
|
2350
|
+
onSubmit: k,
|
|
2309
2351
|
children: [u(Y, {
|
|
2310
2352
|
message: t,
|
|
2311
2353
|
properties: o
|
|
2312
2354
|
}), u(ae, {
|
|
2313
2355
|
properties: o,
|
|
2314
|
-
defaultBody:
|
|
2356
|
+
defaultBody: P
|
|
2315
2357
|
})]
|
|
2316
2358
|
}, i);
|
|
2317
2359
|
}, Uo = (e) => {
|
|
@@ -2378,20 +2420,20 @@ const F = (e) => u("button", {
|
|
|
2378
2420
|
const {
|
|
2379
2421
|
border: l,
|
|
2380
2422
|
useMobileStyling: c
|
|
2381
|
-
} = $((
|
|
2382
|
-
border:
|
|
2383
|
-
useMobileStyling:
|
|
2384
|
-
})), d = t && t.left, p = t && t.right, s = [...Array(11)].map((
|
|
2385
|
-
className:
|
|
2386
|
-
id: `option-${
|
|
2423
|
+
} = $((m) => ({
|
|
2424
|
+
border: m.border,
|
|
2425
|
+
useMobileStyling: m.useMobileStyling
|
|
2426
|
+
})), d = t && t.left, p = t && t.right, s = [...Array(11)].map((m, g) => u("div", {
|
|
2427
|
+
className: L([...H(w.NPSNumber, c), ...H(`${w.NPSNumber}-${g}`, c)]),
|
|
2428
|
+
id: `option-${g}`,
|
|
2387
2429
|
onClick: () => o({
|
|
2388
|
-
value:
|
|
2430
|
+
value: g,
|
|
2389
2431
|
questionId: i,
|
|
2390
2432
|
type: a
|
|
2391
2433
|
}),
|
|
2392
2434
|
onKeyPress: (y) => {
|
|
2393
2435
|
y.preventDefault(), (y.key === "Enter" || y.key === " ") && o({
|
|
2394
|
-
value:
|
|
2436
|
+
value: g,
|
|
2395
2437
|
questionId: i,
|
|
2396
2438
|
type: a
|
|
2397
2439
|
});
|
|
@@ -2404,9 +2446,9 @@ const F = (e) => u("button", {
|
|
|
2404
2446
|
},
|
|
2405
2447
|
role: "radio",
|
|
2406
2448
|
tabIndex: 0,
|
|
2407
|
-
children:
|
|
2408
|
-
},
|
|
2409
|
-
|
|
2449
|
+
children: g
|
|
2450
|
+
}, g)), _ = (m) => {
|
|
2451
|
+
m.preventDefault(), m.stopPropagation(), o({
|
|
2410
2452
|
value: null,
|
|
2411
2453
|
questionId: i,
|
|
2412
2454
|
type: a
|
|
@@ -2424,14 +2466,14 @@ const F = (e) => u("button", {
|
|
|
2424
2466
|
})]
|
|
2425
2467
|
}), !r.required && u("div", {
|
|
2426
2468
|
className: "ul-vertical-centered-container",
|
|
2427
|
-
children: u(
|
|
2469
|
+
children: u(q, {
|
|
2428
2470
|
onClick: _,
|
|
2429
|
-
children:
|
|
2471
|
+
children: ve(r)
|
|
2430
2472
|
})
|
|
2431
2473
|
})]
|
|
2432
2474
|
});
|
|
2433
2475
|
return u("form", {
|
|
2434
|
-
className:
|
|
2476
|
+
className: L([e, "ul-card--nps", w.FadeInTransition]),
|
|
2435
2477
|
children: [u(Y, {
|
|
2436
2478
|
message: n,
|
|
2437
2479
|
properties: r
|
|
@@ -2452,23 +2494,23 @@ const F = (e) => u("button", {
|
|
|
2452
2494
|
border: a,
|
|
2453
2495
|
useMobileStyling: l,
|
|
2454
2496
|
update: c
|
|
2455
|
-
} = $((
|
|
2456
|
-
border:
|
|
2457
|
-
useMobileStyling:
|
|
2458
|
-
update:
|
|
2459
|
-
})), [d, p] = D(""), s =
|
|
2460
|
-
|
|
2461
|
-
}, y = (
|
|
2462
|
-
|
|
2497
|
+
} = $((P) => ({
|
|
2498
|
+
border: P.border,
|
|
2499
|
+
useMobileStyling: P.useMobileStyling,
|
|
2500
|
+
update: P.update
|
|
2501
|
+
})), [d, p] = D(""), s = ne(null), _ = d.trim(), f = r.required === !0 && !_, m = tr(s, () => c()), g = (P) => {
|
|
2502
|
+
m(), P.preventDefault(), P.stopPropagation(), p(P.currentTarget.value);
|
|
2503
|
+
}, y = (P) => {
|
|
2504
|
+
P.preventDefault(), P.stopPropagation(), n({
|
|
2463
2505
|
value: d,
|
|
2464
2506
|
questionId: o,
|
|
2465
2507
|
type: i
|
|
2466
2508
|
});
|
|
2467
|
-
}, v = r && r.openTextPlaceholder ? r.openTextPlaceholder : "",
|
|
2468
|
-
|
|
2469
|
-
},
|
|
2470
|
-
|
|
2471
|
-
},
|
|
2509
|
+
}, v = r && r.openTextPlaceholder ? r.openTextPlaceholder : "", C = (P) => {
|
|
2510
|
+
P.currentTarget.style.borderColor = a;
|
|
2511
|
+
}, k = (P) => {
|
|
2512
|
+
P.currentTarget.style.borderColor = st;
|
|
2513
|
+
}, R = () => u("div", {
|
|
2472
2514
|
className: "ul-card-text",
|
|
2473
2515
|
children: [u("div", {
|
|
2474
2516
|
className: "ul-card-text__container",
|
|
@@ -2477,49 +2519,49 @@ const F = (e) => u("button", {
|
|
|
2477
2519
|
"aria-labelledby": w.QuestionHeader,
|
|
2478
2520
|
"aria-multiline": "true",
|
|
2479
2521
|
"aria-placeholder": v,
|
|
2480
|
-
className:
|
|
2522
|
+
className: L(H(w.OpenTextInput, l)),
|
|
2481
2523
|
"data-gramm": "false",
|
|
2482
2524
|
maxLength: 5e3,
|
|
2483
2525
|
name: "text",
|
|
2484
|
-
onBlur:
|
|
2485
|
-
onChange:
|
|
2486
|
-
onFocus:
|
|
2526
|
+
onBlur: k,
|
|
2527
|
+
onChange: g,
|
|
2528
|
+
onFocus: C,
|
|
2487
2529
|
placeholder: v,
|
|
2488
2530
|
ref: s,
|
|
2489
2531
|
role: "textbox",
|
|
2490
2532
|
tabIndex: 0
|
|
2491
2533
|
})
|
|
2492
|
-
}), u(
|
|
2534
|
+
}), u(q, {
|
|
2493
2535
|
disabled: f,
|
|
2494
2536
|
onClick: y,
|
|
2495
2537
|
style: {
|
|
2496
2538
|
backgroundColor: f ? "" : a
|
|
2497
2539
|
},
|
|
2498
|
-
children:
|
|
2540
|
+
children: ve(r)
|
|
2499
2541
|
})]
|
|
2500
2542
|
});
|
|
2501
2543
|
return u("form", {
|
|
2502
|
-
className:
|
|
2544
|
+
className: L([e, "ul-card--text", w.FadeInTransition]),
|
|
2503
2545
|
id: "text-form",
|
|
2504
2546
|
children: [u(Y, {
|
|
2505
2547
|
message: t,
|
|
2506
2548
|
properties: r
|
|
2507
2549
|
}), u(ae, {
|
|
2508
|
-
defaultBody:
|
|
2550
|
+
defaultBody: R,
|
|
2509
2551
|
properties: r
|
|
2510
2552
|
})]
|
|
2511
2553
|
}, o);
|
|
2512
2554
|
};
|
|
2513
|
-
var
|
|
2555
|
+
var ie = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(ie || {});
|
|
2514
2556
|
const De = (e) => e.type === z.AvPermission, ir = (e) => e.type === z.ScreenPermission, Do = (e, t) => !(De(t) ? t.permissionDescriptors : []).includes(Se.Camera) || e.getVideoTracks().length > 0, ar = (e, t) => {
|
|
2515
2557
|
if (e === void 0)
|
|
2516
|
-
return
|
|
2558
|
+
return ie.RequestNeeded;
|
|
2517
2559
|
if (e) {
|
|
2518
2560
|
if (!Do(e, t))
|
|
2519
|
-
return
|
|
2561
|
+
return ie.RequestNeeded;
|
|
2520
2562
|
} else
|
|
2521
|
-
return
|
|
2522
|
-
return
|
|
2563
|
+
return ie.TryAgain;
|
|
2564
|
+
return ie.Ready;
|
|
2523
2565
|
}, Qt = {
|
|
2524
2566
|
avStream: null,
|
|
2525
2567
|
currentPage: null,
|
|
@@ -2550,17 +2592,17 @@ function ot({
|
|
|
2550
2592
|
} = K.getState(), {
|
|
2551
2593
|
recorderEventEmitter: i
|
|
2552
2594
|
} = $.getState();
|
|
2553
|
-
i.emit(
|
|
2554
|
-
[
|
|
2555
|
-
[
|
|
2595
|
+
i.emit(B.AvPermission, {
|
|
2596
|
+
[I.PermissionDescriptors]: e.permissionDescriptors,
|
|
2597
|
+
[I.StreamReadyCallback]: (a, l) => {
|
|
2556
2598
|
if (n === a)
|
|
2557
2599
|
return;
|
|
2558
2600
|
let c = e;
|
|
2559
2601
|
if (a && !e.permissionDescriptors.includes(Se.Camera)) {
|
|
2560
2602
|
const d = t.indexOf(e), p = l != null && l.active ? d + 2 : d + 1;
|
|
2561
|
-
l != null && l.active && r && i.emit(
|
|
2562
|
-
[
|
|
2563
|
-
[
|
|
2603
|
+
l != null && l.active && r && i.emit(B.BeginRecording, {
|
|
2604
|
+
[I.RecordingMediaTypes]: r,
|
|
2605
|
+
[I.StartRecordingCallback]: (s) => o({
|
|
2564
2606
|
mediaRecordingUids: s
|
|
2565
2607
|
})
|
|
2566
2608
|
}), c = t[p];
|
|
@@ -2592,33 +2634,33 @@ function jo({
|
|
|
2592
2634
|
responseGroupUid: n
|
|
2593
2635
|
};
|
|
2594
2636
|
let p = 0;
|
|
2595
|
-
c.emit(ee.RecordedTaskPermissionScreen), l(ee.RecordedTaskPermissionScreen), c.emit(
|
|
2596
|
-
[
|
|
2637
|
+
c.emit(ee.RecordedTaskPermissionScreen), l(ee.RecordedTaskPermissionScreen), c.emit(B.PermissionStatus, {
|
|
2638
|
+
[I.PermissionStatusCallback]: (_, f, m, g) => {
|
|
2597
2639
|
const y = e[p], {
|
|
2598
2640
|
type: v
|
|
2599
|
-
} = y,
|
|
2641
|
+
} = y, C = [Q.Screen];
|
|
2600
2642
|
if (De(y)) {
|
|
2601
2643
|
const {
|
|
2602
|
-
permissionDescriptors:
|
|
2603
|
-
} = y,
|
|
2604
|
-
|
|
2605
|
-
const
|
|
2606
|
-
(
|
|
2644
|
+
permissionDescriptors: k
|
|
2645
|
+
} = y, R = k == null ? void 0 : k.includes(Se.Microphone), P = k == null ? void 0 : k.includes(Se.Camera);
|
|
2646
|
+
R && C.push(Q.Audio), P && C.push(Q.Video);
|
|
2647
|
+
const S = (_ == null ? void 0 : _.active) && !P, A = (_ == null ? void 0 : _.active) && f;
|
|
2648
|
+
(S || A) && p++;
|
|
2607
2649
|
}
|
|
2608
|
-
ir(e[p]) &&
|
|
2609
|
-
[
|
|
2610
|
-
[
|
|
2611
|
-
mediaRecordingUids:
|
|
2650
|
+
ir(e[p]) && m && (p++, c.emit(B.BeginRecording, {
|
|
2651
|
+
[I.RecordingMediaTypes]: C,
|
|
2652
|
+
[I.StartRecordingCallback]: (k) => a({
|
|
2653
|
+
mediaRecordingUids: k
|
|
2612
2654
|
})
|
|
2613
2655
|
})), a({
|
|
2614
2656
|
currentPage: e[p],
|
|
2615
2657
|
avStream: _,
|
|
2616
|
-
screenPermissionRequested:
|
|
2658
|
+
screenPermissionRequested: m,
|
|
2617
2659
|
nextQuestion: i,
|
|
2618
2660
|
type: v,
|
|
2619
2661
|
passthroughData: d,
|
|
2620
|
-
recordingMediaTypes:
|
|
2621
|
-
captureStream:
|
|
2662
|
+
recordingMediaTypes: C,
|
|
2663
|
+
captureStream: g
|
|
2622
2664
|
});
|
|
2623
2665
|
}
|
|
2624
2666
|
});
|
|
@@ -2644,11 +2686,11 @@ function it({
|
|
|
2644
2686
|
value: {
|
|
2645
2687
|
taskStatus: e
|
|
2646
2688
|
},
|
|
2647
|
-
type:
|
|
2689
|
+
type: b.RecordedTask,
|
|
2648
2690
|
questionId: (n == null ? void 0 : n.questionId) || 1
|
|
2649
2691
|
};
|
|
2650
|
-
n && i.emit(
|
|
2651
|
-
[
|
|
2692
|
+
n && i.emit(B.FinishTask, {
|
|
2693
|
+
[I.BeginCallback]: (d) => {
|
|
2652
2694
|
a({
|
|
2653
2695
|
mediaRecordingUid: d,
|
|
2654
2696
|
isSubmitted: !0,
|
|
@@ -2656,7 +2698,7 @@ function it({
|
|
|
2656
2698
|
isComplete: !1
|
|
2657
2699
|
});
|
|
2658
2700
|
},
|
|
2659
|
-
[
|
|
2701
|
+
[I.ProgressCallback]: (d, p) => {
|
|
2660
2702
|
a({
|
|
2661
2703
|
mediaRecordingUid: d,
|
|
2662
2704
|
progressPct: p.detail,
|
|
@@ -2664,7 +2706,7 @@ function it({
|
|
|
2664
2706
|
isComplete: !1
|
|
2665
2707
|
});
|
|
2666
2708
|
},
|
|
2667
|
-
[
|
|
2709
|
+
[I.UploadCallback]: (d) => {
|
|
2668
2710
|
d && a({
|
|
2669
2711
|
mediaRecordingUid: d,
|
|
2670
2712
|
isComplete: !0,
|
|
@@ -2672,10 +2714,10 @@ function it({
|
|
|
2672
2714
|
progressPct: 100
|
|
2673
2715
|
});
|
|
2674
2716
|
},
|
|
2675
|
-
[
|
|
2676
|
-
[
|
|
2677
|
-
[
|
|
2678
|
-
[
|
|
2717
|
+
[I.PassthroughData]: n,
|
|
2718
|
+
[I.CurrentIndex]: l,
|
|
2719
|
+
[I.TaskResponse]: c,
|
|
2720
|
+
[I.TaskCompleteCallback]: (d) => {
|
|
2679
2721
|
c.value.taskDurationMillisecond = d, r && (c.value.mediaRecordingUids = r), o(), t(c);
|
|
2680
2722
|
}
|
|
2681
2723
|
});
|
|
@@ -2699,9 +2741,9 @@ function gt({
|
|
|
2699
2741
|
switch (i.type) {
|
|
2700
2742
|
case z.AvPermission: {
|
|
2701
2743
|
const d = l ? c + 2 : c + 1;
|
|
2702
|
-
l && a && n.emit(
|
|
2703
|
-
[
|
|
2704
|
-
[
|
|
2744
|
+
l && a && n.emit(B.BeginRecording, {
|
|
2745
|
+
[I.RecordingMediaTypes]: a,
|
|
2746
|
+
[I.StartRecordingCallback]: (p) => {
|
|
2705
2747
|
o({
|
|
2706
2748
|
mediaRecordingUids: p
|
|
2707
2749
|
});
|
|
@@ -2712,13 +2754,13 @@ function gt({
|
|
|
2712
2754
|
return;
|
|
2713
2755
|
}
|
|
2714
2756
|
case z.ScreenPermission:
|
|
2715
|
-
n.emit(
|
|
2716
|
-
[
|
|
2717
|
-
[
|
|
2757
|
+
n.emit(B.ScreenPermission, {
|
|
2758
|
+
[I.ScreenPermissionRequested]: t,
|
|
2759
|
+
[I.StreamReadyCallback]: (d, p) => {
|
|
2718
2760
|
const s = p ? e[c + 1] : i;
|
|
2719
|
-
p && a && n.emit(
|
|
2720
|
-
[
|
|
2721
|
-
[
|
|
2761
|
+
p && a && n.emit(B.BeginRecording, {
|
|
2762
|
+
[I.RecordingMediaTypes]: a,
|
|
2763
|
+
[I.StartRecordingCallback]: (_) => {
|
|
2722
2764
|
o({
|
|
2723
2765
|
captureStream: p,
|
|
2724
2766
|
mediaRecordingUids: _
|
|
@@ -2733,7 +2775,7 @@ function gt({
|
|
|
2733
2775
|
});
|
|
2734
2776
|
return;
|
|
2735
2777
|
case z.StartTask:
|
|
2736
|
-
r(ee.RecordedTaskStart), n.emit(ee.RecordedTaskStart), n.emit(
|
|
2778
|
+
r(ee.RecordedTaskStart), n.emit(ee.RecordedTaskStart), n.emit(B.StartTask), o({
|
|
2737
2779
|
currentPage: e[c + 1],
|
|
2738
2780
|
screenPermissionRequested: !0
|
|
2739
2781
|
});
|
|
@@ -2742,7 +2784,7 @@ function gt({
|
|
|
2742
2784
|
return;
|
|
2743
2785
|
}
|
|
2744
2786
|
}
|
|
2745
|
-
const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr =
|
|
2787
|
+
const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = L([sr, "ul_recorded-task-inset-spacing"]), je = L(["ul-horizontal-button-container", "ul-horizontal-button-container-left"]), ur = ({
|
|
2746
2788
|
richTextBody: e
|
|
2747
2789
|
}) => u("div", {
|
|
2748
2790
|
className: "ul-rich-text-body",
|
|
@@ -2754,8 +2796,8 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2754
2796
|
required: e,
|
|
2755
2797
|
skipButtonText: t,
|
|
2756
2798
|
bottom: n = !1
|
|
2757
|
-
}) => e ? null : u(
|
|
2758
|
-
className:
|
|
2799
|
+
}) => e ? null : u(q, {
|
|
2800
|
+
className: L([n && "ul-skip-button-below", w.InactiveButton]),
|
|
2759
2801
|
onClick: it.bind(null, {
|
|
2760
2802
|
status: W.Abandoned
|
|
2761
2803
|
}),
|
|
@@ -2767,7 +2809,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2767
2809
|
recordingMediaTypes: r,
|
|
2768
2810
|
updatePage: o
|
|
2769
2811
|
} = K.getState(), i = (r == null ? void 0 : r.includes(Q.Audio)) || (r == null ? void 0 : r.includes(Q.Video));
|
|
2770
|
-
|
|
2812
|
+
F(() => {
|
|
2771
2813
|
const a = setInterval(() => {
|
|
2772
2814
|
i && t && !t.active ? o({
|
|
2773
2815
|
avStream: null,
|
|
@@ -2795,7 +2837,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2795
2837
|
richTextBody: i
|
|
2796
2838
|
}), u("div", {
|
|
2797
2839
|
className: je,
|
|
2798
|
-
children: [u(
|
|
2840
|
+
children: [u(q, {
|
|
2799
2841
|
onClick: gt.bind(null, {
|
|
2800
2842
|
pages: t
|
|
2801
2843
|
}),
|
|
@@ -2820,14 +2862,14 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2820
2862
|
properties: n,
|
|
2821
2863
|
defaultBody: () => u("div", {
|
|
2822
2864
|
className: je,
|
|
2823
|
-
children: [u(
|
|
2865
|
+
children: [u(q, {
|
|
2824
2866
|
className: "ul-complete-task-button",
|
|
2825
2867
|
onClick: it.bind(null, {
|
|
2826
2868
|
status: W.Completed
|
|
2827
2869
|
}),
|
|
2828
2870
|
children: r
|
|
2829
|
-
}), u(
|
|
2830
|
-
className:
|
|
2871
|
+
}), u(q, {
|
|
2872
|
+
className: L([w.InactiveButton]),
|
|
2831
2873
|
onClick: it.bind(null, {
|
|
2832
2874
|
status: W.GivenUp
|
|
2833
2875
|
}),
|
|
@@ -2867,7 +2909,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2867
2909
|
})]
|
|
2868
2910
|
}), u("div", {
|
|
2869
2911
|
className: n ? "" : je,
|
|
2870
|
-
children: [u(
|
|
2912
|
+
children: [u(q, {
|
|
2871
2913
|
disabled: a,
|
|
2872
2914
|
onClick: gt.bind(null, {
|
|
2873
2915
|
pages: t,
|
|
@@ -2883,7 +2925,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2883
2925
|
}, Wo = ({
|
|
2884
2926
|
content: e
|
|
2885
2927
|
}) => u("div", {
|
|
2886
|
-
className:
|
|
2928
|
+
className: L([sr, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"]),
|
|
2887
2929
|
dangerouslySetInnerHTML: {
|
|
2888
2930
|
__html: e.svg
|
|
2889
2931
|
}
|
|
@@ -2898,7 +2940,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2898
2940
|
skipButtonText: i,
|
|
2899
2941
|
tryAgainButtonText: a
|
|
2900
2942
|
} = e, l = De(t[0]) ? t[0] : null;
|
|
2901
|
-
return
|
|
2943
|
+
return F(() => {
|
|
2902
2944
|
const c = setInterval(() => {
|
|
2903
2945
|
l !== null && ot({
|
|
2904
2946
|
currentPage: l,
|
|
@@ -2921,7 +2963,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2921
2963
|
})
|
|
2922
2964
|
}), u("div", {
|
|
2923
2965
|
className: je,
|
|
2924
|
-
children: [u(
|
|
2966
|
+
children: [u(q, {
|
|
2925
2967
|
onClick: ot.bind(null, {
|
|
2926
2968
|
currentPage: l,
|
|
2927
2969
|
pages: t
|
|
@@ -2937,7 +2979,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2937
2979
|
stream: e
|
|
2938
2980
|
}) => u("video", {
|
|
2939
2981
|
autoPlay: !0,
|
|
2940
|
-
className:
|
|
2982
|
+
className: L(["ul_recorded-task-inset-spacing"]),
|
|
2941
2983
|
id: "ul-record-task-video-preview",
|
|
2942
2984
|
muted: !0,
|
|
2943
2985
|
ref: (t) => {
|
|
@@ -2958,7 +3000,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2958
3000
|
stream: o
|
|
2959
3001
|
}), u("div", {
|
|
2960
3002
|
className: "ul-vertical-button-container-center",
|
|
2961
|
-
children: [u(
|
|
3003
|
+
children: [u(q, {
|
|
2962
3004
|
onClick: gt.bind(null, {
|
|
2963
3005
|
pages: t
|
|
2964
3006
|
}),
|
|
@@ -2985,9 +3027,9 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
2985
3027
|
switch (o == null ? void 0 : o.type) {
|
|
2986
3028
|
case z.AvPermission: {
|
|
2987
3029
|
const i = ar(r, o);
|
|
2988
|
-
return i ===
|
|
3030
|
+
return i === ie.RequestNeeded ? u(Wo, {
|
|
2989
3031
|
content: o
|
|
2990
|
-
}) : i ===
|
|
3032
|
+
}) : i === ie.TryAgain ? u(Zo, {
|
|
2991
3033
|
content: o,
|
|
2992
3034
|
pages: t,
|
|
2993
3035
|
required: n
|
|
@@ -3030,22 +3072,22 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3030
3072
|
userId: l
|
|
3031
3073
|
} = o, c = K(), {
|
|
3032
3074
|
screenPermissionRequested: d
|
|
3033
|
-
} = c, p = K((
|
|
3034
|
-
let s = K((
|
|
3075
|
+
} = c, p = K((g) => g.avStream);
|
|
3076
|
+
let s = K((g) => g.currentPage);
|
|
3035
3077
|
s || (s = jo({
|
|
3036
3078
|
questionId: r,
|
|
3037
3079
|
surveyId: i,
|
|
3038
|
-
next: (
|
|
3039
|
-
n(
|
|
3080
|
+
next: (g) => {
|
|
3081
|
+
n(g);
|
|
3040
3082
|
},
|
|
3041
3083
|
pages: t.pages,
|
|
3042
3084
|
responseGroupUid: a,
|
|
3043
3085
|
userId: l
|
|
3044
3086
|
}));
|
|
3045
3087
|
let _ = s.headline, f = s.captionText;
|
|
3046
|
-
const
|
|
3047
|
-
return ir(s) && d && (_ = s.permissionDeniedHeadline, f = s.permissionDeniedCaptionText), De(s) &&
|
|
3048
|
-
className:
|
|
3088
|
+
const m = ar(p, s);
|
|
3089
|
+
return ir(s) && d && (_ = s.permissionDeniedHeadline, f = s.permissionDeniedCaptionText), De(s) && m === ie.Ready && (_ = s.permissionGrantedHeadline, f = s.permissionGrantedCaptionText), u("div", {
|
|
3090
|
+
className: L([e, "ul-center-horizontally", w.FadeInTransition]),
|
|
3049
3091
|
children: [u(Y, {
|
|
3050
3092
|
message: _,
|
|
3051
3093
|
properties: {
|
|
@@ -3117,7 +3159,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3117
3159
|
role: s ? "link" : "button",
|
|
3118
3160
|
tabIndex: 0,
|
|
3119
3161
|
target: "_blank",
|
|
3120
|
-
children:
|
|
3162
|
+
children: ve(r)
|
|
3121
3163
|
}), r.required === !1 && u("button", {
|
|
3122
3164
|
className: w.SkipButton,
|
|
3123
3165
|
onClick: (_) => l(_, !0),
|
|
@@ -3133,12 +3175,12 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3133
3175
|
}) : u("div", {
|
|
3134
3176
|
className: "ul-rich-text-body",
|
|
3135
3177
|
id: "ul-card__text-url-body-container",
|
|
3136
|
-
children: (_ ? _.split(/\n\s*\n/g) : []).map((f,
|
|
3178
|
+
children: (_ ? _.split(/\n\s*\n/g) : []).map((f, m) => u("p", {
|
|
3137
3179
|
children: f
|
|
3138
|
-
},
|
|
3180
|
+
}, m))
|
|
3139
3181
|
});
|
|
3140
3182
|
return u("div", {
|
|
3141
|
-
className:
|
|
3183
|
+
className: L([e, "ul-card__text-url-prompt", w.FadeInTransition]),
|
|
3142
3184
|
children: [u(Y, {
|
|
3143
3185
|
message: t
|
|
3144
3186
|
}), p(r == null ? void 0 : r.richTextBody, r == null ? void 0 : r.body), u(ae, {
|
|
@@ -3161,9 +3203,9 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3161
3203
|
endCard: c.endCard,
|
|
3162
3204
|
forceBrandedLogo: c.forceBrandedLogo
|
|
3163
3205
|
}));
|
|
3164
|
-
|
|
3206
|
+
F(() => {
|
|
3165
3207
|
setTimeout(() => {
|
|
3166
|
-
r(
|
|
3208
|
+
r(_e);
|
|
3167
3209
|
}, i ? 4e3 : 2e3);
|
|
3168
3210
|
}, [r, i]);
|
|
3169
3211
|
const a = o && o.subheader ? u("p", {
|
|
@@ -3171,7 +3213,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3171
3213
|
children: o.subheader
|
|
3172
3214
|
}) : null, l = o && o.headline ? o.headline : "";
|
|
3173
3215
|
return u("div", {
|
|
3174
|
-
className:
|
|
3216
|
+
className: L([e, "ul-card--thanks", w.FadeInTransition]),
|
|
3175
3217
|
children: u("div", {
|
|
3176
3218
|
children: u("div", {
|
|
3177
3219
|
className: "ul-card--thanks-content",
|
|
@@ -3218,7 +3260,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3218
3260
|
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.");
|
|
3219
3261
|
const o = Math.round(Math.min(99, ...Object.values(t).filter((i) => i.isSubmitted).map((i) => i.progressPct || 0)));
|
|
3220
3262
|
return u("div", {
|
|
3221
|
-
className:
|
|
3263
|
+
className: L([e, "ul-card--uploading", w.FadeInTransition]),
|
|
3222
3264
|
children: [u("div", {
|
|
3223
3265
|
"aria-busy": "true",
|
|
3224
3266
|
"aria-label": "Processing...",
|
|
@@ -3295,21 +3337,21 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3295
3337
|
slugName: l,
|
|
3296
3338
|
surveyId: c,
|
|
3297
3339
|
viewedCardCount: d
|
|
3298
|
-
} = $((
|
|
3299
|
-
border:
|
|
3300
|
-
cards:
|
|
3301
|
-
forceBrandedLogo:
|
|
3302
|
-
headers:
|
|
3303
|
-
index:
|
|
3304
|
-
marketingUrl:
|
|
3305
|
-
showSurveyBrand:
|
|
3306
|
-
slugName:
|
|
3307
|
-
surveyId:
|
|
3308
|
-
viewedCardCount:
|
|
3309
|
-
})), p =
|
|
3310
|
-
|
|
3311
|
-
p.current && (p.current.style.width = `${
|
|
3312
|
-
}, [
|
|
3340
|
+
} = $((k) => ({
|
|
3341
|
+
border: k.border,
|
|
3342
|
+
cards: k.cards,
|
|
3343
|
+
forceBrandedLogo: k.forceBrandedLogo,
|
|
3344
|
+
headers: k.headers,
|
|
3345
|
+
index: k.index,
|
|
3346
|
+
marketingUrl: k.marketingUrl,
|
|
3347
|
+
showSurveyBrand: k.showSurveyBrand,
|
|
3348
|
+
slugName: k.slugName,
|
|
3349
|
+
surveyId: k.surveyId,
|
|
3350
|
+
viewedCardCount: k.viewedCardCount
|
|
3351
|
+
})), p = ne(null), s = t.filter((k) => k.type !== b.Uploading && k.type !== b.Thanks), _ = To(t, o), f = d + 1, m = f / (f + _), g = `${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${l}&utm_content=${c}${n && "&utm_term=poweredby_pill"}`;
|
|
3352
|
+
F(() => {
|
|
3353
|
+
p.current && (p.current.style.width = `${m * 100}%`);
|
|
3354
|
+
}, [m]);
|
|
3313
3355
|
const y = () => u(j, {
|
|
3314
3356
|
children: [s.length > 1 && u("div", {
|
|
3315
3357
|
id: "ul-progress-bar-container",
|
|
@@ -3326,7 +3368,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3326
3368
|
marginTop: "4px"
|
|
3327
3369
|
},
|
|
3328
3370
|
children: u("a", {
|
|
3329
|
-
href:
|
|
3371
|
+
href: g,
|
|
3330
3372
|
rel: "noreferrer",
|
|
3331
3373
|
target: "_blank",
|
|
3332
3374
|
children: u("div", {
|
|
@@ -3347,7 +3389,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3347
3389
|
}) : null]
|
|
3348
3390
|
}), v = () => u("a", {
|
|
3349
3391
|
dir: "ltr",
|
|
3350
|
-
href:
|
|
3392
|
+
href: g,
|
|
3351
3393
|
rel: "noreferrer",
|
|
3352
3394
|
target: "_blank",
|
|
3353
3395
|
children: u("div", {
|
|
@@ -3372,13 +3414,13 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3372
3414
|
})
|
|
3373
3415
|
})]
|
|
3374
3416
|
})
|
|
3375
|
-
}),
|
|
3417
|
+
}), C = t[o].type === b.Thanks;
|
|
3376
3418
|
return u("footer", {
|
|
3377
3419
|
className: `ul-footer ${r["userleap-platform"] === "link" ? "ul-footer__link" : ""}`,
|
|
3378
3420
|
style: a ? {} : {
|
|
3379
3421
|
marginBottom: "10px"
|
|
3380
3422
|
},
|
|
3381
|
-
children:
|
|
3423
|
+
children: C && n ? v() : y()
|
|
3382
3424
|
});
|
|
3383
3425
|
}, Yt = ({
|
|
3384
3426
|
style: e
|
|
@@ -3418,177 +3460,177 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3418
3460
|
next: s,
|
|
3419
3461
|
showStripes: _,
|
|
3420
3462
|
surveyId: f,
|
|
3421
|
-
update:
|
|
3422
|
-
useMobileStyling:
|
|
3463
|
+
update: m,
|
|
3464
|
+
useMobileStyling: g,
|
|
3423
3465
|
viewDocument: y
|
|
3424
|
-
} = $((
|
|
3425
|
-
answers:
|
|
3426
|
-
border:
|
|
3427
|
-
cards:
|
|
3428
|
-
close:
|
|
3429
|
-
configureExitOnOverlayClick:
|
|
3430
|
-
destroy:
|
|
3431
|
-
endCard:
|
|
3432
|
-
eventEmitFn:
|
|
3433
|
-
fontFamily:
|
|
3434
|
-
headers:
|
|
3435
|
-
index:
|
|
3436
|
-
next:
|
|
3437
|
-
showStripes:
|
|
3438
|
-
surveyId:
|
|
3439
|
-
update:
|
|
3440
|
-
useMobileStyling:
|
|
3441
|
-
viewDocument:
|
|
3442
|
-
})), v =
|
|
3443
|
-
props:
|
|
3444
|
-
type:
|
|
3445
|
-
name:
|
|
3446
|
-
} = n[p],
|
|
3447
|
-
|
|
3448
|
-
v.current && (v.current.classList.contains("ul-app--visible") || v.current.classList.add("ul-app--visible"), !
|
|
3449
|
-
name:
|
|
3466
|
+
} = $((E) => ({
|
|
3467
|
+
answers: E.answers,
|
|
3468
|
+
border: E.border,
|
|
3469
|
+
cards: E.cards,
|
|
3470
|
+
close: E.close,
|
|
3471
|
+
configureExitOnOverlayClick: E.configureExitOnOverlayClick,
|
|
3472
|
+
destroy: E.destroy,
|
|
3473
|
+
endCard: E.endCard,
|
|
3474
|
+
eventEmitFn: E.eventEmitFn,
|
|
3475
|
+
fontFamily: E.fontFamily,
|
|
3476
|
+
headers: E.headers,
|
|
3477
|
+
index: E.index,
|
|
3478
|
+
next: E.next,
|
|
3479
|
+
showStripes: E.showStripes,
|
|
3480
|
+
surveyId: E.surveyId,
|
|
3481
|
+
update: E.update,
|
|
3482
|
+
useMobileStyling: E.useMobileStyling,
|
|
3483
|
+
viewDocument: E.viewDocument
|
|
3484
|
+
})), v = ne(null), C = ne(!1), k = d["userleap-platform"], {
|
|
3485
|
+
props: R,
|
|
3486
|
+
type: P,
|
|
3487
|
+
name: S
|
|
3488
|
+
} = n[p], A = n.length;
|
|
3489
|
+
F(() => {
|
|
3490
|
+
v.current && (v.current.classList.contains("ul-app--visible") || v.current.classList.add("ul-app--visible"), !C.current && l && (C.current = !0, l(oe.SurveyAppeared, {
|
|
3491
|
+
name: oe.SurveyAppeared,
|
|
3450
3492
|
[xr.SurveyId]: f
|
|
3451
3493
|
})));
|
|
3452
|
-
}, [l, f]),
|
|
3453
|
-
|
|
3454
|
-
}, [p,
|
|
3494
|
+
}, [l, f]), F(() => {
|
|
3495
|
+
m();
|
|
3496
|
+
}, [p, m]), F(() => {
|
|
3455
3497
|
o(() => r());
|
|
3456
3498
|
}, [r, o]);
|
|
3457
|
-
const N = () => r(
|
|
3458
|
-
|
|
3459
|
-
},
|
|
3499
|
+
const N = () => r(_e), h = (E) => {
|
|
3500
|
+
E.key === "Enter" && N();
|
|
3501
|
+
}, T = async function(E) {
|
|
3460
3502
|
s({
|
|
3461
|
-
data:
|
|
3503
|
+
data: E,
|
|
3462
3504
|
completeSurvey: () => {
|
|
3463
|
-
i(
|
|
3505
|
+
i(_e);
|
|
3464
3506
|
},
|
|
3465
3507
|
endCard: a
|
|
3466
3508
|
}), Cr(y);
|
|
3467
3509
|
};
|
|
3468
3510
|
if (e) {
|
|
3469
|
-
for (const
|
|
3470
|
-
if (
|
|
3471
|
-
let
|
|
3472
|
-
if (
|
|
3473
|
-
const
|
|
3511
|
+
for (const E of e)
|
|
3512
|
+
if (E.questionId === S) {
|
|
3513
|
+
let re;
|
|
3514
|
+
if (P === b.MultipleChoice) {
|
|
3515
|
+
const le = R.options.find(({
|
|
3474
3516
|
value: qe
|
|
3475
|
-
}) => qe ===
|
|
3476
|
-
if (!
|
|
3517
|
+
}) => qe === E.value);
|
|
3518
|
+
if (!le)
|
|
3477
3519
|
break;
|
|
3478
|
-
|
|
3479
|
-
[
|
|
3520
|
+
re = {
|
|
3521
|
+
[le.id]: le.value
|
|
3480
3522
|
};
|
|
3481
3523
|
} else
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
value:
|
|
3485
|
-
type:
|
|
3486
|
-
questionId:
|
|
3524
|
+
re = E.value;
|
|
3525
|
+
T({
|
|
3526
|
+
value: re,
|
|
3527
|
+
type: P,
|
|
3528
|
+
questionId: E.questionId
|
|
3487
3529
|
});
|
|
3488
3530
|
break;
|
|
3489
3531
|
}
|
|
3490
3532
|
}
|
|
3491
|
-
const
|
|
3533
|
+
const O = () => [Ke.Email, Ke.Link].includes(d["userleap-platform"]) ? !1 : !a || p + 1 !== A, se = () => g ? {
|
|
3492
3534
|
borderColor: t
|
|
3493
3535
|
} : {
|
|
3494
3536
|
borderColor: t,
|
|
3495
3537
|
margin: "15px"
|
|
3496
|
-
},
|
|
3497
|
-
const
|
|
3538
|
+
}, U = () => {
|
|
3539
|
+
const E = {
|
|
3498
3540
|
className: "ul-card",
|
|
3499
|
-
next:
|
|
3500
|
-
questionId:
|
|
3501
|
-
type:
|
|
3541
|
+
next: T,
|
|
3542
|
+
questionId: S,
|
|
3543
|
+
type: P
|
|
3502
3544
|
};
|
|
3503
|
-
switch (
|
|
3504
|
-
case
|
|
3505
|
-
return
|
|
3506
|
-
...P,
|
|
3545
|
+
switch (P) {
|
|
3546
|
+
case b.ConsentLegal:
|
|
3547
|
+
return V(Ao, {
|
|
3507
3548
|
...E,
|
|
3508
|
-
|
|
3549
|
+
...R,
|
|
3550
|
+
key: S
|
|
3509
3551
|
});
|
|
3510
|
-
case
|
|
3511
|
-
return
|
|
3512
|
-
...P,
|
|
3552
|
+
case b.Likert:
|
|
3553
|
+
return V($o, {
|
|
3513
3554
|
...E,
|
|
3514
|
-
|
|
3555
|
+
...R,
|
|
3556
|
+
key: S
|
|
3515
3557
|
});
|
|
3516
|
-
case
|
|
3517
|
-
return
|
|
3518
|
-
...P,
|
|
3558
|
+
case b.Matrix:
|
|
3559
|
+
return V(Oo, {
|
|
3519
3560
|
...E,
|
|
3520
|
-
|
|
3561
|
+
...R,
|
|
3562
|
+
key: S
|
|
3521
3563
|
});
|
|
3522
|
-
case
|
|
3523
|
-
return
|
|
3524
|
-
...P,
|
|
3564
|
+
case b.MultipleChoice:
|
|
3565
|
+
return V(Uo, {
|
|
3525
3566
|
...E,
|
|
3526
|
-
|
|
3567
|
+
...R,
|
|
3568
|
+
key: S
|
|
3527
3569
|
});
|
|
3528
|
-
case
|
|
3529
|
-
return
|
|
3530
|
-
...P,
|
|
3570
|
+
case b.MultipleSelect:
|
|
3571
|
+
return V(Vo, {
|
|
3531
3572
|
...E,
|
|
3532
|
-
|
|
3573
|
+
...R,
|
|
3574
|
+
key: S
|
|
3533
3575
|
});
|
|
3534
|
-
case
|
|
3535
|
-
return
|
|
3536
|
-
...
|
|
3537
|
-
key:
|
|
3538
|
-
props:
|
|
3576
|
+
case b.NPS:
|
|
3577
|
+
return V(Ho, {
|
|
3578
|
+
...E,
|
|
3579
|
+
key: S,
|
|
3580
|
+
props: R
|
|
3539
3581
|
});
|
|
3540
|
-
case
|
|
3541
|
-
return
|
|
3542
|
-
...P,
|
|
3582
|
+
case b.Open:
|
|
3583
|
+
return V(Bo, {
|
|
3543
3584
|
...E,
|
|
3544
|
-
|
|
3585
|
+
...R,
|
|
3586
|
+
key: S
|
|
3545
3587
|
});
|
|
3546
|
-
case
|
|
3547
|
-
return
|
|
3548
|
-
...P,
|
|
3588
|
+
case b.RecordedTask:
|
|
3589
|
+
return V(Yo, {
|
|
3549
3590
|
...E,
|
|
3550
|
-
|
|
3591
|
+
...R,
|
|
3592
|
+
key: S
|
|
3551
3593
|
});
|
|
3552
|
-
case
|
|
3553
|
-
return
|
|
3554
|
-
...P,
|
|
3594
|
+
case b.TextUrlPrompt:
|
|
3595
|
+
return V(ei, {
|
|
3555
3596
|
...E,
|
|
3556
|
-
|
|
3597
|
+
...R,
|
|
3598
|
+
key: S
|
|
3557
3599
|
});
|
|
3558
|
-
case
|
|
3559
|
-
return
|
|
3560
|
-
...P,
|
|
3600
|
+
case b.Thanks:
|
|
3601
|
+
return V(ti, {
|
|
3561
3602
|
...E,
|
|
3562
|
-
|
|
3603
|
+
...R,
|
|
3604
|
+
key: S
|
|
3563
3605
|
});
|
|
3564
|
-
case
|
|
3565
|
-
return
|
|
3566
|
-
...P,
|
|
3606
|
+
case b.Uploading:
|
|
3607
|
+
return V(ni, {
|
|
3567
3608
|
...E,
|
|
3568
|
-
|
|
3609
|
+
...R,
|
|
3610
|
+
key: S
|
|
3569
3611
|
});
|
|
3570
|
-
case
|
|
3612
|
+
case b.VideoVoice:
|
|
3571
3613
|
return null;
|
|
3572
3614
|
default:
|
|
3573
3615
|
return null;
|
|
3574
3616
|
}
|
|
3575
|
-
},
|
|
3617
|
+
}, de = (E) => {
|
|
3576
3618
|
var vt;
|
|
3577
|
-
const
|
|
3578
|
-
if (!
|
|
3619
|
+
const re = window.sprigAPI, le = E.target;
|
|
3620
|
+
if (!re || !le)
|
|
3579
3621
|
return;
|
|
3580
|
-
const qe = [
|
|
3581
|
-
for (const
|
|
3582
|
-
if (((vt =
|
|
3583
|
-
|
|
3622
|
+
const qe = [le, le.parentElement];
|
|
3623
|
+
for (const Re of qe)
|
|
3624
|
+
if (((vt = Re == null ? void 0 : Re.tagName) == null ? void 0 : vt.toLowerCase()) === "a") {
|
|
3625
|
+
E.preventDefault(), re == null || re.openUrl(Re.href);
|
|
3584
3626
|
return;
|
|
3585
3627
|
}
|
|
3586
3628
|
};
|
|
3587
3629
|
return u("div", {
|
|
3588
|
-
className:
|
|
3630
|
+
className: L("ul-app", $e(d) ? "ul-app--visible" : "ul-app--overlay"),
|
|
3589
3631
|
dir: "auto",
|
|
3590
|
-
id:
|
|
3591
|
-
onClick:
|
|
3632
|
+
id: _e,
|
|
3633
|
+
onClick: de,
|
|
3592
3634
|
ref: v,
|
|
3593
3635
|
style: {
|
|
3594
3636
|
"--theme": t,
|
|
@@ -3599,15 +3641,15 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3599
3641
|
children: u("div", {
|
|
3600
3642
|
className: "ul-app__container",
|
|
3601
3643
|
children: u("div", {
|
|
3602
|
-
className:
|
|
3603
|
-
style:
|
|
3604
|
-
children: [
|
|
3605
|
-
className:
|
|
3644
|
+
className: L(H(w.CardContainer, g)),
|
|
3645
|
+
style: se(),
|
|
3646
|
+
children: [O() && u("div", {
|
|
3647
|
+
className: L(H(w.CloseContainer, g)),
|
|
3606
3648
|
children: u("div", {
|
|
3607
3649
|
"aria-label": "Close button",
|
|
3608
3650
|
className: w.CloseButton,
|
|
3609
3651
|
onClick: N,
|
|
3610
|
-
onKeyPress:
|
|
3652
|
+
onKeyPress: h,
|
|
3611
3653
|
role: "button",
|
|
3612
3654
|
tabIndex: 0,
|
|
3613
3655
|
children: u("svg", {
|
|
@@ -3630,13 +3672,13 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3630
3672
|
children: "For development purposes only"
|
|
3631
3673
|
})
|
|
3632
3674
|
}), u("div", {
|
|
3633
|
-
className:
|
|
3634
|
-
children:
|
|
3675
|
+
className: L(yr(w.CardMainContent, k)),
|
|
3676
|
+
children: U()
|
|
3635
3677
|
}), u(ri, {})]
|
|
3636
3678
|
})
|
|
3637
3679
|
})
|
|
3638
3680
|
});
|
|
3639
|
-
}, ii = '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-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;margin:auto;text-align:start;min-width:200px}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.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{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start}.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}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{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}.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}.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}.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}.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(93px,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-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}.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{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#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-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#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}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer>.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%}.close-btn{cursor:pointer;height:18px;margin-inline-end:-10px;position:relative;top:-10px;width:18px;z-index:1}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}', ai = async (e, t) => {
|
|
3681
|
+
}, ii = '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-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;margin:auto;text-align:start;min-width:200px}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.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{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start}.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}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{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}.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}.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}.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}.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(93px,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}.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{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#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-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#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}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer>.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%}.close-btn{cursor:pointer;height:18px;margin-inline-end:-10px;position:relative;top:-10px;width:18px;z-index:1}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}', ai = async (e, t) => {
|
|
3640
3682
|
var r;
|
|
3641
3683
|
const n = await fetch(t, {
|
|
3642
3684
|
method: "POST",
|
|
@@ -3670,7 +3712,7 @@ const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R
|
|
|
3670
3712
|
function en(e, t, n, r, o, i) {
|
|
3671
3713
|
if (e && e.state !== "inactive") {
|
|
3672
3714
|
const {
|
|
3673
|
-
[
|
|
3715
|
+
[I.BeginCallback]: a
|
|
3674
3716
|
} = r, l = e.currentMediaRecordingUid;
|
|
3675
3717
|
if (!l)
|
|
3676
3718
|
return;
|
|
@@ -3679,13 +3721,13 @@ function en(e, t, n, r, o, i) {
|
|
|
3679
3721
|
}
|
|
3680
3722
|
async function si(e, t, n, r, o, i, a) {
|
|
3681
3723
|
const l = $.getState().viewDocument, {
|
|
3682
|
-
[
|
|
3683
|
-
[
|
|
3724
|
+
[I.UploadCallback]: c,
|
|
3725
|
+
[I.ProgressCallback]: d
|
|
3684
3726
|
} = r, p = {
|
|
3685
3727
|
mediaType: n,
|
|
3686
3728
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3687
3729
|
mediaRecordingUid: o,
|
|
3688
|
-
...r[
|
|
3730
|
+
...r[I.PassthroughData]
|
|
3689
3731
|
}, s = await ai(p, e);
|
|
3690
3732
|
if (!s) {
|
|
3691
3733
|
c && c(null, {
|
|
@@ -3698,18 +3740,18 @@ async function si(e, t, n, r, o, i, a) {
|
|
|
3698
3740
|
});
|
|
3699
3741
|
if (!l.defaultView)
|
|
3700
3742
|
return;
|
|
3701
|
-
const f = new l.defaultView.File([_], `recording video ${Date.now()}`),
|
|
3743
|
+
const f = new l.defaultView.File([_], `recording video ${Date.now()}`), m = i.createUpload({
|
|
3702
3744
|
// endpoint computed from backend separately and hacked together
|
|
3703
3745
|
endpoint: s,
|
|
3704
3746
|
file: f,
|
|
3705
3747
|
chunkSize: 5120
|
|
3706
3748
|
// Uploads the file in ~5mb chunks
|
|
3707
3749
|
});
|
|
3708
|
-
|
|
3709
|
-
c && c(null,
|
|
3710
|
-
}),
|
|
3711
|
-
d && d(o,
|
|
3712
|
-
}),
|
|
3750
|
+
m.on("error", (g) => {
|
|
3751
|
+
c && c(null, g);
|
|
3752
|
+
}), m.on("progress", (g) => {
|
|
3753
|
+
d && d(o, g);
|
|
3754
|
+
}), m.on("success", () => {
|
|
3713
3755
|
c && c(o, !0);
|
|
3714
3756
|
});
|
|
3715
3757
|
}
|
|
@@ -3751,19 +3793,19 @@ const li = {
|
|
|
3751
3793
|
this.state.UpChunk = e;
|
|
3752
3794
|
},
|
|
3753
3795
|
configure(e, t) {
|
|
3754
|
-
Object.assign(this.state, t), this.state.uploadApiEndpoint = `${t.apiURL}/2/environments/integrations/upload`, this.state.chunks = {}, e.on(
|
|
3796
|
+
Object.assign(this.state, t), this.state.uploadApiEndpoint = `${t.apiURL}/2/environments/integrations/upload`, this.state.chunks = {}, e.on(B.PermissionStatus, this.permissionStatusCallback.bind(this)), e.on(B.AvPermission, async (n) => {
|
|
3755
3797
|
this.avPermissionCallback(n);
|
|
3756
|
-
}), e.on(
|
|
3798
|
+
}), e.on(B.BeginRecording, this.beginRecordingCallback.bind(this)), e.on(B.StartTask, this.startTaskCallback.bind(this)), e.on(B.ScreenPermission, async (n) => {
|
|
3757
3799
|
this.screenPermissionCallback(n);
|
|
3758
|
-
}), e.on(
|
|
3800
|
+
}), e.on(B.FinishTask, async (n) => {
|
|
3759
3801
|
this.finishTaskCallback(n);
|
|
3760
3802
|
});
|
|
3761
3803
|
},
|
|
3762
3804
|
async avPermissionCallback(e) {
|
|
3763
3805
|
var r, o, i;
|
|
3764
3806
|
const {
|
|
3765
|
-
[
|
|
3766
|
-
[
|
|
3807
|
+
[I.StreamReadyCallback]: t,
|
|
3808
|
+
[I.PermissionDescriptors]: n
|
|
3767
3809
|
} = e;
|
|
3768
3810
|
try {
|
|
3769
3811
|
(r = this.state.avStream) != null && r.active && (this.state.avStream.getTracks().map((a) => a.readyState === "live" && a.stop()), ((o = this.state.captureStream) == null ? void 0 : o.getAudioTracks().length) === 1 && this.state.captureStream.removeTrack(this.state.captureStream.getAudioTracks()[0])), this.state.avStream = await navigator.mediaDevices.getUserMedia({
|
|
@@ -3778,8 +3820,8 @@ const li = {
|
|
|
3778
3820
|
},
|
|
3779
3821
|
async screenPermissionCallback(e) {
|
|
3780
3822
|
const {
|
|
3781
|
-
[
|
|
3782
|
-
[
|
|
3823
|
+
[I.ScreenPermissionRequested]: t,
|
|
3824
|
+
[I.StreamReadyCallback]: n
|
|
3783
3825
|
} = e;
|
|
3784
3826
|
t == null || t(!0);
|
|
3785
3827
|
try {
|
|
@@ -3797,8 +3839,8 @@ const li = {
|
|
|
3797
3839
|
},
|
|
3798
3840
|
beginRecordingCallback(e) {
|
|
3799
3841
|
const {
|
|
3800
|
-
[
|
|
3801
|
-
[
|
|
3842
|
+
[I.RecordingMediaTypes]: t,
|
|
3843
|
+
[I.StartRecordingCallback]: n
|
|
3802
3844
|
} = e;
|
|
3803
3845
|
if (!t)
|
|
3804
3846
|
return;
|
|
@@ -3817,9 +3859,9 @@ const li = {
|
|
|
3817
3859
|
},
|
|
3818
3860
|
async finishTaskCallback(e) {
|
|
3819
3861
|
const {
|
|
3820
|
-
[
|
|
3821
|
-
[
|
|
3822
|
-
[
|
|
3862
|
+
[I.CurrentIndex]: t,
|
|
3863
|
+
[I.TaskResponse]: n,
|
|
3864
|
+
[I.TaskCompleteCallback]: r
|
|
3823
3865
|
} = e;
|
|
3824
3866
|
await this.stopRecording(e), r && r(this.taskDurationMillisecond()), this.state.cards && this.state.hasEndCard !== void 0 && this.lookAheadAndStopStream(t, n, this.state.cards, this.state.hasEndCard);
|
|
3825
3867
|
},
|
|
@@ -3829,7 +3871,7 @@ const li = {
|
|
|
3829
3871
|
permissionStatusCallback(e) {
|
|
3830
3872
|
var r;
|
|
3831
3873
|
const {
|
|
3832
|
-
[
|
|
3874
|
+
[I.PermissionStatusCallback]: t
|
|
3833
3875
|
} = e, n = this.state.avStream;
|
|
3834
3876
|
t && t(n, n ? (n == null ? void 0 : n.getVideoTracks().length) > 0 : !1, !!((r = this.state.captureStream) != null && r.active), this.state.captureStream);
|
|
3835
3877
|
},
|
|
@@ -3845,7 +3887,7 @@ const li = {
|
|
|
3845
3887
|
hasEndCard: r,
|
|
3846
3888
|
allResponses: a
|
|
3847
3889
|
});
|
|
3848
|
-
l !== null && n[l].type ===
|
|
3890
|
+
l !== null && n[l].type === b.RecordedTask || [o, i].map((c) => {
|
|
3849
3891
|
c && (c.state === "recording" && c.stop(), c.stream.getTracks().map((d) => {
|
|
3850
3892
|
d.readyState === "live" && d.stop();
|
|
3851
3893
|
}));
|
|
@@ -3854,19 +3896,19 @@ const li = {
|
|
|
3854
3896
|
}, at = Object.create(ci);
|
|
3855
3897
|
Object.freeze(at);
|
|
3856
3898
|
const ui = (e, t) => {
|
|
3857
|
-
const n = [...e], r = /* @__PURE__ */ new Set([
|
|
3899
|
+
const n = [...e], r = /* @__PURE__ */ new Set([b.VideoVoice, b.RecordedTask]);
|
|
3858
3900
|
return e.some((o) => r.has(o.type)) && n.push({
|
|
3859
3901
|
name: -2,
|
|
3860
3902
|
props: {
|
|
3861
3903
|
routingOptions: []
|
|
3862
3904
|
},
|
|
3863
|
-
type:
|
|
3905
|
+
type: b.Uploading
|
|
3864
3906
|
}), t && n.push({
|
|
3865
3907
|
name: -1,
|
|
3866
3908
|
props: {
|
|
3867
3909
|
routingOptions: []
|
|
3868
3910
|
},
|
|
3869
|
-
type:
|
|
3911
|
+
type: b.Thanks
|
|
3870
3912
|
}), n;
|
|
3871
3913
|
}, di = ({
|
|
3872
3914
|
mode: e = null,
|
|
@@ -3891,7 +3933,7 @@ const ui = (e, t) => {
|
|
|
3891
3933
|
};
|
|
3892
3934
|
};
|
|
3893
3935
|
function pi(e, t = !0) {
|
|
3894
|
-
var
|
|
3936
|
+
var P;
|
|
3895
3937
|
const {
|
|
3896
3938
|
answers: n,
|
|
3897
3939
|
apiURL: r,
|
|
@@ -3903,9 +3945,9 @@ function pi(e, t = !0) {
|
|
|
3903
3945
|
previewKey: d,
|
|
3904
3946
|
viewDocument: p,
|
|
3905
3947
|
viewWindow: s
|
|
3906
|
-
} = e, _ = $e(e.headers) ? e.frame : p.body, f = e.UpChunk || window.UpChunk,
|
|
3907
|
-
at.configure(
|
|
3908
|
-
cards:
|
|
3948
|
+
} = e, _ = $e(e.headers) ? e.frame : p.body, f = e.UpChunk || window.UpChunk, m = Le, g = ui(e.cards, !!i);
|
|
3949
|
+
at.configure(m, {
|
|
3950
|
+
cards: g,
|
|
3909
3951
|
hasEndCard: !!i,
|
|
3910
3952
|
apiURL: r,
|
|
3911
3953
|
UpChunk: f
|
|
@@ -3914,7 +3956,7 @@ function pi(e, t = !0) {
|
|
|
3914
3956
|
answers: n,
|
|
3915
3957
|
border: e.border,
|
|
3916
3958
|
index: e.startingQuestionIdx || 0,
|
|
3917
|
-
cards:
|
|
3959
|
+
cards: g,
|
|
3918
3960
|
configureExitOnOverlayClick: e.configureExitOnOverlayClick,
|
|
3919
3961
|
customMetadata: e.customMetadata,
|
|
3920
3962
|
endCard: e.endCard,
|
|
@@ -3935,7 +3977,7 @@ function pi(e, t = !0) {
|
|
|
3935
3977
|
mode: e.mode,
|
|
3936
3978
|
previewKey: d,
|
|
3937
3979
|
recorder: at,
|
|
3938
|
-
recorderEventEmitter:
|
|
3980
|
+
recorderEventEmitter: m,
|
|
3939
3981
|
responseGroupUid: e.responseGroupUid,
|
|
3940
3982
|
showStripes: e.showStripes,
|
|
3941
3983
|
showSurveyBrand: e.showSurveyBrand,
|
|
@@ -3958,16 +4000,16 @@ function pi(e, t = !0) {
|
|
|
3958
4000
|
y();
|
|
3959
4001
|
const {
|
|
3960
4002
|
head: v
|
|
3961
|
-
} = p,
|
|
3962
|
-
if (
|
|
3963
|
-
const
|
|
3964
|
-
|
|
4003
|
+
} = p, C = p.createElement("style");
|
|
4004
|
+
if (C.id = "sprig-style", C.textContent = ii, C.nonce = e.styleNonce, v.appendChild(C), e.fontFamily && l && parent) {
|
|
4005
|
+
const S = p.createElement("link");
|
|
4006
|
+
S.rel = "stylesheet", S.href = l, v.appendChild(S);
|
|
3965
4007
|
}
|
|
3966
4008
|
e.customStyles && kr(p, o, e.styleNonce);
|
|
3967
|
-
const
|
|
3968
|
-
|
|
3969
|
-
[ye.ViewVersion]:
|
|
3970
|
-
}), _ && t &&
|
|
4009
|
+
const k = "2.26.6", R = a || ((P = c.eventEmitter) == null ? void 0 : P.emit);
|
|
4010
|
+
R == null || R(ee.VerifyViewVersion, {
|
|
4011
|
+
[ye.ViewVersion]: k
|
|
4012
|
+
}), _ && t && me(u(oi, {}), _);
|
|
3971
4013
|
}
|
|
3972
4014
|
const _i = {
|
|
3973
4015
|
configure: pi
|