@sprig-technologies/sprig-bundled 1.1.1 → 1.1.2
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-BuamjNZy.js → index-2R2XP7B7.js} +3449 -3146
- package/dist/index.d.ts +21 -10
- package/dist/index.js +1 -1
- package/dist/{view-e6qhXinS.js → view-MqQxb9ia.js} +1001 -983
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
var
|
|
1
|
+
import { g as pr, a as fr, C as g, b as G, T as W, i as ze, c as yt, D as xt, A as fe, I as ee, e as Ie, s as $e, S as re, 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 V, n as xe, o as st, p as de, q as z, r as Se, t as H, v as L, M as Q, w as yr, x as xr, y as Cr, z as Ct, B as kr } from "./index-2R2XP7B7.js";
|
|
2
|
+
var Te, C, tn, le, 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];
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function an(e) {
|
|
9
9
|
var t = e.parentNode;
|
|
10
10
|
t && t.removeChild(e);
|
|
11
11
|
}
|
|
@@ -13,22 +13,22 @@ function U(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];
|
|
16
|
-
if (arguments.length > 2 && (a.children = arguments.length > 3 ?
|
|
16
|
+
if (arguments.length > 2 && (a.children = arguments.length > 3 ? Te.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
|
|
17
17
|
for (i in e.defaultProps)
|
|
18
18
|
a[i] === void 0 && (a[i] = e.defaultProps[i]);
|
|
19
|
-
return
|
|
19
|
+
return Ce(e, a, r, o, null);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
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 ?? ++
|
|
23
|
-
return o == null &&
|
|
21
|
+
function Ce(e, t, n, r, o) {
|
|
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 && C.vnode != null && C.vnode(i), i;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function sn() {
|
|
26
26
|
return { current: null };
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function j(e) {
|
|
29
29
|
return e.children;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Z(e, t) {
|
|
32
32
|
this.props = e, this.context = t;
|
|
33
33
|
}
|
|
34
34
|
function _e(e, t) {
|
|
@@ -39,7 +39,7 @@ function _e(e, t) {
|
|
|
39
39
|
return n.__e;
|
|
40
40
|
return typeof e.type == "function" ? _e(e) : null;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ln(e) {
|
|
43
43
|
var t, n;
|
|
44
44
|
if ((e = e.__) != null && e.__c != null) {
|
|
45
45
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
|
|
@@ -47,47 +47,47 @@ function an(e) {
|
|
|
47
47
|
e.__e = e.__c.base = n.__e;
|
|
48
48
|
break;
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return ln(e);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
(!e.__d && (e.__d = !0) &&
|
|
53
|
+
function Xe(e) {
|
|
54
|
+
(!e.__d && (e.__d = !0) && le.push(e) && !Oe.__r++ || kt !== C.debounceRendering) && ((kt = C.debounceRendering) || nn)(Oe);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Oe() {
|
|
57
57
|
var e, t, n, r, o, i, a, l, c;
|
|
58
|
-
for (
|
|
59
|
-
e.__d && (t =
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
function
|
|
63
|
-
var s, _, f,
|
|
64
|
-
for (n.__d = c,
|
|
65
|
-
(f = n.__k[s]) != null && typeof f != "boolean" && typeof f != "function" && (_ = f.__i === -1 ?
|
|
58
|
+
for (le.sort(Je); e = le.shift(); )
|
|
59
|
+
e.__d && (t = le.length, r = void 0, i = (o = (n = e).__v).__e, l = [], c = [], (a = n.__P) && ((r = J({}, o)).__v = o.__v + 1, C.vnode && C.vnode(r), lt(a, r, o, n.__n, a.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, l, i ?? _e(o), !!(32 & o.__u), c), r.__.__k[r.__i] = r, dn(l, r, c), r.__e != i && ln(r)), le.length > t && le.sort(Je));
|
|
60
|
+
Oe.__r = 0;
|
|
61
|
+
}
|
|
62
|
+
function cn(e, t, n, r, o, i, a, l, c, d, p) {
|
|
63
|
+
var s, _, f, h, m, y = r && r.__k || on, v = t.length;
|
|
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), h = f.__e, f.ref && _.ref != f.ref && (_.ref && ct(_.ref, null, f), p.push(f.ref, f.__c || h, f)), m == null && h != null && (m = h), 65536 & f.__u || _.__k === f.__k ? c = un(f, c, e) : typeof f.type == "function" && f.__d !== void 0 ? c = f.__d : h && (c = h.nextSibling), f.__d = void 0, f.__u &= -196609);
|
|
66
66
|
n.__d = c, n.__e = m;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
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 ?
|
|
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 = _e(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 = _e(i)),
|
|
74
|
+
(i = n[r]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = _e(i)), et(i, i));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function un(e, t, n) {
|
|
77
77
|
var r, o;
|
|
78
78
|
if (typeof e.type == "function") {
|
|
79
79
|
for (r = e.__k, o = 0; r && o < r.length; o++)
|
|
80
|
-
r[o] && (r[o].__ = e, t =
|
|
80
|
+
r[o] && (r[o].__ = e, t = un(r[o], t, n));
|
|
81
81
|
return t;
|
|
82
82
|
}
|
|
83
83
|
return e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;
|
|
84
84
|
}
|
|
85
85
|
function X(e, t) {
|
|
86
|
-
return t = t || [], e == null || typeof e == "boolean" || (
|
|
86
|
+
return t = t || [], e == null || typeof e == "boolean" || (Ve(e) ? e.some(function(n) {
|
|
87
87
|
X(n, t);
|
|
88
88
|
}) : t.push(e)), t;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Tr(e, t, n, r) {
|
|
91
91
|
var o = e.key, i = e.type, a = n - 1, l = n + 1, c = t[n];
|
|
92
92
|
if (c === null || c && o == c.key && i === c.type)
|
|
93
93
|
return n;
|
|
@@ -106,10 +106,10 @@ function wr(e, t, n, r) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
109
|
+
function St(e, t, n) {
|
|
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 Re(e, t, n, r, o) {
|
|
113
113
|
var i;
|
|
114
114
|
e:
|
|
115
115
|
if (t === "style")
|
|
@@ -118,13 +118,13 @@ function Ne(e, t, n, r, o) {
|
|
|
118
118
|
else {
|
|
119
119
|
if (typeof r == "string" && (e.style.cssText = r = ""), r)
|
|
120
120
|
for (t in r)
|
|
121
|
-
n && t in n ||
|
|
121
|
+
n && t in n || St(e.style, t, "");
|
|
122
122
|
if (n)
|
|
123
123
|
for (t in n)
|
|
124
|
-
r && n[t] === r[t] ||
|
|
124
|
+
r && n[t] === r[t] || St(e.style, t, n[t]);
|
|
125
125
|
}
|
|
126
126
|
else if (t[0] === "o" && t[1] === "n")
|
|
127
|
-
i = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ?
|
|
127
|
+
i = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + i] = n, n ? r ? n.u = r.u : (n.u = Date.now(), e.addEventListener(t, i ? Tt : wt, i)) : e.removeEventListener(t, i ? Tt : wt, i);
|
|
128
128
|
else {
|
|
129
129
|
if (o)
|
|
130
130
|
t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
@@ -137,145 +137,145 @@ function Ne(e, t, n, r, o) {
|
|
|
137
137
|
typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function wt(e) {
|
|
141
141
|
var t = this.l[e.type + !1];
|
|
142
142
|
if (e.t) {
|
|
143
143
|
if (e.t <= t.u)
|
|
144
144
|
return;
|
|
145
145
|
} else
|
|
146
146
|
e.t = Date.now();
|
|
147
|
-
return t(
|
|
147
|
+
return t(C.event ? C.event(e) : e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return this.l[e.type + !0](
|
|
149
|
+
function Tt(e) {
|
|
150
|
+
return this.l[e.type + !0](C.event ? C.event(e) : e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
var p, s, _, f,
|
|
152
|
+
function lt(e, t, n, r, o, i, a, l, c, d) {
|
|
153
|
+
var p, s, _, f, h, m, y, v, k, S, E, b, x, I, N, T = 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 = C.__b) && p(t);
|
|
157
157
|
e:
|
|
158
|
-
if (typeof
|
|
158
|
+
if (typeof T == "function")
|
|
159
159
|
try {
|
|
160
|
-
if (v = t.props,
|
|
161
|
-
|
|
160
|
+
if (v = t.props, k = (p = T.contextType) && r[p.__c], S = p ? k ? k.props.value : p.__ : r, n.__c ? y = (s = t.__c = n.__c).__ = s.__E : ("prototype" in T && T.prototype.render ? t.__c = s = new T(v, S) : (t.__c = s = new Z(v, S), s.constructor = T, s.render = Er), k && k.sub(s), s.props = v, s.state || (s.state = {}), s.context = S, s.__n = r, _ = s.__d = !0, s.__h = [], s._sb = []), s.__s == null && (s.__s = s.state), T.getDerivedStateFromProps != null && (s.__s == s.state && (s.__s = J({}, s.__s)), J(s.__s, T.getDerivedStateFromProps(v, s.__s))), f = s.props, h = s.state, s.__v = t, _)
|
|
161
|
+
T.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
|
-
|
|
163
|
+
if (T.getDerivedStateFromProps == null && v !== f && s.componentWillReceiveProps != null && s.componentWillReceiveProps(v, S), !s.__e && (s.shouldComponentUpdate != null && s.shouldComponentUpdate(v, s.__s, S) === !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(A) {
|
|
165
|
+
A && (A.__ = t);
|
|
166
166
|
}), E = 0; E < s._sb.length; E++)
|
|
167
167
|
s.__h.push(s._sb[E]);
|
|
168
168
|
s._sb = [], s.__h.length && a.push(s);
|
|
169
169
|
break e;
|
|
170
170
|
}
|
|
171
171
|
s.componentWillUpdate != null && s.componentWillUpdate(v, s.__s, S), s.componentDidUpdate != null && s.__h.push(function() {
|
|
172
|
-
s.componentDidUpdate(f,
|
|
172
|
+
s.componentDidUpdate(f, h, m);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
if (s.context = S, s.props = v, s.__P = e, s.__e = !1,
|
|
176
|
-
for (s.state = s.__s, s.__d = !1,
|
|
175
|
+
if (s.context = S, s.props = v, s.__P = e, s.__e = !1, b = C.__r, x = 0, "prototype" in T && T.prototype.render) {
|
|
176
|
+
for (s.state = s.__s, s.__d = !1, b && b(t), p = s.render(s.props, s.state, s.context), I = 0; I < s._sb.length; I++)
|
|
177
177
|
s.__h.push(s._sb[I]);
|
|
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 || (m = s.getSnapshotBeforeUpdate(f,
|
|
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, b && b(t), p = s.render(s.props, s.state, s.context), s.state = s.__s;
|
|
182
|
+
while (s.__d && ++x < 25);
|
|
183
|
+
s.state = s.__s, s.getChildContext != null && (r = J(J({}, r), s.getChildContext())), _ || s.getSnapshotBeforeUpdate == null || (m = s.getSnapshotBeforeUpdate(f, h)), 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 (A) {
|
|
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), C.__e(A, t, n);
|
|
186
186
|
}
|
|
187
187
|
else
|
|
188
|
-
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
189
|
-
(p =
|
|
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 = C.diffed) && p(t);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function dn(e, t, n) {
|
|
192
192
|
t.__d = void 0;
|
|
193
193
|
for (var r = 0; r < n.length; r++)
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
ct(n[r], n[++r], n[++r]);
|
|
195
|
+
C.__c && C.__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
|
+
C.__e(i, o.__v);
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
var d, p, s, _, f,
|
|
207
|
-
if (
|
|
205
|
+
function Pr(e, t, n, r, o, i, a, l, c) {
|
|
206
|
+
var d, p, s, _, f, h, m, y = n.props, v = t.props, k = t.type;
|
|
207
|
+
if (k === "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 == !!k && (k ? f.localName === k : 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 (k === 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", k) : document.createElement(k, v.is && v), i = null, l = !1;
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
219
|
+
if (k === null)
|
|
220
220
|
y === v || l && e.data === v || (e.data = v);
|
|
221
221
|
else {
|
|
222
|
-
if (i = i &&
|
|
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 || Re(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" ? h = f : d == "checked" ? m = f : d === "key" || l && typeof f != "function" || y[d] === f || Re(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 = ""),
|
|
231
|
+
else if (s && (e.innerHTML = ""), cn(e, Ve(_) ? _ : [_], t, n, r, o && k !== "foreignObject", i, a, i ? i[0] : n.__k && _e(n, 0), l, c), i != null)
|
|
232
232
|
for (d = i.length; d--; )
|
|
233
|
-
i[d] != null &&
|
|
234
|
-
l || (d = "value",
|
|
233
|
+
i[d] != null && an(i[d]);
|
|
234
|
+
l || (d = "value", h !== void 0 && (h !== e[d] || k === "progress" && !h || k === "option" && h !== y[d]) && Re(e, d, h, y[d], !1), d = "checked", m !== void 0 && m !== e[d] && Re(e, d, m, y[d], !1));
|
|
235
235
|
}
|
|
236
236
|
return e;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function ct(e, t, n) {
|
|
239
239
|
try {
|
|
240
240
|
typeof e == "function" ? e(t) : e.current = t;
|
|
241
241
|
} catch (r) {
|
|
242
|
-
|
|
242
|
+
C.__e(r, n);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function et(e, t, n) {
|
|
246
246
|
var r, o;
|
|
247
|
-
if (
|
|
247
|
+
if (C.unmount && C.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
|
+
C.__e(i, t);
|
|
253
253
|
}
|
|
254
254
|
r.base = r.__P = null, e.__c = void 0;
|
|
255
255
|
}
|
|
256
256
|
if (r = e.__k)
|
|
257
257
|
for (o = 0; o < r.length; o++)
|
|
258
|
-
r[o] &&
|
|
259
|
-
n || e.__e == null ||
|
|
258
|
+
r[o] && et(r[o], t, n || typeof e.type != "function");
|
|
259
|
+
n || e.__e == null || an(e.__e), e.__ = e.__e = e.__d = void 0;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Er(e, t, n) {
|
|
262
262
|
return this.constructor(e, n);
|
|
263
263
|
}
|
|
264
264
|
function he(e, t, n) {
|
|
265
265
|
var r, o, i, a;
|
|
266
|
-
|
|
266
|
+
C.__ && C.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], a = [], lt(t, e = (!r && n || t).__k = U(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
|
-
function
|
|
269
|
-
he(e, t,
|
|
268
|
+
function pn(e, t) {
|
|
269
|
+
he(e, t, pn);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Nr(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];
|
|
275
|
-
return arguments.length > 2 && (l.children = arguments.length > 3 ?
|
|
275
|
+
return arguments.length > 2 && (l.children = arguments.length > 3 ? Te.call(arguments, 2) : n), Ce(e.type, l, r || e.key, o || e.ref, null);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
var n = { __c: t = "__cC" +
|
|
277
|
+
function fn(e, t) {
|
|
278
|
+
var n = { __c: t = "__cC" + rn++, __: e, Consumer: function(r, o) {
|
|
279
279
|
return r.children(o);
|
|
280
280
|
}, Provider: function(r) {
|
|
281
281
|
var o, i;
|
|
@@ -283,7 +283,7 @@ function dn(e, t) {
|
|
|
283
283
|
return i;
|
|
284
284
|
}, this.shouldComponentUpdate = function(a) {
|
|
285
285
|
this.props.value !== a.value && o.some(function(l) {
|
|
286
|
-
l.__e = !0,
|
|
286
|
+
l.__e = !0, Xe(l);
|
|
287
287
|
});
|
|
288
288
|
}, this.sub = function(a) {
|
|
289
289
|
o.push(a);
|
|
@@ -295,7 +295,7 @@ function dn(e, t) {
|
|
|
295
295
|
} };
|
|
296
296
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
Te = on.slice, C = { __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 {
|
|
@@ -305,22 +305,22 @@ we = nn.slice, x = { __e: function(e, t, n, r) {
|
|
|
305
305
|
e = l;
|
|
306
306
|
}
|
|
307
307
|
throw e;
|
|
308
|
-
} },
|
|
308
|
+
} }, tn = 0, Z.prototype.setState = function(e, t) {
|
|
309
309
|
var n;
|
|
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),
|
|
311
|
-
},
|
|
312
|
-
this.__v && (this.__e = !0, e && this.__h.push(e),
|
|
313
|
-
},
|
|
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
|
+
}, Z.prototype.forceUpdate = function(e) {
|
|
312
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), Xe(this));
|
|
313
|
+
}, Z.prototype.render = j, le = [], 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
|
-
},
|
|
316
|
-
function
|
|
315
|
+
}, Oe.__r = 0, rn = 0;
|
|
316
|
+
function _n(e) {
|
|
317
317
|
var t, n, r = "";
|
|
318
318
|
if (typeof e == "string" || typeof e == "number")
|
|
319
319
|
r += e;
|
|
320
320
|
else if (typeof e == "object")
|
|
321
321
|
if (Array.isArray(e))
|
|
322
322
|
for (t = 0; t < e.length; t++)
|
|
323
|
-
e[t] && (n =
|
|
323
|
+
e[t] && (n = _n(e[t])) && (r && (r += " "), r += n);
|
|
324
324
|
else
|
|
325
325
|
for (t in e)
|
|
326
326
|
e[t] && (r && (r += " "), r += t);
|
|
@@ -328,24 +328,24 @@ function pn(e) {
|
|
|
328
328
|
}
|
|
329
329
|
function R() {
|
|
330
330
|
for (var e, t, n = 0, r = ""; n < arguments.length; )
|
|
331
|
-
(e = arguments[n++]) && (t =
|
|
331
|
+
(e = arguments[n++]) && (t = _n(e)) && (r && (r += " "), r += t);
|
|
332
332
|
return r;
|
|
333
333
|
}
|
|
334
|
-
var te,
|
|
335
|
-
function
|
|
336
|
-
|
|
337
|
-
var n =
|
|
338
|
-
return e >= n.__.length && n.__.push({ __V:
|
|
334
|
+
var te, M, We, Pt, me = 0, hn = [], Le = [], Et = C.__b, Nt = C.__r, Rt = C.diffed, It = C.__c, Lt = C.unmount;
|
|
335
|
+
function ce(e, t) {
|
|
336
|
+
C.__h && C.__h(M, e, me || t), me = 0;
|
|
337
|
+
var n = M.__H || (M.__H = { __: [], __h: [] });
|
|
338
|
+
return e >= n.__.length && n.__.push({ __V: Le }), n.__[e];
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
return me = 1,
|
|
340
|
+
function D(e) {
|
|
341
|
+
return me = 1, ut(yn, e);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
344
|
-
var r =
|
|
345
|
-
if (r.t = e, !r.__c && (r.__ = [n ? n(t) :
|
|
343
|
+
function ut(e, t, n) {
|
|
344
|
+
var r = ce(te++, 2);
|
|
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({}));
|
|
348
|
-
}], r.__c =
|
|
348
|
+
}], r.__c = M, !M.u)) {
|
|
349
349
|
var o = function(l, c, d) {
|
|
350
350
|
if (!r.__c.__H)
|
|
351
351
|
return !0;
|
|
@@ -364,33 +364,33 @@ function lt(e, t, n) {
|
|
|
364
364
|
}
|
|
365
365
|
}), !(!s && r.__c.props === l) && (!i || i.call(this, l, c, d));
|
|
366
366
|
};
|
|
367
|
-
|
|
368
|
-
var i =
|
|
369
|
-
|
|
367
|
+
M.u = !0;
|
|
368
|
+
var i = M.shouldComponentUpdate, a = M.componentWillUpdate;
|
|
369
|
+
M.componentWillUpdate = function(l, c, d) {
|
|
370
370
|
if (this.__e) {
|
|
371
371
|
var p = i;
|
|
372
372
|
i = void 0, o(l, c, d), i = p;
|
|
373
373
|
}
|
|
374
374
|
a && a.call(this, l, c, d);
|
|
375
|
-
},
|
|
375
|
+
}, M.shouldComponentUpdate = o;
|
|
376
376
|
}
|
|
377
377
|
return r.__N || r.__;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
var n =
|
|
381
|
-
!
|
|
379
|
+
function q(e, t) {
|
|
380
|
+
var n = ce(te++, 3);
|
|
381
|
+
!C.__s && pt(n.__H, t) && (n.__ = e, n.i = t, M.__H.__h.push(n));
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
var n =
|
|
385
|
-
!
|
|
383
|
+
function Pe(e, t) {
|
|
384
|
+
var n = ce(te++, 4);
|
|
385
|
+
!C.__s && pt(n.__H, t) && (n.__ = e, n.i = t, M.__h.push(n));
|
|
386
386
|
}
|
|
387
387
|
function ie(e) {
|
|
388
|
-
return me = 5,
|
|
388
|
+
return me = 5, He(function() {
|
|
389
389
|
return { current: e };
|
|
390
390
|
}, []);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
me = 6,
|
|
392
|
+
function mn(e, t, n) {
|
|
393
|
+
me = 6, Pe(function() {
|
|
394
394
|
return typeof e == "function" ? (e(t()), function() {
|
|
395
395
|
return e(null);
|
|
396
396
|
}) : e ? (e.current = t(), function() {
|
|
@@ -398,115 +398,115 @@ function _n(e, t, n) {
|
|
|
398
398
|
}) : void 0;
|
|
399
399
|
}, n == null ? n : n.concat(e));
|
|
400
400
|
}
|
|
401
|
-
function
|
|
402
|
-
var n =
|
|
403
|
-
return
|
|
401
|
+
function He(e, t) {
|
|
402
|
+
var n = ce(te++, 7);
|
|
403
|
+
return pt(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
return me = 8,
|
|
405
|
+
function gn(e, t) {
|
|
406
|
+
return me = 8, He(function() {
|
|
407
407
|
return e;
|
|
408
408
|
}, t);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
var t =
|
|
412
|
-
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(
|
|
410
|
+
function bn(e) {
|
|
411
|
+
var t = M.context[e.__c], n = ce(te++, 9);
|
|
412
|
+
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(M)), t.props.value) : e.__;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
|
|
414
|
+
function dt(e, t) {
|
|
415
|
+
C.useDebugValue && C.useDebugValue(t ? t(e) : e);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
var t =
|
|
419
|
-
return t.__ = e,
|
|
417
|
+
function Rr(e) {
|
|
418
|
+
var t = ce(te++, 10), n = D();
|
|
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() {
|
|
422
422
|
n[1](void 0);
|
|
423
423
|
}];
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
var e =
|
|
425
|
+
function vn() {
|
|
426
|
+
var e = ce(te++, 11);
|
|
427
427
|
if (!e.__) {
|
|
428
|
-
for (var t =
|
|
428
|
+
for (var t = M.__v; t !== null && !t.__m && t.__ !== null; )
|
|
429
429
|
t = t.__;
|
|
430
430
|
var n = t.__m || (t.__m = [0, 0]);
|
|
431
431
|
e.__ = "P" + n[0] + "-" + n[1]++;
|
|
432
432
|
}
|
|
433
433
|
return e.__;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
for (var e; e =
|
|
435
|
+
function Ir() {
|
|
436
|
+
for (var e; e = hn.shift(); )
|
|
437
437
|
if (e.__P && e.__H)
|
|
438
438
|
try {
|
|
439
|
-
e.__H.__h.forEach(
|
|
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 = [], C.__e(t, e.__v);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
},
|
|
447
|
-
|
|
448
|
-
var t = (
|
|
449
|
-
t && (
|
|
450
|
-
n.__N && (n.__ = n.__N), n.__V =
|
|
451
|
-
})) : (t.__h.forEach(
|
|
452
|
-
},
|
|
453
|
-
|
|
444
|
+
C.__b = function(e) {
|
|
445
|
+
M = null, Et && Et(e);
|
|
446
|
+
}, C.__r = function(e) {
|
|
447
|
+
Nt && Nt(e), te = 0;
|
|
448
|
+
var t = (M = e.__c).__H;
|
|
449
|
+
t && (We === M ? (t.__h = [], M.__h = [], t.__.forEach(function(n) {
|
|
450
|
+
n.__N && (n.__ = n.__N), n.__V = Le, n.__N = n.i = void 0;
|
|
451
|
+
})) : (t.__h.forEach(Ae), t.__h.forEach(tt), t.__h = [], te = 0)), We = M;
|
|
452
|
+
}, C.diffed = function(e) {
|
|
453
|
+
Rt && Rt(e);
|
|
454
454
|
var t = e.__c;
|
|
455
|
-
t && t.__H && (t.__H.__h.length && (
|
|
456
|
-
n.i && (n.__H = n.i), n.__V !==
|
|
457
|
-
})),
|
|
458
|
-
},
|
|
455
|
+
t && t.__H && (t.__H.__h.length && (hn.push(t) !== 1 && Pt === C.requestAnimationFrame || ((Pt = C.requestAnimationFrame) || Lr)(Ir)), t.__H.__.forEach(function(n) {
|
|
456
|
+
n.i && (n.__H = n.i), n.__V !== Le && (n.__ = n.__V), n.i = void 0, n.__V = Le;
|
|
457
|
+
})), We = M = null;
|
|
458
|
+
}, C.__c = function(e, t) {
|
|
459
459
|
t.some(function(n) {
|
|
460
460
|
try {
|
|
461
|
-
n.__h.forEach(
|
|
462
|
-
return !r.__ ||
|
|
461
|
+
n.__h.forEach(Ae), n.__h = n.__h.filter(function(r) {
|
|
462
|
+
return !r.__ || tt(r);
|
|
463
463
|
});
|
|
464
464
|
} catch (r) {
|
|
465
465
|
t.some(function(o) {
|
|
466
466
|
o.__h && (o.__h = []);
|
|
467
|
-
}), t = [],
|
|
467
|
+
}), t = [], C.__e(r, n.__v);
|
|
468
468
|
}
|
|
469
|
-
}),
|
|
470
|
-
},
|
|
471
|
-
|
|
469
|
+
}), It && It(e, t);
|
|
470
|
+
}, C.unmount = function(e) {
|
|
471
|
+
Lt && Lt(e);
|
|
472
472
|
var t, n = e.__c;
|
|
473
473
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
474
474
|
try {
|
|
475
|
-
|
|
475
|
+
Ae(r);
|
|
476
476
|
} catch (o) {
|
|
477
477
|
t = o;
|
|
478
478
|
}
|
|
479
|
-
}), n.__H = void 0, t &&
|
|
479
|
+
}), n.__H = void 0, t && C.__e(t, n.__v));
|
|
480
480
|
};
|
|
481
|
-
var
|
|
482
|
-
function
|
|
481
|
+
var At = typeof requestAnimationFrame == "function";
|
|
482
|
+
function Lr(e) {
|
|
483
483
|
var t, n = function() {
|
|
484
|
-
clearTimeout(r),
|
|
484
|
+
clearTimeout(r), At && cancelAnimationFrame(t), setTimeout(e);
|
|
485
485
|
}, r = setTimeout(n, 100);
|
|
486
|
-
|
|
486
|
+
At && (t = requestAnimationFrame(n));
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
var t =
|
|
490
|
-
typeof n == "function" && (e.__c = void 0, n()),
|
|
488
|
+
function Ae(e) {
|
|
489
|
+
var t = M, n = e.__c;
|
|
490
|
+
typeof n == "function" && (e.__c = void 0, n()), M = t;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
493
|
-
var t =
|
|
494
|
-
e.__c = e.__(),
|
|
492
|
+
function tt(e) {
|
|
493
|
+
var t = M;
|
|
494
|
+
e.__c = e.__(), M = t;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function pt(e, t) {
|
|
497
497
|
return !e || e.length !== t.length || t.some(function(n, r) {
|
|
498
498
|
return n !== e[r];
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function yn(e, t) {
|
|
502
502
|
return typeof t == "function" ? t(e) : t;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function xn(e, t) {
|
|
505
505
|
for (var n in t)
|
|
506
506
|
e[n] = t[n];
|
|
507
507
|
return e;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function nt(e, t) {
|
|
510
510
|
for (var n in e)
|
|
511
511
|
if (n !== "__source" && !(n in t))
|
|
512
512
|
return !0;
|
|
@@ -515,73 +515,73 @@ function et(e, t) {
|
|
|
515
515
|
return !0;
|
|
516
516
|
return !1;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Ue(e) {
|
|
519
519
|
this.props = e;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Cn(e, t) {
|
|
522
522
|
function n(o) {
|
|
523
523
|
var i = this.props.ref, a = i == o.ref;
|
|
524
|
-
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a :
|
|
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
527
|
return this.shouldComponentUpdate = n, U(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
|
-
(
|
|
532
|
-
return
|
|
531
|
+
(Ue.prototype = new Z()).isPureReactComponent = !0, Ue.prototype.shouldComponentUpdate = function(e, t) {
|
|
532
|
+
return nt(this.props, e) || nt(this.state, t);
|
|
533
533
|
};
|
|
534
|
-
var
|
|
535
|
-
|
|
536
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
534
|
+
var Mt = C.__b;
|
|
535
|
+
C.__b = function(e) {
|
|
536
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Mt && Mt(e);
|
|
537
537
|
};
|
|
538
|
-
var
|
|
539
|
-
function
|
|
538
|
+
var Ar = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
539
|
+
function kn(e) {
|
|
540
540
|
function t(n) {
|
|
541
|
-
var r =
|
|
541
|
+
var r = xn({}, n);
|
|
542
542
|
return delete r.ref, e(r, n.ref || null);
|
|
543
543
|
}
|
|
544
|
-
return t.$$typeof =
|
|
544
|
+
return t.$$typeof = Ar, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
545
545
|
}
|
|
546
|
-
var
|
|
546
|
+
var $t = function(e, t) {
|
|
547
547
|
return e == null ? null : X(X(e).map(t));
|
|
548
|
-
},
|
|
548
|
+
}, Sn = { map: $t, forEach: $t, count: function(e) {
|
|
549
549
|
return e ? X(e).length : 0;
|
|
550
550
|
}, only: function(e) {
|
|
551
551
|
var t = X(e);
|
|
552
552
|
if (t.length !== 1)
|
|
553
553
|
throw "Children.only";
|
|
554
554
|
return t[0];
|
|
555
|
-
}, toArray: X },
|
|
556
|
-
|
|
555
|
+
}, toArray: X }, Mr = C.__e;
|
|
556
|
+
C.__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)
|
|
560
560
|
return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
561
561
|
}
|
|
562
|
-
|
|
562
|
+
Mr(e, t, n, r);
|
|
563
563
|
};
|
|
564
|
-
var
|
|
565
|
-
function
|
|
564
|
+
var Ot = C.unmount;
|
|
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();
|
|
568
|
-
}), e.__c.__H = null), (e =
|
|
569
|
-
return
|
|
568
|
+
}), e.__c.__H = null), (e = xn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(r) {
|
|
569
|
+
return wn(r, t, n);
|
|
570
570
|
})), e;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Tn(e, t, n) {
|
|
573
573
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(r) {
|
|
574
|
-
return
|
|
574
|
+
return Tn(r, t, n);
|
|
575
575
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function ke() {
|
|
578
578
|
this.__u = 0, this.t = null, this.__b = null;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Pn(e) {
|
|
581
581
|
var t = e.__.__c;
|
|
582
582
|
return t && t.__a && t.__a(e);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function En(e) {
|
|
585
585
|
var t, n, r;
|
|
586
586
|
function o(i) {
|
|
587
587
|
if (t || (t = e()).then(function(a) {
|
|
@@ -599,13 +599,13 @@ function Tn(e) {
|
|
|
599
599
|
function pe() {
|
|
600
600
|
this.u = null, this.o = null;
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
C.unmount = function(e) {
|
|
603
603
|
var t = e.__c;
|
|
604
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
605
|
-
}, (
|
|
604
|
+
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Ot && Ot(e);
|
|
605
|
+
}, (ke.prototype = new Z()).__c = function(e, t) {
|
|
606
606
|
var n = t.__c, r = this;
|
|
607
607
|
r.t == null && (r.t = []), r.t.push(n);
|
|
608
|
-
var o =
|
|
608
|
+
var o = Pn(r.__v), i = !1, a = function() {
|
|
609
609
|
i || (i = !0, n.__R = null, o ? o(l) : l());
|
|
610
610
|
};
|
|
611
611
|
n.__R = a;
|
|
@@ -613,7 +613,7 @@ x.unmount = function(e) {
|
|
|
613
613
|
if (!--r.__u) {
|
|
614
614
|
if (r.state.__a) {
|
|
615
615
|
var c = r.state.__a;
|
|
616
|
-
r.__v.__k[0] =
|
|
616
|
+
r.__v.__k[0] = Tn(c, c.__c.__P, c.__c.__O);
|
|
617
617
|
}
|
|
618
618
|
var d;
|
|
619
619
|
for (r.setState({ __a: r.__b = null }); d = r.t.pop(); )
|
|
@@ -621,20 +621,20 @@ x.unmount = function(e) {
|
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
623
|
r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(a, a);
|
|
624
|
-
},
|
|
624
|
+
}, ke.prototype.componentWillUnmount = function() {
|
|
625
625
|
this.t = [];
|
|
626
|
-
},
|
|
626
|
+
}, ke.prototype.render = function(e, t) {
|
|
627
627
|
if (this.__b) {
|
|
628
628
|
if (this.__v.__k) {
|
|
629
629
|
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
630
|
-
this.__v.__k[0] =
|
|
630
|
+
this.__v.__k[0] = wn(this.__b, n, r.__O = r.__P);
|
|
631
631
|
}
|
|
632
632
|
this.__b = null;
|
|
633
633
|
}
|
|
634
|
-
var o = t.__a && U(
|
|
635
|
-
return o && (o.__u &= -33), [U(
|
|
634
|
+
var o = t.__a && U(j, null, e.fallback);
|
|
635
|
+
return o && (o.__u &= -33), [U(j, null, t.__a ? null : e.children), o];
|
|
636
636
|
};
|
|
637
|
-
var
|
|
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))
|
|
639
639
|
for (n = e.u; n; ) {
|
|
640
640
|
for (; n.length > 3; )
|
|
@@ -644,12 +644,12 @@ var $t = function(e, t, n) {
|
|
|
644
644
|
e.u = n = n[2];
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
function
|
|
647
|
+
function $r(e) {
|
|
648
648
|
return this.getChildContext = function() {
|
|
649
649
|
return e.context;
|
|
650
650
|
}, e.children;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Or(e) {
|
|
653
653
|
var t = this, n = e.i;
|
|
654
654
|
t.componentWillUnmount = function() {
|
|
655
655
|
he(null, t.l), t.l = null, t.i = null;
|
|
@@ -659,17 +659,17 @@ function $r(e) {
|
|
|
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
|
-
} }), he(U(
|
|
662
|
+
} }), he(U($r, { context: t.context }, e.__v), t.l);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
var n = U(
|
|
664
|
+
function Nn(e, t) {
|
|
665
|
+
var n = U(Or, { __v: e, i: t });
|
|
666
666
|
return n.containerInfo = t, n;
|
|
667
667
|
}
|
|
668
|
-
(pe.prototype = new
|
|
669
|
-
var t = this, n =
|
|
668
|
+
(pe.prototype = new Z()).__a = function(e) {
|
|
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() {
|
|
672
|
-
t.props.revealOrder ? (r.push(o),
|
|
672
|
+
t.props.revealOrder ? (r.push(o), Ut(t, e, r)) : o();
|
|
673
673
|
};
|
|
674
674
|
n ? n(i) : i();
|
|
675
675
|
};
|
|
@@ -683,114 +683,114 @@ function Pn(e, t) {
|
|
|
683
683
|
}, pe.prototype.componentDidUpdate = pe.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 Rn = 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
|
|
692
|
+
function In(e, t, n) {
|
|
693
693
|
return t.__k == null && (t.textContent = ""), he(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return
|
|
695
|
+
function Ln(e, t, n) {
|
|
696
|
+
return pn(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
697
697
|
}
|
|
698
|
-
|
|
699
|
-
Object.defineProperty(
|
|
698
|
+
Z.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
699
|
+
Object.defineProperty(Z.prototype, e, { configurable: !0, get: function() {
|
|
700
700
|
return this["UNSAFE_" + e];
|
|
701
701
|
}, set: function(t) {
|
|
702
702
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
703
703
|
} });
|
|
704
704
|
});
|
|
705
|
-
var
|
|
706
|
-
function Dr() {
|
|
707
|
-
}
|
|
705
|
+
var Vt = C.event;
|
|
708
706
|
function jr() {
|
|
709
|
-
return this.cancelBubble;
|
|
710
707
|
}
|
|
711
708
|
function Fr() {
|
|
709
|
+
return this.cancelBubble;
|
|
710
|
+
}
|
|
711
|
+
function qr() {
|
|
712
712
|
return this.defaultPrevented;
|
|
713
713
|
}
|
|
714
|
-
|
|
715
|
-
return
|
|
714
|
+
C.event = function(e) {
|
|
715
|
+
return Vt && (e = Vt(e)), e.persist = jr, e.isPropagationStopped = Fr, e.isDefaultPrevented = qr, e.nativeEvent = e;
|
|
716
716
|
};
|
|
717
|
-
var
|
|
717
|
+
var ft, zr = { enumerable: !1, configurable: !0, get: function() {
|
|
718
718
|
return this.class;
|
|
719
|
-
} },
|
|
720
|
-
|
|
719
|
+
} }, Ht = C.vnode;
|
|
720
|
+
C.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) {
|
|
724
724
|
var a = n[i];
|
|
725
|
-
if (!(i === "value" && "defaultValue" in n && a == null ||
|
|
725
|
+
if (!(i === "value" && "defaultValue" in n && a == null || Br && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
726
726
|
var l = i.toLowerCase();
|
|
727
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" ||
|
|
727
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : l === "ondoubleclick" ? i = "ondblclick" : l !== "onchange" || r !== "input" && r !== "textarea" || Dr(n.type) ? l === "onfocus" ? i = "onfocusin" : l === "onblur" ? i = "onfocusout" : Vr.test(i) ? i = l : r.indexOf("-") === -1 && Ur.test(i) ? i = i.replace(Hr, "-$&").toLowerCase() : a === null && (a = void 0) : l = i = "oninput", l === "oninput" && o[i = l] && (i = "oninputCapture"), o[i] = a;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = X(n.children).forEach(function(c) {
|
|
731
731
|
c.props.selected = o.value.indexOf(c.props.value) != -1;
|
|
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
|
-
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className",
|
|
735
|
-
}(e), e.$$typeof =
|
|
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 = Rn, Ht && Ht(e);
|
|
736
736
|
};
|
|
737
|
-
var
|
|
738
|
-
|
|
739
|
-
|
|
737
|
+
var Bt = C.__r;
|
|
738
|
+
C.__r = function(e) {
|
|
739
|
+
Bt && Bt(e), ft = e.__c;
|
|
740
740
|
};
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
|
|
741
|
+
var Dt = C.diffed;
|
|
742
|
+
C.diffed = function(e) {
|
|
743
|
+
Dt && Dt(e);
|
|
744
744
|
var t = e.props, n = e.__e;
|
|
745
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value),
|
|
745
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), ft = null;
|
|
746
746
|
};
|
|
747
|
-
var
|
|
748
|
-
return
|
|
749
|
-
} } } },
|
|
750
|
-
function
|
|
747
|
+
var An = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
748
|
+
return ft.__n[e.__c].props.value;
|
|
749
|
+
} } } }, Wr = "17.0.2";
|
|
750
|
+
function Mn(e) {
|
|
751
751
|
return U.bind(null, e);
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
return !!e && e.$$typeof ===
|
|
753
|
+
function Ee(e) {
|
|
754
|
+
return !!e && e.$$typeof === Rn;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return
|
|
756
|
+
function $n(e) {
|
|
757
|
+
return Ee(e) && e.type === j;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
return
|
|
759
|
+
function On(e) {
|
|
760
|
+
return Ee(e) ? Nr.apply(null, arguments) : e;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Un(e) {
|
|
763
763
|
return !!e.__k && (he(null, e), !0);
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function Vn(e) {
|
|
766
766
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
767
767
|
}
|
|
768
|
-
var
|
|
768
|
+
var Hn = function(e, t) {
|
|
769
769
|
return e(t);
|
|
770
|
-
},
|
|
770
|
+
}, Bn = function(e, t) {
|
|
771
771
|
return e(t);
|
|
772
|
-
},
|
|
773
|
-
function
|
|
772
|
+
}, Dn = j;
|
|
773
|
+
function _t(e) {
|
|
774
774
|
e();
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function jn(e) {
|
|
777
777
|
return e;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return [!1,
|
|
781
|
-
}
|
|
782
|
-
var
|
|
783
|
-
function
|
|
784
|
-
var n = t(), r =
|
|
785
|
-
return
|
|
786
|
-
o.__ = n, o.v = t,
|
|
787
|
-
}, [e, n, t]),
|
|
788
|
-
return
|
|
789
|
-
|
|
779
|
+
function Fn() {
|
|
780
|
+
return [!1, _t];
|
|
781
|
+
}
|
|
782
|
+
var qn = Pe, zn = Ee;
|
|
783
|
+
function Wn(e, t) {
|
|
784
|
+
var n = t(), r = D({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
|
|
785
|
+
return Pe(function() {
|
|
786
|
+
o.__ = n, o.v = t, Ze(o) && i({ h: o });
|
|
787
|
+
}, [e, n, t]), q(function() {
|
|
788
|
+
return Ze(o) && i({ h: o }), e(function() {
|
|
789
|
+
Ze(o) && i({ h: o });
|
|
790
790
|
});
|
|
791
791
|
}, [e]), n;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Ze(e) {
|
|
794
794
|
var t, n, r = e.v, o = e.__;
|
|
795
795
|
try {
|
|
796
796
|
var i = r();
|
|
@@ -799,55 +799,55 @@ function ze(e) {
|
|
|
799
799
|
return !0;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
var
|
|
803
|
-
const
|
|
802
|
+
var Zr = { useState: D, useId: vn, useReducer: ut, useEffect: q, useLayoutEffect: Pe, useInsertionEffect: qn, useTransition: Fn, useDeferredValue: jn, useSyncExternalStore: Wn, startTransition: _t, useRef: ie, useImperativeHandle: mn, useMemo: He, useCallback: gn, useContext: bn, useDebugValue: dt, version: "17.0.2", Children: Sn, render: In, hydrate: Ln, unmountComponentAtNode: Un, createPortal: Nn, createElement: U, 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: pe, lazy: En, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: An };
|
|
803
|
+
const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
804
804
|
__proto__: null,
|
|
805
|
-
Children:
|
|
806
|
-
Component:
|
|
807
|
-
Fragment:
|
|
808
|
-
PureComponent:
|
|
809
|
-
StrictMode:
|
|
810
|
-
Suspense:
|
|
805
|
+
Children: Sn,
|
|
806
|
+
Component: Z,
|
|
807
|
+
Fragment: j,
|
|
808
|
+
PureComponent: Ue,
|
|
809
|
+
StrictMode: Dn,
|
|
810
|
+
Suspense: ke,
|
|
811
811
|
SuspenseList: pe,
|
|
812
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
813
|
-
cloneElement:
|
|
814
|
-
createContext:
|
|
812
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: An,
|
|
813
|
+
cloneElement: On,
|
|
814
|
+
createContext: fn,
|
|
815
815
|
createElement: U,
|
|
816
|
-
createFactory:
|
|
817
|
-
createPortal:
|
|
818
|
-
createRef:
|
|
819
|
-
default:
|
|
820
|
-
findDOMNode:
|
|
821
|
-
flushSync:
|
|
822
|
-
forwardRef:
|
|
823
|
-
hydrate:
|
|
824
|
-
isElement:
|
|
825
|
-
isFragment:
|
|
826
|
-
isValidElement:
|
|
827
|
-
lazy:
|
|
828
|
-
memo:
|
|
829
|
-
render:
|
|
830
|
-
startTransition:
|
|
831
|
-
unmountComponentAtNode:
|
|
832
|
-
unstable_batchedUpdates:
|
|
833
|
-
useCallback:
|
|
834
|
-
useContext:
|
|
835
|
-
useDebugValue:
|
|
836
|
-
useDeferredValue:
|
|
837
|
-
useEffect:
|
|
838
|
-
useErrorBoundary:
|
|
839
|
-
useId:
|
|
840
|
-
useImperativeHandle:
|
|
841
|
-
useInsertionEffect:
|
|
842
|
-
useLayoutEffect:
|
|
843
|
-
useMemo:
|
|
844
|
-
useReducer:
|
|
816
|
+
createFactory: Mn,
|
|
817
|
+
createPortal: Nn,
|
|
818
|
+
createRef: sn,
|
|
819
|
+
default: Zr,
|
|
820
|
+
findDOMNode: Vn,
|
|
821
|
+
flushSync: Bn,
|
|
822
|
+
forwardRef: kn,
|
|
823
|
+
hydrate: Ln,
|
|
824
|
+
isElement: zn,
|
|
825
|
+
isFragment: $n,
|
|
826
|
+
isValidElement: Ee,
|
|
827
|
+
lazy: En,
|
|
828
|
+
memo: Cn,
|
|
829
|
+
render: In,
|
|
830
|
+
startTransition: _t,
|
|
831
|
+
unmountComponentAtNode: Un,
|
|
832
|
+
unstable_batchedUpdates: Hn,
|
|
833
|
+
useCallback: gn,
|
|
834
|
+
useContext: bn,
|
|
835
|
+
useDebugValue: dt,
|
|
836
|
+
useDeferredValue: jn,
|
|
837
|
+
useEffect: q,
|
|
838
|
+
useErrorBoundary: Rr,
|
|
839
|
+
useId: vn,
|
|
840
|
+
useImperativeHandle: mn,
|
|
841
|
+
useInsertionEffect: qn,
|
|
842
|
+
useLayoutEffect: Pe,
|
|
843
|
+
useMemo: He,
|
|
844
|
+
useReducer: ut,
|
|
845
845
|
useRef: ie,
|
|
846
|
-
useState:
|
|
847
|
-
useSyncExternalStore:
|
|
848
|
-
useTransition:
|
|
849
|
-
version:
|
|
850
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
846
|
+
useState: D,
|
|
847
|
+
useSyncExternalStore: Wn,
|
|
848
|
+
useTransition: Fn,
|
|
849
|
+
version: Wr
|
|
850
|
+
}, Symbol.toStringTag, { value: "Module" })), jt = (e) => {
|
|
851
851
|
let t;
|
|
852
852
|
const n = /* @__PURE__ */ new Set(), r = (c, d) => {
|
|
853
853
|
const p = typeof c == "function" ? c(t) : c;
|
|
@@ -857,10 +857,10 @@ const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
857
857
|
}
|
|
858
858
|
}, o = () => t, l = { setState: r, getState: o, subscribe: (c) => (n.add(c), () => n.delete(c)), destroy: () => n.clear() };
|
|
859
859
|
return t = e(r, o, l), l;
|
|
860
|
-
},
|
|
861
|
-
var
|
|
862
|
-
const
|
|
863
|
-
var
|
|
860
|
+
}, Qr = (e) => e ? jt(e) : jt;
|
|
861
|
+
var Zn = { exports: {} }, Gn = {};
|
|
862
|
+
const Qn = /* @__PURE__ */ pr(Gr);
|
|
863
|
+
var Kn = { exports: {} }, Yn = {};
|
|
864
864
|
/**
|
|
865
865
|
* @license React
|
|
866
866
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -870,38 +870,38 @@ var Gn = { exports: {} }, Qn = {};
|
|
|
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 ge =
|
|
874
|
-
function
|
|
873
|
+
var ge = Qn;
|
|
874
|
+
function Kr(e, t) {
|
|
875
875
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
879
|
-
var n = t(), r =
|
|
880
|
-
return
|
|
881
|
-
o.value = n, o.getSnapshot = t,
|
|
882
|
-
}, [e, n, t]),
|
|
883
|
-
return
|
|
884
|
-
|
|
877
|
+
var Yr = typeof Object.is == "function" ? Object.is : Kr, Jr = ge.useState, Xr = ge.useEffect, eo = ge.useLayoutEffect, to = ge.useDebugValue;
|
|
878
|
+
function no(e, t) {
|
|
879
|
+
var n = t(), r = Jr({ inst: { value: n, getSnapshot: t } }), o = r[0].inst, i = r[1];
|
|
880
|
+
return eo(function() {
|
|
881
|
+
o.value = n, o.getSnapshot = t, Ge(o) && i({ inst: o });
|
|
882
|
+
}, [e, n, t]), Xr(function() {
|
|
883
|
+
return Ge(o) && i({ inst: o }), e(function() {
|
|
884
|
+
Ge(o) && i({ inst: o });
|
|
885
885
|
});
|
|
886
|
-
}, [e]),
|
|
886
|
+
}, [e]), to(n), n;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Ge(e) {
|
|
889
889
|
var t = e.getSnapshot;
|
|
890
890
|
e = e.value;
|
|
891
891
|
try {
|
|
892
892
|
var n = t();
|
|
893
|
-
return !
|
|
893
|
+
return !Yr(e, n);
|
|
894
894
|
} catch {
|
|
895
895
|
return !0;
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function ro(e, t) {
|
|
899
899
|
return t();
|
|
900
900
|
}
|
|
901
|
-
var
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
var
|
|
901
|
+
var oo = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? ro : no;
|
|
902
|
+
Yn.useSyncExternalStore = ge.useSyncExternalStore !== void 0 ? ge.useSyncExternalStore : oo;
|
|
903
|
+
Kn.exports = Yn;
|
|
904
|
+
var io = Kn.exports;
|
|
905
905
|
/**
|
|
906
906
|
* @license React
|
|
907
907
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -911,32 +911,32 @@ var oo = Gn.exports;
|
|
|
911
911
|
* This source code is licensed under the MIT license found in the
|
|
912
912
|
* LICENSE file in the root directory of this source tree.
|
|
913
913
|
*/
|
|
914
|
-
var
|
|
915
|
-
function
|
|
914
|
+
var Be = Qn, ao = io;
|
|
915
|
+
function so(e, t) {
|
|
916
916
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
917
917
|
}
|
|
918
|
-
var
|
|
919
|
-
|
|
920
|
-
var i =
|
|
918
|
+
var lo = typeof Object.is == "function" ? Object.is : so, co = ao.useSyncExternalStore, uo = Be.useRef, po = Be.useEffect, fo = Be.useMemo, _o = Be.useDebugValue;
|
|
919
|
+
Gn.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
|
|
920
|
+
var i = uo(null);
|
|
921
921
|
if (i.current === null) {
|
|
922
922
|
var a = { hasValue: !1, value: null };
|
|
923
923
|
i.current = a;
|
|
924
924
|
} else
|
|
925
925
|
a = i.current;
|
|
926
|
-
i =
|
|
926
|
+
i = fo(function() {
|
|
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 h = a.value;
|
|
931
|
+
if (o(h, f))
|
|
932
|
+
return s = h;
|
|
933
933
|
}
|
|
934
934
|
return s = f;
|
|
935
935
|
}
|
|
936
|
-
if (
|
|
937
|
-
return
|
|
936
|
+
if (h = s, lo(p, f))
|
|
937
|
+
return h;
|
|
938
938
|
var m = r(f);
|
|
939
|
-
return o !== void 0 && o(
|
|
939
|
+
return o !== void 0 && o(h, m) ? h : (p = f, s = m);
|
|
940
940
|
}
|
|
941
941
|
var d = !1, p, s, _ = n === void 0 ? null : n;
|
|
942
942
|
return [function() {
|
|
@@ -945,30 +945,30 @@ Wn.useSyncExternalStoreWithSelector = function(e, t, n, r, o) {
|
|
|
945
945
|
return c(_());
|
|
946
946
|
}];
|
|
947
947
|
}, [t, n, r, o]);
|
|
948
|
-
var l =
|
|
949
|
-
return
|
|
948
|
+
var l = co(e, i[0], i[1]);
|
|
949
|
+
return po(function() {
|
|
950
950
|
a.hasValue = !0, a.value = l;
|
|
951
|
-
}, [l]),
|
|
951
|
+
}, [l]), _o(l), l;
|
|
952
952
|
};
|
|
953
|
-
|
|
954
|
-
var
|
|
955
|
-
const
|
|
956
|
-
function
|
|
957
|
-
const r =
|
|
953
|
+
Zn.exports = Gn;
|
|
954
|
+
var ho = Zn.exports;
|
|
955
|
+
const mo = /* @__PURE__ */ fr(ho), { useSyncExternalStoreWithSelector: go } = mo;
|
|
956
|
+
function bo(e, t = e.getState, n) {
|
|
957
|
+
const r = go(
|
|
958
958
|
e.subscribe,
|
|
959
959
|
e.getState,
|
|
960
960
|
e.getServerState || e.getState,
|
|
961
961
|
t,
|
|
962
962
|
n
|
|
963
963
|
);
|
|
964
|
-
return
|
|
964
|
+
return dt(r), r;
|
|
965
965
|
}
|
|
966
|
-
const
|
|
967
|
-
const t = typeof e == "function" ?
|
|
966
|
+
const Ft = (e) => {
|
|
967
|
+
const t = typeof e == "function" ? Qr(e) : e, n = (r, o) => bo(t, r, o);
|
|
968
968
|
return Object.assign(n, t), n;
|
|
969
|
-
},
|
|
970
|
-
var
|
|
971
|
-
const
|
|
969
|
+
}, Jn = (e) => e ? Ft(e) : Ft;
|
|
970
|
+
var rt = /* @__PURE__ */ ((e) => (e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(rt || {});
|
|
971
|
+
const qt = 1, ht = {
|
|
972
972
|
eq(e, t) {
|
|
973
973
|
return e == t;
|
|
974
974
|
},
|
|
@@ -1028,38 +1028,38 @@ const jt = 1, ft = {
|
|
|
1028
1028
|
notcontains(e, t) {
|
|
1029
1029
|
return !this.contains(e, t);
|
|
1030
1030
|
}
|
|
1031
|
-
},
|
|
1031
|
+
}, vo = (e, t, n) => {
|
|
1032
1032
|
switch (t) {
|
|
1033
|
-
case
|
|
1033
|
+
case g.VideoVoice:
|
|
1034
1034
|
return !!(e && e.value);
|
|
1035
|
-
case
|
|
1035
|
+
case g.Open:
|
|
1036
1036
|
return !!n;
|
|
1037
|
-
case
|
|
1037
|
+
case g.MultipleSelect:
|
|
1038
1038
|
return !!(n && Object.keys(n).length);
|
|
1039
|
-
case
|
|
1040
|
-
return (n == null ? void 0 : n.taskStatus) ===
|
|
1041
|
-
case
|
|
1039
|
+
case g.RecordedTask:
|
|
1040
|
+
return (n == null ? void 0 : n.taskStatus) === W.Completed;
|
|
1041
|
+
case g.TextUrlPrompt:
|
|
1042
1042
|
return !e.value;
|
|
1043
|
-
case
|
|
1043
|
+
case g.ConsentLegal:
|
|
1044
1044
|
return n !== null;
|
|
1045
|
-
case
|
|
1045
|
+
case g.MultipleChoice:
|
|
1046
1046
|
return n !== void 0;
|
|
1047
|
-
case
|
|
1047
|
+
case g.Matrix:
|
|
1048
1048
|
return !!(n && Object.values(n).every((r) => r !== null));
|
|
1049
|
-
case
|
|
1049
|
+
case g.NPS:
|
|
1050
1050
|
return n !== null;
|
|
1051
|
-
case
|
|
1051
|
+
case g.Likert:
|
|
1052
1052
|
return n !== null;
|
|
1053
1053
|
default:
|
|
1054
1054
|
return !0;
|
|
1055
1055
|
}
|
|
1056
|
-
},
|
|
1057
|
-
if (t ===
|
|
1056
|
+
}, Xn = (e, t) => {
|
|
1057
|
+
if (t === g.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
|
}
|
|
1061
1061
|
return !1;
|
|
1062
|
-
},
|
|
1062
|
+
}, er = ({
|
|
1063
1063
|
cards: e,
|
|
1064
1064
|
index: t,
|
|
1065
1065
|
hasEndCard: n,
|
|
@@ -1081,7 +1081,7 @@ const jt = 1, ft = {
|
|
|
1081
1081
|
const f = s[0];
|
|
1082
1082
|
if (f.questionIndex === void 0 || f.questionIndex > r.length)
|
|
1083
1083
|
continue;
|
|
1084
|
-
let
|
|
1084
|
+
let h = zt({
|
|
1085
1085
|
comparator: f.comparator,
|
|
1086
1086
|
// @ts-expect-error - unknown response type
|
|
1087
1087
|
response: r[f.questionIndex],
|
|
@@ -1090,7 +1090,7 @@ const jt = 1, ft = {
|
|
|
1090
1090
|
value: f.value
|
|
1091
1091
|
});
|
|
1092
1092
|
for (let m = 1; m < s.length; m += 2) {
|
|
1093
|
-
const y = s[m], v = s[m + 1],
|
|
1093
|
+
const y = s[m], v = s[m + 1], k = zt({
|
|
1094
1094
|
comparator: v.comparator,
|
|
1095
1095
|
// @ts-expect-error - unknown response type
|
|
1096
1096
|
response: r[v.questionIndex],
|
|
@@ -1098,17 +1098,17 @@ const jt = 1, ft = {
|
|
|
1098
1098
|
type: e[v.questionIndex].type,
|
|
1099
1099
|
value: v.value
|
|
1100
1100
|
});
|
|
1101
|
-
y ===
|
|
1101
|
+
y === rt.And ? h && (h = k) : y === rt.Or && (h || (h = k));
|
|
1102
1102
|
}
|
|
1103
|
-
if (
|
|
1103
|
+
if (h) {
|
|
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 === g.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 = ({
|
|
1112
1112
|
comparator: e,
|
|
1113
1113
|
response: t,
|
|
1114
1114
|
type: n,
|
|
@@ -1116,70 +1116,70 @@ const jt = 1, ft = {
|
|
|
1116
1116
|
}) => {
|
|
1117
1117
|
if (e === G.Answered)
|
|
1118
1118
|
switch (n) {
|
|
1119
|
-
case
|
|
1119
|
+
case g.TextUrlPrompt:
|
|
1120
1120
|
return t === void 0;
|
|
1121
|
-
case
|
|
1121
|
+
case g.ConsentLegal:
|
|
1122
1122
|
return t && t.submitted === !0;
|
|
1123
|
-
case
|
|
1124
|
-
return "taskStatus" in t && t.taskStatus ===
|
|
1125
|
-
case
|
|
1123
|
+
case g.RecordedTask:
|
|
1124
|
+
return "taskStatus" in t && t.taskStatus === W.Completed;
|
|
1125
|
+
case g.Likert:
|
|
1126
1126
|
return Number.isInteger(t);
|
|
1127
|
-
case
|
|
1127
|
+
case g.Open:
|
|
1128
1128
|
return t && t.length > 0;
|
|
1129
|
-
case
|
|
1130
|
-
case
|
|
1129
|
+
case g.MultipleChoice:
|
|
1130
|
+
case g.MultipleSelect:
|
|
1131
1131
|
return Object.keys(t).length > 0;
|
|
1132
|
-
case
|
|
1132
|
+
case g.Matrix:
|
|
1133
1133
|
return Object.values(t).every((o) => o !== null);
|
|
1134
|
-
case
|
|
1134
|
+
case g.NPS:
|
|
1135
1135
|
return Number.isInteger(t);
|
|
1136
|
-
case
|
|
1136
|
+
case g.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 === g.RecordedTask ? "taskStatus" in t && t.taskStatus === W.GivenUp : !0;
|
|
1143
1143
|
if (e === G.Partial)
|
|
1144
|
-
return n ===
|
|
1144
|
+
return n === g.Matrix ? Xn(t, n) : !1;
|
|
1145
1145
|
if (e === G.Skipped)
|
|
1146
1146
|
switch (n) {
|
|
1147
|
-
case
|
|
1147
|
+
case g.TextUrlPrompt:
|
|
1148
1148
|
return t == null ? void 0 : t.skipped;
|
|
1149
|
-
case
|
|
1149
|
+
case g.ConsentLegal:
|
|
1150
1150
|
return t === null;
|
|
1151
|
-
case
|
|
1152
|
-
return "taskStatus" in t && t.taskStatus ===
|
|
1153
|
-
case
|
|
1151
|
+
case g.RecordedTask:
|
|
1152
|
+
return "taskStatus" in t && t.taskStatus === W.Abandoned;
|
|
1153
|
+
case g.Likert:
|
|
1154
1154
|
return t === null;
|
|
1155
|
-
case
|
|
1155
|
+
case g.Open:
|
|
1156
1156
|
return (t == null ? void 0 : t.length) === 0;
|
|
1157
|
-
case
|
|
1157
|
+
case g.MultipleChoice:
|
|
1158
1158
|
return t === void 0;
|
|
1159
|
-
case
|
|
1159
|
+
case g.MultipleSelect:
|
|
1160
1160
|
return (t == null ? void 0 : t.length) === 0;
|
|
1161
|
-
case
|
|
1161
|
+
case g.Matrix:
|
|
1162
1162
|
return Object.values(t).every((o) => o === null);
|
|
1163
|
-
case
|
|
1163
|
+
case g.NPS:
|
|
1164
1164
|
return t === null;
|
|
1165
|
-
case
|
|
1165
|
+
case g.VideoVoice:
|
|
1166
1166
|
return t === null;
|
|
1167
1167
|
default:
|
|
1168
1168
|
return !1;
|
|
1169
1169
|
}
|
|
1170
|
-
return
|
|
1171
|
-
},
|
|
1170
|
+
return ht[e](t, r);
|
|
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
|
|
1175
|
-
return !e || !e.props || !e.props.options ? null : e.props.options.length >
|
|
1176
|
-
case
|
|
1174
|
+
case g.MultipleSelect:
|
|
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 g.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 g.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,33 +1188,33 @@ const jt = 1, ft = {
|
|
|
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 g.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 g.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 g.VideoVoice:
|
|
1198
|
+
case g.Open:
|
|
1199
1199
|
return ["1", ...e.props.properties.required ? [] : [""]];
|
|
1200
|
-
case
|
|
1200
|
+
case g.RecordedTask:
|
|
1201
1201
|
return [{
|
|
1202
|
-
taskStatus:
|
|
1202
|
+
taskStatus: W.Completed
|
|
1203
1203
|
}, {
|
|
1204
|
-
taskStatus:
|
|
1204
|
+
taskStatus: W.GivenUp
|
|
1205
1205
|
}, ...e.props.properties.required ? [] : [{
|
|
1206
|
-
taskStatus:
|
|
1206
|
+
taskStatus: W.Abandoned
|
|
1207
1207
|
}]];
|
|
1208
|
-
case
|
|
1208
|
+
case g.TextUrlPrompt:
|
|
1209
1209
|
return [void 0, ...e.props.properties.required ? [] : [{
|
|
1210
1210
|
skipped: !0
|
|
1211
1211
|
}]];
|
|
1212
|
-
case
|
|
1213
|
-
return [
|
|
1212
|
+
case g.ConsentLegal:
|
|
1213
|
+
return [qt, ...e.props.properties.required ? [] : [null]];
|
|
1214
1214
|
default:
|
|
1215
|
-
return [
|
|
1215
|
+
return [qt];
|
|
1216
1216
|
}
|
|
1217
|
-
},
|
|
1217
|
+
}, ko = (e) => e in ht, So = (e) => typeof e == "object" && e !== null && "taskStatus" in e, wo = (e, t = []) => t.reduce((n, r) => {
|
|
1218
1218
|
const {
|
|
1219
1219
|
group: o,
|
|
1220
1220
|
target: i
|
|
@@ -1233,8 +1233,8 @@ const jt = 1, ft = {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
});
|
|
1235
1235
|
return [...n, ...a];
|
|
1236
|
-
}, []),
|
|
1237
|
-
const n = /* @__PURE__ */ new Set([
|
|
1236
|
+
}, []), To = (e, t) => {
|
|
1237
|
+
const n = /* @__PURE__ */ new Set([g.Thanks, g.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));
|
|
@@ -1245,12 +1245,12 @@ const jt = 1, ft = {
|
|
|
1245
1245
|
[-1]: 0
|
|
1246
1246
|
};
|
|
1247
1247
|
for (let i = r.length - 2; i >= t; i--) {
|
|
1248
|
-
const a = r[i], l =
|
|
1248
|
+
const a = r[i], l = wo(i, a.props.routingOptions);
|
|
1249
1249
|
if (l.length === 0) {
|
|
1250
1250
|
o[i] = o[i + 1] + 1;
|
|
1251
1251
|
continue;
|
|
1252
1252
|
}
|
|
1253
|
-
let c = 0, d =
|
|
1253
|
+
let c = 0, d = Co(a);
|
|
1254
1254
|
if (d === null)
|
|
1255
1255
|
return r.length - 1 - t;
|
|
1256
1256
|
for (let p = 0; p < l.length && d.length !== 0; p++) {
|
|
@@ -1258,24 +1258,24 @@ const jt = 1, ft = {
|
|
|
1258
1258
|
comparator: s,
|
|
1259
1259
|
target: _,
|
|
1260
1260
|
value: f
|
|
1261
|
-
} = l[p],
|
|
1262
|
-
const y =
|
|
1261
|
+
} = l[p], h = d.filter((m) => {
|
|
1262
|
+
const y = vo({
|
|
1263
1263
|
value: m
|
|
1264
|
-
}, a.type, m), v =
|
|
1265
|
-
return !(y && s === G.Answered || v && s === G.Partial || !y && !v && s === G.Skipped || s === G.GivenUp &&
|
|
1264
|
+
}, a.type, m), v = Xn(m, a.type);
|
|
1265
|
+
return !(y && s === G.Answered || v && s === G.Partial || !y && !v && s === G.Skipped || s === G.GivenUp && So(m) && m.taskStatus === W.GivenUp || y && a.type === g.Open && (s === G.Contains || s === G.DoesNotContain) || y && ko(s) && ht[s](m, f));
|
|
1266
1266
|
});
|
|
1267
|
-
if (
|
|
1267
|
+
if (h.length < d.length) {
|
|
1268
1268
|
const m = parseInt(String(_), 10);
|
|
1269
1269
|
if (m !== -1 && m <= i || m >= r.length)
|
|
1270
1270
|
return r.length - 1 - t;
|
|
1271
1271
|
c = Math.max(o[m] + 1, c);
|
|
1272
1272
|
}
|
|
1273
|
-
d =
|
|
1273
|
+
d = h;
|
|
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
|
-
},
|
|
1278
|
+
}, Po = (e) => !(e.type === g.Thanks || e.type === g.Uploading), $ = Jn()((e, t) => ({
|
|
1279
1279
|
allResponses: [],
|
|
1280
1280
|
answers: void 0,
|
|
1281
1281
|
apiURL: "",
|
|
@@ -1287,10 +1287,10 @@ const jt = 1, ft = {
|
|
|
1287
1287
|
remove: i,
|
|
1288
1288
|
trackHistory: a
|
|
1289
1289
|
} = r;
|
|
1290
|
-
await o(n),
|
|
1290
|
+
await o(n), Qe(r) || a({
|
|
1291
1291
|
event: "closed"
|
|
1292
|
-
}),
|
|
1293
|
-
initiator:
|
|
1292
|
+
}), ze(`Closing survey: ${r.surveyId}`), yt.enable(), i({
|
|
1293
|
+
initiator: xt.Closed
|
|
1294
1294
|
});
|
|
1295
1295
|
},
|
|
1296
1296
|
configureExitOnOverlayClick: () => {
|
|
@@ -1302,22 +1302,22 @@ const jt = 1, ft = {
|
|
|
1302
1302
|
fadeout: o,
|
|
1303
1303
|
remove: i
|
|
1304
1304
|
} = t();
|
|
1305
|
-
r(ee.SurveyComplete), await o(n),
|
|
1306
|
-
initiator:
|
|
1305
|
+
r(ee.SurveyComplete), await o(n), yt.enable(), i({
|
|
1306
|
+
initiator: xt.Complete
|
|
1307
1307
|
});
|
|
1308
1308
|
},
|
|
1309
1309
|
endCard: {
|
|
1310
1310
|
headline: ""
|
|
1311
1311
|
},
|
|
1312
1312
|
envId: "",
|
|
1313
|
-
eventEmitFn:
|
|
1313
|
+
eventEmitFn: Ie.emit.bind(Ie),
|
|
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
|
|
1320
|
+
return $e(o) ? Promise.resolve() : (r(re.SurveyFadingOut), new Promise((a) => {
|
|
1321
1321
|
const l = i.getElementById(n);
|
|
1322
1322
|
l ? (l.addEventListener("transitionend", () => {
|
|
1323
1323
|
a();
|
|
@@ -1333,8 +1333,8 @@ const jt = 1, ft = {
|
|
|
1333
1333
|
index: i
|
|
1334
1334
|
} = t();
|
|
1335
1335
|
o(n, {
|
|
1336
|
-
[
|
|
1337
|
-
[
|
|
1336
|
+
[ye.QuestionId]: r[i].name,
|
|
1337
|
+
[ye.Props]: r[i].props
|
|
1338
1338
|
// Only return the upcoming card
|
|
1339
1339
|
}), e(() => ({
|
|
1340
1340
|
hasViewedEmbed: !0
|
|
@@ -1346,7 +1346,7 @@ const jt = 1, ft = {
|
|
|
1346
1346
|
progressPct: o,
|
|
1347
1347
|
isSubmitted: i
|
|
1348
1348
|
}) => {
|
|
1349
|
-
var f,
|
|
1349
|
+
var f, h, m;
|
|
1350
1350
|
const {
|
|
1351
1351
|
cards: a,
|
|
1352
1352
|
destroy: l,
|
|
@@ -1355,14 +1355,14 @@ const jt = 1, ft = {
|
|
|
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 || ((h = d[n]) == null ? void 0 : h.progressPct),
|
|
1359
1359
|
isComplete: p,
|
|
1360
1360
|
isSubmitted: i || ((m = d[n]) == null ? void 0 : m.isSubmitted)
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
if (e({
|
|
1364
1364
|
uploadProgress: s
|
|
1365
|
-
}), a[c].type !==
|
|
1365
|
+
}), a[c].type !== g.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)
|
|
@@ -1376,9 +1376,9 @@ const jt = 1, ft = {
|
|
|
1376
1376
|
headers: {
|
|
1377
1377
|
Authorization: "",
|
|
1378
1378
|
"Content-Type": "",
|
|
1379
|
-
"userleap-platform":
|
|
1379
|
+
"userleap-platform": Ke.Web,
|
|
1380
1380
|
"x-ul-environment-id": "",
|
|
1381
|
-
"x-ul-installation-method":
|
|
1381
|
+
"x-ul-installation-method": _r.Snippet,
|
|
1382
1382
|
"x-ul-sdk-version": "",
|
|
1383
1383
|
"x-ul-visitor-id": ""
|
|
1384
1384
|
},
|
|
@@ -1406,51 +1406,51 @@ const jt = 1, ft = {
|
|
|
1406
1406
|
trackHistory: d,
|
|
1407
1407
|
uploadProgress: p,
|
|
1408
1408
|
viewedCardCount: s
|
|
1409
|
-
} = t(), _ = Date.now(), f = [...o],
|
|
1409
|
+
} = t(), _ = Date.now(), f = [...o], h = f[a], {
|
|
1410
1410
|
type: m
|
|
1411
1411
|
} = n.data, y = {
|
|
1412
1412
|
...n.data
|
|
1413
1413
|
}, v = y.value;
|
|
1414
|
-
|
|
1415
|
-
const
|
|
1414
|
+
Po(h) && (h.value = v), y.answeredAt = _, delete y.type;
|
|
1415
|
+
const k = {
|
|
1416
1416
|
response: y,
|
|
1417
1417
|
responseGroupUid: l,
|
|
1418
1418
|
questionIndex: a
|
|
1419
1419
|
};
|
|
1420
|
-
let S = m ===
|
|
1421
|
-
m ===
|
|
1420
|
+
let S = m === g.MultipleChoice ? Object.values(v).find((N) => N !== !1) : v;
|
|
1421
|
+
m === g.MultipleSelect && (S = f[a].props.options.reduce((N, T) => (v[T.id] && N.push(T.value), N), []));
|
|
1422
1422
|
const E = r.slice(0);
|
|
1423
1423
|
E[a] = S, e({
|
|
1424
1424
|
allResponses: E
|
|
1425
1425
|
});
|
|
1426
|
-
const
|
|
1426
|
+
const b = er({
|
|
1427
1427
|
cards: f,
|
|
1428
1428
|
index: a,
|
|
1429
1429
|
hasEndCard: !!n.endCard,
|
|
1430
1430
|
uploadProgress: p,
|
|
1431
1431
|
allResponses: E
|
|
1432
1432
|
});
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1433
|
+
if (b === null) {
|
|
1434
|
+
k.completedAt = _, c(k), n.completeSurvey();
|
|
1435
1435
|
return;
|
|
1436
1436
|
} else
|
|
1437
|
-
[
|
|
1438
|
-
const
|
|
1439
|
-
[
|
|
1437
|
+
[g.Thanks, g.Uploading].includes(f[b].type) && (k.completedAt = _);
|
|
1438
|
+
const x = c(k);
|
|
1439
|
+
[g.Thanks, g.Uploading].includes(f[b].type) || x.finally(() => {
|
|
1440
1440
|
d({
|
|
1441
1441
|
event: "seen",
|
|
1442
|
-
index:
|
|
1442
|
+
index: b
|
|
1443
1443
|
});
|
|
1444
1444
|
});
|
|
1445
|
-
const I = f[
|
|
1446
|
-
f[
|
|
1447
|
-
[
|
|
1448
|
-
[
|
|
1445
|
+
const I = f[b];
|
|
1446
|
+
f[b] && i && i(ee.CurrentQuestion, {
|
|
1447
|
+
[ye.QuestionId]: I.name,
|
|
1448
|
+
[ye.Props]: I.props
|
|
1449
1449
|
// Only return the upcoming card
|
|
1450
1450
|
}), e({
|
|
1451
1451
|
cards: f,
|
|
1452
1452
|
hasViewedEmbed: !1,
|
|
1453
|
-
index:
|
|
1453
|
+
index: b,
|
|
1454
1454
|
viewedCardCount: s + 1
|
|
1455
1455
|
});
|
|
1456
1456
|
},
|
|
@@ -1458,7 +1458,7 @@ const jt = 1, ft = {
|
|
|
1458
1458
|
previewKey: null,
|
|
1459
1459
|
recorder: () => {
|
|
1460
1460
|
},
|
|
1461
|
-
recorderEventEmitter:
|
|
1461
|
+
recorderEventEmitter: Ie,
|
|
1462
1462
|
resolveTrackedPromise: () => {
|
|
1463
1463
|
const {
|
|
1464
1464
|
removeIframeIfReady: n
|
|
@@ -1511,7 +1511,7 @@ const jt = 1, ft = {
|
|
|
1511
1511
|
responseGroupUid: i
|
|
1512
1512
|
}) => {
|
|
1513
1513
|
const a = t();
|
|
1514
|
-
if (!i ||
|
|
1514
|
+
if (!i || Qe(a))
|
|
1515
1515
|
return;
|
|
1516
1516
|
const l = {
|
|
1517
1517
|
responseGroupUid: i,
|
|
@@ -1521,16 +1521,16 @@ const jt = 1, ft = {
|
|
|
1521
1521
|
completedAt: n,
|
|
1522
1522
|
previewKey: a.previewKey
|
|
1523
1523
|
};
|
|
1524
|
-
n &&
|
|
1524
|
+
ze(`Submitting response: ${JSON.stringify(o.value, null, 2)} for survey: ${a.surveyId}`), n && (ze("Survey complete"), hr({
|
|
1525
1525
|
id: a.surveyId
|
|
1526
|
-
});
|
|
1527
|
-
const c = await a.trackPromise(
|
|
1526
|
+
}));
|
|
1527
|
+
const c = await a.trackPromise(Ye(`${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/responses/submit`, {
|
|
1528
1528
|
body: JSON.stringify(l),
|
|
1529
1529
|
headers: a.headers,
|
|
1530
1530
|
method: "POST"
|
|
1531
1531
|
}));
|
|
1532
1532
|
if (!c.ok) {
|
|
1533
|
-
c.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", c.error), await a.trackPromise(
|
|
1533
|
+
c.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", c.error), await a.trackPromise(Wt(a, "submitResponse", c.error)));
|
|
1534
1534
|
return;
|
|
1535
1535
|
}
|
|
1536
1536
|
a.eventEmitFn(re.QuestionAnswered, {
|
|
@@ -1546,7 +1546,7 @@ const jt = 1, ft = {
|
|
|
1546
1546
|
isNew: o = !1
|
|
1547
1547
|
}) => {
|
|
1548
1548
|
const i = t();
|
|
1549
|
-
if (
|
|
1549
|
+
if (Qe(i))
|
|
1550
1550
|
return;
|
|
1551
1551
|
const {
|
|
1552
1552
|
cards: a,
|
|
@@ -1560,12 +1560,12 @@ const jt = 1, ft = {
|
|
|
1560
1560
|
isNew: o,
|
|
1561
1561
|
responseGroupUid: i.responseGroupUid,
|
|
1562
1562
|
previewKey: i.previewKey
|
|
1563
|
-
}, p = await i.trackPromise(
|
|
1563
|
+
}, p = await i.trackPromise(Ye(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`, {
|
|
1564
1564
|
body: JSON.stringify(d),
|
|
1565
1565
|
headers: i.headers,
|
|
1566
1566
|
method: "POST"
|
|
1567
1567
|
}));
|
|
1568
|
-
!p.ok && p.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", p.error), await i.trackPromise(
|
|
1568
|
+
!p.ok && p.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", p.error), await i.trackPromise(Wt(i, "trackHistory", p.error)));
|
|
1569
1569
|
},
|
|
1570
1570
|
trackPromise: async (n) => {
|
|
1571
1571
|
let {
|
|
@@ -1585,15 +1585,16 @@ const jt = 1, ft = {
|
|
|
1585
1585
|
headers: o,
|
|
1586
1586
|
eventEmitFn: i,
|
|
1587
1587
|
frame: a,
|
|
1588
|
-
|
|
1589
|
-
|
|
1588
|
+
useMobileStyling: l,
|
|
1589
|
+
viewDocument: c
|
|
1590
|
+
} = t(), p = n[r].type === g.Matrix;
|
|
1590
1591
|
setTimeout(() => {
|
|
1591
|
-
var
|
|
1592
|
-
const [
|
|
1593
|
-
|
|
1592
|
+
var f, h;
|
|
1593
|
+
const [s, _] = mr(c);
|
|
1594
|
+
$e(o) ? i(re.SurveyHeight, {
|
|
1594
1595
|
name: re.SurveyHeight,
|
|
1595
|
-
contentFrameHeight:
|
|
1596
|
-
}) : ((
|
|
1596
|
+
contentFrameHeight: s
|
|
1597
|
+
}) : ((f = a.setHeight) == null || f.call(a, s), l || (h = a.setWidth) == null || h.call(a, p ? _ : parseInt(gr)));
|
|
1597
1598
|
}, 100);
|
|
1598
1599
|
},
|
|
1599
1600
|
uploadingCardViewed: !1,
|
|
@@ -1603,7 +1604,7 @@ const jt = 1, ft = {
|
|
|
1603
1604
|
userId: "",
|
|
1604
1605
|
viewDocument: window.document,
|
|
1605
1606
|
viewedCardCount: 0
|
|
1606
|
-
})),
|
|
1607
|
+
})), Qe = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview, Wt = async (e, t, n) => {
|
|
1607
1608
|
const {
|
|
1608
1609
|
mode: r,
|
|
1609
1610
|
userId: o,
|
|
@@ -1628,27 +1629,34 @@ const jt = 1, ft = {
|
|
|
1628
1629
|
meta: p,
|
|
1629
1630
|
vid: o,
|
|
1630
1631
|
envId: i
|
|
1631
|
-
}
|
|
1632
|
-
(await Qe(`${a}/sdk/1/errors`, {
|
|
1632
|
+
}, _ = await Ye(`${a}/sdk/1/errors`, {
|
|
1633
1633
|
method: "POST",
|
|
1634
1634
|
headers: Object.assign({
|
|
1635
1635
|
"x-ul-error": window.btoa(`userleap-${Date.now()}-error`)
|
|
1636
1636
|
}, l),
|
|
1637
1637
|
body: JSON.stringify(s)
|
|
1638
|
-
})
|
|
1638
|
+
});
|
|
1639
|
+
if (!_.ok)
|
|
1640
|
+
console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
|
|
1641
|
+
else {
|
|
1642
|
+
const {
|
|
1643
|
+
presignedUrl: f
|
|
1644
|
+
} = _.json;
|
|
1645
|
+
br(f);
|
|
1646
|
+
}
|
|
1639
1647
|
};
|
|
1640
|
-
var
|
|
1648
|
+
var Eo = 0;
|
|
1641
1649
|
function u(e, t, n, r, o, i) {
|
|
1642
1650
|
var a, l, c = {};
|
|
1643
1651
|
for (l in t)
|
|
1644
1652
|
l == "ref" ? a = t[l] : c[l] = t[l];
|
|
1645
|
-
var d = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
1653
|
+
var d = { type: e, props: c, key: n, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --Eo, __i: -1, __u: 0, __source: o, __self: i };
|
|
1646
1654
|
if (typeof e == "function" && (a = e.defaultProps))
|
|
1647
1655
|
for (l in a)
|
|
1648
1656
|
c[l] === void 0 && (c[l] = a[l]);
|
|
1649
|
-
return
|
|
1657
|
+
return C.vnode && C.vnode(d), d;
|
|
1650
1658
|
}
|
|
1651
|
-
const
|
|
1659
|
+
const F = (e) => u("button", {
|
|
1652
1660
|
...e,
|
|
1653
1661
|
className: R("ul-card-text__button", e.className),
|
|
1654
1662
|
id: "ul-card-text__button"
|
|
@@ -1657,7 +1665,7 @@ const j = (e) => u("button", {
|
|
|
1657
1665
|
properties: t
|
|
1658
1666
|
}) => {
|
|
1659
1667
|
const n = t == null ? void 0 : t.captionText;
|
|
1660
|
-
return u(
|
|
1668
|
+
return u(j, {
|
|
1661
1669
|
children: [e && u("h1", {
|
|
1662
1670
|
className: w.QuestionHeader,
|
|
1663
1671
|
id: w.QuestionHeader,
|
|
@@ -1673,7 +1681,7 @@ const j = (e) => u("button", {
|
|
|
1673
1681
|
children: n
|
|
1674
1682
|
})]
|
|
1675
1683
|
});
|
|
1676
|
-
},
|
|
1684
|
+
}, Zt = ({
|
|
1677
1685
|
buttonText: e = "View Prototype",
|
|
1678
1686
|
handleClick: t
|
|
1679
1687
|
}) => u("button", {
|
|
@@ -1691,23 +1699,23 @@ const j = (e) => u("button", {
|
|
|
1691
1699
|
hasViewedEmbed: o,
|
|
1692
1700
|
headers: i,
|
|
1693
1701
|
useDesktopPrototype: a
|
|
1694
|
-
} =
|
|
1702
|
+
} = $((_) => ({
|
|
1695
1703
|
handleClickEmbedButton: _.handleClickEmbedButton,
|
|
1696
1704
|
hasViewedEmbed: _.hasViewedEmbed,
|
|
1697
1705
|
headers: _.headers,
|
|
1698
1706
|
useDesktopPrototype: _.useDesktopPrototype
|
|
1699
|
-
})), l = (n == null ? void 0 : n.conceptUrl) || ((s = n == null ? void 0 : n.consentDocument) == null ? void 0 : s.url), c = window.innerWidth <
|
|
1707
|
+
})), l = (n == null ? void 0 : n.conceptUrl) || ((s = n == null ? void 0 : n.consentDocument) == null ? void 0 : s.url), c = window.innerWidth < vr, d = i["userleap-platform"], p = (_, f) => {
|
|
1700
1708
|
_.preventDefault(), r(f);
|
|
1701
1709
|
};
|
|
1702
1710
|
if (!a && c && !o && l && ["email", "link"].includes(d)) {
|
|
1703
1711
|
if (t === "prototype")
|
|
1704
|
-
return u(
|
|
1712
|
+
return u(Zt, {
|
|
1705
1713
|
handleClick: (_) => {
|
|
1706
1714
|
p(_, ee.ViewPrototypeClick);
|
|
1707
1715
|
}
|
|
1708
1716
|
});
|
|
1709
1717
|
if (t === "pdf")
|
|
1710
|
-
return u(
|
|
1718
|
+
return u(Zt, {
|
|
1711
1719
|
buttonText: (n == null ? void 0 : n.viewDocumentText) || "View Document",
|
|
1712
1720
|
handleClick: (_) => {
|
|
1713
1721
|
p(_, ee.ViewAgreementClick);
|
|
@@ -1715,7 +1723,7 @@ const j = (e) => u("button", {
|
|
|
1715
1723
|
});
|
|
1716
1724
|
}
|
|
1717
1725
|
return e();
|
|
1718
|
-
},
|
|
1726
|
+
}, tr = (e, t) => {
|
|
1719
1727
|
const n = ie(0), r = () => {
|
|
1720
1728
|
if (e.current) {
|
|
1721
1729
|
const o = e.current;
|
|
@@ -1724,8 +1732,8 @@ const j = (e) => u("button", {
|
|
|
1724
1732
|
n.current !== d && t(), n.current = d, o.style.height = `${d}px`;
|
|
1725
1733
|
}
|
|
1726
1734
|
};
|
|
1727
|
-
return
|
|
1728
|
-
},
|
|
1735
|
+
return q(r, []), r;
|
|
1736
|
+
}, mt = ({
|
|
1729
1737
|
ariaLabel: e,
|
|
1730
1738
|
border: t,
|
|
1731
1739
|
choiceStyle: n = {},
|
|
@@ -1738,71 +1746,73 @@ const j = (e) => u("button", {
|
|
|
1738
1746
|
useMobileStyling: d,
|
|
1739
1747
|
error: p,
|
|
1740
1748
|
allowTextEntry: s,
|
|
1741
|
-
|
|
1742
|
-
|
|
1749
|
+
noneOfTheAbove: _,
|
|
1750
|
+
promptText: f,
|
|
1751
|
+
onUserInputChanged: h
|
|
1743
1752
|
}) => {
|
|
1744
1753
|
const {
|
|
1745
|
-
styleNonce:
|
|
1746
|
-
viewDocument:
|
|
1747
|
-
} =
|
|
1754
|
+
styleNonce: m,
|
|
1755
|
+
viewDocument: y
|
|
1756
|
+
} = $((O) => ({
|
|
1748
1757
|
styleNonce: O.styleNonce,
|
|
1749
1758
|
viewDocument: O.viewDocument
|
|
1750
|
-
})), [
|
|
1751
|
-
|
|
1752
|
-
const
|
|
1759
|
+
})), [v, k] = D(!1);
|
|
1760
|
+
Io(y, t, m);
|
|
1761
|
+
const S = ({
|
|
1753
1762
|
isSelected: O,
|
|
1754
|
-
userText:
|
|
1763
|
+
userText: ue
|
|
1755
1764
|
}) => {
|
|
1756
|
-
|
|
1765
|
+
h && h({
|
|
1757
1766
|
id: l || "",
|
|
1758
1767
|
selected: O,
|
|
1759
1768
|
value: i,
|
|
1760
|
-
userText:
|
|
1769
|
+
userText: ue,
|
|
1770
|
+
noneOfTheAbove: _
|
|
1761
1771
|
});
|
|
1762
|
-
},
|
|
1763
|
-
O.stopPropagation(),
|
|
1772
|
+
}, E = (O) => {
|
|
1773
|
+
O.stopPropagation(), S({
|
|
1764
1774
|
isSelected: c || !o,
|
|
1765
1775
|
userText: a
|
|
1766
|
-
}),
|
|
1767
|
-
},
|
|
1768
|
-
|
|
1769
|
-
},
|
|
1770
|
-
|
|
1771
|
-
},
|
|
1772
|
-
(O.key === "Enter" || O.key === " ") &&
|
|
1773
|
-
},
|
|
1774
|
-
onClick: (O) =>
|
|
1775
|
-
onKeyPress: (O) =>
|
|
1776
|
+
}), k(!1);
|
|
1777
|
+
}, b = () => {
|
|
1778
|
+
v || k(!0);
|
|
1779
|
+
}, x = () => {
|
|
1780
|
+
v && k(!1);
|
|
1781
|
+
}, I = (O) => {
|
|
1782
|
+
(O.key === "Enter" || O.key === " ") && E(O);
|
|
1783
|
+
}, N = {
|
|
1784
|
+
onClick: (O) => E(O),
|
|
1785
|
+
onKeyPress: (O) => I(O)
|
|
1776
1786
|
};
|
|
1777
|
-
"ontouchstart" in
|
|
1778
|
-
const
|
|
1787
|
+
"ontouchstart" in y.documentElement ? (N.onTouchStart = x, N.onTouchCancel = x, N.onTouchEnd = x) : (N.onMouseDown = b, N.onMouseLeave = x);
|
|
1788
|
+
const T = c ? `radio-${l}` : `checkbox-${l}`, A = o || v ? [Me] : [], B = [...p ? [nr] : [], ...A], ve = r ? {
|
|
1779
1789
|
"aria-labelledby": `label-${l}`
|
|
1780
1790
|
} : {
|
|
1781
1791
|
"aria-label": e
|
|
1782
1792
|
};
|
|
1783
1793
|
return u("div", {
|
|
1784
|
-
className: R([...V(w.Choice, d),
|
|
1794
|
+
className: R([...V(w.Choice, d), ...B]),
|
|
1785
1795
|
id: `choice-div-${l}`,
|
|
1786
1796
|
style: {
|
|
1787
1797
|
...n,
|
|
1788
1798
|
...p ? {
|
|
1789
|
-
borderColor:
|
|
1799
|
+
borderColor: xe
|
|
1790
1800
|
} : {}
|
|
1791
1801
|
},
|
|
1792
|
-
...
|
|
1802
|
+
...N,
|
|
1793
1803
|
children: [u("div", {
|
|
1794
1804
|
className: R([w.ChoiceLabelContainer]),
|
|
1795
1805
|
children: [c ? u("div", {
|
|
1796
|
-
...
|
|
1797
|
-
className: R([w.ChoiceRadio, ...
|
|
1798
|
-
id:
|
|
1806
|
+
...ve,
|
|
1807
|
+
className: R([w.ChoiceRadio, ...A]),
|
|
1808
|
+
id: T,
|
|
1799
1809
|
role: "radio",
|
|
1800
1810
|
tabIndex: 0
|
|
1801
1811
|
}) : u("div", {
|
|
1802
1812
|
"aria-checked": o,
|
|
1803
1813
|
"aria-labelledby": `label-${l}`,
|
|
1804
1814
|
className: w.ChoiceCheckbox,
|
|
1805
|
-
id:
|
|
1815
|
+
id: T,
|
|
1806
1816
|
role: "checkbox",
|
|
1807
1817
|
style: o ? {
|
|
1808
1818
|
backgroundColor: t,
|
|
@@ -1825,24 +1835,24 @@ const j = (e) => u("button", {
|
|
|
1825
1835
|
})
|
|
1826
1836
|
}), r && u("label", {
|
|
1827
1837
|
className: R(V(w.ChoiceLabel, d)),
|
|
1828
|
-
htmlFor:
|
|
1838
|
+
htmlFor: T,
|
|
1829
1839
|
id: `label-${l}`,
|
|
1830
1840
|
children: r
|
|
1831
1841
|
})]
|
|
1832
1842
|
}), s && o && u("div", {
|
|
1833
|
-
className: R([w.ChoiceTextEntryContainer, ...
|
|
1834
|
-
children: u(
|
|
1835
|
-
onTextChange: (O) =>
|
|
1843
|
+
className: R([w.ChoiceTextEntryContainer, ...A]),
|
|
1844
|
+
children: u(No, {
|
|
1845
|
+
onTextChange: (O) => S({
|
|
1836
1846
|
isSelected: o,
|
|
1837
1847
|
userText: O
|
|
1838
1848
|
}),
|
|
1839
|
-
promptText:
|
|
1849
|
+
promptText: f || "Please specify",
|
|
1840
1850
|
textValue: a,
|
|
1841
1851
|
useMobileStyling: d
|
|
1842
1852
|
})
|
|
1843
1853
|
})]
|
|
1844
1854
|
});
|
|
1845
|
-
},
|
|
1855
|
+
}, No = ({
|
|
1846
1856
|
promptText: e,
|
|
1847
1857
|
textValue: t,
|
|
1848
1858
|
onTextChange: n,
|
|
@@ -1850,10 +1860,10 @@ const j = (e) => u("button", {
|
|
|
1850
1860
|
}) => {
|
|
1851
1861
|
const o = ie(null), {
|
|
1852
1862
|
update: i
|
|
1853
|
-
} =
|
|
1863
|
+
} = $((l) => ({
|
|
1854
1864
|
update: l.update
|
|
1855
|
-
})), a =
|
|
1856
|
-
return
|
|
1865
|
+
})), a = tr(o, () => i());
|
|
1866
|
+
return q(() => {
|
|
1857
1867
|
o.current && o.current.focus();
|
|
1858
1868
|
}, []), u("textarea", {
|
|
1859
1869
|
"aria-label": e,
|
|
@@ -1878,21 +1888,21 @@ const j = (e) => u("button", {
|
|
|
1878
1888
|
rows: 1,
|
|
1879
1889
|
value: t
|
|
1880
1890
|
});
|
|
1881
|
-
},
|
|
1882
|
-
let r = e.getElementById(
|
|
1883
|
-
r || (r = e.createElement("style"), o = !0),
|
|
1884
|
-
},
|
|
1885
|
-
.${
|
|
1891
|
+
}, Gt = "ul-select-style-element", Me = "ul-select-active-dynamic-style", nr = "ul-select-error-dynamic-style", Ro = (e) => e.tagName.toLowerCase() === "style", Io = (e, t, n) => {
|
|
1892
|
+
let r = e.getElementById(Gt), o = !1;
|
|
1893
|
+
r || (r = e.createElement("style"), o = !0), Ro(r) && (r.id = Gt, n && (r.nonce = n), r.textContent = Lo(t), o && e.head.appendChild(r));
|
|
1894
|
+
}, Lo = (e) => `
|
|
1895
|
+
.${Me} {
|
|
1886
1896
|
border-color: ${e};
|
|
1887
1897
|
}
|
|
1888
|
-
.${
|
|
1898
|
+
.${Me} .${w.ChoiceRadio}, .${Me}.${w.ChoiceRadio} {
|
|
1889
1899
|
border: 6px solid ${e};
|
|
1890
1900
|
box-shadow: none;
|
|
1891
1901
|
}
|
|
1892
|
-
.${
|
|
1893
|
-
border-color: ${
|
|
1902
|
+
.${nr} {
|
|
1903
|
+
border-color: ${xe};
|
|
1894
1904
|
}
|
|
1895
|
-
`, be = (e) => (e == null ? void 0 : e.buttonText) || "Next",
|
|
1905
|
+
`, be = (e) => (e == null ? void 0 : e.buttonText) || "Next", rr = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Ao = ({
|
|
1896
1906
|
className: e,
|
|
1897
1907
|
message: t,
|
|
1898
1908
|
next: n,
|
|
@@ -1903,34 +1913,34 @@ const j = (e) => u("button", {
|
|
|
1903
1913
|
const {
|
|
1904
1914
|
useMobileStyling: a,
|
|
1905
1915
|
border: l
|
|
1906
|
-
} =
|
|
1907
|
-
useMobileStyling:
|
|
1908
|
-
border:
|
|
1909
|
-
})), [c, d] =
|
|
1910
|
-
|
|
1911
|
-
let
|
|
1912
|
-
if (
|
|
1916
|
+
} = $((T) => ({
|
|
1917
|
+
useMobileStyling: T.useMobileStyling,
|
|
1918
|
+
border: T.border
|
|
1919
|
+
})), [c, d] = D(!1), [p, s] = D(""), [_, f] = D(!1), h = r == null ? void 0 : r.collectName, m = (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", k = !!p.trim(), S = c && (!h || k), E = (T, A = !1) => {
|
|
1920
|
+
T.preventDefault(), T.stopPropagation();
|
|
1921
|
+
let B = null;
|
|
1922
|
+
if (!A) {
|
|
1913
1923
|
if (!S) {
|
|
1914
1924
|
f(!0);
|
|
1915
1925
|
return;
|
|
1916
1926
|
}
|
|
1917
|
-
|
|
1927
|
+
B = {
|
|
1918
1928
|
submitted: !0
|
|
1919
|
-
},
|
|
1929
|
+
}, h && (B.name = p);
|
|
1920
1930
|
}
|
|
1921
1931
|
n({
|
|
1922
|
-
value:
|
|
1932
|
+
value: B,
|
|
1923
1933
|
questionId: o,
|
|
1924
1934
|
type: i
|
|
1925
1935
|
});
|
|
1926
|
-
},
|
|
1927
|
-
|
|
1928
|
-
},
|
|
1929
|
-
|
|
1930
|
-
}, I = (
|
|
1931
|
-
|
|
1936
|
+
}, b = (T) => {
|
|
1937
|
+
T.preventDefault(), T.stopPropagation(), s(T.currentTarget.value);
|
|
1938
|
+
}, x = (T) => {
|
|
1939
|
+
T.currentTarget.style.borderColor = _ && !k ? xe : l;
|
|
1940
|
+
}, I = (T) => {
|
|
1941
|
+
T.currentTarget.style.borderColor = _ && !k ? xe : st;
|
|
1932
1942
|
}, N = () => u("div", {
|
|
1933
|
-
children: [u(
|
|
1943
|
+
children: [u(mt, {
|
|
1934
1944
|
allowTextEntry: !1,
|
|
1935
1945
|
border: l,
|
|
1936
1946
|
error: _ && !c,
|
|
@@ -1938,12 +1948,12 @@ const j = (e) => u("button", {
|
|
|
1938
1948
|
isSelected: c,
|
|
1939
1949
|
label: y,
|
|
1940
1950
|
onUserInputChanged: ({
|
|
1941
|
-
selected:
|
|
1951
|
+
selected: T
|
|
1942
1952
|
}) => {
|
|
1943
|
-
|
|
1953
|
+
T !== c && d(!c);
|
|
1944
1954
|
},
|
|
1945
1955
|
useMobileStyling: a
|
|
1946
|
-
}),
|
|
1956
|
+
}), h && u("input", {
|
|
1947
1957
|
"aria-label": m,
|
|
1948
1958
|
"aria-placeholder": m,
|
|
1949
1959
|
className: R(V(w.ConsentLegalNameInput, a)),
|
|
@@ -1951,24 +1961,24 @@ const j = (e) => u("button", {
|
|
|
1951
1961
|
maxLength: 250,
|
|
1952
1962
|
name: "name",
|
|
1953
1963
|
onBlur: I,
|
|
1954
|
-
onFocus:
|
|
1955
|
-
onInput:
|
|
1964
|
+
onFocus: x,
|
|
1965
|
+
onInput: b,
|
|
1956
1966
|
placeholder: m,
|
|
1957
|
-
style: _ && !
|
|
1958
|
-
borderColor:
|
|
1967
|
+
style: _ && !k ? {
|
|
1968
|
+
borderColor: xe
|
|
1959
1969
|
} : {},
|
|
1960
1970
|
tabIndex: 0,
|
|
1961
1971
|
value: p
|
|
1962
1972
|
}), u("div", {
|
|
1963
1973
|
className: "ul-card__button-wrapper ul-card-vertical__button-wrapper",
|
|
1964
|
-
children: [u(
|
|
1974
|
+
children: [u(F, {
|
|
1965
1975
|
className: S ? "" : w.ButtonDisabled,
|
|
1966
1976
|
onClick: E,
|
|
1967
1977
|
children: v
|
|
1968
1978
|
}), r.required === !1 && u("button", {
|
|
1969
1979
|
className: w.SkipButton,
|
|
1970
|
-
onClick: (
|
|
1971
|
-
children:
|
|
1980
|
+
onClick: (T) => E(T, !0),
|
|
1981
|
+
children: rr(r)
|
|
1972
1982
|
})]
|
|
1973
1983
|
})]
|
|
1974
1984
|
});
|
|
@@ -1988,7 +1998,7 @@ const j = (e) => u("button", {
|
|
|
1988
1998
|
embeddedType: "pdf"
|
|
1989
1999
|
})]
|
|
1990
2000
|
}, o);
|
|
1991
|
-
},
|
|
2001
|
+
}, Mo = ({
|
|
1992
2002
|
activeValue: e,
|
|
1993
2003
|
border: t,
|
|
1994
2004
|
icon: n,
|
|
@@ -2001,7 +2011,7 @@ const j = (e) => u("button", {
|
|
|
2001
2011
|
useMobileStyling: d,
|
|
2002
2012
|
value: p
|
|
2003
2013
|
}) => {
|
|
2004
|
-
const s = `option-${p}`, _ = a === de.Number, f = a === de.Star,
|
|
2014
|
+
const s = `option-${p}`, _ = a === de.Number, f = a === de.Star, h = _ && p === e, [m, y] = p <= e && f || p === e ? r ? [t, 1] : [t, 0.3] : ["", 1], v = () => {
|
|
2005
2015
|
switch (a) {
|
|
2006
2016
|
case de.Star:
|
|
2007
2017
|
return R([...V(w.LikertStar, d), ...V(`${w.LikertStar}-${p}`, d)]);
|
|
@@ -2010,7 +2020,7 @@ const j = (e) => u("button", {
|
|
|
2010
2020
|
default:
|
|
2011
2021
|
return R(p === i ? [...V(w.LikertNumber, d), ...V(`${w.LikertNumber}-${p}`, d), ...V("likert-last-option", d)] : [...V(w.LikertNumber, d), ...V(`${w.LikertNumber}-${p}`, d)]);
|
|
2012
2022
|
}
|
|
2013
|
-
},
|
|
2023
|
+
}, k = () => {
|
|
2014
2024
|
l(-1), c(!1);
|
|
2015
2025
|
};
|
|
2016
2026
|
return u("div", {
|
|
@@ -2023,17 +2033,17 @@ const j = (e) => u("button", {
|
|
|
2023
2033
|
onClick: () => o(),
|
|
2024
2034
|
onPointerDown: () => c(!0),
|
|
2025
2035
|
onPointerEnter: () => l(p),
|
|
2026
|
-
onPointerLeave:
|
|
2036
|
+
onPointerLeave: k,
|
|
2027
2037
|
role: "radio",
|
|
2028
2038
|
style: {
|
|
2029
2039
|
color: _ ? "" : m,
|
|
2030
|
-
borderColor:
|
|
2031
|
-
fillOpacity:
|
|
2032
|
-
zIndex:
|
|
2040
|
+
borderColor: h ? m : "",
|
|
2041
|
+
fillOpacity: h ? "" : y,
|
|
2042
|
+
zIndex: h ? 3 : "auto"
|
|
2033
2043
|
},
|
|
2034
2044
|
tabIndex: 0
|
|
2035
2045
|
});
|
|
2036
|
-
},
|
|
2046
|
+
}, $o = ({
|
|
2037
2047
|
className: e,
|
|
2038
2048
|
labels: t,
|
|
2039
2049
|
message: n,
|
|
@@ -2045,36 +2055,36 @@ const j = (e) => u("button", {
|
|
|
2045
2055
|
const {
|
|
2046
2056
|
border: l,
|
|
2047
2057
|
useMobileStyling: c
|
|
2048
|
-
} =
|
|
2058
|
+
} = $((N) => ({
|
|
2049
2059
|
border: N.border,
|
|
2050
2060
|
useMobileStyling: N.useMobileStyling
|
|
2051
|
-
})), [d, p] =
|
|
2061
|
+
})), [d, p] = D(-1), [s, _] = D(!1), f = t && t.left, h = t && t.right;
|
|
2052
2062
|
let m;
|
|
2053
2063
|
const {
|
|
2054
2064
|
range: y,
|
|
2055
2065
|
scaleLabelType: v,
|
|
2056
|
-
ratingIcons:
|
|
2066
|
+
ratingIcons: k
|
|
2057
2067
|
} = o;
|
|
2058
2068
|
y && (m = Number(y));
|
|
2059
2069
|
const S = m || 5, E = (N) => {
|
|
2060
|
-
var
|
|
2070
|
+
var T, A;
|
|
2061
2071
|
switch (v) {
|
|
2062
2072
|
case de.Star:
|
|
2063
|
-
return (
|
|
2073
|
+
return (T = k[0]) == null ? void 0 : T.svg;
|
|
2064
2074
|
case de.Smiley:
|
|
2065
|
-
return (
|
|
2075
|
+
return (A = k[N]) == null ? void 0 : A.svg;
|
|
2066
2076
|
default:
|
|
2067
2077
|
return String(N + 1);
|
|
2068
2078
|
}
|
|
2069
|
-
},
|
|
2070
|
-
const
|
|
2071
|
-
return u(
|
|
2079
|
+
}, b = [...Array(S)].map((N, T) => {
|
|
2080
|
+
const A = T + 1;
|
|
2081
|
+
return u(Mo, {
|
|
2072
2082
|
activeValue: d,
|
|
2073
2083
|
border: l,
|
|
2074
|
-
icon: E(
|
|
2084
|
+
icon: E(T),
|
|
2075
2085
|
isPressed: s,
|
|
2076
2086
|
onSubmit: () => r({
|
|
2077
|
-
value:
|
|
2087
|
+
value: A,
|
|
2078
2088
|
questionId: i,
|
|
2079
2089
|
type: a
|
|
2080
2090
|
}),
|
|
@@ -2083,31 +2093,31 @@ const j = (e) => u("button", {
|
|
|
2083
2093
|
setActiveValue: p,
|
|
2084
2094
|
setIsPressed: _,
|
|
2085
2095
|
useMobileStyling: c,
|
|
2086
|
-
value:
|
|
2087
|
-
},
|
|
2088
|
-
}),
|
|
2096
|
+
value: A
|
|
2097
|
+
}, T);
|
|
2098
|
+
}), x = (N) => {
|
|
2089
2099
|
N.preventDefault(), N.stopPropagation(), r({
|
|
2090
2100
|
value: null,
|
|
2091
2101
|
questionId: i,
|
|
2092
2102
|
type: a
|
|
2093
2103
|
});
|
|
2094
|
-
}, I = () => u(
|
|
2104
|
+
}, I = () => u(j, {
|
|
2095
2105
|
children: [u("div", {
|
|
2096
2106
|
"aria-label": `Rating (1 - ${S})`,
|
|
2097
2107
|
className: "ul-card--likert__numbers",
|
|
2098
2108
|
role: "radiogroup",
|
|
2099
|
-
children:
|
|
2109
|
+
children: b
|
|
2100
2110
|
}), u("div", {
|
|
2101
2111
|
className: "ul-card--likert__labels",
|
|
2102
2112
|
children: [u("span", {
|
|
2103
2113
|
children: f
|
|
2104
2114
|
}), u("span", {
|
|
2105
|
-
children:
|
|
2115
|
+
children: h
|
|
2106
2116
|
})]
|
|
2107
2117
|
}), !o.required && u("div", {
|
|
2108
2118
|
className: "ul-vertical-centered-container",
|
|
2109
|
-
children: u(
|
|
2110
|
-
onClick:
|
|
2119
|
+
children: u(F, {
|
|
2120
|
+
onClick: x,
|
|
2111
2121
|
children: be(o)
|
|
2112
2122
|
})
|
|
2113
2123
|
})]
|
|
@@ -2122,7 +2132,7 @@ const j = (e) => u("button", {
|
|
|
2122
2132
|
defaultBody: I
|
|
2123
2133
|
})]
|
|
2124
2134
|
}, i);
|
|
2125
|
-
},
|
|
2135
|
+
}, Oo = ({
|
|
2126
2136
|
className: e,
|
|
2127
2137
|
message: t,
|
|
2128
2138
|
next: n,
|
|
@@ -2134,35 +2144,35 @@ const j = (e) => u("button", {
|
|
|
2134
2144
|
const {
|
|
2135
2145
|
border: l,
|
|
2136
2146
|
useMobileStyling: c
|
|
2137
|
-
} =
|
|
2138
|
-
border:
|
|
2139
|
-
useMobileStyling:
|
|
2140
|
-
})), d = o.matrixColumn, p = r.length, s = d.length, _ = o.required, f = (
|
|
2141
|
-
|
|
2147
|
+
} = $((b) => ({
|
|
2148
|
+
border: b.border,
|
|
2149
|
+
useMobileStyling: b.useMobileStyling
|
|
2150
|
+
})), d = o.matrixColumn, p = r.length, s = d.length, _ = o.required, f = (b) => {
|
|
2151
|
+
b.preventDefault(), b.stopPropagation(), n({
|
|
2142
2152
|
value: m,
|
|
2143
2153
|
questionId: i,
|
|
2144
2154
|
type: a
|
|
2145
2155
|
});
|
|
2146
|
-
},
|
|
2156
|
+
}, h = r.reduce((b, x) => (b[x.id] = null, b), {}), [m, y] = D(h), v = (b, x) => {
|
|
2147
2157
|
y((I) => ({
|
|
2148
2158
|
...I,
|
|
2149
|
-
[
|
|
2159
|
+
[b]: x
|
|
2150
2160
|
}));
|
|
2151
|
-
},
|
|
2161
|
+
}, k = _ && Object.values(m).every((b) => b == null), S = r.map((b) => u(j, {
|
|
2152
2162
|
children: [u("div", {
|
|
2153
|
-
"aria-label":
|
|
2163
|
+
"aria-label": b.label,
|
|
2154
2164
|
className: "ul-matrix-row-label",
|
|
2155
|
-
children:
|
|
2156
|
-
},
|
|
2165
|
+
children: b.label
|
|
2166
|
+
}, b.label), u("div", {
|
|
2157
2167
|
className: "ul-matrix-row-options",
|
|
2158
2168
|
role: "radiogroup",
|
|
2159
|
-
children: d.map((
|
|
2169
|
+
children: d.map((x, I) => {
|
|
2160
2170
|
const N = I === s - 1;
|
|
2161
2171
|
return u("div", {
|
|
2162
2172
|
className: R("ul-matrix-option-wrapper", N && "ul-matrix-last-option"),
|
|
2163
|
-
children: u(
|
|
2173
|
+
children: u(mt, {
|
|
2164
2174
|
allowTextEntry: !1,
|
|
2165
|
-
ariaLabel: `${
|
|
2175
|
+
ariaLabel: `${b.label}-${x.label}`,
|
|
2166
2176
|
border: l,
|
|
2167
2177
|
choiceStyle: {
|
|
2168
2178
|
background: "transparent",
|
|
@@ -2171,37 +2181,36 @@ const j = (e) => u("button", {
|
|
|
2171
2181
|
padding: "0"
|
|
2172
2182
|
},
|
|
2173
2183
|
error: !1,
|
|
2174
|
-
id: `${
|
|
2184
|
+
id: `${b.id}-${x.value}`,
|
|
2175
2185
|
isRadio: !0,
|
|
2176
|
-
isSelected: m[
|
|
2177
|
-
onUserInputChanged: () => v(
|
|
2186
|
+
isSelected: m[b.id] === x.value,
|
|
2187
|
+
onUserInputChanged: () => v(b.id, x.value),
|
|
2178
2188
|
useMobileStyling: c
|
|
2179
2189
|
})
|
|
2180
|
-
},
|
|
2190
|
+
}, x.value);
|
|
2181
2191
|
})
|
|
2182
2192
|
})]
|
|
2183
2193
|
})), E = () => u("div", {
|
|
2184
2194
|
children: [u("div", {
|
|
2185
2195
|
className: "ul-card--matrix_container",
|
|
2186
|
-
style: `--maxWidth: ${br() - 74}px`,
|
|
2187
2196
|
children: u("div", {
|
|
2188
2197
|
className: "ul-card--matrix_grid",
|
|
2189
2198
|
style: `--numColumns: ${s}; --numRows: ${p + 1}`,
|
|
2190
|
-
children: [u("div", {}), " ", d.map((
|
|
2199
|
+
children: [u("div", {}), " ", d.map((b) => u("div", {
|
|
2191
2200
|
className: "ul-matrix-column-label",
|
|
2192
|
-
children:
|
|
2193
|
-
},
|
|
2201
|
+
children: b.label
|
|
2202
|
+
}, b.label)), S]
|
|
2194
2203
|
})
|
|
2195
2204
|
}), u("div", {
|
|
2196
2205
|
className: "ul-card__button-wrapper",
|
|
2197
|
-
children: u(
|
|
2198
|
-
disabled:
|
|
2206
|
+
children: u(F, {
|
|
2207
|
+
disabled: k,
|
|
2199
2208
|
children: be(o)
|
|
2200
2209
|
})
|
|
2201
2210
|
})]
|
|
2202
2211
|
});
|
|
2203
2212
|
return u("form", {
|
|
2204
|
-
className: R([e, w.FadeInTransition]),
|
|
2213
|
+
className: R([e, w.FadeInTransition, "ul-card__matrix"]),
|
|
2205
2214
|
id: "text-form",
|
|
2206
2215
|
onSubmit: f,
|
|
2207
2216
|
children: [u(Y, {
|
|
@@ -2212,7 +2221,7 @@ const j = (e) => u("button", {
|
|
|
2212
2221
|
defaultBody: E
|
|
2213
2222
|
})]
|
|
2214
2223
|
}, i);
|
|
2215
|
-
},
|
|
2224
|
+
}, or = ({
|
|
2216
2225
|
className: e,
|
|
2217
2226
|
message: t,
|
|
2218
2227
|
onSubmit: n,
|
|
@@ -2224,62 +2233,71 @@ const j = (e) => u("button", {
|
|
|
2224
2233
|
const {
|
|
2225
2234
|
border: l,
|
|
2226
2235
|
useMobileStyling: c
|
|
2227
|
-
} =
|
|
2228
|
-
border:
|
|
2229
|
-
useMobileStyling:
|
|
2230
|
-
})), d = r.reduce((
|
|
2236
|
+
} = $((x) => ({
|
|
2237
|
+
border: x.border,
|
|
2238
|
+
useMobileStyling: x.useMobileStyling
|
|
2239
|
+
})), d = r.reduce((x, I) => (x[I.id] = {
|
|
2231
2240
|
isSelected: !1
|
|
2232
|
-
},
|
|
2233
|
-
var
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
id
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
+
}, x), {}), [p, s] = D(d), _ = a === g.MultipleChoice, f = o.required, h = r.find((x) => {
|
|
2242
|
+
var I;
|
|
2243
|
+
return (I = x.optionProperties) == null ? void 0 : I.noneOfTheAbove;
|
|
2244
|
+
}), m = Object.entries(p).some(([x, I]) => {
|
|
2245
|
+
var A;
|
|
2246
|
+
const N = r.find((B) => `${B.id}` === x), T = I.userText === void 0 || I.userText.trim() === "";
|
|
2247
|
+
return ((A = N == null ? void 0 : N.optionProperties) == null ? void 0 : A.allowsTextEntry) && T && I.isSelected;
|
|
2248
|
+
}), y = Object.values(p).some((x) => x.isSelected), v = m || f && !y, k = r.map(({
|
|
2249
|
+
id: x,
|
|
2250
|
+
label: I,
|
|
2251
|
+
value: N,
|
|
2252
|
+
optionProperties: T
|
|
2241
2253
|
}) => {
|
|
2242
|
-
var
|
|
2243
|
-
const
|
|
2244
|
-
allowsTextEntry:
|
|
2245
|
-
|
|
2246
|
-
|
|
2254
|
+
var O, ue;
|
|
2255
|
+
const A = `${x}`, {
|
|
2256
|
+
allowsTextEntry: B,
|
|
2257
|
+
noneOfTheAbove: ve
|
|
2258
|
+
} = {
|
|
2259
|
+
allowsTextEntry: !1,
|
|
2260
|
+
noneOfTheAbove: !1,
|
|
2261
|
+
...T
|
|
2247
2262
|
};
|
|
2248
|
-
return u(
|
|
2249
|
-
allowTextEntry:
|
|
2263
|
+
return u(mt, {
|
|
2264
|
+
allowTextEntry: B,
|
|
2250
2265
|
border: l,
|
|
2251
2266
|
error: !1,
|
|
2252
|
-
id:
|
|
2267
|
+
id: A,
|
|
2253
2268
|
isRadio: _,
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2269
|
+
noneOfTheAbove: ve,
|
|
2270
|
+
isSelected: !!((O = p[A]) != null && O.isSelected),
|
|
2271
|
+
label: I,
|
|
2272
|
+
onUserInputChanged: (P) => E(P.id, P.selected, P.userText, P.noneOfTheAbove),
|
|
2257
2273
|
promptText: "Please specify",
|
|
2258
|
-
text: (
|
|
2274
|
+
text: (ue = p[x]) == null ? void 0 : ue.userText,
|
|
2259
2275
|
useMobileStyling: c,
|
|
2260
|
-
value:
|
|
2261
|
-
},
|
|
2262
|
-
}),
|
|
2263
|
-
|
|
2264
|
-
},
|
|
2265
|
-
const
|
|
2266
|
-
if (_
|
|
2267
|
-
for (const
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
isSelected
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2276
|
+
value: N
|
|
2277
|
+
}, A);
|
|
2278
|
+
}), S = (x) => {
|
|
2279
|
+
x.preventDefault(), x.stopPropagation(), n(p);
|
|
2280
|
+
}, E = (x, I, N, T) => {
|
|
2281
|
+
const A = Object.assign({}, p);
|
|
2282
|
+
if ((_ || T) && I)
|
|
2283
|
+
for (const B of Object.values(A))
|
|
2284
|
+
B.isSelected = !1, delete B.userText;
|
|
2285
|
+
else
|
|
2286
|
+
h && !T && p[h.id].isSelected && (A[h.id].isSelected = !1);
|
|
2287
|
+
A[x] = {
|
|
2288
|
+
isSelected: I,
|
|
2289
|
+
userText: N
|
|
2290
|
+
}, s(A);
|
|
2291
|
+
}, b = () => u("div", {
|
|
2274
2292
|
children: [u("div", {
|
|
2275
2293
|
className: R(V(w.ChoiceGroup, c)),
|
|
2276
2294
|
role: _ ? "radiogroup" : "group",
|
|
2277
|
-
children:
|
|
2295
|
+
children: k
|
|
2278
2296
|
}), u("div", {
|
|
2279
2297
|
className: "ul-card__button-wrapper",
|
|
2280
|
-
children: u(
|
|
2281
|
-
disabled:
|
|
2282
|
-
onClick:
|
|
2298
|
+
children: u(F, {
|
|
2299
|
+
disabled: v,
|
|
2300
|
+
onClick: S,
|
|
2283
2301
|
children: be(o)
|
|
2284
2302
|
})
|
|
2285
2303
|
})]
|
|
@@ -2287,23 +2305,23 @@ const j = (e) => u("button", {
|
|
|
2287
2305
|
return u("form", {
|
|
2288
2306
|
className: R([e, "ul-card--multiple", w.FadeInTransition]),
|
|
2289
2307
|
id: "text-form",
|
|
2290
|
-
onSubmit:
|
|
2308
|
+
onSubmit: S,
|
|
2291
2309
|
children: [u(Y, {
|
|
2292
2310
|
message: t,
|
|
2293
2311
|
properties: o
|
|
2294
2312
|
}), u(ae, {
|
|
2295
2313
|
properties: o,
|
|
2296
|
-
defaultBody:
|
|
2314
|
+
defaultBody: b
|
|
2297
2315
|
})]
|
|
2298
2316
|
}, i);
|
|
2299
|
-
},
|
|
2317
|
+
}, Uo = (e) => {
|
|
2300
2318
|
const {
|
|
2301
2319
|
questionId: t,
|
|
2302
2320
|
type: n,
|
|
2303
2321
|
next: r,
|
|
2304
2322
|
options: o
|
|
2305
2323
|
} = e;
|
|
2306
|
-
return u(
|
|
2324
|
+
return u(or, {
|
|
2307
2325
|
...e,
|
|
2308
2326
|
onSubmit: (a) => {
|
|
2309
2327
|
const l = Object.entries(a).find(([, _]) => _.isSelected) || [void 0, void 0], [c, d] = l, p = o.find((_) => `${_.id}` === c), s = d != null && d.userText ? {
|
|
@@ -2321,13 +2339,13 @@ const j = (e) => u("button", {
|
|
|
2321
2339
|
});
|
|
2322
2340
|
}
|
|
2323
2341
|
});
|
|
2324
|
-
},
|
|
2342
|
+
}, Vo = (e) => {
|
|
2325
2343
|
const {
|
|
2326
2344
|
questionId: t,
|
|
2327
2345
|
type: n,
|
|
2328
2346
|
next: r
|
|
2329
2347
|
} = e;
|
|
2330
|
-
return u(
|
|
2348
|
+
return u(or, {
|
|
2331
2349
|
...e,
|
|
2332
2350
|
onSubmit: (i) => {
|
|
2333
2351
|
const a = {}, l = Object.entries(i).reduce((d, [p, s]) => (d[p] = s.isSelected, d), a), c = Object.entries(i).reduce((d, [p, s]) => {
|
|
@@ -2346,7 +2364,7 @@ const j = (e) => u("button", {
|
|
|
2346
2364
|
});
|
|
2347
2365
|
}
|
|
2348
2366
|
});
|
|
2349
|
-
},
|
|
2367
|
+
}, Ho = ({
|
|
2350
2368
|
className: e,
|
|
2351
2369
|
props: {
|
|
2352
2370
|
labels: t,
|
|
@@ -2360,10 +2378,10 @@ const j = (e) => u("button", {
|
|
|
2360
2378
|
const {
|
|
2361
2379
|
border: l,
|
|
2362
2380
|
useMobileStyling: c
|
|
2363
|
-
} =
|
|
2364
|
-
border:
|
|
2365
|
-
useMobileStyling:
|
|
2366
|
-
})), d = t && t.left, p = t && t.right, s = [...Array(11)].map((
|
|
2381
|
+
} = $((h) => ({
|
|
2382
|
+
border: h.border,
|
|
2383
|
+
useMobileStyling: h.useMobileStyling
|
|
2384
|
+
})), d = t && t.left, p = t && t.right, s = [...Array(11)].map((h, m) => u("div", {
|
|
2367
2385
|
className: R([...V(w.NPSNumber, c), ...V(`${w.NPSNumber}-${m}`, c)]),
|
|
2368
2386
|
id: `option-${m}`,
|
|
2369
2387
|
onClick: () => o({
|
|
@@ -2382,13 +2400,13 @@ const j = (e) => u("button", {
|
|
|
2382
2400
|
y.currentTarget.style.zIndex = "2", y.currentTarget.style.borderColor = l;
|
|
2383
2401
|
},
|
|
2384
2402
|
onPointerLeave: (y) => {
|
|
2385
|
-
y.currentTarget.style.zIndex = "auto", y.currentTarget.style.borderColor =
|
|
2403
|
+
y.currentTarget.style.zIndex = "auto", y.currentTarget.style.borderColor = st;
|
|
2386
2404
|
},
|
|
2387
2405
|
role: "radio",
|
|
2388
2406
|
tabIndex: 0,
|
|
2389
2407
|
children: m
|
|
2390
|
-
}, m)), _ = (
|
|
2391
|
-
|
|
2408
|
+
}, m)), _ = (h) => {
|
|
2409
|
+
h.preventDefault(), h.stopPropagation(), o({
|
|
2392
2410
|
value: null,
|
|
2393
2411
|
questionId: i,
|
|
2394
2412
|
type: a
|
|
@@ -2406,7 +2424,7 @@ const j = (e) => u("button", {
|
|
|
2406
2424
|
})]
|
|
2407
2425
|
}), !r.required && u("div", {
|
|
2408
2426
|
className: "ul-vertical-centered-container",
|
|
2409
|
-
children: u(
|
|
2427
|
+
children: u(F, {
|
|
2410
2428
|
onClick: _,
|
|
2411
2429
|
children: be(r)
|
|
2412
2430
|
})
|
|
@@ -2422,7 +2440,7 @@ const j = (e) => u("button", {
|
|
|
2422
2440
|
defaultBody: f
|
|
2423
2441
|
})]
|
|
2424
2442
|
}, i);
|
|
2425
|
-
},
|
|
2443
|
+
}, Bo = ({
|
|
2426
2444
|
className: e,
|
|
2427
2445
|
message: t,
|
|
2428
2446
|
next: n,
|
|
@@ -2434,22 +2452,22 @@ const j = (e) => u("button", {
|
|
|
2434
2452
|
border: a,
|
|
2435
2453
|
useMobileStyling: l,
|
|
2436
2454
|
update: c
|
|
2437
|
-
} =
|
|
2438
|
-
border:
|
|
2439
|
-
useMobileStyling:
|
|
2440
|
-
update:
|
|
2441
|
-
})), [d, p] =
|
|
2442
|
-
|
|
2443
|
-
}, y = (
|
|
2444
|
-
|
|
2455
|
+
} = $((b) => ({
|
|
2456
|
+
border: b.border,
|
|
2457
|
+
useMobileStyling: b.useMobileStyling,
|
|
2458
|
+
update: b.update
|
|
2459
|
+
})), [d, p] = D(""), s = ie(null), _ = d.trim(), f = r.required === !0 && !_, h = tr(s, () => c()), m = (b) => {
|
|
2460
|
+
h(), b.preventDefault(), b.stopPropagation(), p(b.currentTarget.value);
|
|
2461
|
+
}, y = (b) => {
|
|
2462
|
+
b.preventDefault(), b.stopPropagation(), n({
|
|
2445
2463
|
value: d,
|
|
2446
2464
|
questionId: o,
|
|
2447
2465
|
type: i
|
|
2448
2466
|
});
|
|
2449
|
-
}, v = r && r.openTextPlaceholder ? r.openTextPlaceholder : "",
|
|
2450
|
-
|
|
2451
|
-
}, S = (
|
|
2452
|
-
|
|
2467
|
+
}, v = r && r.openTextPlaceholder ? r.openTextPlaceholder : "", k = (b) => {
|
|
2468
|
+
b.currentTarget.style.borderColor = a;
|
|
2469
|
+
}, S = (b) => {
|
|
2470
|
+
b.currentTarget.style.borderColor = st;
|
|
2453
2471
|
}, E = () => u("div", {
|
|
2454
2472
|
className: "ul-card-text",
|
|
2455
2473
|
children: [u("div", {
|
|
@@ -2465,13 +2483,13 @@ const j = (e) => u("button", {
|
|
|
2465
2483
|
name: "text",
|
|
2466
2484
|
onBlur: S,
|
|
2467
2485
|
onChange: m,
|
|
2468
|
-
onFocus:
|
|
2486
|
+
onFocus: k,
|
|
2469
2487
|
placeholder: v,
|
|
2470
2488
|
ref: s,
|
|
2471
2489
|
role: "textbox",
|
|
2472
2490
|
tabIndex: 0
|
|
2473
2491
|
})
|
|
2474
|
-
}), u(
|
|
2492
|
+
}), u(F, {
|
|
2475
2493
|
disabled: f,
|
|
2476
2494
|
onClick: y,
|
|
2477
2495
|
style: {
|
|
@@ -2493,16 +2511,16 @@ const j = (e) => u("button", {
|
|
|
2493
2511
|
}, o);
|
|
2494
2512
|
};
|
|
2495
2513
|
var oe = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(oe || {});
|
|
2496
|
-
const
|
|
2514
|
+
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) => {
|
|
2497
2515
|
if (e === void 0)
|
|
2498
2516
|
return oe.RequestNeeded;
|
|
2499
2517
|
if (e) {
|
|
2500
|
-
if (!
|
|
2518
|
+
if (!Do(e, t))
|
|
2501
2519
|
return oe.RequestNeeded;
|
|
2502
2520
|
} else
|
|
2503
2521
|
return oe.TryAgain;
|
|
2504
2522
|
return oe.Ready;
|
|
2505
|
-
},
|
|
2523
|
+
}, Qt = {
|
|
2506
2524
|
avStream: null,
|
|
2507
2525
|
currentPage: null,
|
|
2508
2526
|
mediaRecordingUids: null,
|
|
@@ -2512,16 +2530,16 @@ const Be = (e) => e.type === q.AvPermission, rr = (e) => e.type === q.ScreenPerm
|
|
|
2512
2530
|
recordingMediaTypes: void 0,
|
|
2513
2531
|
screenPermissionRequested: !1,
|
|
2514
2532
|
type: void 0
|
|
2515
|
-
}, K =
|
|
2516
|
-
...
|
|
2533
|
+
}, K = Jn((e) => ({
|
|
2534
|
+
...Qt,
|
|
2517
2535
|
reset: () => {
|
|
2518
|
-
e(
|
|
2536
|
+
e(Qt);
|
|
2519
2537
|
},
|
|
2520
2538
|
updatePage: (t) => {
|
|
2521
2539
|
e(t);
|
|
2522
2540
|
}
|
|
2523
2541
|
}));
|
|
2524
|
-
function
|
|
2542
|
+
function ot({
|
|
2525
2543
|
currentPage: e,
|
|
2526
2544
|
pages: t
|
|
2527
2545
|
}) {
|
|
@@ -2531,14 +2549,14 @@ function nt({
|
|
|
2531
2549
|
updatePage: o
|
|
2532
2550
|
} = K.getState(), {
|
|
2533
2551
|
recorderEventEmitter: i
|
|
2534
|
-
} =
|
|
2552
|
+
} = $.getState();
|
|
2535
2553
|
i.emit(H.AvPermission, {
|
|
2536
2554
|
[L.PermissionDescriptors]: e.permissionDescriptors,
|
|
2537
2555
|
[L.StreamReadyCallback]: (a, l) => {
|
|
2538
2556
|
if (n === a)
|
|
2539
2557
|
return;
|
|
2540
2558
|
let c = e;
|
|
2541
|
-
if (a && !e.permissionDescriptors.includes(
|
|
2559
|
+
if (a && !e.permissionDescriptors.includes(Se.Camera)) {
|
|
2542
2560
|
const d = t.indexOf(e), p = l != null && l.active ? d + 2 : d + 1;
|
|
2543
2561
|
l != null && l.active && r && i.emit(H.BeginRecording, {
|
|
2544
2562
|
[L.RecordingMediaTypes]: r,
|
|
@@ -2554,7 +2572,7 @@ function nt({
|
|
|
2554
2572
|
}
|
|
2555
2573
|
});
|
|
2556
2574
|
}
|
|
2557
|
-
function
|
|
2575
|
+
function jo({
|
|
2558
2576
|
pages: e,
|
|
2559
2577
|
userId: t,
|
|
2560
2578
|
responseGroupUid: n,
|
|
@@ -2567,7 +2585,7 @@ function Do({
|
|
|
2567
2585
|
} = K.getState(), {
|
|
2568
2586
|
eventEmitFn: l,
|
|
2569
2587
|
recorderEventEmitter: c
|
|
2570
|
-
} =
|
|
2588
|
+
} = $.getState(), d = {
|
|
2571
2589
|
questionId: o,
|
|
2572
2590
|
surveyId: r,
|
|
2573
2591
|
visitorId: t,
|
|
@@ -2575,42 +2593,42 @@ function Do({
|
|
|
2575
2593
|
};
|
|
2576
2594
|
let p = 0;
|
|
2577
2595
|
c.emit(ee.RecordedTaskPermissionScreen), l(ee.RecordedTaskPermissionScreen), c.emit(H.PermissionStatus, {
|
|
2578
|
-
[L.PermissionStatusCallback]: (_, f,
|
|
2596
|
+
[L.PermissionStatusCallback]: (_, f, h, m) => {
|
|
2579
2597
|
const y = e[p], {
|
|
2580
2598
|
type: v
|
|
2581
|
-
} = y,
|
|
2582
|
-
if (
|
|
2599
|
+
} = y, k = [Q.Screen];
|
|
2600
|
+
if (De(y)) {
|
|
2583
2601
|
const {
|
|
2584
2602
|
permissionDescriptors: S
|
|
2585
|
-
} = y, E = S == null ? void 0 : S.includes(
|
|
2586
|
-
E &&
|
|
2587
|
-
const
|
|
2588
|
-
(
|
|
2603
|
+
} = y, E = S == null ? void 0 : S.includes(Se.Microphone), b = S == null ? void 0 : S.includes(Se.Camera);
|
|
2604
|
+
E && k.push(Q.Audio), b && k.push(Q.Video);
|
|
2605
|
+
const x = (_ == null ? void 0 : _.active) && !b, I = (_ == null ? void 0 : _.active) && f;
|
|
2606
|
+
(x || I) && p++;
|
|
2589
2607
|
}
|
|
2590
|
-
|
|
2591
|
-
[L.RecordingMediaTypes]:
|
|
2608
|
+
ir(e[p]) && h && (p++, c.emit(H.BeginRecording, {
|
|
2609
|
+
[L.RecordingMediaTypes]: k,
|
|
2592
2610
|
[L.StartRecordingCallback]: (S) => a({
|
|
2593
2611
|
mediaRecordingUids: S
|
|
2594
2612
|
})
|
|
2595
2613
|
})), a({
|
|
2596
2614
|
currentPage: e[p],
|
|
2597
2615
|
avStream: _,
|
|
2598
|
-
screenPermissionRequested:
|
|
2616
|
+
screenPermissionRequested: h,
|
|
2599
2617
|
nextQuestion: i,
|
|
2600
2618
|
type: v,
|
|
2601
2619
|
passthroughData: d,
|
|
2602
|
-
recordingMediaTypes:
|
|
2620
|
+
recordingMediaTypes: k,
|
|
2603
2621
|
captureStream: m
|
|
2604
2622
|
});
|
|
2605
2623
|
}
|
|
2606
2624
|
});
|
|
2607
2625
|
const s = e[p];
|
|
2608
|
-
return s.type ===
|
|
2626
|
+
return s.type === z.AvPermission && ot({
|
|
2609
2627
|
currentPage: s,
|
|
2610
2628
|
pages: e
|
|
2611
2629
|
}), s;
|
|
2612
2630
|
}
|
|
2613
|
-
function
|
|
2631
|
+
function it({
|
|
2614
2632
|
status: e
|
|
2615
2633
|
}) {
|
|
2616
2634
|
const {
|
|
@@ -2622,11 +2640,11 @@ function rt({
|
|
|
2622
2640
|
recorderEventEmitter: i,
|
|
2623
2641
|
handleUploadUpdate: a,
|
|
2624
2642
|
index: l
|
|
2625
|
-
} =
|
|
2643
|
+
} = $.getState(), c = {
|
|
2626
2644
|
value: {
|
|
2627
2645
|
taskStatus: e
|
|
2628
2646
|
},
|
|
2629
|
-
type:
|
|
2647
|
+
type: g.RecordedTask,
|
|
2630
2648
|
questionId: (n == null ? void 0 : n.questionId) || 1
|
|
2631
2649
|
};
|
|
2632
2650
|
n && i.emit(H.FinishTask, {
|
|
@@ -2662,14 +2680,14 @@ function rt({
|
|
|
2662
2680
|
}
|
|
2663
2681
|
});
|
|
2664
2682
|
}
|
|
2665
|
-
function
|
|
2683
|
+
function gt({
|
|
2666
2684
|
pages: e,
|
|
2667
2685
|
setIsRequestingPermission: t
|
|
2668
2686
|
}) {
|
|
2669
2687
|
const {
|
|
2670
2688
|
recorderEventEmitter: n,
|
|
2671
2689
|
eventEmitFn: r
|
|
2672
|
-
} =
|
|
2690
|
+
} = $.getState(), {
|
|
2673
2691
|
updatePage: o,
|
|
2674
2692
|
currentPage: i,
|
|
2675
2693
|
recordingMediaTypes: a,
|
|
@@ -2679,7 +2697,7 @@ function ht({
|
|
|
2679
2697
|
return;
|
|
2680
2698
|
const c = e.indexOf(i);
|
|
2681
2699
|
switch (i.type) {
|
|
2682
|
-
case
|
|
2700
|
+
case z.AvPermission: {
|
|
2683
2701
|
const d = l ? c + 2 : c + 1;
|
|
2684
2702
|
l && a && n.emit(H.BeginRecording, {
|
|
2685
2703
|
[L.RecordingMediaTypes]: a,
|
|
@@ -2693,7 +2711,7 @@ function ht({
|
|
|
2693
2711
|
});
|
|
2694
2712
|
return;
|
|
2695
2713
|
}
|
|
2696
|
-
case
|
|
2714
|
+
case z.ScreenPermission:
|
|
2697
2715
|
n.emit(H.ScreenPermission, {
|
|
2698
2716
|
[L.ScreenPermissionRequested]: t,
|
|
2699
2717
|
[L.StreamReadyCallback]: (d, p) => {
|
|
@@ -2714,17 +2732,17 @@ function ht({
|
|
|
2714
2732
|
}
|
|
2715
2733
|
});
|
|
2716
2734
|
return;
|
|
2717
|
-
case
|
|
2735
|
+
case z.StartTask:
|
|
2718
2736
|
r(ee.RecordedTaskStart), n.emit(ee.RecordedTaskStart), n.emit(H.StartTask), o({
|
|
2719
2737
|
currentPage: e[c + 1],
|
|
2720
2738
|
screenPermissionRequested: !0
|
|
2721
2739
|
});
|
|
2722
2740
|
return;
|
|
2723
|
-
case
|
|
2741
|
+
case z.CompleteTask:
|
|
2724
2742
|
return;
|
|
2725
2743
|
}
|
|
2726
2744
|
}
|
|
2727
|
-
const
|
|
2745
|
+
const sr = "ul-permission-graphics-container", lr = "ul-permission-body", cr = R([sr, "ul_recorded-task-inset-spacing"]), je = R(["ul-horizontal-button-container", "ul-horizontal-button-container-left"]), ur = ({
|
|
2728
2746
|
richTextBody: e
|
|
2729
2747
|
}) => u("div", {
|
|
2730
2748
|
className: "ul-rich-text-body",
|
|
@@ -2732,24 +2750,24 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2732
2750
|
__html: e
|
|
2733
2751
|
},
|
|
2734
2752
|
id: "ul-task-detail-container"
|
|
2735
|
-
}),
|
|
2753
|
+
}), Fe = ({
|
|
2736
2754
|
required: e,
|
|
2737
2755
|
skipButtonText: t,
|
|
2738
2756
|
bottom: n = !1
|
|
2739
|
-
}) => e ? null : u(
|
|
2757
|
+
}) => e ? null : u(F, {
|
|
2740
2758
|
className: R([n && "ul-skip-button-below", w.InactiveButton]),
|
|
2741
|
-
onClick:
|
|
2742
|
-
status:
|
|
2759
|
+
onClick: it.bind(null, {
|
|
2760
|
+
status: W.Abandoned
|
|
2743
2761
|
}),
|
|
2744
2762
|
children: t || "Skip"
|
|
2745
|
-
}),
|
|
2763
|
+
}), bt = (e) => {
|
|
2746
2764
|
const {
|
|
2747
2765
|
avStream: t,
|
|
2748
2766
|
captureStream: n,
|
|
2749
2767
|
recordingMediaTypes: r,
|
|
2750
2768
|
updatePage: o
|
|
2751
2769
|
} = K.getState(), i = (r == null ? void 0 : r.includes(Q.Audio)) || (r == null ? void 0 : r.includes(Q.Video));
|
|
2752
|
-
|
|
2770
|
+
q(() => {
|
|
2753
2771
|
const a = setInterval(() => {
|
|
2754
2772
|
i && t && !t.active ? o({
|
|
2755
2773
|
avStream: null,
|
|
@@ -2761,7 +2779,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2761
2779
|
}, 1e3);
|
|
2762
2780
|
return () => clearInterval(a);
|
|
2763
2781
|
}, [t, n, i, e, r, o]);
|
|
2764
|
-
},
|
|
2782
|
+
}, Fo = ({
|
|
2765
2783
|
content: e,
|
|
2766
2784
|
pages: t,
|
|
2767
2785
|
required: n
|
|
@@ -2771,24 +2789,24 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2771
2789
|
skipButtonText: o,
|
|
2772
2790
|
taskDetail: i
|
|
2773
2791
|
} = e;
|
|
2774
|
-
return
|
|
2792
|
+
return bt(t), u("div", {
|
|
2775
2793
|
className: "ul-task-page",
|
|
2776
|
-
children: [u(
|
|
2794
|
+
children: [i && u(ur, {
|
|
2777
2795
|
richTextBody: i
|
|
2778
2796
|
}), u("div", {
|
|
2779
|
-
className:
|
|
2780
|
-
children: [u(
|
|
2781
|
-
onClick:
|
|
2797
|
+
className: je,
|
|
2798
|
+
children: [u(F, {
|
|
2799
|
+
onClick: gt.bind(null, {
|
|
2782
2800
|
pages: t
|
|
2783
2801
|
}),
|
|
2784
2802
|
children: r
|
|
2785
|
-
}), u(
|
|
2803
|
+
}), u(Fe, {
|
|
2786
2804
|
required: n,
|
|
2787
2805
|
skipButtonText: o
|
|
2788
2806
|
})]
|
|
2789
2807
|
})]
|
|
2790
2808
|
}, "start-task");
|
|
2791
|
-
},
|
|
2809
|
+
}, qo = ({
|
|
2792
2810
|
content: e,
|
|
2793
2811
|
pages: t,
|
|
2794
2812
|
properties: n
|
|
@@ -2797,21 +2815,21 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2797
2815
|
buttonText: r,
|
|
2798
2816
|
skipButtonText: o
|
|
2799
2817
|
} = e;
|
|
2800
|
-
|
|
2818
|
+
bt(t);
|
|
2801
2819
|
const a = u(ae, {
|
|
2802
2820
|
properties: n,
|
|
2803
2821
|
defaultBody: () => u("div", {
|
|
2804
|
-
className:
|
|
2805
|
-
children: [u(
|
|
2822
|
+
className: je,
|
|
2823
|
+
children: [u(F, {
|
|
2806
2824
|
className: "ul-complete-task-button",
|
|
2807
|
-
onClick:
|
|
2808
|
-
status:
|
|
2825
|
+
onClick: it.bind(null, {
|
|
2826
|
+
status: W.Completed
|
|
2809
2827
|
}),
|
|
2810
2828
|
children: r
|
|
2811
|
-
}), u(
|
|
2829
|
+
}), u(F, {
|
|
2812
2830
|
className: R([w.InactiveButton]),
|
|
2813
|
-
onClick:
|
|
2814
|
-
status:
|
|
2831
|
+
onClick: it.bind(null, {
|
|
2832
|
+
status: W.GivenUp
|
|
2815
2833
|
}),
|
|
2816
2834
|
children: o
|
|
2817
2835
|
})]
|
|
@@ -2819,11 +2837,11 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2819
2837
|
});
|
|
2820
2838
|
return u("div", {
|
|
2821
2839
|
className: "ul-task-page",
|
|
2822
|
-
children: [u(
|
|
2840
|
+
children: [e.taskDetail && u(ur, {
|
|
2823
2841
|
richTextBody: e.taskDetail
|
|
2824
2842
|
}), a]
|
|
2825
2843
|
}, "complete-task");
|
|
2826
|
-
},
|
|
2844
|
+
}, zo = ({
|
|
2827
2845
|
content: e,
|
|
2828
2846
|
pages: t,
|
|
2829
2847
|
required: n
|
|
@@ -2831,10 +2849,10 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2831
2849
|
const {
|
|
2832
2850
|
buttonText: r,
|
|
2833
2851
|
skipButtonText: o
|
|
2834
|
-
} = e, [i] =
|
|
2852
|
+
} = e, [i] = $((c) => [c.tabTitle]), [a, l] = D(!1);
|
|
2835
2853
|
return u("div", {
|
|
2836
2854
|
children: [u("div", {
|
|
2837
|
-
className:
|
|
2855
|
+
className: cr,
|
|
2838
2856
|
children: [u("p", {
|
|
2839
2857
|
style: {
|
|
2840
2858
|
marginTop: "auto"
|
|
@@ -2843,33 +2861,33 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2843
2861
|
}), u("div", {
|
|
2844
2862
|
className: "ul-select-tab-container",
|
|
2845
2863
|
children: u("p", {
|
|
2846
|
-
className:
|
|
2864
|
+
className: lr,
|
|
2847
2865
|
children: i
|
|
2848
2866
|
})
|
|
2849
2867
|
})]
|
|
2850
2868
|
}), u("div", {
|
|
2851
|
-
className: n ? "" :
|
|
2852
|
-
children: [u(
|
|
2869
|
+
className: n ? "" : je,
|
|
2870
|
+
children: [u(F, {
|
|
2853
2871
|
disabled: a,
|
|
2854
|
-
onClick:
|
|
2872
|
+
onClick: gt.bind(null, {
|
|
2855
2873
|
pages: t,
|
|
2856
2874
|
setIsRequestingPermission: l
|
|
2857
2875
|
}),
|
|
2858
2876
|
children: r
|
|
2859
|
-
}), u(
|
|
2877
|
+
}), u(Fe, {
|
|
2860
2878
|
required: n,
|
|
2861
2879
|
skipButtonText: o
|
|
2862
2880
|
})]
|
|
2863
2881
|
})]
|
|
2864
2882
|
});
|
|
2865
|
-
},
|
|
2883
|
+
}, Wo = ({
|
|
2866
2884
|
content: e
|
|
2867
2885
|
}) => u("div", {
|
|
2868
|
-
className: R([
|
|
2886
|
+
className: R([sr, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"]),
|
|
2869
2887
|
dangerouslySetInnerHTML: {
|
|
2870
2888
|
__html: e.svg
|
|
2871
2889
|
}
|
|
2872
|
-
}, "ul-permission-request-graphic"),
|
|
2890
|
+
}, "ul-permission-request-graphic"), Zo = ({
|
|
2873
2891
|
content: e,
|
|
2874
2892
|
pages: t,
|
|
2875
2893
|
required: n
|
|
@@ -2879,10 +2897,10 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2879
2897
|
permissionDeniedBody: o,
|
|
2880
2898
|
skipButtonText: i,
|
|
2881
2899
|
tryAgainButtonText: a
|
|
2882
|
-
} = e, l =
|
|
2883
|
-
return
|
|
2900
|
+
} = e, l = De(t[0]) ? t[0] : null;
|
|
2901
|
+
return q(() => {
|
|
2884
2902
|
const c = setInterval(() => {
|
|
2885
|
-
l !== null &&
|
|
2903
|
+
l !== null && ot({
|
|
2886
2904
|
currentPage: l,
|
|
2887
2905
|
pages: t
|
|
2888
2906
|
});
|
|
@@ -2890,32 +2908,32 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2890
2908
|
return () => clearInterval(c);
|
|
2891
2909
|
}, [l, t]), l ? u("div", {
|
|
2892
2910
|
children: [u("div", {
|
|
2893
|
-
className:
|
|
2911
|
+
className: cr,
|
|
2894
2912
|
children: u("p", {
|
|
2895
2913
|
className: "ul-av-permission-denied-paragraph",
|
|
2896
2914
|
children: [u("span", {
|
|
2897
2915
|
className: "ul-av-permission-denied-headline",
|
|
2898
2916
|
children: r
|
|
2899
2917
|
}), u("span", {
|
|
2900
|
-
className:
|
|
2918
|
+
className: lr,
|
|
2901
2919
|
children: o
|
|
2902
2920
|
})]
|
|
2903
2921
|
})
|
|
2904
2922
|
}), u("div", {
|
|
2905
|
-
className:
|
|
2906
|
-
children: [u(
|
|
2907
|
-
onClick:
|
|
2923
|
+
className: je,
|
|
2924
|
+
children: [u(F, {
|
|
2925
|
+
onClick: ot.bind(null, {
|
|
2908
2926
|
currentPage: l,
|
|
2909
2927
|
pages: t
|
|
2910
2928
|
}),
|
|
2911
2929
|
children: a
|
|
2912
|
-
}), u(
|
|
2930
|
+
}), u(Fe, {
|
|
2913
2931
|
required: n,
|
|
2914
2932
|
skipButtonText: i
|
|
2915
2933
|
})]
|
|
2916
2934
|
})]
|
|
2917
2935
|
}) : null;
|
|
2918
|
-
},
|
|
2936
|
+
}, Go = ({
|
|
2919
2937
|
stream: e
|
|
2920
2938
|
}) => u("video", {
|
|
2921
2939
|
autoPlay: !0,
|
|
@@ -2925,7 +2943,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2925
2943
|
ref: (t) => {
|
|
2926
2944
|
t && (t.srcObject = e || null);
|
|
2927
2945
|
}
|
|
2928
|
-
}),
|
|
2946
|
+
}), Qo = ({
|
|
2929
2947
|
content: e,
|
|
2930
2948
|
pages: t,
|
|
2931
2949
|
required: n
|
|
@@ -2935,24 +2953,24 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2935
2953
|
} = e, {
|
|
2936
2954
|
avStream: o
|
|
2937
2955
|
} = K.getState();
|
|
2938
|
-
return
|
|
2939
|
-
children: [u(
|
|
2956
|
+
return bt(t), u("div", {
|
|
2957
|
+
children: [u(Go, {
|
|
2940
2958
|
stream: o
|
|
2941
2959
|
}), u("div", {
|
|
2942
2960
|
className: "ul-vertical-button-container-center",
|
|
2943
|
-
children: [u(
|
|
2944
|
-
onClick:
|
|
2961
|
+
children: [u(F, {
|
|
2962
|
+
onClick: gt.bind(null, {
|
|
2945
2963
|
pages: t
|
|
2946
2964
|
}),
|
|
2947
2965
|
children: e.buttonText
|
|
2948
|
-
}), u(
|
|
2966
|
+
}), u(Fe, {
|
|
2949
2967
|
bottom: !0,
|
|
2950
2968
|
required: n,
|
|
2951
2969
|
skipButtonText: r
|
|
2952
2970
|
})]
|
|
2953
2971
|
})]
|
|
2954
2972
|
});
|
|
2955
|
-
},
|
|
2973
|
+
}, Ko = ({
|
|
2956
2974
|
properties: e
|
|
2957
2975
|
}) => {
|
|
2958
2976
|
const {
|
|
@@ -2965,34 +2983,34 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
2965
2983
|
if (o === void 0)
|
|
2966
2984
|
return null;
|
|
2967
2985
|
switch (o == null ? void 0 : o.type) {
|
|
2968
|
-
case
|
|
2969
|
-
const i =
|
|
2970
|
-
return i === oe.RequestNeeded ? u(
|
|
2986
|
+
case z.AvPermission: {
|
|
2987
|
+
const i = ar(r, o);
|
|
2988
|
+
return i === oe.RequestNeeded ? u(Wo, {
|
|
2971
2989
|
content: o
|
|
2972
|
-
}) : i === oe.TryAgain ? u(
|
|
2990
|
+
}) : i === oe.TryAgain ? u(Zo, {
|
|
2973
2991
|
content: o,
|
|
2974
2992
|
pages: t,
|
|
2975
2993
|
required: n
|
|
2976
|
-
}) : u(
|
|
2994
|
+
}) : u(Qo, {
|
|
2977
2995
|
content: o,
|
|
2978
2996
|
pages: t,
|
|
2979
2997
|
required: n
|
|
2980
2998
|
});
|
|
2981
2999
|
}
|
|
2982
|
-
case
|
|
2983
|
-
return u(
|
|
3000
|
+
case z.ScreenPermission:
|
|
3001
|
+
return u(zo, {
|
|
2984
3002
|
content: o,
|
|
2985
3003
|
pages: t,
|
|
2986
3004
|
required: n
|
|
2987
3005
|
});
|
|
2988
|
-
case
|
|
2989
|
-
return u(
|
|
3006
|
+
case z.StartTask:
|
|
3007
|
+
return u(Fo, {
|
|
2990
3008
|
content: o,
|
|
2991
3009
|
pages: t,
|
|
2992
3010
|
required: n
|
|
2993
3011
|
});
|
|
2994
|
-
case
|
|
2995
|
-
return u(
|
|
3012
|
+
case z.CompleteTask:
|
|
3013
|
+
return u(qo, {
|
|
2996
3014
|
content: o,
|
|
2997
3015
|
pages: t,
|
|
2998
3016
|
properties: e
|
|
@@ -3000,13 +3018,13 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3000
3018
|
default:
|
|
3001
3019
|
return null;
|
|
3002
3020
|
}
|
|
3003
|
-
},
|
|
3021
|
+
}, Yo = ({
|
|
3004
3022
|
className: e,
|
|
3005
3023
|
properties: t,
|
|
3006
3024
|
next: n,
|
|
3007
3025
|
questionId: r
|
|
3008
3026
|
}) => {
|
|
3009
|
-
const o =
|
|
3027
|
+
const o = $(), {
|
|
3010
3028
|
surveyId: i,
|
|
3011
3029
|
responseGroupUid: a,
|
|
3012
3030
|
userId: l
|
|
@@ -3014,7 +3032,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3014
3032
|
screenPermissionRequested: d
|
|
3015
3033
|
} = c, p = K((m) => m.avStream);
|
|
3016
3034
|
let s = K((m) => m.currentPage);
|
|
3017
|
-
s || (s =
|
|
3035
|
+
s || (s = jo({
|
|
3018
3036
|
questionId: r,
|
|
3019
3037
|
surveyId: i,
|
|
3020
3038
|
next: (m) => {
|
|
@@ -3025,27 +3043,27 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3025
3043
|
userId: l
|
|
3026
3044
|
}));
|
|
3027
3045
|
let _ = s.headline, f = s.captionText;
|
|
3028
|
-
const
|
|
3029
|
-
return
|
|
3046
|
+
const h = ar(p, s);
|
|
3047
|
+
return ir(s) && d && (_ = s.permissionDeniedHeadline, f = s.permissionDeniedCaptionText), De(s) && h === oe.Ready && (_ = s.permissionGrantedHeadline, f = s.permissionGrantedCaptionText), u("div", {
|
|
3030
3048
|
className: R([e, "ul-center-horizontally", w.FadeInTransition]),
|
|
3031
3049
|
children: [u(Y, {
|
|
3032
3050
|
message: _,
|
|
3033
3051
|
properties: {
|
|
3034
3052
|
captionText: f
|
|
3035
3053
|
}
|
|
3036
|
-
}), u(
|
|
3054
|
+
}), u(Ko, {
|
|
3037
3055
|
properties: t
|
|
3038
3056
|
})]
|
|
3039
3057
|
});
|
|
3040
|
-
},
|
|
3058
|
+
}, Jo = {
|
|
3041
3059
|
"{{user_id}}": "externalUserId",
|
|
3042
3060
|
"{{email}}": "email"
|
|
3043
|
-
},
|
|
3061
|
+
}, Xo = (e = void 0, t = {}) => {
|
|
3044
3062
|
if (!e)
|
|
3045
3063
|
return e;
|
|
3046
3064
|
let n = e;
|
|
3047
3065
|
const r = [];
|
|
3048
|
-
for (const [c, d] of Object.entries(
|
|
3066
|
+
for (const [c, d] of Object.entries(Jo))
|
|
3049
3067
|
if (n.toLowerCase().includes(c))
|
|
3050
3068
|
if (t[d]) {
|
|
3051
3069
|
const p = new RegExp(c, "gi");
|
|
@@ -3059,7 +3077,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3059
3077
|
return o;
|
|
3060
3078
|
const l = a.map((c) => c.join("=")).join("&");
|
|
3061
3079
|
return `${o}?${l}`;
|
|
3062
|
-
},
|
|
3080
|
+
}, ei = ({
|
|
3063
3081
|
className: e,
|
|
3064
3082
|
message: t,
|
|
3065
3083
|
next: n,
|
|
@@ -3069,7 +3087,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3069
3087
|
}) => {
|
|
3070
3088
|
const {
|
|
3071
3089
|
visitorAttributes: a
|
|
3072
|
-
} =
|
|
3090
|
+
} = $((s) => ({
|
|
3073
3091
|
visitorAttributes: s.visitorAttributes
|
|
3074
3092
|
})), l = (s, _ = !1) => {
|
|
3075
3093
|
n({
|
|
@@ -3086,7 +3104,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3086
3104
|
type: i
|
|
3087
3105
|
});
|
|
3088
3106
|
}, d = () => {
|
|
3089
|
-
const s =
|
|
3107
|
+
const s = Xo(r && r.buttonUrl, a);
|
|
3090
3108
|
return u("div", {
|
|
3091
3109
|
className: "ul-card-button-group",
|
|
3092
3110
|
children: [u("a", {
|
|
@@ -3103,7 +3121,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3103
3121
|
}), r.required === !1 && u("button", {
|
|
3104
3122
|
className: w.SkipButton,
|
|
3105
3123
|
onClick: (_) => l(_, !0),
|
|
3106
|
-
children:
|
|
3124
|
+
children: rr(r)
|
|
3107
3125
|
})]
|
|
3108
3126
|
});
|
|
3109
3127
|
}, p = (s, _) => s ? u("div", {
|
|
@@ -3115,9 +3133,9 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3115
3133
|
}) : u("div", {
|
|
3116
3134
|
className: "ul-rich-text-body",
|
|
3117
3135
|
id: "ul-card__text-url-body-container",
|
|
3118
|
-
children: (_ ? _.split(/\n\s*\n/g) : []).map((f,
|
|
3136
|
+
children: (_ ? _.split(/\n\s*\n/g) : []).map((f, h) => u("p", {
|
|
3119
3137
|
children: f
|
|
3120
|
-
},
|
|
3138
|
+
}, h))
|
|
3121
3139
|
});
|
|
3122
3140
|
return u("div", {
|
|
3123
3141
|
className: R([e, "ul-card__text-url-prompt", w.FadeInTransition]),
|
|
@@ -3128,7 +3146,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3128
3146
|
properties: r
|
|
3129
3147
|
})]
|
|
3130
3148
|
}, o);
|
|
3131
|
-
},
|
|
3149
|
+
}, ti = ({
|
|
3132
3150
|
className: e,
|
|
3133
3151
|
questionId: t
|
|
3134
3152
|
}) => {
|
|
@@ -3137,13 +3155,13 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3137
3155
|
destroy: r,
|
|
3138
3156
|
endCard: o,
|
|
3139
3157
|
forceBrandedLogo: i
|
|
3140
|
-
} =
|
|
3158
|
+
} = $((c) => ({
|
|
3141
3159
|
border: c.border,
|
|
3142
3160
|
destroy: c.destroy,
|
|
3143
3161
|
endCard: c.endCard,
|
|
3144
3162
|
forceBrandedLogo: c.forceBrandedLogo
|
|
3145
3163
|
}));
|
|
3146
|
-
|
|
3164
|
+
q(() => {
|
|
3147
3165
|
setTimeout(() => {
|
|
3148
3166
|
r(fe);
|
|
3149
3167
|
}, i ? 4e3 : 2e3);
|
|
@@ -3188,12 +3206,12 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3188
3206
|
})
|
|
3189
3207
|
})
|
|
3190
3208
|
}, t);
|
|
3191
|
-
},
|
|
3209
|
+
}, ni = ({
|
|
3192
3210
|
className: e
|
|
3193
3211
|
}) => {
|
|
3194
3212
|
const {
|
|
3195
3213
|
uploadProgress: t
|
|
3196
|
-
} =
|
|
3214
|
+
} = $((i) => ({
|
|
3197
3215
|
uploadProgress: i.uploadProgress
|
|
3198
3216
|
}));
|
|
3199
3217
|
let n, r;
|
|
@@ -3226,7 +3244,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3226
3244
|
children: r
|
|
3227
3245
|
})]
|
|
3228
3246
|
});
|
|
3229
|
-
},
|
|
3247
|
+
}, Kt = ({
|
|
3230
3248
|
logoOnly: e = !1,
|
|
3231
3249
|
style: t = {}
|
|
3232
3250
|
}) => u("svg", {
|
|
@@ -3265,7 +3283,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3265
3283
|
fill: "black",
|
|
3266
3284
|
fillOpacity: "0.7"
|
|
3267
3285
|
})]
|
|
3268
|
-
}),
|
|
3286
|
+
}), ri = () => {
|
|
3269
3287
|
const {
|
|
3270
3288
|
border: e,
|
|
3271
3289
|
cards: t,
|
|
@@ -3277,7 +3295,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3277
3295
|
slugName: l,
|
|
3278
3296
|
surveyId: c,
|
|
3279
3297
|
viewedCardCount: d
|
|
3280
|
-
} =
|
|
3298
|
+
} = $((S) => ({
|
|
3281
3299
|
border: S.border,
|
|
3282
3300
|
cards: S.cards,
|
|
3283
3301
|
forceBrandedLogo: S.forceBrandedLogo,
|
|
@@ -3288,11 +3306,11 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3288
3306
|
slugName: S.slugName,
|
|
3289
3307
|
surveyId: S.surveyId,
|
|
3290
3308
|
viewedCardCount: S.viewedCardCount
|
|
3291
|
-
})), p = ie(null), s = t.filter((S) => S.type !==
|
|
3292
|
-
|
|
3293
|
-
p.current && (p.current.style.width = `${
|
|
3294
|
-
}, [
|
|
3295
|
-
const y = () => u(
|
|
3309
|
+
})), p = ie(null), s = t.filter((S) => S.type !== g.Uploading && S.type !== g.Thanks), _ = To(t, o), f = d + 1, h = f / (f + _), m = `${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${l}&utm_content=${c}${n && "&utm_term=poweredby_pill"}`;
|
|
3310
|
+
q(() => {
|
|
3311
|
+
p.current && (p.current.style.width = `${h * 100}%`);
|
|
3312
|
+
}, [h]);
|
|
3313
|
+
const y = () => u(j, {
|
|
3296
3314
|
children: [s.length > 1 && u("div", {
|
|
3297
3315
|
id: "ul-progress-bar-container",
|
|
3298
3316
|
children: u("div", {
|
|
@@ -3315,9 +3333,9 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3315
3333
|
style: {
|
|
3316
3334
|
display: "flex"
|
|
3317
3335
|
},
|
|
3318
|
-
children: [u(
|
|
3336
|
+
children: [u(Kt, {
|
|
3319
3337
|
logoOnly: !1
|
|
3320
|
-
}), n && u(
|
|
3338
|
+
}), n && u(Yt, {
|
|
3321
3339
|
style: {
|
|
3322
3340
|
display: "block",
|
|
3323
3341
|
margin: "auto 0 auto 4px",
|
|
@@ -3336,7 +3354,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3336
3354
|
className: "thank-you-card-link",
|
|
3337
3355
|
children: [u("div", {
|
|
3338
3356
|
className: "sprig-box-logo",
|
|
3339
|
-
children: u(
|
|
3357
|
+
children: u(Kt, {
|
|
3340
3358
|
logoOnly: !0,
|
|
3341
3359
|
style: {
|
|
3342
3360
|
margin: "auto"
|
|
@@ -3344,7 +3362,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3344
3362
|
})
|
|
3345
3363
|
}), u("div", {
|
|
3346
3364
|
children: u("p", {
|
|
3347
|
-
children: ["Capture insights about your own product", u(
|
|
3365
|
+
children: ["Capture insights about your own product", u(Yt, {
|
|
3348
3366
|
style: {
|
|
3349
3367
|
display: "inline-flex",
|
|
3350
3368
|
marginInlineStart: "4px",
|
|
@@ -3354,15 +3372,15 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3354
3372
|
})
|
|
3355
3373
|
})]
|
|
3356
3374
|
})
|
|
3357
|
-
}),
|
|
3375
|
+
}), k = t[o].type === g.Thanks;
|
|
3358
3376
|
return u("footer", {
|
|
3359
3377
|
className: `ul-footer ${r["userleap-platform"] === "link" ? "ul-footer__link" : ""}`,
|
|
3360
3378
|
style: a ? {} : {
|
|
3361
3379
|
marginBottom: "10px"
|
|
3362
3380
|
},
|
|
3363
|
-
children:
|
|
3381
|
+
children: k && n ? v() : y()
|
|
3364
3382
|
});
|
|
3365
|
-
},
|
|
3383
|
+
}, Yt = ({
|
|
3366
3384
|
style: e
|
|
3367
3385
|
}) => u("svg", {
|
|
3368
3386
|
fill: "none",
|
|
@@ -3384,7 +3402,7 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3384
3402
|
strokeLinejoin: "round",
|
|
3385
3403
|
strokeWidth: "1.35"
|
|
3386
3404
|
})]
|
|
3387
|
-
}),
|
|
3405
|
+
}), oi = () => {
|
|
3388
3406
|
const {
|
|
3389
3407
|
answers: e,
|
|
3390
3408
|
border: t,
|
|
@@ -3400,10 +3418,10 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3400
3418
|
next: s,
|
|
3401
3419
|
showStripes: _,
|
|
3402
3420
|
surveyId: f,
|
|
3403
|
-
update:
|
|
3421
|
+
update: h,
|
|
3404
3422
|
useMobileStyling: m,
|
|
3405
3423
|
viewDocument: y
|
|
3406
|
-
} =
|
|
3424
|
+
} = $((P) => ({
|
|
3407
3425
|
answers: P.answers,
|
|
3408
3426
|
border: P.border,
|
|
3409
3427
|
cards: P.cards,
|
|
@@ -3421,156 +3439,156 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3421
3439
|
update: P.update,
|
|
3422
3440
|
useMobileStyling: P.useMobileStyling,
|
|
3423
3441
|
viewDocument: P.viewDocument
|
|
3424
|
-
})), v = ie(null),
|
|
3442
|
+
})), v = ie(null), k = ie(!1), S = d["userleap-platform"], {
|
|
3425
3443
|
props: E,
|
|
3426
|
-
type:
|
|
3427
|
-
name:
|
|
3444
|
+
type: b,
|
|
3445
|
+
name: x
|
|
3428
3446
|
} = n[p], I = n.length;
|
|
3429
|
-
|
|
3430
|
-
v.current && (v.current.classList.contains("ul-app--visible") || v.current.classList.add("ul-app--visible"), !
|
|
3447
|
+
q(() => {
|
|
3448
|
+
v.current && (v.current.classList.contains("ul-app--visible") || v.current.classList.add("ul-app--visible"), !k.current && l && (k.current = !0, l(re.SurveyAppeared, {
|
|
3431
3449
|
name: re.SurveyAppeared,
|
|
3432
|
-
[
|
|
3450
|
+
[xr.SurveyId]: f
|
|
3433
3451
|
})));
|
|
3434
|
-
}, [l, f]),
|
|
3435
|
-
|
|
3436
|
-
}, [p,
|
|
3452
|
+
}, [l, f]), q(() => {
|
|
3453
|
+
h();
|
|
3454
|
+
}, [p, h]), q(() => {
|
|
3437
3455
|
o(() => r());
|
|
3438
3456
|
}, [r, o]);
|
|
3439
|
-
const N = () => r(fe),
|
|
3457
|
+
const N = () => r(fe), T = (P) => {
|
|
3440
3458
|
P.key === "Enter" && N();
|
|
3441
|
-
},
|
|
3459
|
+
}, A = async function(P) {
|
|
3442
3460
|
s({
|
|
3443
3461
|
data: P,
|
|
3444
3462
|
completeSurvey: () => {
|
|
3445
3463
|
i(fe);
|
|
3446
3464
|
},
|
|
3447
3465
|
endCard: a
|
|
3448
|
-
}),
|
|
3466
|
+
}), Cr(y);
|
|
3449
3467
|
};
|
|
3450
3468
|
if (e) {
|
|
3451
3469
|
for (const P of e)
|
|
3452
|
-
if (P.questionId ===
|
|
3470
|
+
if (P.questionId === x) {
|
|
3453
3471
|
let ne;
|
|
3454
|
-
if (
|
|
3455
|
-
const
|
|
3456
|
-
value:
|
|
3457
|
-
}) =>
|
|
3458
|
-
if (!
|
|
3472
|
+
if (b === g.MultipleChoice) {
|
|
3473
|
+
const se = E.options.find(({
|
|
3474
|
+
value: qe
|
|
3475
|
+
}) => qe === P.value);
|
|
3476
|
+
if (!se)
|
|
3459
3477
|
break;
|
|
3460
3478
|
ne = {
|
|
3461
|
-
[
|
|
3479
|
+
[se.id]: se.value
|
|
3462
3480
|
};
|
|
3463
3481
|
} else
|
|
3464
3482
|
ne = P.value;
|
|
3465
|
-
|
|
3483
|
+
A({
|
|
3466
3484
|
value: ne,
|
|
3467
|
-
type:
|
|
3485
|
+
type: b,
|
|
3468
3486
|
questionId: P.questionId
|
|
3469
3487
|
});
|
|
3470
3488
|
break;
|
|
3471
3489
|
}
|
|
3472
3490
|
}
|
|
3473
|
-
const
|
|
3491
|
+
const B = () => [Ke.Email, Ke.Link].includes(d["userleap-platform"]) ? !1 : !a || p + 1 !== I, ve = () => m ? {
|
|
3474
3492
|
borderColor: t
|
|
3475
3493
|
} : {
|
|
3476
3494
|
borderColor: t,
|
|
3477
3495
|
margin: "15px"
|
|
3478
|
-
},
|
|
3496
|
+
}, O = () => {
|
|
3479
3497
|
const P = {
|
|
3480
3498
|
className: "ul-card",
|
|
3481
|
-
next:
|
|
3482
|
-
questionId:
|
|
3483
|
-
type:
|
|
3499
|
+
next: A,
|
|
3500
|
+
questionId: x,
|
|
3501
|
+
type: b
|
|
3484
3502
|
};
|
|
3485
|
-
switch (
|
|
3486
|
-
case
|
|
3487
|
-
return U(
|
|
3503
|
+
switch (b) {
|
|
3504
|
+
case g.ConsentLegal:
|
|
3505
|
+
return U(Ao, {
|
|
3488
3506
|
...P,
|
|
3489
3507
|
...E,
|
|
3490
|
-
key:
|
|
3508
|
+
key: x
|
|
3491
3509
|
});
|
|
3492
|
-
case
|
|
3493
|
-
return U(Mo, {
|
|
3494
|
-
...P,
|
|
3495
|
-
...E,
|
|
3496
|
-
key: T
|
|
3497
|
-
});
|
|
3498
|
-
case b.Matrix:
|
|
3510
|
+
case g.Likert:
|
|
3499
3511
|
return U($o, {
|
|
3500
3512
|
...P,
|
|
3501
3513
|
...E,
|
|
3502
|
-
key:
|
|
3514
|
+
key: x
|
|
3503
3515
|
});
|
|
3504
|
-
case
|
|
3516
|
+
case g.Matrix:
|
|
3505
3517
|
return U(Oo, {
|
|
3506
3518
|
...P,
|
|
3507
3519
|
...E,
|
|
3508
|
-
key:
|
|
3520
|
+
key: x
|
|
3509
3521
|
});
|
|
3510
|
-
case
|
|
3522
|
+
case g.MultipleChoice:
|
|
3511
3523
|
return U(Uo, {
|
|
3512
3524
|
...P,
|
|
3513
3525
|
...E,
|
|
3514
|
-
key:
|
|
3526
|
+
key: x
|
|
3515
3527
|
});
|
|
3516
|
-
case
|
|
3528
|
+
case g.MultipleSelect:
|
|
3517
3529
|
return U(Vo, {
|
|
3518
3530
|
...P,
|
|
3519
|
-
|
|
3520
|
-
|
|
3531
|
+
...E,
|
|
3532
|
+
key: x
|
|
3521
3533
|
});
|
|
3522
|
-
case
|
|
3534
|
+
case g.NPS:
|
|
3523
3535
|
return U(Ho, {
|
|
3524
3536
|
...P,
|
|
3525
|
-
|
|
3526
|
-
|
|
3537
|
+
key: x,
|
|
3538
|
+
props: E
|
|
3527
3539
|
});
|
|
3528
|
-
case
|
|
3529
|
-
return U(
|
|
3540
|
+
case g.Open:
|
|
3541
|
+
return U(Bo, {
|
|
3530
3542
|
...P,
|
|
3531
3543
|
...E,
|
|
3532
|
-
key:
|
|
3544
|
+
key: x
|
|
3533
3545
|
});
|
|
3534
|
-
case
|
|
3535
|
-
return U(
|
|
3546
|
+
case g.RecordedTask:
|
|
3547
|
+
return U(Yo, {
|
|
3536
3548
|
...P,
|
|
3537
3549
|
...E,
|
|
3538
|
-
key:
|
|
3550
|
+
key: x
|
|
3539
3551
|
});
|
|
3540
|
-
case
|
|
3552
|
+
case g.TextUrlPrompt:
|
|
3541
3553
|
return U(ei, {
|
|
3542
3554
|
...P,
|
|
3543
3555
|
...E,
|
|
3544
|
-
key:
|
|
3556
|
+
key: x
|
|
3545
3557
|
});
|
|
3546
|
-
case
|
|
3558
|
+
case g.Thanks:
|
|
3547
3559
|
return U(ti, {
|
|
3548
3560
|
...P,
|
|
3549
3561
|
...E,
|
|
3550
|
-
key:
|
|
3562
|
+
key: x
|
|
3563
|
+
});
|
|
3564
|
+
case g.Uploading:
|
|
3565
|
+
return U(ni, {
|
|
3566
|
+
...P,
|
|
3567
|
+
...E,
|
|
3568
|
+
key: x
|
|
3551
3569
|
});
|
|
3552
|
-
case
|
|
3570
|
+
case g.VideoVoice:
|
|
3553
3571
|
return null;
|
|
3554
3572
|
default:
|
|
3555
3573
|
return null;
|
|
3556
3574
|
}
|
|
3557
|
-
},
|
|
3558
|
-
var
|
|
3559
|
-
const ne = window.sprigAPI,
|
|
3560
|
-
if (!ne || !
|
|
3575
|
+
}, ue = (P) => {
|
|
3576
|
+
var vt;
|
|
3577
|
+
const ne = window.sprigAPI, se = P.target;
|
|
3578
|
+
if (!ne || !se)
|
|
3561
3579
|
return;
|
|
3562
|
-
const
|
|
3563
|
-
for (const
|
|
3564
|
-
if (((
|
|
3565
|
-
P.preventDefault(), ne == null || ne.openUrl(
|
|
3580
|
+
const qe = [se, se.parentElement];
|
|
3581
|
+
for (const Ne of qe)
|
|
3582
|
+
if (((vt = Ne == null ? void 0 : Ne.tagName) == null ? void 0 : vt.toLowerCase()) === "a") {
|
|
3583
|
+
P.preventDefault(), ne == null || ne.openUrl(Ne.href);
|
|
3566
3584
|
return;
|
|
3567
3585
|
}
|
|
3568
3586
|
};
|
|
3569
3587
|
return u("div", {
|
|
3570
|
-
className: R("ul-app",
|
|
3588
|
+
className: R("ul-app", $e(d) ? "ul-app--visible" : "ul-app--overlay"),
|
|
3571
3589
|
dir: "auto",
|
|
3572
3590
|
id: fe,
|
|
3573
|
-
onClick:
|
|
3591
|
+
onClick: ue,
|
|
3574
3592
|
ref: v,
|
|
3575
3593
|
style: {
|
|
3576
3594
|
"--theme": t,
|
|
@@ -3582,14 +3600,14 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3582
3600
|
className: "ul-app__container",
|
|
3583
3601
|
children: u("div", {
|
|
3584
3602
|
className: R(V(w.CardContainer, m)),
|
|
3585
|
-
style:
|
|
3586
|
-
children: [
|
|
3603
|
+
style: ve(),
|
|
3604
|
+
children: [B() && u("div", {
|
|
3587
3605
|
className: R(V(w.CloseContainer, m)),
|
|
3588
3606
|
children: u("div", {
|
|
3589
3607
|
"aria-label": "Close button",
|
|
3590
3608
|
className: w.CloseButton,
|
|
3591
3609
|
onClick: N,
|
|
3592
|
-
onKeyPress:
|
|
3610
|
+
onKeyPress: T,
|
|
3593
3611
|
role: "button",
|
|
3594
3612
|
tabIndex: 0,
|
|
3595
3613
|
children: u("svg", {
|
|
@@ -3612,13 +3630,13 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3612
3630
|
children: "For development purposes only"
|
|
3613
3631
|
})
|
|
3614
3632
|
}), u("div", {
|
|
3615
|
-
className: R(
|
|
3616
|
-
children:
|
|
3617
|
-
}), u(
|
|
3633
|
+
className: R(yr(w.CardMainContent, S)),
|
|
3634
|
+
children: O()
|
|
3635
|
+
}), u(ri, {})]
|
|
3618
3636
|
})
|
|
3619
3637
|
})
|
|
3620
3638
|
});
|
|
3621
|
-
}, oi = '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;text-align:start;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#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;min-width:min-content}.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;max-width:var(--maxWidth);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}.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}#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:30px;justify-content:center}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}', ii = async (e, t) => {
|
|
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) => {
|
|
3622
3640
|
var r;
|
|
3623
3641
|
const n = await fetch(t, {
|
|
3624
3642
|
method: "POST",
|
|
@@ -3633,34 +3651,34 @@ const ir = "ul-permission-graphics-container", ar = "ul-permission-body", sr = R
|
|
|
3633
3651
|
return (r = o == null ? void 0 : o.upload) == null ? void 0 : r.url;
|
|
3634
3652
|
} else
|
|
3635
3653
|
return null;
|
|
3636
|
-
},
|
|
3654
|
+
}, dr = () => MediaRecorder.isTypeSupported(
|
|
3637
3655
|
"video/webm"
|
|
3638
3656
|
/* Webm */
|
|
3639
|
-
) ? "video/webm" : "video/mp4",
|
|
3657
|
+
) ? "video/webm" : "video/mp4", Jt = (e) => {
|
|
3640
3658
|
const t = {
|
|
3641
3659
|
audioBitsPerSecond: 128e3,
|
|
3642
3660
|
//standard setting based on documentation's example
|
|
3643
3661
|
videoBitsPerSecond: 25e5,
|
|
3644
|
-
mimeType:
|
|
3662
|
+
mimeType: dr()
|
|
3645
3663
|
};
|
|
3646
3664
|
return new MediaRecorder(e, t);
|
|
3647
|
-
},
|
|
3665
|
+
}, Xt = (e, t, n) => {
|
|
3648
3666
|
n[t] = [], e.ondataavailable = function(r) {
|
|
3649
3667
|
n[t].push(r.data);
|
|
3650
3668
|
}, e.currentMediaRecordingUid = t, e.start();
|
|
3651
3669
|
};
|
|
3652
|
-
function
|
|
3670
|
+
function en(e, t, n, r, o, i) {
|
|
3653
3671
|
if (e && e.state !== "inactive") {
|
|
3654
3672
|
const {
|
|
3655
3673
|
[L.BeginCallback]: a
|
|
3656
3674
|
} = r, l = e.currentMediaRecordingUid;
|
|
3657
3675
|
if (!l)
|
|
3658
3676
|
return;
|
|
3659
|
-
a && a(l), e.onstop = () =>
|
|
3677
|
+
a && a(l), e.onstop = () => si(t, e, n, r, l, o, i), e.stop();
|
|
3660
3678
|
}
|
|
3661
3679
|
}
|
|
3662
|
-
async function
|
|
3663
|
-
const l =
|
|
3680
|
+
async function si(e, t, n, r, o, i, a) {
|
|
3681
|
+
const l = $.getState().viewDocument, {
|
|
3664
3682
|
[L.UploadCallback]: c,
|
|
3665
3683
|
[L.ProgressCallback]: d
|
|
3666
3684
|
} = r, p = {
|
|
@@ -3668,7 +3686,7 @@ async function ai(e, t, n, r, o, i, a) {
|
|
|
3668
3686
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3669
3687
|
mediaRecordingUid: o,
|
|
3670
3688
|
...r[L.PassthroughData]
|
|
3671
|
-
}, s = await
|
|
3689
|
+
}, s = await ai(p, e);
|
|
3672
3690
|
if (!s) {
|
|
3673
3691
|
c && c(null, {
|
|
3674
3692
|
message: "failed to get upload url"
|
|
@@ -3676,30 +3694,30 @@ async function ai(e, t, n, r, o, i, a) {
|
|
|
3676
3694
|
return;
|
|
3677
3695
|
}
|
|
3678
3696
|
const _ = new Blob(a, {
|
|
3679
|
-
type:
|
|
3697
|
+
type: dr()
|
|
3680
3698
|
});
|
|
3681
3699
|
if (!l.defaultView)
|
|
3682
3700
|
return;
|
|
3683
|
-
const f = new l.defaultView.File([_], `recording video ${Date.now()}`),
|
|
3701
|
+
const f = new l.defaultView.File([_], `recording video ${Date.now()}`), h = i.createUpload({
|
|
3684
3702
|
// endpoint computed from backend separately and hacked together
|
|
3685
3703
|
endpoint: s,
|
|
3686
3704
|
file: f,
|
|
3687
3705
|
chunkSize: 5120
|
|
3688
3706
|
// Uploads the file in ~5mb chunks
|
|
3689
3707
|
});
|
|
3690
|
-
|
|
3708
|
+
h.on("error", (m) => {
|
|
3691
3709
|
c && c(null, m);
|
|
3692
|
-
}),
|
|
3710
|
+
}), h.on("progress", (m) => {
|
|
3693
3711
|
d && d(o, m);
|
|
3694
|
-
}),
|
|
3712
|
+
}), h.on("success", () => {
|
|
3695
3713
|
c && c(o, !0);
|
|
3696
3714
|
});
|
|
3697
3715
|
}
|
|
3698
|
-
const
|
|
3716
|
+
const li = {
|
|
3699
3717
|
chunks: {}
|
|
3700
|
-
},
|
|
3718
|
+
}, ci = {
|
|
3701
3719
|
state: {
|
|
3702
|
-
...
|
|
3720
|
+
...li
|
|
3703
3721
|
},
|
|
3704
3722
|
stopRecording(e) {
|
|
3705
3723
|
const {
|
|
@@ -3708,7 +3726,7 @@ const si = {
|
|
|
3708
3726
|
screenRecorder: r,
|
|
3709
3727
|
UpChunk: o
|
|
3710
3728
|
} = this.state, i = this.state.avStream && this.state.avStream.getVideoTracks().length > 0 ? Q.Video : Q.Audio;
|
|
3711
|
-
this.state.chunks && t && o && (n != null && n.currentMediaRecordingUid &&
|
|
3729
|
+
this.state.chunks && t && o && (n != null && n.currentMediaRecordingUid && en(n, t, i, e, o, this.state.chunks[n == null ? void 0 : n.currentMediaRecordingUid]), r != null && r.currentMediaRecordingUid && en(r, t, Q.Screen, e, o, this.state.chunks[r == null ? void 0 : r.currentMediaRecordingUid]));
|
|
3712
3730
|
},
|
|
3713
3731
|
handleCancelledStream(e) {
|
|
3714
3732
|
const t = e.getVideoTracks(), n = e.getAudioTracks();
|
|
@@ -3749,7 +3767,7 @@ const si = {
|
|
|
3749
3767
|
} = e;
|
|
3750
3768
|
try {
|
|
3751
3769
|
(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({
|
|
3752
|
-
video: n.includes(
|
|
3770
|
+
video: n.includes(Se.Camera),
|
|
3753
3771
|
audio: !0
|
|
3754
3772
|
}), ((i = this.state.captureStream) == null ? void 0 : i.getAudioTracks().length) === 0 && this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]), this.handleCancelledStream(this.state.avStream);
|
|
3755
3773
|
} catch (a) {
|
|
@@ -3786,14 +3804,14 @@ const si = {
|
|
|
3786
3804
|
return;
|
|
3787
3805
|
const r = [];
|
|
3788
3806
|
if (t.includes(Q.Video) && this.state.avStream) {
|
|
3789
|
-
this.state.avRecorder =
|
|
3790
|
-
const o =
|
|
3791
|
-
|
|
3807
|
+
this.state.avRecorder = Jt(this.state.avStream);
|
|
3808
|
+
const o = Ct();
|
|
3809
|
+
Xt(this.state.avRecorder, o, this.state.chunks), r.push(o);
|
|
3792
3810
|
}
|
|
3793
3811
|
if (t.includes(Q.Screen) && this.state.captureStream) {
|
|
3794
|
-
this.state.screenRecorder =
|
|
3795
|
-
const o =
|
|
3796
|
-
|
|
3812
|
+
this.state.screenRecorder = Jt(this.state.captureStream);
|
|
3813
|
+
const o = Ct();
|
|
3814
|
+
Xt(this.state.screenRecorder, o, this.state.chunks), r.push(o);
|
|
3797
3815
|
}
|
|
3798
3816
|
r && n && n(r);
|
|
3799
3817
|
},
|
|
@@ -3821,36 +3839,36 @@ const si = {
|
|
|
3821
3839
|
screenRecorder: i
|
|
3822
3840
|
} = this.state, {
|
|
3823
3841
|
allResponses: a
|
|
3824
|
-
} =
|
|
3842
|
+
} = $.getState(), l = er({
|
|
3825
3843
|
cards: n,
|
|
3826
3844
|
index: e,
|
|
3827
3845
|
hasEndCard: r,
|
|
3828
3846
|
allResponses: a
|
|
3829
3847
|
});
|
|
3830
|
-
l !== null && n[l].type ===
|
|
3848
|
+
l !== null && n[l].type === g.RecordedTask || [o, i].map((c) => {
|
|
3831
3849
|
c && (c.state === "recording" && c.stop(), c.stream.getTracks().map((d) => {
|
|
3832
3850
|
d.readyState === "live" && d.stop();
|
|
3833
3851
|
}));
|
|
3834
3852
|
});
|
|
3835
3853
|
}
|
|
3836
|
-
},
|
|
3837
|
-
Object.freeze(
|
|
3838
|
-
const
|
|
3839
|
-
const n = [...e], r = /* @__PURE__ */ new Set([
|
|
3854
|
+
}, at = Object.create(ci);
|
|
3855
|
+
Object.freeze(at);
|
|
3856
|
+
const ui = (e, t) => {
|
|
3857
|
+
const n = [...e], r = /* @__PURE__ */ new Set([g.VideoVoice, g.RecordedTask]);
|
|
3840
3858
|
return e.some((o) => r.has(o.type)) && n.push({
|
|
3841
3859
|
name: -2,
|
|
3842
3860
|
props: {
|
|
3843
3861
|
routingOptions: []
|
|
3844
3862
|
},
|
|
3845
|
-
type:
|
|
3863
|
+
type: g.Uploading
|
|
3846
3864
|
}), t && n.push({
|
|
3847
3865
|
name: -1,
|
|
3848
3866
|
props: {
|
|
3849
3867
|
routingOptions: []
|
|
3850
3868
|
},
|
|
3851
|
-
type:
|
|
3869
|
+
type: g.Thanks
|
|
3852
3870
|
}), n;
|
|
3853
|
-
},
|
|
3871
|
+
}, di = ({
|
|
3854
3872
|
mode: e = null,
|
|
3855
3873
|
viewWindow: t,
|
|
3856
3874
|
viewDocument: n
|
|
@@ -3872,8 +3890,8 @@ const ci = (e, t) => {
|
|
|
3872
3890
|
l: t.navigator.language
|
|
3873
3891
|
};
|
|
3874
3892
|
};
|
|
3875
|
-
function
|
|
3876
|
-
var
|
|
3893
|
+
function pi(e, t = !0) {
|
|
3894
|
+
var b;
|
|
3877
3895
|
const {
|
|
3878
3896
|
answers: n,
|
|
3879
3897
|
apiURL: r,
|
|
@@ -3885,13 +3903,13 @@ function di(e, t = !0) {
|
|
|
3885
3903
|
previewKey: d,
|
|
3886
3904
|
viewDocument: p,
|
|
3887
3905
|
viewWindow: s
|
|
3888
|
-
} = e, _ =
|
|
3889
|
-
|
|
3906
|
+
} = e, _ = $e(e.headers) ? e.frame : p.body, f = e.UpChunk || window.UpChunk, h = Ie, m = ui(e.cards, !!i);
|
|
3907
|
+
at.configure(h, {
|
|
3890
3908
|
cards: m,
|
|
3891
3909
|
hasEndCard: !!i,
|
|
3892
3910
|
apiURL: r,
|
|
3893
3911
|
UpChunk: f
|
|
3894
|
-
}),
|
|
3912
|
+
}), $.setState({
|
|
3895
3913
|
apiURL: r,
|
|
3896
3914
|
answers: n,
|
|
3897
3915
|
border: e.border,
|
|
@@ -3909,15 +3927,15 @@ function di(e, t = !0) {
|
|
|
3909
3927
|
hasViewedEmbed: !1,
|
|
3910
3928
|
isPreview: e.isPreview,
|
|
3911
3929
|
marketingUrl: "https://sprig.com",
|
|
3912
|
-
meta:
|
|
3930
|
+
meta: di({
|
|
3913
3931
|
mode: e.mode,
|
|
3914
3932
|
viewWindow: s,
|
|
3915
3933
|
viewDocument: p
|
|
3916
3934
|
}),
|
|
3917
3935
|
mode: e.mode,
|
|
3918
3936
|
previewKey: d,
|
|
3919
|
-
recorder:
|
|
3920
|
-
recorderEventEmitter:
|
|
3937
|
+
recorder: at,
|
|
3938
|
+
recorderEventEmitter: h,
|
|
3921
3939
|
responseGroupUid: e.responseGroupUid,
|
|
3922
3940
|
showStripes: e.showStripes,
|
|
3923
3941
|
showSurveyBrand: e.showSurveyBrand,
|
|
@@ -3936,24 +3954,24 @@ function di(e, t = !0) {
|
|
|
3936
3954
|
});
|
|
3937
3955
|
const {
|
|
3938
3956
|
seen: y
|
|
3939
|
-
} =
|
|
3957
|
+
} = $.getState();
|
|
3940
3958
|
y();
|
|
3941
3959
|
const {
|
|
3942
3960
|
head: v
|
|
3943
|
-
} = p,
|
|
3944
|
-
if (
|
|
3945
|
-
const
|
|
3946
|
-
|
|
3961
|
+
} = p, k = p.createElement("style");
|
|
3962
|
+
if (k.id = "sprig-style", k.textContent = ii, k.nonce = e.styleNonce, v.appendChild(k), e.fontFamily && l && parent) {
|
|
3963
|
+
const x = p.createElement("link");
|
|
3964
|
+
x.rel = "stylesheet", x.href = l, v.appendChild(x);
|
|
3947
3965
|
}
|
|
3948
|
-
e.customStyles &&
|
|
3949
|
-
const S = "2.
|
|
3966
|
+
e.customStyles && kr(p, o, e.styleNonce);
|
|
3967
|
+
const S = "2.26.3", E = a || ((b = c.eventEmitter) == null ? void 0 : b.emit);
|
|
3950
3968
|
E == null || E(ee.VerifyViewVersion, {
|
|
3951
|
-
[
|
|
3952
|
-
}), _ && t && he(u(
|
|
3969
|
+
[ye.ViewVersion]: S
|
|
3970
|
+
}), _ && t && he(u(oi, {}), _);
|
|
3953
3971
|
}
|
|
3954
|
-
const
|
|
3955
|
-
configure:
|
|
3972
|
+
const _i = {
|
|
3973
|
+
configure: pi
|
|
3956
3974
|
};
|
|
3957
3975
|
export {
|
|
3958
|
-
|
|
3976
|
+
_i as default
|
|
3959
3977
|
};
|