@sprig-technologies/sprig-browser 2.26.3 → 2.26.5
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-1NW718SB.cjs +8 -0
- package/dist/{index-aRW0ww4B.js → index-IMQ1RWe8.js} +1749 -1585
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js +1 -1
- package/dist/{view-OvpAXz1V.js → view-8NEFT9sC.js} +947 -905
- package/dist/{view-oIOZ7KpC.cjs → view-kCdkKjUT.cjs} +5 -5
- package/package.json +1 -1
- package/dist/index-R4BhGZ2a.cjs +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as zo, a as qo, T as X, i as ot, C as Vt, D as $t, A as ke, I as ce, e as $e, s as
|
|
2
|
-
var b = /* @__PURE__ */ ((e) => (e.ConsentLegal = "consentlegal", e.Likert = "likert", e.Matrix = "matrix", e.MultipleChoice = "multiplechoice", e.MultipleSelect = "multipleselect", e.NPS = "nps", e.Open = "open", e.RecordedTask = "recordedtask", e.TextUrlPrompt = "texturlprompt", e.Thanks = "thanks", e.Uploading = "uploading", e.VideoVoice = "videovoice", e))(b || {}), J = /* @__PURE__ */ ((e) => (e.Answered = "answered", e.Contains = "contains", e.DoesNotContain = "notcontains", e.DoesNotInclude = "list_dni", e.Equal = "eq", e.GivenUp = "given_up", e.GreaterThan = "gt", e.GreaterThanOrEqual = "gte", e.LessThan = "lt", e.LessThanOrEqual = "lte", e.ListAll = "list_all", e.ListAtLeastOne = "list_alo", e.ListExact = "list_exact", e.NotEqual = "neq", e.Partial = "partial", e.Skipped = "skipped", e))(J || {}), we = /* @__PURE__ */ ((e) => (e.Camera = "camera", e.Microphone = "microphone", e.Screen = "screen", e))(we || {}),
|
|
1
|
+
import { g as zo, a as qo, T as X, i as ot, C as Vt, D as $t, A as ke, I as ce, e as $e, s as We, S as he, b as Re, P as pt, c as wn, R as Wo, u as ht, d as Go, f as Zo, h as Yo, j as E, E as Qo, k as B, l as Ie, m as wt, n as q, o as U, M as re, v as mt, p as Ko, q as Jo, r as Xo, t as er } from "./index-IMQ1RWe8.js";
|
|
2
|
+
var b = /* @__PURE__ */ ((e) => (e.ConsentLegal = "consentlegal", e.Likert = "likert", e.Matrix = "matrix", e.MultipleChoice = "multiplechoice", e.MultipleSelect = "multipleselect", e.NPS = "nps", e.Open = "open", e.RecordedTask = "recordedtask", e.TextUrlPrompt = "texturlprompt", e.Thanks = "thanks", e.Uploading = "uploading", e.VideoVoice = "videovoice", e))(b || {}), J = /* @__PURE__ */ ((e) => (e.Answered = "answered", e.Contains = "contains", e.DoesNotContain = "notcontains", e.DoesNotInclude = "list_dni", e.Equal = "eq", e.GivenUp = "given_up", e.GreaterThan = "gt", e.GreaterThanOrEqual = "gte", e.LessThan = "lt", e.LessThanOrEqual = "lte", e.ListAll = "list_all", e.ListAtLeastOne = "list_alo", e.ListExact = "list_exact", e.NotEqual = "neq", e.Partial = "partial", e.Skipped = "skipped", e))(J || {}), we = /* @__PURE__ */ ((e) => (e.Camera = "camera", e.Microphone = "microphone", e.Screen = "screen", e))(we || {}), Y = /* @__PURE__ */ ((e) => (e.AvPermission = "av_permission", e.ScreenPermission = "screen_permission", e.StartTask = "start_task", e.CompleteTask = "complete_task", e))(Y || {}), be = /* @__PURE__ */ ((e) => (e.Number = "number", e.Smiley = "smiley", e.Star = "star", e))(be || {}), Oe, S, Sn, ve, Ht, En, ft, Tn, Ne = {}, Pn = [], tr = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Qe = Array.isArray;
|
|
3
3
|
function ae(e, t) {
|
|
4
4
|
for (var n in t)
|
|
5
5
|
e[n] = t[n];
|
|
@@ -9,7 +9,7 @@ function jn(e) {
|
|
|
9
9
|
var t = e.parentNode;
|
|
10
10
|
t && t.removeChild(e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function H(e, t, n) {
|
|
13
13
|
var o, r, i, s = {};
|
|
14
14
|
for (i in t)
|
|
15
15
|
i == "key" ? o = t[i] : i == "ref" ? r = t[i] : s[i] = t[i];
|
|
@@ -20,12 +20,12 @@ function B(e, t, n) {
|
|
|
20
20
|
}
|
|
21
21
|
function Le(e, t, n, o, r) {
|
|
22
22
|
var i = { type: e, props: t, key: n, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: r ?? ++Sn, __i: -1, __u: 0 };
|
|
23
|
-
return r == null &&
|
|
23
|
+
return r == null && S.vnode != null && S.vnode(i), i;
|
|
24
24
|
}
|
|
25
25
|
function Rn() {
|
|
26
26
|
return { current: null };
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function W(e) {
|
|
29
29
|
return e.children;
|
|
30
30
|
}
|
|
31
31
|
function ee(e, t) {
|
|
@@ -50,28 +50,28 @@ function In(e) {
|
|
|
50
50
|
return In(e);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
(!e.__d && (e.__d = !0) &&
|
|
53
|
+
function gt(e) {
|
|
54
|
+
(!e.__d && (e.__d = !0) && ve.push(e) && !Ge.__r++ || Ht !== S.debounceRendering) && ((Ht = S.debounceRendering) || En)(Ge);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ge() {
|
|
57
57
|
var e, t, n, o, r, i, s, a, d;
|
|
58
|
-
for (
|
|
59
|
-
e.__d && (t =
|
|
60
|
-
|
|
58
|
+
for (ve.sort(ft); e = ve.shift(); )
|
|
59
|
+
e.__d && (t = ve.length, o = void 0, i = (r = (n = e).__v).__e, a = [], d = [], (s = n.__P) && ((o = ae({}, r)).__v = r.__v + 1, S.vnode && S.vnode(o), St(s, o, r, n.__n, s.ownerSVGElement !== void 0, 32 & r.__u ? [i] : null, a, i ?? Se(r), !!(32 & r.__u), d), o.__.__k[o.__i] = o, Nn(a, o, d), o.__e != i && In(o)), ve.length > t && ve.sort(ft));
|
|
60
|
+
Ge.__r = 0;
|
|
61
61
|
}
|
|
62
62
|
function Ln(e, t, n, o, r, i, s, a, d, l, p) {
|
|
63
|
-
var c,
|
|
63
|
+
var c, m, h, g, f, x = o && o.__k || Pn, _ = t.length;
|
|
64
64
|
for (n.__d = d, nr(n, t, x), d = n.__d, c = 0; c < _; c++)
|
|
65
|
-
(
|
|
66
|
-
n.__d = d, n.__e =
|
|
65
|
+
(h = n.__k[c]) != null && typeof h != "boolean" && typeof h != "function" && (m = h.__i === -1 ? Ne : x[h.__i] || Ne, h.__i = c, St(e, h, m, r, i, s, a, d, l, p), g = h.__e, h.ref && m.ref != h.ref && (m.ref && Et(m.ref, null, h), p.push(h.ref, h.__c || g, h)), f == null && g != null && (f = g), 65536 & h.__u || m.__k === h.__k ? d = Dn(h, d, e) : typeof h.type == "function" && h.__d !== void 0 ? d = h.__d : g && (d = g.nextSibling), h.__d = void 0, h.__u &= -196609);
|
|
66
|
+
n.__d = d, n.__e = f;
|
|
67
67
|
}
|
|
68
68
|
function nr(e, t, n) {
|
|
69
69
|
var o, r, i, s, a, d = t.length, l = n.length, p = l, c = 0;
|
|
70
70
|
for (e.__k = [], o = 0; o < d; o++)
|
|
71
|
-
(r = e.__k[o] = (r = t[o]) == null || typeof r == "boolean" || typeof r == "function" ? null : typeof r == "string" || typeof r == "number" || typeof r == "bigint" || r.constructor == String ? Le(null, r, null, null, r) : Qe(r) ? Le(
|
|
71
|
+
(r = e.__k[o] = (r = t[o]) == null || typeof r == "boolean" || typeof r == "function" ? null : typeof r == "string" || typeof r == "number" || typeof r == "bigint" || r.constructor == String ? Le(null, r, null, null, r) : Qe(r) ? Le(W, { children: r }, null, null, null) : r.constructor === void 0 && r.__b > 0 ? Le(r.type, r.props, r.key, r.ref ? r.ref : null, r.__v) : r) != null ? (r.__ = e, r.__b = e.__b + 1, a = or(r, n, s = o + c, p), r.__i = a, i = null, a !== -1 && (p--, (i = n[a]) && (i.__u |= 131072)), i == null || i.__v === null ? (a == -1 && c--, typeof r.type != "function" && (r.__u |= 65536)) : a !== s && (a === s + 1 ? c++ : a > s ? p > d - s ? c += a - s : c-- : c = a < s && a == s - 1 ? a - s : 0, a !== o + c && (r.__u |= 65536))) : (i = n[o]) && i.key == null && i.__e && (i.__e == e.__d && (e.__d = Se(i)), vt(i, i, !1), n[o] = null, p--);
|
|
72
72
|
if (p)
|
|
73
73
|
for (o = 0; o < l; o++)
|
|
74
|
-
(i = n[o]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Se(i)),
|
|
74
|
+
(i = n[o]) != null && !(131072 & i.__u) && (i.__e == e.__d && (e.__d = Se(i)), vt(i, i));
|
|
75
75
|
}
|
|
76
76
|
function Dn(e, t, n) {
|
|
77
77
|
var o, r;
|
|
@@ -106,7 +106,7 @@ function or(e, t, n, o) {
|
|
|
106
106
|
}
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function Bt(e, t, n) {
|
|
110
110
|
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || tr.test(t) ? n : n + "px";
|
|
111
111
|
}
|
|
112
112
|
function Ve(e, t, n, o, r) {
|
|
@@ -118,10 +118,10 @@ function Ve(e, t, n, o, r) {
|
|
|
118
118
|
else {
|
|
119
119
|
if (typeof o == "string" && (e.style.cssText = o = ""), o)
|
|
120
120
|
for (t in o)
|
|
121
|
-
n && t in n ||
|
|
121
|
+
n && t in n || Bt(e.style, t, "");
|
|
122
122
|
if (n)
|
|
123
123
|
for (t in n)
|
|
124
|
-
o && n[t] === o[t] ||
|
|
124
|
+
o && n[t] === o[t] || Bt(e.style, t, n[t]);
|
|
125
125
|
}
|
|
126
126
|
else if (t[0] === "o" && t[1] === "n")
|
|
127
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 ? o ? n.u = o.u : (n.u = Date.now(), e.addEventListener(t, i ? zt : Ft, i)) : e.removeEventListener(t, i ? zt : Ft, i);
|
|
@@ -144,94 +144,94 @@ function Ft(e) {
|
|
|
144
144
|
return;
|
|
145
145
|
} else
|
|
146
146
|
e.t = Date.now();
|
|
147
|
-
return t(
|
|
147
|
+
return t(S.event ? S.event(e) : e);
|
|
148
148
|
}
|
|
149
149
|
function zt(e) {
|
|
150
|
-
return this.l[e.type + !0](
|
|
150
|
+
return this.l[e.type + !0](S.event ? S.event(e) : e);
|
|
151
151
|
}
|
|
152
152
|
function St(e, t, n, o, r, i, s, a, d, l) {
|
|
153
|
-
var p, c,
|
|
153
|
+
var p, c, m, h, g, f, x, _, y, k, T, w, C, O, I, v = t.type;
|
|
154
154
|
if (t.constructor !== void 0)
|
|
155
155
|
return null;
|
|
156
|
-
128 & n.__u && (d = !!(32 & n.__u), i = [a = t.__e = n.__e]), (p =
|
|
156
|
+
128 & n.__u && (d = !!(32 & n.__u), i = [a = t.__e = n.__e]), (p = S.__b) && p(t);
|
|
157
157
|
e:
|
|
158
|
-
if (typeof
|
|
158
|
+
if (typeof v == "function")
|
|
159
159
|
try {
|
|
160
|
-
if (_ = t.props,
|
|
161
|
-
|
|
160
|
+
if (_ = t.props, y = (p = v.contextType) && o[p.__c], k = p ? y ? y.props.value : p.__ : o, n.__c ? x = (c = t.__c = n.__c).__ = c.__E : ("prototype" in v && v.prototype.render ? t.__c = c = new v(_, k) : (t.__c = c = new ee(_, k), c.constructor = v, c.render = ir), y && y.sub(c), c.props = _, c.state || (c.state = {}), c.context = k, c.__n = o, m = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), v.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ae({}, c.__s)), ae(c.__s, v.getDerivedStateFromProps(_, c.__s))), h = c.props, g = c.state, c.__v = t, m)
|
|
161
|
+
v.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
162
162
|
else {
|
|
163
|
-
if (
|
|
164
|
-
for (t.__v !== n.__v && (c.props = _, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(
|
|
165
|
-
|
|
163
|
+
if (v.getDerivedStateFromProps == null && _ !== h && c.componentWillReceiveProps != null && c.componentWillReceiveProps(_, k), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(_, c.__s, k) === !1 || t.__v === n.__v)) {
|
|
164
|
+
for (t.__v !== n.__v && (c.props = _, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(P) {
|
|
165
|
+
P && (P.__ = t);
|
|
166
166
|
}), T = 0; T < c._sb.length; T++)
|
|
167
167
|
c.__h.push(c._sb[T]);
|
|
168
168
|
c._sb = [], c.__h.length && s.push(c);
|
|
169
169
|
break e;
|
|
170
170
|
}
|
|
171
171
|
c.componentWillUpdate != null && c.componentWillUpdate(_, c.__s, k), c.componentDidUpdate != null && c.__h.push(function() {
|
|
172
|
-
c.componentDidUpdate(
|
|
172
|
+
c.componentDidUpdate(h, g, f);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
if (c.context = k, c.props = _, c.__P = e, c.__e = !1,
|
|
176
|
-
for (c.state = c.__s, c.__d = !1,
|
|
177
|
-
c.__h.push(c._sb[
|
|
175
|
+
if (c.context = k, c.props = _, c.__P = e, c.__e = !1, w = S.__r, C = 0, "prototype" in v && v.prototype.render) {
|
|
176
|
+
for (c.state = c.__s, c.__d = !1, w && w(t), p = c.render(c.props, c.state, c.context), O = 0; O < c._sb.length; O++)
|
|
177
|
+
c.__h.push(c._sb[O]);
|
|
178
178
|
c._sb = [];
|
|
179
179
|
} else
|
|
180
180
|
do
|
|
181
|
-
c.__d = !1,
|
|
182
|
-
while (c.__d && ++
|
|
183
|
-
c.state = c.__s, c.getChildContext != null && (o = ae(ae({}, o), c.getChildContext())),
|
|
184
|
-
} catch (
|
|
185
|
-
t.__v = null, d || i != null ? (t.__e = a, t.__u |= d ? 160 : 32, i[i.indexOf(a)] = null) : (t.__e = n.__e, t.__k = n.__k),
|
|
181
|
+
c.__d = !1, w && w(t), p = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
182
|
+
while (c.__d && ++C < 25);
|
|
183
|
+
c.state = c.__s, c.getChildContext != null && (o = ae(ae({}, o), c.getChildContext())), m || c.getSnapshotBeforeUpdate == null || (f = c.getSnapshotBeforeUpdate(h, g)), Ln(e, Qe(I = p != null && p.type === W && p.key == null ? p.props.children : p) ? I : [I], t, n, o, r, i, s, a, d, l), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), x && (c.__E = c.__ = null);
|
|
184
|
+
} catch (P) {
|
|
185
|
+
t.__v = null, d || i != null ? (t.__e = a, t.__u |= d ? 160 : 32, i[i.indexOf(a)] = null) : (t.__e = n.__e, t.__k = n.__k), S.__e(P, t, n);
|
|
186
186
|
}
|
|
187
187
|
else
|
|
188
188
|
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = rr(n.__e, t, n, o, r, i, s, d, l);
|
|
189
|
-
(p =
|
|
189
|
+
(p = S.diffed) && p(t);
|
|
190
190
|
}
|
|
191
191
|
function Nn(e, t, n) {
|
|
192
192
|
t.__d = void 0;
|
|
193
193
|
for (var o = 0; o < n.length; o++)
|
|
194
194
|
Et(n[o], n[++o], n[++o]);
|
|
195
|
-
|
|
195
|
+
S.__c && S.__c(t, e), e.some(function(r) {
|
|
196
196
|
try {
|
|
197
197
|
e = r.__h, r.__h = [], e.some(function(i) {
|
|
198
198
|
i.call(r);
|
|
199
199
|
});
|
|
200
200
|
} catch (i) {
|
|
201
|
-
|
|
201
|
+
S.__e(i, r.__v);
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
function rr(e, t, n, o, r, i, s, a, d) {
|
|
206
|
-
var l, p, c,
|
|
207
|
-
if (
|
|
206
|
+
var l, p, c, m, h, g, f, x = n.props, _ = t.props, y = t.type;
|
|
207
|
+
if (y === "svg" && (r = !0), i != null) {
|
|
208
208
|
for (l = 0; l < i.length; l++)
|
|
209
|
-
if ((
|
|
210
|
-
e =
|
|
209
|
+
if ((h = i[l]) && "setAttribute" in h == !!y && (y ? h.localName === y : h.nodeType === 3)) {
|
|
210
|
+
e = h, i[l] = null;
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
if (e == null) {
|
|
215
|
-
if (
|
|
215
|
+
if (y === null)
|
|
216
216
|
return document.createTextNode(_);
|
|
217
|
-
e = r ? document.createElementNS("http://www.w3.org/2000/svg",
|
|
217
|
+
e = r ? document.createElementNS("http://www.w3.org/2000/svg", y) : document.createElement(y, _.is && _), i = null, a = !1;
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
219
|
+
if (y === null)
|
|
220
220
|
x === _ || a && e.data === _ || (e.data = _);
|
|
221
221
|
else {
|
|
222
222
|
if (i = i && Oe.call(e.childNodes), x = n.props || Ne, !a && i != null)
|
|
223
223
|
for (x = {}, l = 0; l < e.attributes.length; l++)
|
|
224
|
-
x[(
|
|
224
|
+
x[(h = e.attributes[l]).name] = h.value;
|
|
225
225
|
for (l in x)
|
|
226
|
-
|
|
226
|
+
h = x[l], l == "children" || (l == "dangerouslySetInnerHTML" ? c = h : l === "key" || l in _ || Ve(e, l, null, h, r));
|
|
227
227
|
for (l in _)
|
|
228
|
-
|
|
228
|
+
h = _[l], l == "children" ? m = h : l == "dangerouslySetInnerHTML" ? p = h : l == "value" ? g = h : l == "checked" ? f = h : l === "key" || a && typeof h != "function" || x[l] === h || Ve(e, l, h, x[l], r);
|
|
229
229
|
if (p)
|
|
230
230
|
a || c && (p.__html === c.__html || p.__html === e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
|
|
231
|
-
else if (c && (e.innerHTML = ""), Ln(e, Qe(
|
|
231
|
+
else if (c && (e.innerHTML = ""), Ln(e, Qe(m) ? m : [m], t, n, o, r && y !== "foreignObject", i, s, i ? i[0] : n.__k && Se(n, 0), a, d), i != null)
|
|
232
232
|
for (l = i.length; l--; )
|
|
233
233
|
i[l] != null && jn(i[l]);
|
|
234
|
-
a || (l = "value",
|
|
234
|
+
a || (l = "value", g !== void 0 && (g !== e[l] || y === "progress" && !g || y === "option" && g !== x[l]) && Ve(e, l, g, x[l], !1), l = "checked", f !== void 0 && f !== e[l] && Ve(e, l, f, x[l], !1));
|
|
235
235
|
}
|
|
236
236
|
return e;
|
|
237
237
|
}
|
|
@@ -239,23 +239,23 @@ function Et(e, t, n) {
|
|
|
239
239
|
try {
|
|
240
240
|
typeof e == "function" ? e(t) : e.current = t;
|
|
241
241
|
} catch (o) {
|
|
242
|
-
|
|
242
|
+
S.__e(o, n);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function vt(e, t, n) {
|
|
246
246
|
var o, r;
|
|
247
|
-
if (
|
|
247
|
+
if (S.unmount && S.unmount(e), (o = e.ref) && (o.current && o.current !== e.__e || Et(o, null, t)), (o = e.__c) != null) {
|
|
248
248
|
if (o.componentWillUnmount)
|
|
249
249
|
try {
|
|
250
250
|
o.componentWillUnmount();
|
|
251
251
|
} catch (i) {
|
|
252
|
-
|
|
252
|
+
S.__e(i, t);
|
|
253
253
|
}
|
|
254
254
|
o.base = o.__P = null, e.__c = void 0;
|
|
255
255
|
}
|
|
256
256
|
if (o = e.__k)
|
|
257
257
|
for (r = 0; r < o.length; r++)
|
|
258
|
-
o[r] &&
|
|
258
|
+
o[r] && vt(o[r], t, n || typeof e.type != "function");
|
|
259
259
|
n || e.__e == null || jn(e.__e), e.__ = e.__e = e.__d = void 0;
|
|
260
260
|
}
|
|
261
261
|
function ir(e, t, n) {
|
|
@@ -263,7 +263,7 @@ function ir(e, t, n) {
|
|
|
263
263
|
}
|
|
264
264
|
function Ee(e, t, n) {
|
|
265
265
|
var o, r, i, s;
|
|
266
|
-
|
|
266
|
+
S.__ && S.__(e, t), r = (o = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], St(t, e = (!o && n || t).__k = H(W, null, [e]), r || Ne, Ne, t.ownerSVGElement !== void 0, !o && n ? [n] : r ? null : t.firstChild ? Oe.call(t.childNodes) : null, i, !o && n ? n : r ? r.__e : t.firstChild, o, s), Nn(i, e, s);
|
|
267
267
|
}
|
|
268
268
|
function On(e, t) {
|
|
269
269
|
Ee(e, t, On);
|
|
@@ -283,7 +283,7 @@ function Mn(e, t) {
|
|
|
283
283
|
return i;
|
|
284
284
|
}, this.shouldComponentUpdate = function(s) {
|
|
285
285
|
this.props.value !== s.value && r.some(function(a) {
|
|
286
|
-
a.__e = !0,
|
|
286
|
+
a.__e = !0, gt(a);
|
|
287
287
|
});
|
|
288
288
|
}, this.sub = function(s) {
|
|
289
289
|
r.push(s);
|
|
@@ -295,7 +295,7 @@ function Mn(e, t) {
|
|
|
295
295
|
} };
|
|
296
296
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
297
297
|
}
|
|
298
|
-
Oe = Pn.slice,
|
|
298
|
+
Oe = Pn.slice, S = { __e: function(e, t, n, o) {
|
|
299
299
|
for (var r, i, s; t = t.__; )
|
|
300
300
|
if ((r = t.__c) && !r.__)
|
|
301
301
|
try {
|
|
@@ -307,12 +307,12 @@ Oe = Pn.slice, w = { __e: function(e, t, n, o) {
|
|
|
307
307
|
throw e;
|
|
308
308
|
} }, Sn = 0, ee.prototype.setState = function(e, t) {
|
|
309
309
|
var n;
|
|
310
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ae({}, this.state), typeof e == "function" && (e = e(ae({}, n), this.props)), e && ae(n, e), e != null && this.__v && (t && this._sb.push(t),
|
|
310
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ae({}, this.state), typeof e == "function" && (e = e(ae({}, n), this.props)), e && ae(n, e), e != null && this.__v && (t && this._sb.push(t), gt(this));
|
|
311
311
|
}, ee.prototype.forceUpdate = function(e) {
|
|
312
|
-
this.__v && (this.__e = !0, e && this.__h.push(e),
|
|
313
|
-
}, ee.prototype.render =
|
|
312
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), gt(this));
|
|
313
|
+
}, ee.prototype.render = W, ve = [], En = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, ft = function(e, t) {
|
|
314
314
|
return e.__v.__b - t.__v.__b;
|
|
315
|
-
},
|
|
315
|
+
}, Ge.__r = 0, Tn = 0;
|
|
316
316
|
function An(e) {
|
|
317
317
|
var t, n, o = "";
|
|
318
318
|
if (typeof e == "string" || typeof e == "number")
|
|
@@ -331,13 +331,13 @@ function M() {
|
|
|
331
331
|
(e = arguments[n++]) && (t = An(e)) && (o && (o += " "), o += t);
|
|
332
332
|
return o;
|
|
333
333
|
}
|
|
334
|
-
var de, V, rt, qt, Te = 0, Un = [],
|
|
334
|
+
var de, V, rt, qt, Te = 0, Un = [], He = [], Wt = S.__b, Gt = S.__r, Zt = S.diffed, Yt = S.__c, Qt = S.unmount;
|
|
335
335
|
function xe(e, t) {
|
|
336
|
-
|
|
336
|
+
S.__h && S.__h(V, e, Te || t), Te = 0;
|
|
337
337
|
var n = V.__H || (V.__H = { __: [], __h: [] });
|
|
338
|
-
return e >= n.__.length && n.__.push({ __V:
|
|
338
|
+
return e >= n.__.length && n.__.push({ __V: He }), n.__[e];
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function F(e) {
|
|
341
341
|
return Te = 1, Tt(Fn, e);
|
|
342
342
|
}
|
|
343
343
|
function Tt(e, t, n) {
|
|
@@ -349,18 +349,18 @@ function Tt(e, t, n) {
|
|
|
349
349
|
var r = function(a, d, l) {
|
|
350
350
|
if (!o.__c.__H)
|
|
351
351
|
return !0;
|
|
352
|
-
var p = o.__c.__H.__.filter(function(
|
|
353
|
-
return
|
|
352
|
+
var p = o.__c.__H.__.filter(function(m) {
|
|
353
|
+
return m.__c;
|
|
354
354
|
});
|
|
355
|
-
if (p.every(function(
|
|
356
|
-
return !
|
|
355
|
+
if (p.every(function(m) {
|
|
356
|
+
return !m.__N;
|
|
357
357
|
}))
|
|
358
358
|
return !i || i.call(this, a, d, l);
|
|
359
359
|
var c = !1;
|
|
360
|
-
return p.forEach(function(
|
|
361
|
-
if (
|
|
362
|
-
var
|
|
363
|
-
|
|
360
|
+
return p.forEach(function(m) {
|
|
361
|
+
if (m.__N) {
|
|
362
|
+
var h = m.__[0];
|
|
363
|
+
m.__ = m.__N, m.__N = void 0, h !== m.__[0] && (c = !0);
|
|
364
364
|
}
|
|
365
365
|
}), !(!c && o.__c.props === a) && (!i || i.call(this, a, d, l));
|
|
366
366
|
};
|
|
@@ -376,15 +376,15 @@ function Tt(e, t, n) {
|
|
|
376
376
|
}
|
|
377
377
|
return o.__N || o.__;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Z(e, t) {
|
|
380
380
|
var n = xe(de++, 3);
|
|
381
|
-
!
|
|
381
|
+
!S.__s && jt(n.__H, t) && (n.__ = e, n.i = t, V.__H.__h.push(n));
|
|
382
382
|
}
|
|
383
383
|
function Me(e, t) {
|
|
384
384
|
var n = xe(de++, 4);
|
|
385
|
-
!
|
|
385
|
+
!S.__s && jt(n.__H, t) && (n.__ = e, n.i = t, V.__h.push(n));
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function ue(e) {
|
|
388
388
|
return Te = 5, Ke(function() {
|
|
389
389
|
return { current: e };
|
|
390
390
|
}, []);
|
|
@@ -407,22 +407,22 @@ function $n(e, t) {
|
|
|
407
407
|
return e;
|
|
408
408
|
}, t);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Hn(e) {
|
|
411
411
|
var t = V.context[e.__c], n = xe(de++, 9);
|
|
412
412
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(V)), t.props.value) : e.__;
|
|
413
413
|
}
|
|
414
414
|
function Pt(e, t) {
|
|
415
|
-
|
|
415
|
+
S.useDebugValue && S.useDebugValue(t ? t(e) : e);
|
|
416
416
|
}
|
|
417
417
|
function ar(e) {
|
|
418
|
-
var t = xe(de++, 10), n =
|
|
418
|
+
var t = xe(de++, 10), n = F();
|
|
419
419
|
return t.__ = e, V.componentDidCatch || (V.componentDidCatch = function(o, r) {
|
|
420
420
|
t.__ && t.__(o, r), n[1](o);
|
|
421
421
|
}), [n[0], function() {
|
|
422
422
|
n[1](void 0);
|
|
423
423
|
}];
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Bn() {
|
|
426
426
|
var e = xe(de++, 11);
|
|
427
427
|
if (!e.__) {
|
|
428
428
|
for (var t = V.__v; t !== null && !t.__m && t.__ !== null; )
|
|
@@ -436,47 +436,47 @@ function lr() {
|
|
|
436
436
|
for (var e; e = Un.shift(); )
|
|
437
437
|
if (e.__P && e.__H)
|
|
438
438
|
try {
|
|
439
|
-
e.__H.__h.forEach(
|
|
439
|
+
e.__H.__h.forEach(Be), e.__H.__h.forEach(_t), e.__H.__h = [];
|
|
440
440
|
} catch (t) {
|
|
441
|
-
e.__H.__h = [],
|
|
441
|
+
e.__H.__h = [], S.__e(t, e.__v);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
|
|
445
|
-
V = null,
|
|
446
|
-
},
|
|
447
|
-
|
|
444
|
+
S.__b = function(e) {
|
|
445
|
+
V = null, Wt && Wt(e);
|
|
446
|
+
}, S.__r = function(e) {
|
|
447
|
+
Gt && Gt(e), de = 0;
|
|
448
448
|
var t = (V = e.__c).__H;
|
|
449
449
|
t && (rt === V ? (t.__h = [], V.__h = [], t.__.forEach(function(n) {
|
|
450
|
-
n.__N && (n.__ = n.__N), n.__V =
|
|
451
|
-
})) : (t.__h.forEach(
|
|
452
|
-
},
|
|
453
|
-
|
|
450
|
+
n.__N && (n.__ = n.__N), n.__V = He, n.__N = n.i = void 0;
|
|
451
|
+
})) : (t.__h.forEach(Be), t.__h.forEach(_t), t.__h = [], de = 0)), rt = V;
|
|
452
|
+
}, S.diffed = function(e) {
|
|
453
|
+
Zt && Zt(e);
|
|
454
454
|
var t = e.__c;
|
|
455
|
-
t && t.__H && (t.__H.__h.length && (Un.push(t) !== 1 && qt ===
|
|
456
|
-
n.i && (n.__H = n.i), n.__V !==
|
|
455
|
+
t && t.__H && (t.__H.__h.length && (Un.push(t) !== 1 && qt === S.requestAnimationFrame || ((qt = S.requestAnimationFrame) || cr)(lr)), t.__H.__.forEach(function(n) {
|
|
456
|
+
n.i && (n.__H = n.i), n.__V !== He && (n.__ = n.__V), n.i = void 0, n.__V = He;
|
|
457
457
|
})), rt = V = null;
|
|
458
|
-
},
|
|
458
|
+
}, S.__c = function(e, t) {
|
|
459
459
|
t.some(function(n) {
|
|
460
460
|
try {
|
|
461
|
-
n.__h.forEach(
|
|
462
|
-
return !o.__ ||
|
|
461
|
+
n.__h.forEach(Be), n.__h = n.__h.filter(function(o) {
|
|
462
|
+
return !o.__ || _t(o);
|
|
463
463
|
});
|
|
464
464
|
} catch (o) {
|
|
465
465
|
t.some(function(r) {
|
|
466
466
|
r.__h && (r.__h = []);
|
|
467
|
-
}), t = [],
|
|
467
|
+
}), t = [], S.__e(o, n.__v);
|
|
468
468
|
}
|
|
469
469
|
}), Yt && Yt(e, t);
|
|
470
|
-
},
|
|
470
|
+
}, S.unmount = function(e) {
|
|
471
471
|
Qt && Qt(e);
|
|
472
472
|
var t, n = e.__c;
|
|
473
473
|
n && n.__H && (n.__H.__.forEach(function(o) {
|
|
474
474
|
try {
|
|
475
|
-
|
|
475
|
+
Be(o);
|
|
476
476
|
} catch (r) {
|
|
477
477
|
t = r;
|
|
478
478
|
}
|
|
479
|
-
}), n.__H = void 0, t &&
|
|
479
|
+
}), n.__H = void 0, t && S.__e(t, n.__v));
|
|
480
480
|
};
|
|
481
481
|
var Kt = typeof requestAnimationFrame == "function";
|
|
482
482
|
function cr(e) {
|
|
@@ -485,11 +485,11 @@ function cr(e) {
|
|
|
485
485
|
}, o = setTimeout(n, 100);
|
|
486
486
|
Kt && (t = requestAnimationFrame(n));
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Be(e) {
|
|
489
489
|
var t = V, n = e.__c;
|
|
490
490
|
typeof n == "function" && (e.__c = void 0, n()), V = t;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function _t(e) {
|
|
493
493
|
var t = V;
|
|
494
494
|
e.__c = e.__(), V = t;
|
|
495
495
|
}
|
|
@@ -515,7 +515,7 @@ function bt(e, t) {
|
|
|
515
515
|
return !0;
|
|
516
516
|
return !1;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Ze(e) {
|
|
519
519
|
this.props = e;
|
|
520
520
|
}
|
|
521
521
|
function qn(e, t) {
|
|
@@ -524,19 +524,19 @@ function qn(e, t) {
|
|
|
524
524
|
return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, r) || !s : bt(this.props, r);
|
|
525
525
|
}
|
|
526
526
|
function o(r) {
|
|
527
|
-
return this.shouldComponentUpdate = n,
|
|
527
|
+
return this.shouldComponentUpdate = n, H(e, r);
|
|
528
528
|
}
|
|
529
529
|
return o.displayName = "Memo(" + (e.displayName || e.name) + ")", o.prototype.isReactComponent = !0, o.__f = !0, o;
|
|
530
530
|
}
|
|
531
|
-
(
|
|
531
|
+
(Ze.prototype = new ee()).isPureReactComponent = !0, Ze.prototype.shouldComponentUpdate = function(e, t) {
|
|
532
532
|
return bt(this.props, e) || bt(this.state, t);
|
|
533
533
|
};
|
|
534
|
-
var Jt =
|
|
535
|
-
|
|
534
|
+
var Jt = S.__b;
|
|
535
|
+
S.__b = function(e) {
|
|
536
536
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Jt && Jt(e);
|
|
537
537
|
};
|
|
538
538
|
var dr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
539
|
-
function
|
|
539
|
+
function Wn(e) {
|
|
540
540
|
function t(n) {
|
|
541
541
|
var o = zn({}, n);
|
|
542
542
|
return delete o.ref, e(o, n.ref || null);
|
|
@@ -545,15 +545,15 @@ function Gn(e) {
|
|
|
545
545
|
}
|
|
546
546
|
var Xt = function(e, t) {
|
|
547
547
|
return e == null ? null : le(le(e).map(t));
|
|
548
|
-
},
|
|
548
|
+
}, Gn = { map: Xt, forEach: Xt, count: function(e) {
|
|
549
549
|
return e ? le(e).length : 0;
|
|
550
550
|
}, only: function(e) {
|
|
551
551
|
var t = le(e);
|
|
552
552
|
if (t.length !== 1)
|
|
553
553
|
throw "Children.only";
|
|
554
554
|
return t[0];
|
|
555
|
-
}, toArray: le }, ur =
|
|
556
|
-
|
|
555
|
+
}, toArray: le }, ur = S.__e;
|
|
556
|
+
S.__e = function(e, t, n, o) {
|
|
557
557
|
if (e.then) {
|
|
558
558
|
for (var r, i = t; i = i.__; )
|
|
559
559
|
if ((r = i.__c) && r.__c)
|
|
@@ -561,12 +561,12 @@ w.__e = function(e, t, n, o) {
|
|
|
561
561
|
}
|
|
562
562
|
ur(e, t, n, o);
|
|
563
563
|
};
|
|
564
|
-
var en =
|
|
565
|
-
function
|
|
564
|
+
var en = S.unmount;
|
|
565
|
+
function Zn(e, t, n) {
|
|
566
566
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(o) {
|
|
567
567
|
typeof o.__c == "function" && o.__c();
|
|
568
568
|
}), e.__c.__H = null), (e = zn({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(o) {
|
|
569
|
-
return
|
|
569
|
+
return Zn(o, t, n);
|
|
570
570
|
})), e;
|
|
571
571
|
}
|
|
572
572
|
function Yn(e, t, n) {
|
|
@@ -592,14 +592,14 @@ function Kn(e) {
|
|
|
592
592
|
throw o;
|
|
593
593
|
if (!n)
|
|
594
594
|
throw t;
|
|
595
|
-
return
|
|
595
|
+
return H(n, i);
|
|
596
596
|
}
|
|
597
597
|
return r.displayName = "Lazy", r.__f = !0, r;
|
|
598
598
|
}
|
|
599
599
|
function Ce() {
|
|
600
600
|
this.u = null, this.o = null;
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
S.unmount = function(e) {
|
|
603
603
|
var t = e.__c;
|
|
604
604
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), en && en(e);
|
|
605
605
|
}, (De.prototype = new ee()).__c = function(e, t) {
|
|
@@ -627,12 +627,12 @@ w.unmount = function(e) {
|
|
|
627
627
|
if (this.__b) {
|
|
628
628
|
if (this.__v.__k) {
|
|
629
629
|
var n = document.createElement("div"), o = this.__v.__k[0].__c;
|
|
630
|
-
this.__v.__k[0] =
|
|
630
|
+
this.__v.__k[0] = Zn(this.__b, n, o.__O = o.__P);
|
|
631
631
|
}
|
|
632
632
|
this.__b = null;
|
|
633
633
|
}
|
|
634
|
-
var r = t.__a &&
|
|
635
|
-
return r && (r.__u &= -33), [
|
|
634
|
+
var r = t.__a && H(W, null, e.fallback);
|
|
635
|
+
return r && (r.__u &= -33), [H(W, null, t.__a ? null : e.children), r];
|
|
636
636
|
};
|
|
637
637
|
var tn = 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))
|
|
@@ -659,10 +659,10 @@ function hr(e) {
|
|
|
659
659
|
this.childNodes.push(o), t.i.appendChild(o);
|
|
660
660
|
}, removeChild: function(o) {
|
|
661
661
|
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.i.removeChild(o);
|
|
662
|
-
} }), Ee(
|
|
662
|
+
} }), Ee(H(pr, { context: t.context }, e.__v), t.l);
|
|
663
663
|
}
|
|
664
664
|
function Jn(e, t) {
|
|
665
|
-
var n =
|
|
665
|
+
var n = H(hr, { __v: e, i: t });
|
|
666
666
|
return n.containerInfo = t, n;
|
|
667
667
|
}
|
|
668
668
|
(Ce.prototype = new ee()).__a = function(e) {
|
|
@@ -686,7 +686,7 @@ function Jn(e, t) {
|
|
|
686
686
|
tn(e, n, t);
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
var Xn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
689
|
+
var Xn = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, mr = /^(?: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]/, fr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, gr = /[A-Z0-9]/g, vr = typeof document < "u", _r = function(e) {
|
|
690
690
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
691
691
|
};
|
|
692
692
|
function eo(e, t, n) {
|
|
@@ -702,7 +702,7 @@ ee.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
702
702
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
703
703
|
} });
|
|
704
704
|
});
|
|
705
|
-
var nn =
|
|
705
|
+
var nn = S.event;
|
|
706
706
|
function br() {
|
|
707
707
|
}
|
|
708
708
|
function xr() {
|
|
@@ -711,20 +711,20 @@ function xr() {
|
|
|
711
711
|
function yr() {
|
|
712
712
|
return this.defaultPrevented;
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
S.event = function(e) {
|
|
715
715
|
return nn && (e = nn(e)), e.persist = br, e.isPropagationStopped = xr, e.isDefaultPrevented = yr, e.nativeEvent = e;
|
|
716
716
|
};
|
|
717
717
|
var Rt, Cr = { enumerable: !1, configurable: !0, get: function() {
|
|
718
718
|
return this.class;
|
|
719
|
-
} }, on =
|
|
720
|
-
|
|
719
|
+
} }, on = S.vnode;
|
|
720
|
+
S.vnode = function(e) {
|
|
721
721
|
typeof e.type == "string" && function(t) {
|
|
722
722
|
var n = t.props, o = t.type, r = {};
|
|
723
723
|
for (var i in n) {
|
|
724
724
|
var s = n[i];
|
|
725
|
-
if (!(i === "value" && "defaultValue" in n && s == null ||
|
|
725
|
+
if (!(i === "value" && "defaultValue" in n && s == null || vr && i === "children" && o === "noscript" || i === "class" || i === "className")) {
|
|
726
726
|
var a = i.toLowerCase();
|
|
727
|
-
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || o !== "input" && o !== "textarea" ||
|
|
727
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : a === "ondoubleclick" ? i = "ondblclick" : a !== "onchange" || o !== "input" && o !== "textarea" || _r(n.type) ? a === "onfocus" ? i = "onfocusin" : a === "onblur" ? i = "onfocusout" : fr.test(i) ? i = a : o.indexOf("-") === -1 && mr.test(i) ? i = i.replace(gr, "-$&").toLowerCase() : s === null && (s = void 0) : a = i = "oninput", a === "oninput" && r[i = a] && (i = "oninputCapture"), r[i] = s;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
o == "select" && r.multiple && Array.isArray(r.value) && (r.value = le(n.children).forEach(function(d) {
|
|
@@ -734,12 +734,12 @@ w.vnode = function(e) {
|
|
|
734
734
|
})), n.class && !n.className ? (r.class = n.class, Object.defineProperty(r, "className", Cr)) : (n.className && !n.class || n.class && n.className) && (r.class = r.className = n.className), t.props = r;
|
|
735
735
|
}(e), e.$$typeof = Xn, on && on(e);
|
|
736
736
|
};
|
|
737
|
-
var rn =
|
|
738
|
-
|
|
737
|
+
var rn = S.__r;
|
|
738
|
+
S.__r = function(e) {
|
|
739
739
|
rn && rn(e), Rt = e.__c;
|
|
740
740
|
};
|
|
741
|
-
var sn =
|
|
742
|
-
|
|
741
|
+
var sn = S.diffed;
|
|
742
|
+
S.diffed = function(e) {
|
|
743
743
|
sn && sn(e);
|
|
744
744
|
var t = e.props, n = e.__e;
|
|
745
745
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Rt = null;
|
|
@@ -748,13 +748,13 @@ var no = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
|
748
748
|
return Rt.__n[e.__c].props.value;
|
|
749
749
|
} } } }, kr = "17.0.2";
|
|
750
750
|
function oo(e) {
|
|
751
|
-
return
|
|
751
|
+
return H.bind(null, e);
|
|
752
752
|
}
|
|
753
753
|
function Ae(e) {
|
|
754
754
|
return !!e && e.$$typeof === Xn;
|
|
755
755
|
}
|
|
756
756
|
function ro(e) {
|
|
757
|
-
return Ae(e) && e.type ===
|
|
757
|
+
return Ae(e) && e.type === W;
|
|
758
758
|
}
|
|
759
759
|
function io(e) {
|
|
760
760
|
return Ae(e) ? sr.apply(null, arguments) : e;
|
|
@@ -769,7 +769,7 @@ var lo = function(e, t) {
|
|
|
769
769
|
return e(t);
|
|
770
770
|
}, co = function(e, t) {
|
|
771
771
|
return e(t);
|
|
772
|
-
}, uo =
|
|
772
|
+
}, uo = W;
|
|
773
773
|
function It(e) {
|
|
774
774
|
e();
|
|
775
775
|
}
|
|
@@ -779,12 +779,12 @@ function po(e) {
|
|
|
779
779
|
function ho() {
|
|
780
780
|
return [!1, It];
|
|
781
781
|
}
|
|
782
|
-
var
|
|
783
|
-
function
|
|
784
|
-
var n = t(), o =
|
|
782
|
+
var mo = Me, fo = Ae;
|
|
783
|
+
function go(e, t) {
|
|
784
|
+
var n = t(), o = F({ h: { __: n, v: t } }), r = o[0].h, i = o[1];
|
|
785
785
|
return Me(function() {
|
|
786
786
|
r.__ = n, r.v = t, it(r) && i({ h: r });
|
|
787
|
-
}, [e, n, t]),
|
|
787
|
+
}, [e, n, t]), Z(function() {
|
|
788
788
|
return it(r) && i({ h: r }), e(function() {
|
|
789
789
|
it(r) && i({ h: r });
|
|
790
790
|
});
|
|
@@ -799,29 +799,29 @@ function it(e) {
|
|
|
799
799
|
return !0;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
var wr = { useState:
|
|
802
|
+
var wr = { useState: F, useId: Bn, useReducer: Tt, useEffect: Z, useLayoutEffect: Me, useInsertionEffect: mo, useTransition: ho, useDeferredValue: po, useSyncExternalStore: go, startTransition: It, useRef: ue, useImperativeHandle: Vn, useMemo: Ke, useCallback: $n, useContext: Hn, useDebugValue: Pt, version: "17.0.2", Children: Gn, render: eo, hydrate: to, unmountComponentAtNode: so, createPortal: Jn, createElement: H, createContext: Mn, createFactory: oo, cloneElement: io, createRef: Rn, Fragment: W, isValidElement: Ae, isElement: fo, isFragment: ro, findDOMNode: ao, Component: ee, PureComponent: Ze, memo: qn, forwardRef: Wn, flushSync: co, unstable_batchedUpdates: lo, StrictMode: uo, Suspense: De, SuspenseList: Ce, lazy: Kn, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: no };
|
|
803
803
|
const Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
804
804
|
__proto__: null,
|
|
805
|
-
Children:
|
|
805
|
+
Children: Gn,
|
|
806
806
|
Component: ee,
|
|
807
|
-
Fragment:
|
|
808
|
-
PureComponent:
|
|
807
|
+
Fragment: W,
|
|
808
|
+
PureComponent: Ze,
|
|
809
809
|
StrictMode: uo,
|
|
810
810
|
Suspense: De,
|
|
811
811
|
SuspenseList: Ce,
|
|
812
812
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: no,
|
|
813
813
|
cloneElement: io,
|
|
814
814
|
createContext: Mn,
|
|
815
|
-
createElement:
|
|
815
|
+
createElement: H,
|
|
816
816
|
createFactory: oo,
|
|
817
817
|
createPortal: Jn,
|
|
818
818
|
createRef: Rn,
|
|
819
819
|
default: wr,
|
|
820
820
|
findDOMNode: ao,
|
|
821
821
|
flushSync: co,
|
|
822
|
-
forwardRef:
|
|
822
|
+
forwardRef: Wn,
|
|
823
823
|
hydrate: to,
|
|
824
|
-
isElement:
|
|
824
|
+
isElement: fo,
|
|
825
825
|
isFragment: ro,
|
|
826
826
|
isValidElement: Ae,
|
|
827
827
|
lazy: Kn,
|
|
@@ -831,20 +831,20 @@ const Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
831
831
|
unmountComponentAtNode: so,
|
|
832
832
|
unstable_batchedUpdates: lo,
|
|
833
833
|
useCallback: $n,
|
|
834
|
-
useContext:
|
|
834
|
+
useContext: Hn,
|
|
835
835
|
useDebugValue: Pt,
|
|
836
836
|
useDeferredValue: po,
|
|
837
|
-
useEffect:
|
|
837
|
+
useEffect: Z,
|
|
838
838
|
useErrorBoundary: ar,
|
|
839
|
-
useId:
|
|
839
|
+
useId: Bn,
|
|
840
840
|
useImperativeHandle: Vn,
|
|
841
|
-
useInsertionEffect:
|
|
841
|
+
useInsertionEffect: mo,
|
|
842
842
|
useLayoutEffect: Me,
|
|
843
843
|
useMemo: Ke,
|
|
844
844
|
useReducer: Tt,
|
|
845
|
-
useRef:
|
|
846
|
-
useState:
|
|
847
|
-
useSyncExternalStore:
|
|
845
|
+
useRef: ue,
|
|
846
|
+
useState: F,
|
|
847
|
+
useSyncExternalStore: go,
|
|
848
848
|
useTransition: ho,
|
|
849
849
|
version: kr
|
|
850
850
|
}, Symbol.toStringTag, { value: "Module" })), an = (e) => {
|
|
@@ -853,12 +853,12 @@ const Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
853
853
|
const p = typeof d == "function" ? d(t) : d;
|
|
854
854
|
if (!Object.is(p, t)) {
|
|
855
855
|
const c = t;
|
|
856
|
-
t = l ?? typeof p != "object" ? p : Object.assign({}, t, p), n.forEach((
|
|
856
|
+
t = l ?? typeof p != "object" ? p : Object.assign({}, t, p), n.forEach((m) => m(t, c));
|
|
857
857
|
}
|
|
858
858
|
}, r = () => t, a = { setState: o, getState: r, subscribe: (d) => (n.add(d), () => n.delete(d)), destroy: () => n.clear() };
|
|
859
859
|
return t = e(o, r, a), a;
|
|
860
860
|
}, Er = (e) => e ? an(e) : an;
|
|
861
|
-
var
|
|
861
|
+
var vo = { exports: {} }, _o = {};
|
|
862
862
|
const bo = /* @__PURE__ */ zo(Sr);
|
|
863
863
|
var xo = { exports: {} }, yo = {};
|
|
864
864
|
/**
|
|
@@ -915,46 +915,46 @@ var Je = bo, Ar = Mr;
|
|
|
915
915
|
function Ur(e, t) {
|
|
916
916
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
917
917
|
}
|
|
918
|
-
var Vr = typeof Object.is == "function" ? Object.is : Ur, $r = Ar.useSyncExternalStore,
|
|
919
|
-
|
|
920
|
-
var i =
|
|
918
|
+
var Vr = typeof Object.is == "function" ? Object.is : Ur, $r = Ar.useSyncExternalStore, Hr = Je.useRef, Br = Je.useEffect, Fr = Je.useMemo, zr = Je.useDebugValue;
|
|
919
|
+
_o.useSyncExternalStoreWithSelector = function(e, t, n, o, r) {
|
|
920
|
+
var i = Hr(null);
|
|
921
921
|
if (i.current === null) {
|
|
922
922
|
var s = { hasValue: !1, value: null };
|
|
923
923
|
i.current = s;
|
|
924
924
|
} else
|
|
925
925
|
s = i.current;
|
|
926
926
|
i = Fr(function() {
|
|
927
|
-
function d(
|
|
927
|
+
function d(h) {
|
|
928
928
|
if (!l) {
|
|
929
|
-
if (l = !0, p =
|
|
930
|
-
var
|
|
931
|
-
if (r(
|
|
932
|
-
return c =
|
|
929
|
+
if (l = !0, p = h, h = o(h), r !== void 0 && s.hasValue) {
|
|
930
|
+
var g = s.value;
|
|
931
|
+
if (r(g, h))
|
|
932
|
+
return c = g;
|
|
933
933
|
}
|
|
934
|
-
return c =
|
|
934
|
+
return c = h;
|
|
935
935
|
}
|
|
936
|
-
if (
|
|
937
|
-
return
|
|
938
|
-
var
|
|
939
|
-
return r !== void 0 && r(
|
|
936
|
+
if (g = c, Vr(p, h))
|
|
937
|
+
return g;
|
|
938
|
+
var f = o(h);
|
|
939
|
+
return r !== void 0 && r(g, f) ? g : (p = h, c = f);
|
|
940
940
|
}
|
|
941
|
-
var l = !1, p, c,
|
|
941
|
+
var l = !1, p, c, m = n === void 0 ? null : n;
|
|
942
942
|
return [function() {
|
|
943
943
|
return d(t());
|
|
944
|
-
},
|
|
945
|
-
return d(
|
|
944
|
+
}, m === null ? void 0 : function() {
|
|
945
|
+
return d(m());
|
|
946
946
|
}];
|
|
947
947
|
}, [t, n, o, r]);
|
|
948
948
|
var a = $r(e, i[0], i[1]);
|
|
949
|
-
return
|
|
949
|
+
return Br(function() {
|
|
950
950
|
s.hasValue = !0, s.value = a;
|
|
951
951
|
}, [a]), zr(a), a;
|
|
952
952
|
};
|
|
953
|
-
|
|
954
|
-
var qr =
|
|
955
|
-
const
|
|
956
|
-
function
|
|
957
|
-
const o =
|
|
953
|
+
vo.exports = _o;
|
|
954
|
+
var qr = vo.exports;
|
|
955
|
+
const Wr = /* @__PURE__ */ qo(qr), { useSyncExternalStoreWithSelector: Gr } = Wr;
|
|
956
|
+
function Zr(e, t = e.getState, n) {
|
|
957
|
+
const o = Gr(
|
|
958
958
|
e.subscribe,
|
|
959
959
|
e.getState,
|
|
960
960
|
e.getServerState || e.getState,
|
|
@@ -964,7 +964,7 @@ function Wr(e, t = e.getState, n) {
|
|
|
964
964
|
return Pt(o), o;
|
|
965
965
|
}
|
|
966
966
|
const ln = (e) => {
|
|
967
|
-
const t = typeof e == "function" ? Er(e) : e, n = (o, r) =>
|
|
967
|
+
const t = typeof e == "function" ? Er(e) : e, n = (o, r) => Zr(t, o, r);
|
|
968
968
|
return Object.assign(n, t), n;
|
|
969
969
|
}, Co = (e) => e ? ln(e) : ln;
|
|
970
970
|
var xt = /* @__PURE__ */ ((e) => (e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(xt || {});
|
|
@@ -1074,23 +1074,23 @@ const cn = 1, Lt = {
|
|
|
1074
1074
|
for (let p = 0; p < a.length; p++) {
|
|
1075
1075
|
const {
|
|
1076
1076
|
group: c,
|
|
1077
|
-
target:
|
|
1077
|
+
target: m
|
|
1078
1078
|
} = a[p];
|
|
1079
1079
|
if (!(c != null && c.length))
|
|
1080
1080
|
continue;
|
|
1081
|
-
const
|
|
1082
|
-
if (
|
|
1081
|
+
const h = c[0];
|
|
1082
|
+
if (h.questionIndex === void 0 || h.questionIndex > o.length)
|
|
1083
1083
|
continue;
|
|
1084
|
-
let
|
|
1085
|
-
comparator:
|
|
1084
|
+
let g = dn({
|
|
1085
|
+
comparator: h.comparator,
|
|
1086
1086
|
// @ts-expect-error - unknown response type
|
|
1087
|
-
response: o[
|
|
1087
|
+
response: o[h.questionIndex],
|
|
1088
1088
|
// @ts-expect-error - expected card type
|
|
1089
1089
|
type: i.type,
|
|
1090
|
-
value:
|
|
1090
|
+
value: h.value
|
|
1091
1091
|
});
|
|
1092
|
-
for (let
|
|
1093
|
-
const x = c[
|
|
1092
|
+
for (let f = 1; f < c.length; f += 2) {
|
|
1093
|
+
const x = c[f], _ = c[f + 1], y = dn({
|
|
1094
1094
|
comparator: _.comparator,
|
|
1095
1095
|
// @ts-expect-error - unknown response type
|
|
1096
1096
|
response: o[_.questionIndex],
|
|
@@ -1098,10 +1098,10 @@ const cn = 1, Lt = {
|
|
|
1098
1098
|
type: e[_.questionIndex].type,
|
|
1099
1099
|
value: _.value
|
|
1100
1100
|
});
|
|
1101
|
-
x === xt.And ?
|
|
1101
|
+
x === xt.And ? g && (g = y) : x === xt.Or && (g || (g = y));
|
|
1102
1102
|
}
|
|
1103
|
-
if (
|
|
1104
|
-
s =
|
|
1103
|
+
if (g) {
|
|
1104
|
+
s = m === -1 && n ? e.length - 1 : m;
|
|
1105
1105
|
break;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
@@ -1256,21 +1256,21 @@ const cn = 1, Lt = {
|
|
|
1256
1256
|
for (let p = 0; p < a.length && l.length !== 0; p++) {
|
|
1257
1257
|
const {
|
|
1258
1258
|
comparator: c,
|
|
1259
|
-
target:
|
|
1260
|
-
value:
|
|
1261
|
-
} = a[p],
|
|
1259
|
+
target: m,
|
|
1260
|
+
value: h
|
|
1261
|
+
} = a[p], g = l.filter((f) => {
|
|
1262
1262
|
const x = Yr({
|
|
1263
|
-
value:
|
|
1264
|
-
}, s.type,
|
|
1265
|
-
return !(x && c === J.Answered || _ && c === J.Partial || !x && !_ && c === J.Skipped || c === J.GivenUp && ei(
|
|
1263
|
+
value: f
|
|
1264
|
+
}, s.type, f), _ = ko(f, s.type);
|
|
1265
|
+
return !(x && c === J.Answered || _ && c === J.Partial || !x && !_ && c === J.Skipped || c === J.GivenUp && ei(f) && f.taskStatus === X.GivenUp || x && s.type === b.Open && (c === J.Contains || c === J.DoesNotContain) || x && Xr(c) && Lt[c](f, h));
|
|
1266
1266
|
});
|
|
1267
|
-
if (
|
|
1268
|
-
const
|
|
1269
|
-
if (
|
|
1267
|
+
if (g.length < l.length) {
|
|
1268
|
+
const f = parseInt(String(m), 10);
|
|
1269
|
+
if (f !== -1 && f <= i || f >= o.length)
|
|
1270
1270
|
return o.length - 1 - t;
|
|
1271
|
-
d = Math.max(r[
|
|
1271
|
+
d = Math.max(r[f] + 1, d);
|
|
1272
1272
|
}
|
|
1273
|
-
l =
|
|
1273
|
+
l = g;
|
|
1274
1274
|
}
|
|
1275
1275
|
l.length > 0 && (d = Math.max(r[i + 1] + 1, d)), r[i] = d;
|
|
1276
1276
|
}
|
|
@@ -1317,7 +1317,7 @@ const cn = 1, Lt = {
|
|
|
1317
1317
|
headers: r,
|
|
1318
1318
|
viewDocument: i
|
|
1319
1319
|
} = t();
|
|
1320
|
-
return
|
|
1320
|
+
return We(r) ? Promise.resolve() : (o(he.SurveyFadingOut), new Promise((s) => {
|
|
1321
1321
|
const a = i.getElementById(n);
|
|
1322
1322
|
a ? (a.addEventListener("transitionend", () => {
|
|
1323
1323
|
s();
|
|
@@ -1346,29 +1346,29 @@ const cn = 1, Lt = {
|
|
|
1346
1346
|
progressPct: r,
|
|
1347
1347
|
isSubmitted: i
|
|
1348
1348
|
}) => {
|
|
1349
|
-
var
|
|
1349
|
+
var h, g, f;
|
|
1350
1350
|
const {
|
|
1351
1351
|
cards: s,
|
|
1352
1352
|
destroy: a,
|
|
1353
1353
|
index: d,
|
|
1354
1354
|
uploadProgress: l
|
|
1355
|
-
} = t(), p = o || ((
|
|
1355
|
+
} = t(), p = o || ((h = l[n]) == null ? void 0 : h.isComplete), c = {
|
|
1356
1356
|
...l,
|
|
1357
1357
|
[n]: {
|
|
1358
|
-
progressPct: p ? 100 : r || ((
|
|
1358
|
+
progressPct: p ? 100 : r || ((g = l[n]) == null ? void 0 : g.progressPct),
|
|
1359
1359
|
isComplete: p,
|
|
1360
|
-
isSubmitted: i || ((
|
|
1360
|
+
isSubmitted: i || ((f = l[n]) == null ? void 0 : f.isSubmitted)
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
if (e({
|
|
1364
1364
|
uploadProgress: c
|
|
1365
1365
|
}), s[d].type !== b.Uploading)
|
|
1366
1366
|
return;
|
|
1367
|
-
const
|
|
1368
|
-
if (
|
|
1367
|
+
const m = Object.entries(l).every(([x, _]) => !_.isSubmitted || _.isComplete || n == x && o);
|
|
1368
|
+
if (m && d >= s.length - 1)
|
|
1369
1369
|
return a(ke);
|
|
1370
1370
|
e({
|
|
1371
|
-
index:
|
|
1371
|
+
index: m ? d + 1 : d,
|
|
1372
1372
|
uploadingCardViewed: !0
|
|
1373
1373
|
});
|
|
1374
1374
|
},
|
|
@@ -1406,51 +1406,51 @@ const cn = 1, Lt = {
|
|
|
1406
1406
|
trackHistory: l,
|
|
1407
1407
|
uploadProgress: p,
|
|
1408
1408
|
viewedCardCount: c
|
|
1409
|
-
} = t(),
|
|
1410
|
-
type:
|
|
1409
|
+
} = t(), m = Date.now(), h = [...r], g = h[s], {
|
|
1410
|
+
type: f
|
|
1411
1411
|
} = n.data, x = {
|
|
1412
1412
|
...n.data
|
|
1413
1413
|
}, _ = x.value;
|
|
1414
|
-
oi(
|
|
1415
|
-
const
|
|
1414
|
+
oi(g) && (g.value = _), x.answeredAt = m, delete x.type;
|
|
1415
|
+
const y = {
|
|
1416
1416
|
response: x,
|
|
1417
1417
|
responseGroupUid: a,
|
|
1418
1418
|
questionIndex: s
|
|
1419
1419
|
};
|
|
1420
|
-
let k =
|
|
1421
|
-
|
|
1420
|
+
let k = f === b.MultipleChoice ? Object.values(_).find((I) => I !== !1) : _;
|
|
1421
|
+
f === b.MultipleSelect && (k = h[s].props.options.reduce((I, v) => (_[v.id] && I.push(v.value), I), []));
|
|
1422
1422
|
const T = o.slice(0);
|
|
1423
1423
|
T[s] = k, e({
|
|
1424
1424
|
allResponses: T
|
|
1425
1425
|
});
|
|
1426
|
-
const
|
|
1427
|
-
cards:
|
|
1426
|
+
const w = wo({
|
|
1427
|
+
cards: h,
|
|
1428
1428
|
index: s,
|
|
1429
1429
|
hasEndCard: !!n.endCard,
|
|
1430
1430
|
uploadProgress: p,
|
|
1431
1431
|
allResponses: T
|
|
1432
1432
|
});
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1433
|
+
if (w === null) {
|
|
1434
|
+
y.completedAt = m, d(y), n.completeSurvey();
|
|
1435
1435
|
return;
|
|
1436
1436
|
} else
|
|
1437
|
-
[b.Thanks, b.Uploading].includes(
|
|
1438
|
-
const
|
|
1439
|
-
[b.Thanks, b.Uploading].includes(
|
|
1437
|
+
[b.Thanks, b.Uploading].includes(h[w].type) && (y.completedAt = m);
|
|
1438
|
+
const C = d(y);
|
|
1439
|
+
[b.Thanks, b.Uploading].includes(h[w].type) || C.finally(() => {
|
|
1440
1440
|
l({
|
|
1441
1441
|
event: "seen",
|
|
1442
|
-
index:
|
|
1442
|
+
index: w
|
|
1443
1443
|
});
|
|
1444
1444
|
});
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1447
|
-
[Re.QuestionId]:
|
|
1448
|
-
[Re.Props]:
|
|
1445
|
+
const O = h[w];
|
|
1446
|
+
h[w] && i && i(ce.CurrentQuestion, {
|
|
1447
|
+
[Re.QuestionId]: O.name,
|
|
1448
|
+
[Re.Props]: O.props
|
|
1449
1449
|
// Only return the upcoming card
|
|
1450
1450
|
}), e({
|
|
1451
|
-
cards:
|
|
1451
|
+
cards: h,
|
|
1452
1452
|
hasViewedEmbed: !1,
|
|
1453
|
-
index:
|
|
1453
|
+
index: w,
|
|
1454
1454
|
viewedCardCount: c + 1
|
|
1455
1455
|
});
|
|
1456
1456
|
},
|
|
@@ -1484,8 +1484,8 @@ const cn = 1, Lt = {
|
|
|
1484
1484
|
pendingRemoveIframeReason: o,
|
|
1485
1485
|
unresolvedRequestCount: r
|
|
1486
1486
|
} = t();
|
|
1487
|
-
o && r === 0 && (n(
|
|
1488
|
-
name:
|
|
1487
|
+
o && r === 0 && (n(he.SurveyWillClose, {
|
|
1488
|
+
name: he.SurveyWillClose,
|
|
1489
1489
|
initiator: o
|
|
1490
1490
|
}), e({
|
|
1491
1491
|
pendingRemoveIframeReason: null
|
|
@@ -1521,8 +1521,9 @@ const cn = 1, Lt = {
|
|
|
1521
1521
|
completedAt: n,
|
|
1522
1522
|
previewKey: s.previewKey
|
|
1523
1523
|
};
|
|
1524
|
-
ot(`Submitting response: ${JSON.stringify(r.value, null, 2)} for survey: ${s.surveyId}`), n && (ot("Survey complete"),
|
|
1525
|
-
id: s.surveyId
|
|
1524
|
+
ot(`Submitting response: ${JSON.stringify(r.value, null, 2)} for survey: ${s.surveyId}`), n && (ot("Survey complete"), Wo({
|
|
1525
|
+
id: s.surveyId,
|
|
1526
|
+
userAgent: window.navigator.userAgent
|
|
1526
1527
|
}));
|
|
1527
1528
|
const d = await s.trackPromise(ht(`${s.apiURL}/sdk/1/environments/${s.envId}/visitors/${s.userId}/responses/submit`, {
|
|
1528
1529
|
body: JSON.stringify(a),
|
|
@@ -1533,7 +1534,7 @@ const cn = 1, Lt = {
|
|
|
1533
1534
|
d.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", d.error), await s.trackPromise(un(s, "submitResponse", d.error)));
|
|
1534
1535
|
return;
|
|
1535
1536
|
}
|
|
1536
|
-
s.eventEmitFn(
|
|
1537
|
+
s.eventEmitFn(he.QuestionAnswered, {
|
|
1537
1538
|
...r,
|
|
1538
1539
|
questionIndex: o
|
|
1539
1540
|
});
|
|
@@ -1589,12 +1590,12 @@ const cn = 1, Lt = {
|
|
|
1589
1590
|
viewDocument: d
|
|
1590
1591
|
} = t(), p = n[o].type === b.Matrix;
|
|
1591
1592
|
setTimeout(() => {
|
|
1592
|
-
var
|
|
1593
|
-
const [c,
|
|
1594
|
-
|
|
1595
|
-
name:
|
|
1593
|
+
var h, g;
|
|
1594
|
+
const [c, m] = Go(d);
|
|
1595
|
+
We(r) ? i(he.SurveyHeight, {
|
|
1596
|
+
name: he.SurveyHeight,
|
|
1596
1597
|
contentFrameHeight: c
|
|
1597
|
-
}) : ((
|
|
1598
|
+
}) : ((h = s.setHeight) == null || h.call(s, c), a || (g = s.setWidth) == null || g.call(s, p ? m : parseInt(Zo)));
|
|
1598
1599
|
}, 100);
|
|
1599
1600
|
},
|
|
1600
1601
|
uploadingCardViewed: !1,
|
|
@@ -1629,20 +1630,20 @@ const cn = 1, Lt = {
|
|
|
1629
1630
|
meta: p,
|
|
1630
1631
|
vid: r,
|
|
1631
1632
|
envId: i
|
|
1632
|
-
},
|
|
1633
|
+
}, m = await ht(`${s}/sdk/1/errors`, {
|
|
1633
1634
|
method: "POST",
|
|
1634
1635
|
headers: Object.assign({
|
|
1635
1636
|
"x-ul-error": window.btoa(`userleap-${Date.now()}-error`)
|
|
1636
1637
|
}, a),
|
|
1637
1638
|
body: JSON.stringify(c)
|
|
1638
1639
|
});
|
|
1639
|
-
if (!
|
|
1640
|
+
if (!m.ok)
|
|
1640
1641
|
console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
|
|
1641
1642
|
else {
|
|
1642
1643
|
const {
|
|
1643
|
-
presignedUrl:
|
|
1644
|
-
} =
|
|
1645
|
-
Yo(
|
|
1644
|
+
presignedUrl: h
|
|
1645
|
+
} = m.json;
|
|
1646
|
+
Yo(h);
|
|
1646
1647
|
}
|
|
1647
1648
|
};
|
|
1648
1649
|
var ri = 0;
|
|
@@ -1654,9 +1655,9 @@ function u(e, t, n, o, r, i) {
|
|
|
1654
1655
|
if (typeof e == "function" && (s = e.defaultProps))
|
|
1655
1656
|
for (a in s)
|
|
1656
1657
|
d[a] === void 0 && (d[a] = s[a]);
|
|
1657
|
-
return
|
|
1658
|
+
return S.vnode && S.vnode(l), l;
|
|
1658
1659
|
}
|
|
1659
|
-
const
|
|
1660
|
+
const G = (e) => u("button", {
|
|
1660
1661
|
...e,
|
|
1661
1662
|
className: M("ul-card-text__button", e.className),
|
|
1662
1663
|
id: "ul-card-text__button"
|
|
@@ -1665,7 +1666,7 @@ const Z = (e) => u("button", {
|
|
|
1665
1666
|
properties: t
|
|
1666
1667
|
}) => {
|
|
1667
1668
|
const n = t == null ? void 0 : t.captionText;
|
|
1668
|
-
return u(
|
|
1669
|
+
return u(W, {
|
|
1669
1670
|
children: [e && u("h1", {
|
|
1670
1671
|
className: E.QuestionHeader,
|
|
1671
1672
|
id: E.QuestionHeader,
|
|
@@ -1688,7 +1689,7 @@ const Z = (e) => u("button", {
|
|
|
1688
1689
|
className: "prototype-button",
|
|
1689
1690
|
onClick: t,
|
|
1690
1691
|
children: e
|
|
1691
|
-
}, "prototype-btn"),
|
|
1692
|
+
}, "prototype-btn"), pe = ({
|
|
1692
1693
|
defaultBody: e,
|
|
1693
1694
|
embeddedType: t = "prototype",
|
|
1694
1695
|
properties: n
|
|
@@ -1699,32 +1700,32 @@ const Z = (e) => u("button", {
|
|
|
1699
1700
|
hasViewedEmbed: r,
|
|
1700
1701
|
headers: i,
|
|
1701
1702
|
useDesktopPrototype: s
|
|
1702
|
-
} = $((
|
|
1703
|
-
handleClickEmbedButton:
|
|
1704
|
-
hasViewedEmbed:
|
|
1705
|
-
headers:
|
|
1706
|
-
useDesktopPrototype:
|
|
1707
|
-
})), a = (n == null ? void 0 : n.conceptUrl) || ((c = n == null ? void 0 : n.consentDocument) == null ? void 0 : c.url), d = window.innerWidth < Qo, l = i["userleap-platform"], p = (
|
|
1708
|
-
|
|
1703
|
+
} = $((m) => ({
|
|
1704
|
+
handleClickEmbedButton: m.handleClickEmbedButton,
|
|
1705
|
+
hasViewedEmbed: m.hasViewedEmbed,
|
|
1706
|
+
headers: m.headers,
|
|
1707
|
+
useDesktopPrototype: m.useDesktopPrototype
|
|
1708
|
+
})), a = (n == null ? void 0 : n.conceptUrl) || ((c = n == null ? void 0 : n.consentDocument) == null ? void 0 : c.url), d = window.innerWidth < Qo, l = i["userleap-platform"], p = (m, h) => {
|
|
1709
|
+
m.preventDefault(), o(h);
|
|
1709
1710
|
};
|
|
1710
1711
|
if (!s && d && !r && a && ["email", "link"].includes(l)) {
|
|
1711
1712
|
if (t === "prototype")
|
|
1712
1713
|
return u(pn, {
|
|
1713
|
-
handleClick: (
|
|
1714
|
-
p(
|
|
1714
|
+
handleClick: (m) => {
|
|
1715
|
+
p(m, ce.ViewPrototypeClick);
|
|
1715
1716
|
}
|
|
1716
1717
|
});
|
|
1717
1718
|
if (t === "pdf")
|
|
1718
1719
|
return u(pn, {
|
|
1719
1720
|
buttonText: (n == null ? void 0 : n.viewDocumentText) || "View Document",
|
|
1720
|
-
handleClick: (
|
|
1721
|
-
p(
|
|
1721
|
+
handleClick: (m) => {
|
|
1722
|
+
p(m, ce.ViewAgreementClick);
|
|
1722
1723
|
}
|
|
1723
1724
|
});
|
|
1724
1725
|
}
|
|
1725
1726
|
return e();
|
|
1726
1727
|
}, So = (e, t) => {
|
|
1727
|
-
const n =
|
|
1728
|
+
const n = ue(0), o = () => {
|
|
1728
1729
|
if (e.current) {
|
|
1729
1730
|
const r = e.current;
|
|
1730
1731
|
r.style.height = "1px";
|
|
@@ -1732,7 +1733,7 @@ const Z = (e) => u("button", {
|
|
|
1732
1733
|
n.current !== l && t(), n.current = l, r.style.height = `${l}px`;
|
|
1733
1734
|
}
|
|
1734
1735
|
};
|
|
1735
|
-
return
|
|
1736
|
+
return Z(o, []), o;
|
|
1736
1737
|
}, Dt = ({
|
|
1737
1738
|
ariaLabel: e,
|
|
1738
1739
|
border: t,
|
|
@@ -1746,52 +1747,52 @@ const Z = (e) => u("button", {
|
|
|
1746
1747
|
useMobileStyling: l,
|
|
1747
1748
|
error: p,
|
|
1748
1749
|
allowTextEntry: c,
|
|
1749
|
-
noneOfTheAbove:
|
|
1750
|
-
promptText:
|
|
1751
|
-
onUserInputChanged:
|
|
1750
|
+
noneOfTheAbove: m,
|
|
1751
|
+
promptText: h,
|
|
1752
|
+
onUserInputChanged: g
|
|
1752
1753
|
}) => {
|
|
1753
1754
|
const {
|
|
1754
|
-
styleNonce:
|
|
1755
|
+
styleNonce: f,
|
|
1755
1756
|
viewDocument: x
|
|
1756
|
-
} = $((
|
|
1757
|
-
styleNonce:
|
|
1758
|
-
viewDocument:
|
|
1759
|
-
})), [_,
|
|
1760
|
-
ai(x, t,
|
|
1757
|
+
} = $((N) => ({
|
|
1758
|
+
styleNonce: N.styleNonce,
|
|
1759
|
+
viewDocument: N.viewDocument
|
|
1760
|
+
})), [_, y] = F(!1);
|
|
1761
|
+
ai(x, t, f);
|
|
1761
1762
|
const k = ({
|
|
1762
|
-
isSelected:
|
|
1763
|
+
isSelected: N,
|
|
1763
1764
|
userText: Q
|
|
1764
1765
|
}) => {
|
|
1765
|
-
|
|
1766
|
+
g && g({
|
|
1766
1767
|
id: a || "",
|
|
1767
|
-
selected:
|
|
1768
|
+
selected: N,
|
|
1768
1769
|
value: i,
|
|
1769
1770
|
userText: Q,
|
|
1770
|
-
noneOfTheAbove:
|
|
1771
|
+
noneOfTheAbove: m
|
|
1771
1772
|
});
|
|
1772
|
-
}, T = (
|
|
1773
|
-
|
|
1773
|
+
}, T = (N) => {
|
|
1774
|
+
N.stopPropagation(), k({
|
|
1774
1775
|
isSelected: d || !r,
|
|
1775
1776
|
userText: s
|
|
1776
|
-
}),
|
|
1777
|
-
},
|
|
1778
|
-
_ ||
|
|
1779
|
-
},
|
|
1780
|
-
_ &&
|
|
1781
|
-
},
|
|
1782
|
-
(
|
|
1783
|
-
},
|
|
1784
|
-
onClick: (
|
|
1785
|
-
onKeyPress: (
|
|
1777
|
+
}), y(!1);
|
|
1778
|
+
}, w = () => {
|
|
1779
|
+
_ || y(!0);
|
|
1780
|
+
}, C = () => {
|
|
1781
|
+
_ && y(!1);
|
|
1782
|
+
}, O = (N) => {
|
|
1783
|
+
(N.key === "Enter" || N.key === " ") && T(N);
|
|
1784
|
+
}, I = {
|
|
1785
|
+
onClick: (N) => T(N),
|
|
1786
|
+
onKeyPress: (N) => O(N)
|
|
1786
1787
|
};
|
|
1787
|
-
"ontouchstart" in x.documentElement ? (
|
|
1788
|
-
const
|
|
1788
|
+
"ontouchstart" in x.documentElement ? (I.onTouchStart = C, I.onTouchCancel = C, I.onTouchEnd = C) : (I.onMouseDown = w, I.onMouseLeave = C);
|
|
1789
|
+
const v = d ? `radio-${a}` : `checkbox-${a}`, P = r || _ ? [Fe] : [], D = [...p ? [Eo] : [], ...P], L = o ? {
|
|
1789
1790
|
"aria-labelledby": `label-${a}`
|
|
1790
1791
|
} : {
|
|
1791
1792
|
"aria-label": e
|
|
1792
1793
|
};
|
|
1793
1794
|
return u("div", {
|
|
1794
|
-
className: M([...
|
|
1795
|
+
className: M([...B(E.Choice, l), ...D]),
|
|
1795
1796
|
id: `choice-div-${a}`,
|
|
1796
1797
|
style: {
|
|
1797
1798
|
...n,
|
|
@@ -1799,20 +1800,20 @@ const Z = (e) => u("button", {
|
|
|
1799
1800
|
borderColor: Ie
|
|
1800
1801
|
} : {}
|
|
1801
1802
|
},
|
|
1802
|
-
...
|
|
1803
|
+
...I,
|
|
1803
1804
|
children: [u("div", {
|
|
1804
1805
|
className: M([E.ChoiceLabelContainer]),
|
|
1805
1806
|
children: [d ? u("div", {
|
|
1806
|
-
...
|
|
1807
|
-
className: M([E.ChoiceRadio, ...
|
|
1808
|
-
id:
|
|
1807
|
+
...L,
|
|
1808
|
+
className: M([E.ChoiceRadio, ...P]),
|
|
1809
|
+
id: v,
|
|
1809
1810
|
role: "radio",
|
|
1810
1811
|
tabIndex: 0
|
|
1811
1812
|
}) : u("div", {
|
|
1812
1813
|
"aria-checked": r,
|
|
1813
1814
|
"aria-labelledby": `label-${a}`,
|
|
1814
1815
|
className: E.ChoiceCheckbox,
|
|
1815
|
-
id:
|
|
1816
|
+
id: v,
|
|
1816
1817
|
role: "checkbox",
|
|
1817
1818
|
style: r ? {
|
|
1818
1819
|
backgroundColor: t,
|
|
@@ -1834,19 +1835,19 @@ const Z = (e) => u("button", {
|
|
|
1834
1835
|
})
|
|
1835
1836
|
})
|
|
1836
1837
|
}), o && u("label", {
|
|
1837
|
-
className: M(
|
|
1838
|
-
htmlFor:
|
|
1838
|
+
className: M(B(E.ChoiceLabel, l)),
|
|
1839
|
+
htmlFor: v,
|
|
1839
1840
|
id: `label-${a}`,
|
|
1840
1841
|
children: o
|
|
1841
1842
|
})]
|
|
1842
1843
|
}), c && r && u("div", {
|
|
1843
|
-
className: M([E.ChoiceTextEntryContainer, ...
|
|
1844
|
+
className: M([E.ChoiceTextEntryContainer, ...P]),
|
|
1844
1845
|
children: u(ii, {
|
|
1845
|
-
onTextChange: (
|
|
1846
|
+
onTextChange: (N) => k({
|
|
1846
1847
|
isSelected: r,
|
|
1847
|
-
userText:
|
|
1848
|
+
userText: N
|
|
1848
1849
|
}),
|
|
1849
|
-
promptText:
|
|
1850
|
+
promptText: h || "Please specify",
|
|
1850
1851
|
textValue: s,
|
|
1851
1852
|
useMobileStyling: l
|
|
1852
1853
|
})
|
|
@@ -1858,18 +1859,18 @@ const Z = (e) => u("button", {
|
|
|
1858
1859
|
onTextChange: n,
|
|
1859
1860
|
useMobileStyling: o
|
|
1860
1861
|
}) => {
|
|
1861
|
-
const r =
|
|
1862
|
+
const r = ue(null), {
|
|
1862
1863
|
update: i
|
|
1863
1864
|
} = $((a) => ({
|
|
1864
1865
|
update: a.update
|
|
1865
1866
|
})), s = So(r, () => i());
|
|
1866
|
-
return
|
|
1867
|
+
return Z(() => {
|
|
1867
1868
|
r.current && r.current.focus();
|
|
1868
1869
|
}, []), u("textarea", {
|
|
1869
1870
|
"aria-label": e,
|
|
1870
1871
|
"aria-multiline": "true",
|
|
1871
1872
|
"aria-placeholder": e,
|
|
1872
|
-
className: M(
|
|
1873
|
+
className: M(B(E.ChoiceTextInput, o)),
|
|
1873
1874
|
"data-gramm": "false",
|
|
1874
1875
|
maxLength: 5e3,
|
|
1875
1876
|
name: "text",
|
|
@@ -1913,71 +1914,71 @@ const Z = (e) => u("button", {
|
|
|
1913
1914
|
const {
|
|
1914
1915
|
useMobileStyling: s,
|
|
1915
1916
|
border: a
|
|
1916
|
-
} = $((
|
|
1917
|
-
useMobileStyling:
|
|
1918
|
-
border:
|
|
1919
|
-
})), [d, l] =
|
|
1920
|
-
|
|
1921
|
-
let
|
|
1922
|
-
if (!
|
|
1917
|
+
} = $((v) => ({
|
|
1918
|
+
useMobileStyling: v.useMobileStyling,
|
|
1919
|
+
border: v.border
|
|
1920
|
+
})), [d, l] = F(!1), [p, c] = F(""), [m, h] = F(!1), g = o == null ? void 0 : o.collectName, f = (o == null ? void 0 : o.nameLabelText) || "Full Name", x = (o == null ? void 0 : o.consentText) || "I agree to the stated conditions", _ = (o == null ? void 0 : o.submitButtonText) || "Submit", y = !!p.trim(), k = d && (!g || y), T = (v, P = !1) => {
|
|
1921
|
+
v.preventDefault(), v.stopPropagation();
|
|
1922
|
+
let D = null;
|
|
1923
|
+
if (!P) {
|
|
1923
1924
|
if (!k) {
|
|
1924
|
-
|
|
1925
|
+
h(!0);
|
|
1925
1926
|
return;
|
|
1926
1927
|
}
|
|
1927
|
-
|
|
1928
|
+
D = {
|
|
1928
1929
|
submitted: !0
|
|
1929
|
-
},
|
|
1930
|
+
}, g && (D.name = p);
|
|
1930
1931
|
}
|
|
1931
1932
|
n({
|
|
1932
|
-
value:
|
|
1933
|
+
value: D,
|
|
1933
1934
|
questionId: r,
|
|
1934
1935
|
type: i
|
|
1935
1936
|
});
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1938
|
-
},
|
|
1939
|
-
|
|
1940
|
-
},
|
|
1941
|
-
|
|
1942
|
-
},
|
|
1937
|
+
}, w = (v) => {
|
|
1938
|
+
v.preventDefault(), v.stopPropagation(), c(v.currentTarget.value);
|
|
1939
|
+
}, C = (v) => {
|
|
1940
|
+
v.currentTarget.style.borderColor = m && !y ? Ie : a;
|
|
1941
|
+
}, O = (v) => {
|
|
1942
|
+
v.currentTarget.style.borderColor = m && !y ? Ie : wt;
|
|
1943
|
+
}, I = () => u("div", {
|
|
1943
1944
|
children: [u(Dt, {
|
|
1944
1945
|
allowTextEntry: !1,
|
|
1945
1946
|
border: a,
|
|
1946
|
-
error:
|
|
1947
|
+
error: m && !d,
|
|
1947
1948
|
isRadio: !1,
|
|
1948
1949
|
isSelected: d,
|
|
1949
1950
|
label: x,
|
|
1950
1951
|
onUserInputChanged: ({
|
|
1951
|
-
selected:
|
|
1952
|
+
selected: v
|
|
1952
1953
|
}) => {
|
|
1953
|
-
|
|
1954
|
+
v !== d && l(!d);
|
|
1954
1955
|
},
|
|
1955
1956
|
useMobileStyling: s
|
|
1956
|
-
}),
|
|
1957
|
-
"aria-label":
|
|
1958
|
-
"aria-placeholder":
|
|
1959
|
-
className: M(
|
|
1957
|
+
}), g && u("input", {
|
|
1958
|
+
"aria-label": f,
|
|
1959
|
+
"aria-placeholder": f,
|
|
1960
|
+
className: M(B(E.ConsentLegalNameInput, s)),
|
|
1960
1961
|
"data-gramm": "false",
|
|
1961
1962
|
maxLength: 250,
|
|
1962
1963
|
name: "name",
|
|
1963
|
-
onBlur:
|
|
1964
|
-
onFocus:
|
|
1965
|
-
onInput:
|
|
1966
|
-
placeholder:
|
|
1967
|
-
style:
|
|
1964
|
+
onBlur: O,
|
|
1965
|
+
onFocus: C,
|
|
1966
|
+
onInput: w,
|
|
1967
|
+
placeholder: f,
|
|
1968
|
+
style: m && !y ? {
|
|
1968
1969
|
borderColor: Ie
|
|
1969
1970
|
} : {},
|
|
1970
1971
|
tabIndex: 0,
|
|
1971
1972
|
value: p
|
|
1972
1973
|
}), u("div", {
|
|
1973
1974
|
className: "ul-card__button-wrapper ul-card-vertical__button-wrapper",
|
|
1974
|
-
children: [u(
|
|
1975
|
+
children: [u(G, {
|
|
1975
1976
|
className: k ? "" : E.ButtonDisabled,
|
|
1976
1977
|
onClick: T,
|
|
1977
1978
|
children: _
|
|
1978
1979
|
}), o.required === !1 && u("button", {
|
|
1979
1980
|
className: E.SkipButton,
|
|
1980
|
-
onClick: (
|
|
1981
|
+
onClick: (v) => T(v, !0),
|
|
1981
1982
|
children: Nt(o)
|
|
1982
1983
|
})]
|
|
1983
1984
|
})]
|
|
@@ -1992,9 +1993,9 @@ const Z = (e) => u("button", {
|
|
|
1992
1993
|
__html: o.richTextBody
|
|
1993
1994
|
} : void 0,
|
|
1994
1995
|
id: "ul-card__consent-legal-body-container"
|
|
1995
|
-
}), u(
|
|
1996
|
+
}), u(pe, {
|
|
1996
1997
|
properties: o,
|
|
1997
|
-
defaultBody:
|
|
1998
|
+
defaultBody: I,
|
|
1998
1999
|
embeddedType: "pdf"
|
|
1999
2000
|
})]
|
|
2000
2001
|
}, r);
|
|
@@ -2011,20 +2012,20 @@ const Z = (e) => u("button", {
|
|
|
2011
2012
|
useMobileStyling: l,
|
|
2012
2013
|
value: p
|
|
2013
2014
|
}) => {
|
|
2014
|
-
const c = `option-${p}`,
|
|
2015
|
+
const c = `option-${p}`, m = s === be.Number, h = s === be.Star, g = m && p === e, [f, x] = p <= e && h || p === e ? o ? [t, 1] : [t, 0.3] : ["", 1], _ = () => {
|
|
2015
2016
|
switch (s) {
|
|
2016
2017
|
case be.Star:
|
|
2017
|
-
return M([...
|
|
2018
|
+
return M([...B(E.LikertStar, l), ...B(`${E.LikertStar}-${p}`, l)]);
|
|
2018
2019
|
case be.Smiley:
|
|
2019
|
-
return M([...
|
|
2020
|
+
return M([...B(E.LikertSmiley, l), ...B(`${E.LikertSmiley}-${p}`, l)]);
|
|
2020
2021
|
default:
|
|
2021
|
-
return M(p === i ? [...
|
|
2022
|
+
return M(p === i ? [...B(E.LikertNumber, l), ...B(`${E.LikertNumber}-${p}`, l), ...B("likert-last-option", l)] : [...B(E.LikertNumber, l), ...B(`${E.LikertNumber}-${p}`, l)]);
|
|
2022
2023
|
}
|
|
2023
|
-
},
|
|
2024
|
+
}, y = () => {
|
|
2024
2025
|
a(-1), d(!1);
|
|
2025
2026
|
};
|
|
2026
2027
|
return u("div", {
|
|
2027
|
-
"aria-label":
|
|
2028
|
+
"aria-label": m ? void 0 : String(p),
|
|
2028
2029
|
className: _(),
|
|
2029
2030
|
dangerouslySetInnerHTML: {
|
|
2030
2031
|
__html: n
|
|
@@ -2033,13 +2034,13 @@ const Z = (e) => u("button", {
|
|
|
2033
2034
|
onClick: () => r(),
|
|
2034
2035
|
onPointerDown: () => d(!0),
|
|
2035
2036
|
onPointerEnter: () => a(p),
|
|
2036
|
-
onPointerLeave:
|
|
2037
|
+
onPointerLeave: y,
|
|
2037
2038
|
role: "radio",
|
|
2038
2039
|
style: {
|
|
2039
|
-
color:
|
|
2040
|
-
borderColor:
|
|
2041
|
-
fillOpacity:
|
|
2042
|
-
zIndex:
|
|
2040
|
+
color: m ? "" : f,
|
|
2041
|
+
borderColor: g ? f : "",
|
|
2042
|
+
fillOpacity: g ? "" : x,
|
|
2043
|
+
zIndex: g ? 3 : "auto"
|
|
2043
2044
|
},
|
|
2044
2045
|
tabIndex: 0
|
|
2045
2046
|
});
|
|
@@ -2055,69 +2056,69 @@ const Z = (e) => u("button", {
|
|
|
2055
2056
|
const {
|
|
2056
2057
|
border: a,
|
|
2057
2058
|
useMobileStyling: d
|
|
2058
|
-
} = $((
|
|
2059
|
-
border:
|
|
2060
|
-
useMobileStyling:
|
|
2061
|
-
})), [l, p] =
|
|
2062
|
-
let
|
|
2059
|
+
} = $((I) => ({
|
|
2060
|
+
border: I.border,
|
|
2061
|
+
useMobileStyling: I.useMobileStyling
|
|
2062
|
+
})), [l, p] = F(-1), [c, m] = F(!1), h = t && t.left, g = t && t.right;
|
|
2063
|
+
let f;
|
|
2063
2064
|
const {
|
|
2064
2065
|
range: x,
|
|
2065
2066
|
scaleLabelType: _,
|
|
2066
|
-
ratingIcons:
|
|
2067
|
+
ratingIcons: y
|
|
2067
2068
|
} = r;
|
|
2068
|
-
x && (
|
|
2069
|
-
const k =
|
|
2070
|
-
var
|
|
2069
|
+
x && (f = Number(x));
|
|
2070
|
+
const k = f || 5, T = (I) => {
|
|
2071
|
+
var v, P;
|
|
2071
2072
|
switch (_) {
|
|
2072
2073
|
case be.Star:
|
|
2073
|
-
return (
|
|
2074
|
+
return (v = y[0]) == null ? void 0 : v.svg;
|
|
2074
2075
|
case be.Smiley:
|
|
2075
|
-
return (
|
|
2076
|
+
return (P = y[I]) == null ? void 0 : P.svg;
|
|
2076
2077
|
default:
|
|
2077
|
-
return String(
|
|
2078
|
+
return String(I + 1);
|
|
2078
2079
|
}
|
|
2079
|
-
},
|
|
2080
|
-
const
|
|
2080
|
+
}, w = [...Array(k)].map((I, v) => {
|
|
2081
|
+
const P = v + 1;
|
|
2081
2082
|
return u(di, {
|
|
2082
2083
|
activeValue: l,
|
|
2083
2084
|
border: a,
|
|
2084
|
-
icon: T(
|
|
2085
|
+
icon: T(v),
|
|
2085
2086
|
isPressed: c,
|
|
2086
2087
|
onSubmit: () => o({
|
|
2087
|
-
value:
|
|
2088
|
+
value: P,
|
|
2088
2089
|
questionId: i,
|
|
2089
2090
|
type: s
|
|
2090
2091
|
}),
|
|
2091
2092
|
range: k,
|
|
2092
2093
|
scaleLabelType: _,
|
|
2093
2094
|
setActiveValue: p,
|
|
2094
|
-
setIsPressed:
|
|
2095
|
+
setIsPressed: m,
|
|
2095
2096
|
useMobileStyling: d,
|
|
2096
|
-
value:
|
|
2097
|
-
},
|
|
2098
|
-
}),
|
|
2099
|
-
|
|
2097
|
+
value: P
|
|
2098
|
+
}, v);
|
|
2099
|
+
}), C = (I) => {
|
|
2100
|
+
I.preventDefault(), I.stopPropagation(), o({
|
|
2100
2101
|
value: null,
|
|
2101
2102
|
questionId: i,
|
|
2102
2103
|
type: s
|
|
2103
2104
|
});
|
|
2104
|
-
},
|
|
2105
|
+
}, O = () => u(W, {
|
|
2105
2106
|
children: [u("div", {
|
|
2106
2107
|
"aria-label": `Rating (1 - ${k})`,
|
|
2107
2108
|
className: "ul-card--likert__numbers",
|
|
2108
2109
|
role: "radiogroup",
|
|
2109
|
-
children:
|
|
2110
|
+
children: w
|
|
2110
2111
|
}), u("div", {
|
|
2111
2112
|
className: "ul-card--likert__labels",
|
|
2112
2113
|
children: [u("span", {
|
|
2113
|
-
children:
|
|
2114
|
+
children: h
|
|
2114
2115
|
}), u("span", {
|
|
2115
|
-
children:
|
|
2116
|
+
children: g
|
|
2116
2117
|
})]
|
|
2117
2118
|
}), !r.required && u("div", {
|
|
2118
2119
|
className: "ul-vertical-centered-container",
|
|
2119
|
-
children: u(
|
|
2120
|
-
onClick:
|
|
2120
|
+
children: u(G, {
|
|
2121
|
+
onClick: C,
|
|
2121
2122
|
children: ye(r)
|
|
2122
2123
|
})
|
|
2123
2124
|
})]
|
|
@@ -2127,9 +2128,9 @@ const Z = (e) => u("button", {
|
|
|
2127
2128
|
children: [u(te, {
|
|
2128
2129
|
message: n,
|
|
2129
2130
|
properties: r
|
|
2130
|
-
}), u(
|
|
2131
|
+
}), u(pe, {
|
|
2131
2132
|
properties: r,
|
|
2132
|
-
defaultBody:
|
|
2133
|
+
defaultBody: O
|
|
2133
2134
|
})]
|
|
2134
2135
|
}, i);
|
|
2135
2136
|
}, pi = ({
|
|
@@ -2144,35 +2145,51 @@ const Z = (e) => u("button", {
|
|
|
2144
2145
|
const {
|
|
2145
2146
|
border: a,
|
|
2146
2147
|
useMobileStyling: d
|
|
2147
|
-
} = $((
|
|
2148
|
-
border:
|
|
2149
|
-
useMobileStyling:
|
|
2150
|
-
})), l = r.matrixColumn, p = o.length, c = l.length,
|
|
2151
|
-
|
|
2152
|
-
|
|
2148
|
+
} = $((v) => ({
|
|
2149
|
+
border: v.border,
|
|
2150
|
+
useMobileStyling: v.useMobileStyling
|
|
2151
|
+
})), l = r.matrixColumn, p = o.length, c = l.length, m = r.required, h = ue(null), [g, f] = F(!1), x = () => {
|
|
2152
|
+
const v = h.current;
|
|
2153
|
+
v && f(v.clientWidth + Math.abs(v.scrollLeft) < v.scrollWidth);
|
|
2154
|
+
};
|
|
2155
|
+
Z(() => {
|
|
2156
|
+
let v;
|
|
2157
|
+
if (h.current) {
|
|
2158
|
+
v = h.current;
|
|
2159
|
+
const P = new ResizeObserver((D) => {
|
|
2160
|
+
f(Math.round(D[0].contentRect.width) < v.scrollWidth);
|
|
2161
|
+
});
|
|
2162
|
+
return P.observe(v), () => {
|
|
2163
|
+
v && P.unobserve(v);
|
|
2164
|
+
};
|
|
2165
|
+
}
|
|
2166
|
+
}, []);
|
|
2167
|
+
const _ = (v) => {
|
|
2168
|
+
v.preventDefault(), v.stopPropagation(), n({
|
|
2169
|
+
value: k,
|
|
2153
2170
|
questionId: i,
|
|
2154
2171
|
type: s
|
|
2155
2172
|
});
|
|
2156
|
-
},
|
|
2157
|
-
|
|
2173
|
+
}, y = o.reduce((v, P) => (v[P.id] = null, v), {}), [k, T] = F(y), w = (v, P) => {
|
|
2174
|
+
T((D) => ({
|
|
2158
2175
|
...D,
|
|
2159
|
-
[
|
|
2176
|
+
[v]: P
|
|
2160
2177
|
}));
|
|
2161
|
-
}, C =
|
|
2178
|
+
}, C = m && Object.values(k).every((v) => v == null), O = o.map((v) => u(W, {
|
|
2162
2179
|
children: [u("div", {
|
|
2163
|
-
"aria-label":
|
|
2180
|
+
"aria-label": v.label,
|
|
2164
2181
|
className: "ul-matrix-row-label",
|
|
2165
|
-
children:
|
|
2166
|
-
},
|
|
2182
|
+
children: v.label
|
|
2183
|
+
}, v.label), u("div", {
|
|
2167
2184
|
className: "ul-matrix-row-options",
|
|
2168
2185
|
role: "radiogroup",
|
|
2169
|
-
children: l.map((
|
|
2170
|
-
const
|
|
2186
|
+
children: l.map((P, D) => {
|
|
2187
|
+
const L = D === c - 1;
|
|
2171
2188
|
return u("div", {
|
|
2172
|
-
className: M("ul-matrix-option-wrapper",
|
|
2189
|
+
className: M("ul-matrix-option-wrapper", L && "ul-matrix-last-option"),
|
|
2173
2190
|
children: u(Dt, {
|
|
2174
2191
|
allowTextEntry: !1,
|
|
2175
|
-
ariaLabel: `${
|
|
2192
|
+
ariaLabel: `${v.label}-${P.label}`,
|
|
2176
2193
|
border: a,
|
|
2177
2194
|
choiceStyle: {
|
|
2178
2195
|
background: "transparent",
|
|
@@ -2181,29 +2198,54 @@ const Z = (e) => u("button", {
|
|
|
2181
2198
|
padding: "0"
|
|
2182
2199
|
},
|
|
2183
2200
|
error: !1,
|
|
2184
|
-
id: `${
|
|
2201
|
+
id: `${v.id}-${P.value}`,
|
|
2185
2202
|
isRadio: !0,
|
|
2186
|
-
isSelected:
|
|
2187
|
-
onUserInputChanged: () =>
|
|
2203
|
+
isSelected: k[v.id] === P.value,
|
|
2204
|
+
onUserInputChanged: () => w(v.id, P.value),
|
|
2188
2205
|
useMobileStyling: d
|
|
2189
2206
|
})
|
|
2190
|
-
},
|
|
2207
|
+
}, P.value);
|
|
2191
2208
|
})
|
|
2192
2209
|
})]
|
|
2193
|
-
})),
|
|
2210
|
+
})), I = () => u("div", {
|
|
2211
|
+
className: "ul-card--matrix_question_container",
|
|
2194
2212
|
children: [u("div", {
|
|
2195
|
-
className: "ul-card--matrix_container",
|
|
2213
|
+
className: M(["ul-card--matrix_container", g && "ul-matrix-scroll-gradient"]),
|
|
2214
|
+
onScroll: () => {
|
|
2215
|
+
x();
|
|
2216
|
+
},
|
|
2217
|
+
ref: h,
|
|
2196
2218
|
children: u("div", {
|
|
2197
2219
|
className: "ul-card--matrix_grid",
|
|
2198
2220
|
style: `--numColumns: ${c}; --numRows: ${p + 1}`,
|
|
2199
|
-
children: [u("div", {}), " ", l.map((
|
|
2221
|
+
children: [u("div", {}), " ", l.map((v) => u("div", {
|
|
2200
2222
|
className: "ul-matrix-column-label",
|
|
2201
|
-
children:
|
|
2202
|
-
},
|
|
2223
|
+
children: v.label
|
|
2224
|
+
}, v.label)), O]
|
|
2225
|
+
})
|
|
2226
|
+
}), g && u("button", {
|
|
2227
|
+
className: "ul-matrix-scroll-arrow",
|
|
2228
|
+
onClick: (v) => {
|
|
2229
|
+
v.preventDefault();
|
|
2230
|
+
const P = h.current;
|
|
2231
|
+
if (P) {
|
|
2232
|
+
const D = getComputedStyle(P).direction === "rtl";
|
|
2233
|
+
P.scrollLeft = D ? P.clientWidth - P.scrollWidth : P.scrollWidth;
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2236
|
+
children: u("svg", {
|
|
2237
|
+
fill: "currentColor",
|
|
2238
|
+
height: "32",
|
|
2239
|
+
viewBox: "0 0 256 256",
|
|
2240
|
+
width: "32",
|
|
2241
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2242
|
+
children: u("path", {
|
|
2243
|
+
d: "M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"
|
|
2244
|
+
})
|
|
2203
2245
|
})
|
|
2204
2246
|
}), u("div", {
|
|
2205
2247
|
className: "ul-card__button-wrapper",
|
|
2206
|
-
children: u(
|
|
2248
|
+
children: u(G, {
|
|
2207
2249
|
disabled: C,
|
|
2208
2250
|
children: ye(r)
|
|
2209
2251
|
})
|
|
@@ -2212,13 +2254,13 @@ const Z = (e) => u("button", {
|
|
|
2212
2254
|
return u("form", {
|
|
2213
2255
|
className: M([e, E.FadeInTransition, "ul-card__matrix"]),
|
|
2214
2256
|
id: "text-form",
|
|
2215
|
-
onSubmit:
|
|
2257
|
+
onSubmit: _,
|
|
2216
2258
|
children: [u(te, {
|
|
2217
2259
|
message: t,
|
|
2218
2260
|
properties: r
|
|
2219
|
-
}), u(
|
|
2261
|
+
}), u(pe, {
|
|
2220
2262
|
properties: r,
|
|
2221
|
-
defaultBody:
|
|
2263
|
+
defaultBody: I
|
|
2222
2264
|
})]
|
|
2223
2265
|
}, i);
|
|
2224
2266
|
}, To = ({
|
|
@@ -2233,69 +2275,69 @@ const Z = (e) => u("button", {
|
|
|
2233
2275
|
const {
|
|
2234
2276
|
border: a,
|
|
2235
2277
|
useMobileStyling: d
|
|
2236
|
-
} = $((
|
|
2237
|
-
border:
|
|
2238
|
-
useMobileStyling:
|
|
2239
|
-
})), l = o.reduce((
|
|
2278
|
+
} = $((C) => ({
|
|
2279
|
+
border: C.border,
|
|
2280
|
+
useMobileStyling: C.useMobileStyling
|
|
2281
|
+
})), l = o.reduce((C, O) => (C[O.id] = {
|
|
2240
2282
|
isSelected: !1
|
|
2241
|
-
},
|
|
2242
|
-
var
|
|
2243
|
-
return (
|
|
2244
|
-
}),
|
|
2245
|
-
var
|
|
2246
|
-
const
|
|
2247
|
-
return ((
|
|
2248
|
-
}), x = Object.values(p).some((
|
|
2249
|
-
id:
|
|
2250
|
-
label:
|
|
2251
|
-
value:
|
|
2252
|
-
optionProperties:
|
|
2283
|
+
}, C), {}), [p, c] = F(l), m = s === b.MultipleChoice, h = r.required, g = o.find((C) => {
|
|
2284
|
+
var O;
|
|
2285
|
+
return (O = C.optionProperties) == null ? void 0 : O.noneOfTheAbove;
|
|
2286
|
+
}), f = Object.entries(p).some(([C, O]) => {
|
|
2287
|
+
var P;
|
|
2288
|
+
const I = o.find((D) => `${D.id}` === C), v = O.userText === void 0 || O.userText.trim() === "";
|
|
2289
|
+
return ((P = I == null ? void 0 : I.optionProperties) == null ? void 0 : P.allowsTextEntry) && v && O.isSelected;
|
|
2290
|
+
}), x = Object.values(p).some((C) => C.isSelected), _ = f || h && !x, y = o.map(({
|
|
2291
|
+
id: C,
|
|
2292
|
+
label: O,
|
|
2293
|
+
value: I,
|
|
2294
|
+
optionProperties: v
|
|
2253
2295
|
}) => {
|
|
2254
|
-
var
|
|
2255
|
-
const
|
|
2256
|
-
allowsTextEntry:
|
|
2257
|
-
noneOfTheAbove:
|
|
2296
|
+
var N, Q;
|
|
2297
|
+
const P = `${C}`, {
|
|
2298
|
+
allowsTextEntry: D,
|
|
2299
|
+
noneOfTheAbove: L
|
|
2258
2300
|
} = {
|
|
2259
2301
|
allowsTextEntry: !1,
|
|
2260
2302
|
noneOfTheAbove: !1,
|
|
2261
|
-
...
|
|
2303
|
+
...v
|
|
2262
2304
|
};
|
|
2263
2305
|
return u(Dt, {
|
|
2264
|
-
allowTextEntry:
|
|
2306
|
+
allowTextEntry: D,
|
|
2265
2307
|
border: a,
|
|
2266
2308
|
error: !1,
|
|
2267
|
-
id:
|
|
2268
|
-
isRadio:
|
|
2269
|
-
noneOfTheAbove:
|
|
2270
|
-
isSelected: !!((
|
|
2271
|
-
label:
|
|
2272
|
-
onUserInputChanged: (
|
|
2309
|
+
id: P,
|
|
2310
|
+
isRadio: m,
|
|
2311
|
+
noneOfTheAbove: L,
|
|
2312
|
+
isSelected: !!((N = p[P]) != null && N.isSelected),
|
|
2313
|
+
label: O,
|
|
2314
|
+
onUserInputChanged: (j) => T(j.id, j.selected, j.userText, j.noneOfTheAbove),
|
|
2273
2315
|
promptText: "Please specify",
|
|
2274
|
-
text: (Q = p[
|
|
2316
|
+
text: (Q = p[C]) == null ? void 0 : Q.userText,
|
|
2275
2317
|
useMobileStyling: d,
|
|
2276
|
-
value:
|
|
2277
|
-
},
|
|
2278
|
-
}), k = (
|
|
2279
|
-
|
|
2280
|
-
}, T = (
|
|
2281
|
-
const
|
|
2282
|
-
if ((
|
|
2283
|
-
for (const
|
|
2284
|
-
|
|
2318
|
+
value: I
|
|
2319
|
+
}, P);
|
|
2320
|
+
}), k = (C) => {
|
|
2321
|
+
C.preventDefault(), C.stopPropagation(), n(p);
|
|
2322
|
+
}, T = (C, O, I, v) => {
|
|
2323
|
+
const P = Object.assign({}, p);
|
|
2324
|
+
if ((m || v) && O)
|
|
2325
|
+
for (const D of Object.values(P))
|
|
2326
|
+
D.isSelected = !1, delete D.userText;
|
|
2285
2327
|
else
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
isSelected:
|
|
2289
|
-
userText:
|
|
2290
|
-
}, c(
|
|
2291
|
-
},
|
|
2328
|
+
g && !v && p[g.id].isSelected && (P[g.id].isSelected = !1);
|
|
2329
|
+
P[C] = {
|
|
2330
|
+
isSelected: O,
|
|
2331
|
+
userText: I
|
|
2332
|
+
}, c(P);
|
|
2333
|
+
}, w = () => u("div", {
|
|
2292
2334
|
children: [u("div", {
|
|
2293
|
-
className: M(
|
|
2294
|
-
role:
|
|
2295
|
-
children:
|
|
2335
|
+
className: M(B(E.ChoiceGroup, d)),
|
|
2336
|
+
role: m ? "radiogroup" : "group",
|
|
2337
|
+
children: y
|
|
2296
2338
|
}), u("div", {
|
|
2297
2339
|
className: "ul-card__button-wrapper",
|
|
2298
|
-
children: u(
|
|
2340
|
+
children: u(G, {
|
|
2299
2341
|
disabled: _,
|
|
2300
2342
|
onClick: k,
|
|
2301
2343
|
children: ye(r)
|
|
@@ -2309,9 +2351,9 @@ const Z = (e) => u("button", {
|
|
|
2309
2351
|
children: [u(te, {
|
|
2310
2352
|
message: t,
|
|
2311
2353
|
properties: r
|
|
2312
|
-
}), u(
|
|
2354
|
+
}), u(pe, {
|
|
2313
2355
|
properties: r,
|
|
2314
|
-
defaultBody:
|
|
2356
|
+
defaultBody: w
|
|
2315
2357
|
})]
|
|
2316
2358
|
}, i);
|
|
2317
2359
|
}, hi = (e) => {
|
|
@@ -2324,7 +2366,7 @@ const Z = (e) => u("button", {
|
|
|
2324
2366
|
return u(To, {
|
|
2325
2367
|
...e,
|
|
2326
2368
|
onSubmit: (s) => {
|
|
2327
|
-
const a = Object.entries(s).find(([,
|
|
2369
|
+
const a = Object.entries(s).find(([, m]) => m.isSelected) || [void 0, void 0], [d, l] = a, p = r.find((m) => `${m.id}` === d), c = l != null && l.userText ? {
|
|
2328
2370
|
[d]: {
|
|
2329
2371
|
userText: l.userText
|
|
2330
2372
|
}
|
|
@@ -2339,7 +2381,7 @@ const Z = (e) => u("button", {
|
|
|
2339
2381
|
});
|
|
2340
2382
|
}
|
|
2341
2383
|
});
|
|
2342
|
-
},
|
|
2384
|
+
}, mi = (e) => {
|
|
2343
2385
|
const {
|
|
2344
2386
|
questionId: t,
|
|
2345
2387
|
type: n,
|
|
@@ -2351,10 +2393,10 @@ const Z = (e) => u("button", {
|
|
|
2351
2393
|
const s = {}, a = Object.entries(i).reduce((l, [p, c]) => (l[p] = c.isSelected, l), s), d = Object.entries(i).reduce((l, [p, c]) => {
|
|
2352
2394
|
if (!c.userText)
|
|
2353
2395
|
return l;
|
|
2354
|
-
const
|
|
2355
|
-
return
|
|
2396
|
+
const m = l || {};
|
|
2397
|
+
return m[p] = {
|
|
2356
2398
|
userText: c.userText
|
|
2357
|
-
},
|
|
2399
|
+
}, m;
|
|
2358
2400
|
}, null);
|
|
2359
2401
|
o({
|
|
2360
2402
|
value: a,
|
|
@@ -2364,7 +2406,7 @@ const Z = (e) => u("button", {
|
|
|
2364
2406
|
});
|
|
2365
2407
|
}
|
|
2366
2408
|
});
|
|
2367
|
-
},
|
|
2409
|
+
}, fi = ({
|
|
2368
2410
|
className: e,
|
|
2369
2411
|
props: {
|
|
2370
2412
|
labels: t,
|
|
@@ -2378,20 +2420,20 @@ const Z = (e) => u("button", {
|
|
|
2378
2420
|
const {
|
|
2379
2421
|
border: a,
|
|
2380
2422
|
useMobileStyling: d
|
|
2381
|
-
} = $((
|
|
2382
|
-
border:
|
|
2383
|
-
useMobileStyling:
|
|
2384
|
-
})), l = t && t.left, p = t && t.right, c = [...Array(11)].map((
|
|
2385
|
-
className: M([...
|
|
2386
|
-
id: `option-${
|
|
2423
|
+
} = $((g) => ({
|
|
2424
|
+
border: g.border,
|
|
2425
|
+
useMobileStyling: g.useMobileStyling
|
|
2426
|
+
})), l = t && t.left, p = t && t.right, c = [...Array(11)].map((g, f) => u("div", {
|
|
2427
|
+
className: M([...B(E.NPSNumber, d), ...B(`${E.NPSNumber}-${f}`, d)]),
|
|
2428
|
+
id: `option-${f}`,
|
|
2387
2429
|
onClick: () => r({
|
|
2388
|
-
value:
|
|
2430
|
+
value: f,
|
|
2389
2431
|
questionId: i,
|
|
2390
2432
|
type: s
|
|
2391
2433
|
}),
|
|
2392
2434
|
onKeyPress: (x) => {
|
|
2393
2435
|
x.preventDefault(), (x.key === "Enter" || x.key === " ") && r({
|
|
2394
|
-
value:
|
|
2436
|
+
value: f,
|
|
2395
2437
|
questionId: i,
|
|
2396
2438
|
type: s
|
|
2397
2439
|
});
|
|
@@ -2404,14 +2446,14 @@ const Z = (e) => u("button", {
|
|
|
2404
2446
|
},
|
|
2405
2447
|
role: "radio",
|
|
2406
2448
|
tabIndex: 0,
|
|
2407
|
-
children:
|
|
2408
|
-
},
|
|
2409
|
-
|
|
2449
|
+
children: f
|
|
2450
|
+
}, f)), m = (g) => {
|
|
2451
|
+
g.preventDefault(), g.stopPropagation(), r({
|
|
2410
2452
|
value: null,
|
|
2411
2453
|
questionId: i,
|
|
2412
2454
|
type: s
|
|
2413
2455
|
});
|
|
2414
|
-
},
|
|
2456
|
+
}, h = () => u("div", {
|
|
2415
2457
|
children: [u("div", {
|
|
2416
2458
|
className: "ul-card--nps__numbers",
|
|
2417
2459
|
children: c
|
|
@@ -2424,8 +2466,8 @@ const Z = (e) => u("button", {
|
|
|
2424
2466
|
})]
|
|
2425
2467
|
}), !o.required && u("div", {
|
|
2426
2468
|
className: "ul-vertical-centered-container",
|
|
2427
|
-
children: u(
|
|
2428
|
-
onClick:
|
|
2469
|
+
children: u(G, {
|
|
2470
|
+
onClick: m,
|
|
2429
2471
|
children: ye(o)
|
|
2430
2472
|
})
|
|
2431
2473
|
})]
|
|
@@ -2435,12 +2477,12 @@ const Z = (e) => u("button", {
|
|
|
2435
2477
|
children: [u(te, {
|
|
2436
2478
|
message: n,
|
|
2437
2479
|
properties: o
|
|
2438
|
-
}), u(
|
|
2480
|
+
}), u(pe, {
|
|
2439
2481
|
properties: o,
|
|
2440
|
-
defaultBody:
|
|
2482
|
+
defaultBody: h
|
|
2441
2483
|
})]
|
|
2442
2484
|
}, i);
|
|
2443
|
-
},
|
|
2485
|
+
}, gi = ({
|
|
2444
2486
|
className: e,
|
|
2445
2487
|
message: t,
|
|
2446
2488
|
next: n,
|
|
@@ -2452,22 +2494,22 @@ const Z = (e) => u("button", {
|
|
|
2452
2494
|
border: s,
|
|
2453
2495
|
useMobileStyling: a,
|
|
2454
2496
|
update: d
|
|
2455
|
-
} = $((
|
|
2456
|
-
border:
|
|
2457
|
-
useMobileStyling:
|
|
2458
|
-
update:
|
|
2459
|
-
})), [l, p] =
|
|
2460
|
-
|
|
2461
|
-
}, x = (
|
|
2462
|
-
|
|
2497
|
+
} = $((w) => ({
|
|
2498
|
+
border: w.border,
|
|
2499
|
+
useMobileStyling: w.useMobileStyling,
|
|
2500
|
+
update: w.update
|
|
2501
|
+
})), [l, p] = F(""), c = ue(null), m = l.trim(), h = o.required === !0 && !m, g = So(c, () => d()), f = (w) => {
|
|
2502
|
+
g(), w.preventDefault(), w.stopPropagation(), p(w.currentTarget.value);
|
|
2503
|
+
}, x = (w) => {
|
|
2504
|
+
w.preventDefault(), w.stopPropagation(), n({
|
|
2463
2505
|
value: l,
|
|
2464
2506
|
questionId: r,
|
|
2465
2507
|
type: i
|
|
2466
2508
|
});
|
|
2467
|
-
}, _ = o && o.openTextPlaceholder ? o.openTextPlaceholder : "",
|
|
2468
|
-
|
|
2469
|
-
}, k = (
|
|
2470
|
-
|
|
2509
|
+
}, _ = o && o.openTextPlaceholder ? o.openTextPlaceholder : "", y = (w) => {
|
|
2510
|
+
w.currentTarget.style.borderColor = s;
|
|
2511
|
+
}, k = (w) => {
|
|
2512
|
+
w.currentTarget.style.borderColor = wt;
|
|
2471
2513
|
}, T = () => u("div", {
|
|
2472
2514
|
className: "ul-card-text",
|
|
2473
2515
|
children: [u("div", {
|
|
@@ -2477,23 +2519,23 @@ const Z = (e) => u("button", {
|
|
|
2477
2519
|
"aria-labelledby": E.QuestionHeader,
|
|
2478
2520
|
"aria-multiline": "true",
|
|
2479
2521
|
"aria-placeholder": _,
|
|
2480
|
-
className: M(
|
|
2522
|
+
className: M(B(E.OpenTextInput, a)),
|
|
2481
2523
|
"data-gramm": "false",
|
|
2482
2524
|
maxLength: 5e3,
|
|
2483
2525
|
name: "text",
|
|
2484
2526
|
onBlur: k,
|
|
2485
|
-
onChange:
|
|
2486
|
-
onFocus:
|
|
2527
|
+
onChange: f,
|
|
2528
|
+
onFocus: y,
|
|
2487
2529
|
placeholder: _,
|
|
2488
2530
|
ref: c,
|
|
2489
2531
|
role: "textbox",
|
|
2490
2532
|
tabIndex: 0
|
|
2491
2533
|
})
|
|
2492
|
-
}), u(
|
|
2493
|
-
disabled:
|
|
2534
|
+
}), u(G, {
|
|
2535
|
+
disabled: h,
|
|
2494
2536
|
onClick: x,
|
|
2495
2537
|
style: {
|
|
2496
|
-
backgroundColor:
|
|
2538
|
+
backgroundColor: h ? "" : s
|
|
2497
2539
|
},
|
|
2498
2540
|
children: ye(o)
|
|
2499
2541
|
})]
|
|
@@ -2504,23 +2546,23 @@ const Z = (e) => u("button", {
|
|
|
2504
2546
|
children: [u(te, {
|
|
2505
2547
|
message: t,
|
|
2506
2548
|
properties: o
|
|
2507
|
-
}), u(
|
|
2549
|
+
}), u(pe, {
|
|
2508
2550
|
defaultBody: T,
|
|
2509
2551
|
properties: o
|
|
2510
2552
|
})]
|
|
2511
2553
|
}, r);
|
|
2512
2554
|
};
|
|
2513
2555
|
var fe = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(fe || {});
|
|
2514
|
-
const Xe = (e) => e.type ===
|
|
2556
|
+
const Xe = (e) => e.type === Y.AvPermission, Po = (e) => e.type === Y.ScreenPermission, vi = (e, t) => !(Xe(t) ? t.permissionDescriptors : []).includes(we.Camera) || e.getVideoTracks().length > 0, jo = (e, t) => {
|
|
2515
2557
|
if (e === void 0)
|
|
2516
2558
|
return fe.RequestNeeded;
|
|
2517
2559
|
if (e) {
|
|
2518
|
-
if (!
|
|
2560
|
+
if (!vi(e, t))
|
|
2519
2561
|
return fe.RequestNeeded;
|
|
2520
2562
|
} else
|
|
2521
2563
|
return fe.TryAgain;
|
|
2522
2564
|
return fe.Ready;
|
|
2523
|
-
},
|
|
2565
|
+
}, mn = {
|
|
2524
2566
|
avStream: null,
|
|
2525
2567
|
currentPage: null,
|
|
2526
2568
|
mediaRecordingUids: null,
|
|
@@ -2531,9 +2573,9 @@ const Xe = (e) => e.type === W.AvPermission, Po = (e) => e.type === W.ScreenPerm
|
|
|
2531
2573
|
screenPermissionRequested: !1,
|
|
2532
2574
|
type: void 0
|
|
2533
2575
|
}, ie = Co((e) => ({
|
|
2534
|
-
...
|
|
2576
|
+
...mn,
|
|
2535
2577
|
reset: () => {
|
|
2536
|
-
e(
|
|
2578
|
+
e(mn);
|
|
2537
2579
|
},
|
|
2538
2580
|
updatePage: (t) => {
|
|
2539
2581
|
e(t);
|
|
@@ -2572,7 +2614,7 @@ function yt({
|
|
|
2572
2614
|
}
|
|
2573
2615
|
});
|
|
2574
2616
|
}
|
|
2575
|
-
function
|
|
2617
|
+
function _i({
|
|
2576
2618
|
pages: e,
|
|
2577
2619
|
userId: t,
|
|
2578
2620
|
responseGroupUid: n,
|
|
@@ -2593,37 +2635,37 @@ function gi({
|
|
|
2593
2635
|
};
|
|
2594
2636
|
let p = 0;
|
|
2595
2637
|
d.emit(ce.RecordedTaskPermissionScreen), a(ce.RecordedTaskPermissionScreen), d.emit(q.PermissionStatus, {
|
|
2596
|
-
[U.PermissionStatusCallback]: (
|
|
2638
|
+
[U.PermissionStatusCallback]: (m, h, g, f) => {
|
|
2597
2639
|
const x = e[p], {
|
|
2598
2640
|
type: _
|
|
2599
|
-
} = x,
|
|
2641
|
+
} = x, y = [re.Screen];
|
|
2600
2642
|
if (Xe(x)) {
|
|
2601
2643
|
const {
|
|
2602
2644
|
permissionDescriptors: k
|
|
2603
|
-
} = x, T = k == null ? void 0 : k.includes(we.Microphone),
|
|
2604
|
-
T &&
|
|
2605
|
-
const
|
|
2606
|
-
(
|
|
2645
|
+
} = x, T = k == null ? void 0 : k.includes(we.Microphone), w = k == null ? void 0 : k.includes(we.Camera);
|
|
2646
|
+
T && y.push(re.Audio), w && y.push(re.Video);
|
|
2647
|
+
const C = (m == null ? void 0 : m.active) && !w, O = (m == null ? void 0 : m.active) && h;
|
|
2648
|
+
(C || O) && p++;
|
|
2607
2649
|
}
|
|
2608
|
-
Po(e[p]) &&
|
|
2609
|
-
[U.RecordingMediaTypes]:
|
|
2650
|
+
Po(e[p]) && g && (p++, d.emit(q.BeginRecording, {
|
|
2651
|
+
[U.RecordingMediaTypes]: y,
|
|
2610
2652
|
[U.StartRecordingCallback]: (k) => s({
|
|
2611
2653
|
mediaRecordingUids: k
|
|
2612
2654
|
})
|
|
2613
2655
|
})), s({
|
|
2614
2656
|
currentPage: e[p],
|
|
2615
|
-
avStream:
|
|
2616
|
-
screenPermissionRequested:
|
|
2657
|
+
avStream: m,
|
|
2658
|
+
screenPermissionRequested: g,
|
|
2617
2659
|
nextQuestion: i,
|
|
2618
2660
|
type: _,
|
|
2619
2661
|
passthroughData: l,
|
|
2620
|
-
recordingMediaTypes:
|
|
2621
|
-
captureStream:
|
|
2662
|
+
recordingMediaTypes: y,
|
|
2663
|
+
captureStream: f
|
|
2622
2664
|
});
|
|
2623
2665
|
}
|
|
2624
2666
|
});
|
|
2625
2667
|
const c = e[p];
|
|
2626
|
-
return c.type ===
|
|
2668
|
+
return c.type === Y.AvPermission && yt({
|
|
2627
2669
|
currentPage: c,
|
|
2628
2670
|
pages: e
|
|
2629
2671
|
}), c;
|
|
@@ -2697,7 +2739,7 @@ function Ot({
|
|
|
2697
2739
|
return;
|
|
2698
2740
|
const d = e.indexOf(i);
|
|
2699
2741
|
switch (i.type) {
|
|
2700
|
-
case
|
|
2742
|
+
case Y.AvPermission: {
|
|
2701
2743
|
const l = a ? d + 2 : d + 1;
|
|
2702
2744
|
a && s && n.emit(q.BeginRecording, {
|
|
2703
2745
|
[U.RecordingMediaTypes]: s,
|
|
@@ -2711,17 +2753,17 @@ function Ot({
|
|
|
2711
2753
|
});
|
|
2712
2754
|
return;
|
|
2713
2755
|
}
|
|
2714
|
-
case
|
|
2756
|
+
case Y.ScreenPermission:
|
|
2715
2757
|
n.emit(q.ScreenPermission, {
|
|
2716
2758
|
[U.ScreenPermissionRequested]: t,
|
|
2717
2759
|
[U.StreamReadyCallback]: (l, p) => {
|
|
2718
2760
|
const c = p ? e[d + 1] : i;
|
|
2719
2761
|
p && s && n.emit(q.BeginRecording, {
|
|
2720
2762
|
[U.RecordingMediaTypes]: s,
|
|
2721
|
-
[U.StartRecordingCallback]: (
|
|
2763
|
+
[U.StartRecordingCallback]: (m) => {
|
|
2722
2764
|
r({
|
|
2723
2765
|
captureStream: p,
|
|
2724
|
-
mediaRecordingUids:
|
|
2766
|
+
mediaRecordingUids: m
|
|
2725
2767
|
});
|
|
2726
2768
|
}
|
|
2727
2769
|
}), r({
|
|
@@ -2732,13 +2774,13 @@ function Ot({
|
|
|
2732
2774
|
}
|
|
2733
2775
|
});
|
|
2734
2776
|
return;
|
|
2735
|
-
case
|
|
2777
|
+
case Y.StartTask:
|
|
2736
2778
|
o(ce.RecordedTaskStart), n.emit(ce.RecordedTaskStart), n.emit(q.StartTask), r({
|
|
2737
2779
|
currentPage: e[d + 1],
|
|
2738
2780
|
screenPermissionRequested: !0
|
|
2739
2781
|
});
|
|
2740
2782
|
return;
|
|
2741
|
-
case
|
|
2783
|
+
case Y.CompleteTask:
|
|
2742
2784
|
return;
|
|
2743
2785
|
}
|
|
2744
2786
|
}
|
|
@@ -2754,7 +2796,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2754
2796
|
required: e,
|
|
2755
2797
|
skipButtonText: t,
|
|
2756
2798
|
bottom: n = !1
|
|
2757
|
-
}) => e ? null : u(
|
|
2799
|
+
}) => e ? null : u(G, {
|
|
2758
2800
|
className: M([n && "ul-skip-button-below", E.InactiveButton]),
|
|
2759
2801
|
onClick: Ct.bind(null, {
|
|
2760
2802
|
status: X.Abandoned
|
|
@@ -2767,7 +2809,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2767
2809
|
recordingMediaTypes: o,
|
|
2768
2810
|
updatePage: r
|
|
2769
2811
|
} = ie.getState(), i = (o == null ? void 0 : o.includes(re.Audio)) || (o == null ? void 0 : o.includes(re.Video));
|
|
2770
|
-
|
|
2812
|
+
Z(() => {
|
|
2771
2813
|
const s = setInterval(() => {
|
|
2772
2814
|
i && t && !t.active ? r({
|
|
2773
2815
|
avStream: null,
|
|
@@ -2795,7 +2837,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2795
2837
|
richTextBody: i
|
|
2796
2838
|
}), u("div", {
|
|
2797
2839
|
className: et,
|
|
2798
|
-
children: [u(
|
|
2840
|
+
children: [u(G, {
|
|
2799
2841
|
onClick: Ot.bind(null, {
|
|
2800
2842
|
pages: t
|
|
2801
2843
|
}),
|
|
@@ -2816,17 +2858,17 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2816
2858
|
skipButtonText: r
|
|
2817
2859
|
} = e;
|
|
2818
2860
|
Mt(t);
|
|
2819
|
-
const s = u(
|
|
2861
|
+
const s = u(pe, {
|
|
2820
2862
|
properties: n,
|
|
2821
2863
|
defaultBody: () => u("div", {
|
|
2822
2864
|
className: et,
|
|
2823
|
-
children: [u(
|
|
2865
|
+
children: [u(G, {
|
|
2824
2866
|
className: "ul-complete-task-button",
|
|
2825
2867
|
onClick: Ct.bind(null, {
|
|
2826
2868
|
status: X.Completed
|
|
2827
2869
|
}),
|
|
2828
2870
|
children: o
|
|
2829
|
-
}), u(
|
|
2871
|
+
}), u(G, {
|
|
2830
2872
|
className: M([E.InactiveButton]),
|
|
2831
2873
|
onClick: Ct.bind(null, {
|
|
2832
2874
|
status: X.GivenUp
|
|
@@ -2849,7 +2891,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2849
2891
|
const {
|
|
2850
2892
|
buttonText: o,
|
|
2851
2893
|
skipButtonText: r
|
|
2852
|
-
} = e, [i] = $((d) => [d.tabTitle]), [s, a] =
|
|
2894
|
+
} = e, [i] = $((d) => [d.tabTitle]), [s, a] = F(!1);
|
|
2853
2895
|
return u("div", {
|
|
2854
2896
|
children: [u("div", {
|
|
2855
2897
|
className: Lo,
|
|
@@ -2867,7 +2909,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2867
2909
|
})]
|
|
2868
2910
|
}), u("div", {
|
|
2869
2911
|
className: n ? "" : et,
|
|
2870
|
-
children: [u(
|
|
2912
|
+
children: [u(G, {
|
|
2871
2913
|
disabled: s,
|
|
2872
2914
|
onClick: Ot.bind(null, {
|
|
2873
2915
|
pages: t,
|
|
@@ -2898,7 +2940,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2898
2940
|
skipButtonText: i,
|
|
2899
2941
|
tryAgainButtonText: s
|
|
2900
2942
|
} = e, a = Xe(t[0]) ? t[0] : null;
|
|
2901
|
-
return
|
|
2943
|
+
return Z(() => {
|
|
2902
2944
|
const d = setInterval(() => {
|
|
2903
2945
|
a !== null && yt({
|
|
2904
2946
|
currentPage: a,
|
|
@@ -2921,7 +2963,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2921
2963
|
})
|
|
2922
2964
|
}), u("div", {
|
|
2923
2965
|
className: et,
|
|
2924
|
-
children: [u(
|
|
2966
|
+
children: [u(G, {
|
|
2925
2967
|
onClick: yt.bind(null, {
|
|
2926
2968
|
currentPage: a,
|
|
2927
2969
|
pages: t
|
|
@@ -2958,7 +3000,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2958
3000
|
stream: r
|
|
2959
3001
|
}), u("div", {
|
|
2960
3002
|
className: "ul-vertical-button-container-center",
|
|
2961
|
-
children: [u(
|
|
3003
|
+
children: [u(G, {
|
|
2962
3004
|
onClick: Ot.bind(null, {
|
|
2963
3005
|
pages: t
|
|
2964
3006
|
}),
|
|
@@ -2983,7 +3025,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2983
3025
|
if (r === void 0)
|
|
2984
3026
|
return null;
|
|
2985
3027
|
switch (r == null ? void 0 : r.type) {
|
|
2986
|
-
case
|
|
3028
|
+
case Y.AvPermission: {
|
|
2987
3029
|
const i = jo(o, r);
|
|
2988
3030
|
return i === fe.RequestNeeded ? u(Ci, {
|
|
2989
3031
|
content: r
|
|
@@ -2997,19 +3039,19 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
2997
3039
|
required: n
|
|
2998
3040
|
});
|
|
2999
3041
|
}
|
|
3000
|
-
case
|
|
3042
|
+
case Y.ScreenPermission:
|
|
3001
3043
|
return u(yi, {
|
|
3002
3044
|
content: r,
|
|
3003
3045
|
pages: t,
|
|
3004
3046
|
required: n
|
|
3005
3047
|
});
|
|
3006
|
-
case
|
|
3048
|
+
case Y.StartTask:
|
|
3007
3049
|
return u(bi, {
|
|
3008
3050
|
content: r,
|
|
3009
3051
|
pages: t,
|
|
3010
3052
|
required: n
|
|
3011
3053
|
});
|
|
3012
|
-
case
|
|
3054
|
+
case Y.CompleteTask:
|
|
3013
3055
|
return u(xi, {
|
|
3014
3056
|
content: r,
|
|
3015
3057
|
pages: t,
|
|
@@ -3030,26 +3072,26 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
3030
3072
|
userId: a
|
|
3031
3073
|
} = r, d = ie(), {
|
|
3032
3074
|
screenPermissionRequested: l
|
|
3033
|
-
} = d, p = ie((
|
|
3034
|
-
let c = ie((
|
|
3035
|
-
c || (c =
|
|
3075
|
+
} = d, p = ie((f) => f.avStream);
|
|
3076
|
+
let c = ie((f) => f.currentPage);
|
|
3077
|
+
c || (c = _i({
|
|
3036
3078
|
questionId: o,
|
|
3037
3079
|
surveyId: i,
|
|
3038
|
-
next: (
|
|
3039
|
-
n(
|
|
3080
|
+
next: (f) => {
|
|
3081
|
+
n(f);
|
|
3040
3082
|
},
|
|
3041
3083
|
pages: t.pages,
|
|
3042
3084
|
responseGroupUid: s,
|
|
3043
3085
|
userId: a
|
|
3044
3086
|
}));
|
|
3045
|
-
let
|
|
3046
|
-
const
|
|
3047
|
-
return Po(c) && l && (
|
|
3087
|
+
let m = c.headline, h = c.captionText;
|
|
3088
|
+
const g = jo(p, c);
|
|
3089
|
+
return Po(c) && l && (m = c.permissionDeniedHeadline, h = c.permissionDeniedCaptionText), Xe(c) && g === fe.Ready && (m = c.permissionGrantedHeadline, h = c.permissionGrantedCaptionText), u("div", {
|
|
3048
3090
|
className: M([e, "ul-center-horizontally", E.FadeInTransition]),
|
|
3049
3091
|
children: [u(te, {
|
|
3050
|
-
message:
|
|
3092
|
+
message: m,
|
|
3051
3093
|
properties: {
|
|
3052
|
-
captionText:
|
|
3094
|
+
captionText: h
|
|
3053
3095
|
}
|
|
3054
3096
|
}), u(Ei, {
|
|
3055
3097
|
properties: t
|
|
@@ -3089,9 +3131,9 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
3089
3131
|
visitorAttributes: s
|
|
3090
3132
|
} = $((c) => ({
|
|
3091
3133
|
visitorAttributes: c.visitorAttributes
|
|
3092
|
-
})), a = (c,
|
|
3134
|
+
})), a = (c, m = !1) => {
|
|
3093
3135
|
n({
|
|
3094
|
-
value:
|
|
3136
|
+
value: m ? {
|
|
3095
3137
|
skipped: !0
|
|
3096
3138
|
} : void 0,
|
|
3097
3139
|
questionId: r,
|
|
@@ -3120,11 +3162,11 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
3120
3162
|
children: ye(o)
|
|
3121
3163
|
}), o.required === !1 && u("button", {
|
|
3122
3164
|
className: E.SkipButton,
|
|
3123
|
-
onClick: (
|
|
3165
|
+
onClick: (m) => a(m, !0),
|
|
3124
3166
|
children: Nt(o)
|
|
3125
3167
|
})]
|
|
3126
3168
|
});
|
|
3127
|
-
}, p = (c,
|
|
3169
|
+
}, p = (c, m) => c ? u("div", {
|
|
3128
3170
|
className: "ul-rich-text-body",
|
|
3129
3171
|
dangerouslySetInnerHTML: {
|
|
3130
3172
|
__html: c
|
|
@@ -3133,15 +3175,15 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
3133
3175
|
}) : u("div", {
|
|
3134
3176
|
className: "ul-rich-text-body",
|
|
3135
3177
|
id: "ul-card__text-url-body-container",
|
|
3136
|
-
children: (
|
|
3137
|
-
children:
|
|
3138
|
-
},
|
|
3178
|
+
children: (m ? m.split(/\n\s*\n/g) : []).map((h, g) => u("p", {
|
|
3179
|
+
children: h
|
|
3180
|
+
}, g))
|
|
3139
3181
|
});
|
|
3140
3182
|
return u("div", {
|
|
3141
3183
|
className: M([e, "ul-card__text-url-prompt", E.FadeInTransition]),
|
|
3142
3184
|
children: [u(te, {
|
|
3143
3185
|
message: t
|
|
3144
|
-
}), p(o == null ? void 0 : o.richTextBody, o == null ? void 0 : o.body), u(
|
|
3186
|
+
}), p(o == null ? void 0 : o.richTextBody, o == null ? void 0 : o.body), u(pe, {
|
|
3145
3187
|
defaultBody: l,
|
|
3146
3188
|
properties: o
|
|
3147
3189
|
})]
|
|
@@ -3161,7 +3203,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
3161
3203
|
endCard: d.endCard,
|
|
3162
3204
|
forceBrandedLogo: d.forceBrandedLogo
|
|
3163
3205
|
}));
|
|
3164
|
-
|
|
3206
|
+
Z(() => {
|
|
3165
3207
|
setTimeout(() => {
|
|
3166
3208
|
o(ke);
|
|
3167
3209
|
}, i ? 4e3 : 2e3);
|
|
@@ -3206,7 +3248,7 @@ const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M
|
|
|
3206
3248
|
})
|
|
3207
3249
|
})
|
|
3208
3250
|
}, t);
|
|
3209
|
-
},
|
|
3251
|
+
}, _e = "https://cdn.sprig.com", R = {
|
|
3210
3252
|
document: void 0,
|
|
3211
3253
|
videojs: void 0
|
|
3212
3254
|
}, Li = `/* progress control styles */
|
|
@@ -3867,25 +3909,25 @@ span.ul-button-text {
|
|
|
3867
3909
|
background-size: cover;
|
|
3868
3910
|
}
|
|
3869
3911
|
`, Di = (e) => {
|
|
3870
|
-
const t =
|
|
3912
|
+
const t = R.document.createElement("div");
|
|
3871
3913
|
return t.className = "ul-video-player-loading", t.id = At(e), ["first", "second", "third", "fourth"].map((n) => {
|
|
3872
|
-
const o =
|
|
3914
|
+
const o = R.document.createElement("div");
|
|
3873
3915
|
o.className = n, t.appendChild(o);
|
|
3874
3916
|
}), t;
|
|
3875
|
-
}, At = (e) => e + "-loading-spiner",
|
|
3876
|
-
{ type: "link", content: `${
|
|
3877
|
-
{ type: "script", content: `${
|
|
3878
|
-
{ type: "script", content: `${
|
|
3879
|
-
{ type: "script", content: `${
|
|
3880
|
-
{ type: "script", content: `${
|
|
3917
|
+
}, At = (e) => e + "-loading-spiner", z = "hidden", fn = ".m3u8", lt = "questionId", ct = "ul-video-recorder-camera-off-button", dt = "ul-recording-in-session", Ni = [
|
|
3918
|
+
{ type: "link", content: `${_e}/dependencies/videojs-record-4.5.0.min.css` },
|
|
3919
|
+
{ type: "script", content: `${_e}/dependencies/RecordRTC-5.6.2.js` },
|
|
3920
|
+
{ type: "script", content: `${_e}/dependencies/adapter.8.0.0.min.js` },
|
|
3921
|
+
{ type: "script", content: `${_e}/dependencies/videojs-record-4.5.0.min.js` },
|
|
3922
|
+
{ type: "script", content: `${_e}/userleap-web-upchunk-v2.2.2.js` }
|
|
3881
3923
|
], No = [
|
|
3882
|
-
{ type: "link", content: `${
|
|
3883
|
-
{ type: "script", content: `${
|
|
3924
|
+
{ type: "link", content: `${_e}/dependencies/video-js-7.18.0.min.css` },
|
|
3925
|
+
{ type: "script", content: `${_e}/dependencies/video-js-7.18.0.min.js` },
|
|
3884
3926
|
{ type: "style", content: Li }
|
|
3885
3927
|
], Oo = "-video-player", Mo = "-secondary-video-player", Ao = "-video-recorder";
|
|
3886
|
-
let oe,
|
|
3887
|
-
const
|
|
3888
|
-
const s =
|
|
3928
|
+
let oe, gn;
|
|
3929
|
+
const me = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, metadata: i }) => {
|
|
3930
|
+
const s = R.document.documentElement;
|
|
3889
3931
|
if (!o || !r)
|
|
3890
3932
|
return;
|
|
3891
3933
|
const a = {
|
|
@@ -3909,7 +3951,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3909
3951
|
body: JSON.stringify(a)
|
|
3910
3952
|
})).ok || console.warn("[Sprig] (ERR-444) Failed to track analytics", e);
|
|
3911
3953
|
}, se = async (e, t, n, o, r, i) => {
|
|
3912
|
-
|
|
3954
|
+
me({
|
|
3913
3955
|
event: `Video Error ${t}`,
|
|
3914
3956
|
apiBase: n,
|
|
3915
3957
|
headers: o,
|
|
@@ -3917,7 +3959,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3917
3959
|
envId: i,
|
|
3918
3960
|
metadata: { errorMessage: e.message }
|
|
3919
3961
|
});
|
|
3920
|
-
const s =
|
|
3962
|
+
const s = R.document.documentElement, a = {
|
|
3921
3963
|
screenWidth: window.screen.width,
|
|
3922
3964
|
screenHeight: window.screen.height,
|
|
3923
3965
|
clientWidth: s.clientWidth,
|
|
@@ -3943,7 +3985,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3943
3985
|
})).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", e);
|
|
3944
3986
|
}, Oi = (e, { type: t, content: n }) => new Promise(function(o, r) {
|
|
3945
3987
|
let i;
|
|
3946
|
-
t === "script" ? (i =
|
|
3988
|
+
t === "script" ? (i = R.document.createElement("script"), i.src = n) : t === "link" ? (i = R.document.createElement("link"), i.rel = "stylesheet", i.href = n, i.type = "text/css") : (i = R.document.createElement("style"), i.innerHTML = n), i.onload = function() {
|
|
3947
3989
|
o(n);
|
|
3948
3990
|
}, i.onerror = function() {
|
|
3949
3991
|
r(n);
|
|
@@ -3952,39 +3994,39 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3952
3994
|
if (e.length === 0)
|
|
3953
3995
|
return t && t();
|
|
3954
3996
|
Promise.all(
|
|
3955
|
-
e.reduce((n, o) => (n.push(Oi(
|
|
3997
|
+
e.reduce((n, o) => (n.push(Oi(R.document.head, o)), n), [])
|
|
3956
3998
|
).then(() => {
|
|
3957
|
-
|
|
3999
|
+
R.videojs = R.document.defaultView.videojs, t && t();
|
|
3958
4000
|
}).catch(function(n) {
|
|
3959
4001
|
console.log(n + " failed to load");
|
|
3960
4002
|
});
|
|
3961
|
-
},
|
|
4003
|
+
}, vn = (e, t, n) => {
|
|
3962
4004
|
if (t === "start" && (e.style.visibility = "visible"), t === "none")
|
|
3963
|
-
e.style.visibility =
|
|
4005
|
+
e.style.visibility = z;
|
|
3964
4006
|
else if (t === "success")
|
|
3965
|
-
e.style.visibility =
|
|
4007
|
+
e.style.visibility = z, e.innerHTML = "Upload succeeded!";
|
|
3966
4008
|
else {
|
|
3967
4009
|
const o = Math.round(parseFloat(n));
|
|
3968
4010
|
e.innerHTML = `Uploading <span class="ul-upload-progress-label__time">${o}%</span>`, e.style.background = `linear-gradient(to right, #E0E0EB 0%, #E0E0EB ${o}%, #FCFCFD ${o}%, #FCFCFD 100%)`;
|
|
3969
4011
|
}
|
|
3970
4012
|
}, ut = (e, t) => {
|
|
3971
|
-
const n =
|
|
4013
|
+
const n = R.videojs(e.id());
|
|
3972
4014
|
return n == null ? void 0 : n.payload[t];
|
|
3973
4015
|
}, Mi = (e, t, n, o, r) => {
|
|
3974
4016
|
const { surveyId: i, responseGroupUid: s, visitorId: a, envId: d } = e.payload;
|
|
3975
4017
|
e.on("deviceError", function() {
|
|
3976
|
-
console.warn("device error: ", e.deviceErrorCode), e.deviceErrorCode.message === "Permission denied" ? (e.deviceButton.addClass("permission-denied"), n && n(
|
|
4018
|
+
console.warn("device error: ", e.deviceErrorCode), e.deviceErrorCode.message === "Permission denied" ? (e.deviceButton.addClass("permission-denied"), n && n(A.ERROR, { type: A.PERMISSION_DENIED }), me({
|
|
3977
4019
|
event: "Video Permission Denied",
|
|
3978
4020
|
apiBase: t,
|
|
3979
4021
|
headers: r,
|
|
3980
4022
|
visitorId: a,
|
|
3981
4023
|
envId: d,
|
|
3982
4024
|
metadata: { questionId: ut(e, lt), responseGroupUid: s, surveyId: i }
|
|
3983
|
-
})) : (n && n(
|
|
4025
|
+
})) : (n && n(A.ERROR, { type: A.OTHER }), se(new Error(e.deviceErrorCode.message), "recorderDeviceError", t, r, a, d));
|
|
3984
4026
|
}), e.on("error", function(l, p) {
|
|
3985
4027
|
se(p || e.error(), "recorderError", t, r, a, d);
|
|
3986
4028
|
}), e.on("startRecord", function(l, p) {
|
|
3987
|
-
o(e.uploadProgressLabel, "none"),
|
|
4029
|
+
o(e.uploadProgressLabel, "none"), me({
|
|
3988
4030
|
event: "Video Record Start",
|
|
3989
4031
|
apiBase: t,
|
|
3990
4032
|
headers: r,
|
|
@@ -3996,12 +4038,12 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3996
4038
|
o(e.uploadProgressLabel, "start", 0);
|
|
3997
4039
|
const l = ut(e, lt);
|
|
3998
4040
|
if (!i) {
|
|
3999
|
-
const
|
|
4000
|
-
return n && n(
|
|
4041
|
+
const f = "internal error: missing fields in payload";
|
|
4042
|
+
return n && n(A.ERROR, { type: A.OTHER }), se(new Error(f), "finishRecord", t, r, a, d), null;
|
|
4001
4043
|
}
|
|
4002
4044
|
e.record().stopDevice();
|
|
4003
|
-
const p = e.cameraOff ?
|
|
4004
|
-
|
|
4045
|
+
const p = e.cameraOff ? A.MEDIA_TYPE_AUDIO : A.MEDIA_TYPE_VIDEO, c = mt();
|
|
4046
|
+
me({
|
|
4005
4047
|
event: "Video Record Finish",
|
|
4006
4048
|
apiBase: t,
|
|
4007
4049
|
headers: r,
|
|
@@ -4009,29 +4051,29 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4009
4051
|
envId: d,
|
|
4010
4052
|
metadata: { mediaRecordingUid: c, questionId: l, responseGroupUid: s, surveyId: i, mediaType: p }
|
|
4011
4053
|
});
|
|
4012
|
-
const
|
|
4054
|
+
const m = {
|
|
4013
4055
|
surveyId: i,
|
|
4014
4056
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4015
4057
|
mediaType: p,
|
|
4016
4058
|
mediaRecordingUid: c
|
|
4017
4059
|
};
|
|
4018
|
-
l && (
|
|
4019
|
-
const
|
|
4020
|
-
const
|
|
4060
|
+
l && (m.questionId = l), s && (m.responseGroupUid = s), a && (m.visitorId = a);
|
|
4061
|
+
const g = await (async () => {
|
|
4062
|
+
const f = await fetch(`${t}/2/environments/integrations/upload`, {
|
|
4021
4063
|
method: "POST",
|
|
4022
4064
|
cache: "no-cache",
|
|
4023
4065
|
headers: { "Content-Type": "application/json" },
|
|
4024
|
-
body: JSON.stringify(
|
|
4066
|
+
body: JSON.stringify(m)
|
|
4025
4067
|
});
|
|
4026
|
-
if (
|
|
4027
|
-
const x = await
|
|
4028
|
-
return n && n(
|
|
4029
|
-
[
|
|
4030
|
-
[
|
|
4031
|
-
[
|
|
4068
|
+
if (f.ok) {
|
|
4069
|
+
const x = await f.json();
|
|
4070
|
+
return n && n(A.UPLOAD_STARTED, {
|
|
4071
|
+
[A.UPLOAD_ID]: x.upload.id,
|
|
4072
|
+
[A.MEDIA_TYPE]: p,
|
|
4073
|
+
[A.MEDIA_RECORDING_UID]: c
|
|
4032
4074
|
}), x.upload.url;
|
|
4033
4075
|
} else
|
|
4034
|
-
return n && n(
|
|
4076
|
+
return n && n(A.ERROR, { type: A.OTHER, response: f }), se(
|
|
4035
4077
|
new Error("failed to get upload response with url"),
|
|
4036
4078
|
"finishRecord",
|
|
4037
4079
|
t,
|
|
@@ -4040,31 +4082,31 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4040
4082
|
d
|
|
4041
4083
|
), null;
|
|
4042
4084
|
})();
|
|
4043
|
-
|
|
4085
|
+
g && (oe = R.document.defaultView.UpChunk.createUpload({
|
|
4044
4086
|
// endpoint computed from backend separately and hacked together
|
|
4045
|
-
endpoint:
|
|
4046
|
-
file: new
|
|
4087
|
+
endpoint: g,
|
|
4088
|
+
file: new R.document.defaultView.File(
|
|
4047
4089
|
[e.recordedData],
|
|
4048
4090
|
`recording ${p} ${Date.now()}`
|
|
4049
4091
|
),
|
|
4050
4092
|
chunkSize: 5120
|
|
4051
4093
|
// Uploads the file in ~5mb chunks
|
|
4052
|
-
}), oe.startTime = Date.now(),
|
|
4094
|
+
}), oe.startTime = Date.now(), me({
|
|
4053
4095
|
event: "Video Upload Start",
|
|
4054
4096
|
apiBase: t,
|
|
4055
4097
|
headers: r,
|
|
4056
4098
|
visitorId: a,
|
|
4057
4099
|
envId: d,
|
|
4058
|
-
metadata: { mediaRecordingUid: c, questionId: l, responseGroupUid: s, surveyId: i, mediaType: p, url:
|
|
4059
|
-
}), oe.on("error", (
|
|
4060
|
-
o(e.uploadProgressLabel, "none"), n && n(
|
|
4061
|
-
}), oe.on("progress", (
|
|
4062
|
-
n && n(
|
|
4063
|
-
[
|
|
4064
|
-
[
|
|
4065
|
-
}), o(e.uploadProgressLabel, "progress",
|
|
4100
|
+
metadata: { mediaRecordingUid: c, questionId: l, responseGroupUid: s, surveyId: i, mediaType: p, url: g }
|
|
4101
|
+
}), oe.on("error", (f) => {
|
|
4102
|
+
o(e.uploadProgressLabel, "none"), n && n(A.UPLOAD_FINISHED, { [A.MEDIA_RECORDING_UID]: c }), se(f, "finishRecord", t, r, a, d);
|
|
4103
|
+
}), oe.on("progress", (f) => {
|
|
4104
|
+
n && n(A.UPLOAD_PROGRESS, {
|
|
4105
|
+
[A.MEDIA_RECORDING_UID]: c,
|
|
4106
|
+
[A.UPLOAD_PROGRESS_PCT]: f.detail
|
|
4107
|
+
}), o(e.uploadProgressLabel, "progress", f.detail);
|
|
4066
4108
|
}), oe.on("success", () => {
|
|
4067
|
-
o(e.uploadProgressLabel, "success"), n && n(
|
|
4109
|
+
o(e.uploadProgressLabel, "success"), n && n(A.UPLOAD_FINISHED, { [A.MEDIA_RECORDING_UID]: c }), me({
|
|
4068
4110
|
event: "Video Upload Success",
|
|
4069
4111
|
apiBase: t,
|
|
4070
4112
|
headers: r,
|
|
@@ -4076,14 +4118,14 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4076
4118
|
responseGroupUid: s,
|
|
4077
4119
|
surveyId: i,
|
|
4078
4120
|
mediaType: p,
|
|
4079
|
-
url:
|
|
4121
|
+
url: g,
|
|
4080
4122
|
elapsedMs: oe.startTime && Date.now() - oe.startTime
|
|
4081
4123
|
}
|
|
4082
4124
|
});
|
|
4083
4125
|
}));
|
|
4084
4126
|
});
|
|
4085
4127
|
}, Vo = (e, t) => {
|
|
4086
|
-
const n = new (
|
|
4128
|
+
const n = new (R.videojs.getComponent("Component"))(e);
|
|
4087
4129
|
return n.addClass("ul-buttons-panel"), t.map((o) => {
|
|
4088
4130
|
n.addChild(o);
|
|
4089
4131
|
}), Ai(n), n;
|
|
@@ -4095,14 +4137,14 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4095
4137
|
}
|
|
4096
4138
|
});
|
|
4097
4139
|
}, ze = (e, t = "") => {
|
|
4098
|
-
const n =
|
|
4140
|
+
const n = R.document.createElement("span");
|
|
4099
4141
|
return n.className = "ul-button-text", n.innerHTML = e, n.id = t, n;
|
|
4100
4142
|
}, $o = (e, t, n, o, r = !1, i) => {
|
|
4101
4143
|
e.addClass("ul-video-player");
|
|
4102
|
-
const s = new (
|
|
4103
|
-
s.addClass("ul-control-panel"), e.progressBar = s.addChild("ProgressControl"), n && e.src(n), e.audioPlayerPlaceholder = new (
|
|
4144
|
+
const s = new (R.videojs.getComponent("Component"))(e);
|
|
4145
|
+
s.addClass("ul-control-panel"), e.progressBar = s.addChild("ProgressControl"), n && e.src(n), e.audioPlayerPlaceholder = new (R.videojs.getComponent("Component"))(e), e.audioPlayerPlaceholder.addClass("ul-audio-recorder-placeholder");
|
|
4104
4146
|
const a = n && n.src ? qi(n.src) : null;
|
|
4105
|
-
n && (r || !a) ? (e.children()[0].classList.add("vjs-hidden"),
|
|
4147
|
+
n && (r || !a) ? (e.children()[0].classList.add("vjs-hidden"), R.document.getElementById(`${e.id()}_html5_api`).style.height = "0px") : (e.audioPlayerPlaceholder.hide(), R.document.getElementById(`${e.id()}_html5_api`).style.height = "100%", a && e.poster(a)), e.on("play", () => {
|
|
4106
4148
|
!r && n && !a && $i(e, !1), i == null || i.play();
|
|
4107
4149
|
}), e.on("pause", () => {
|
|
4108
4150
|
i == null || i.pause();
|
|
@@ -4113,10 +4155,10 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4113
4155
|
}), e.addChild(e.audioPlayerPlaceholder, {}, 1), s.addChild(t), e.addChild(s), o && o(e);
|
|
4114
4156
|
}, Ui = (e, t, n) => {
|
|
4115
4157
|
e.addClass(`ul${Mo}`);
|
|
4116
|
-
const o = new (
|
|
4158
|
+
const o = new (R.videojs.getComponent("Component"))(e);
|
|
4117
4159
|
t && e.src(t), e.addChild(o), n && n(e);
|
|
4118
4160
|
}, Vi = (e, t, n, o, r, i, s, a = !1) => {
|
|
4119
|
-
|
|
4161
|
+
gn = Date.now();
|
|
4120
4162
|
const l = Ye(t, {
|
|
4121
4163
|
controls: !1,
|
|
4122
4164
|
bigPlayButton: !1,
|
|
@@ -4146,114 +4188,114 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4146
4188
|
if (!l)
|
|
4147
4189
|
return;
|
|
4148
4190
|
l.payload = n;
|
|
4149
|
-
const { surveyId: p, questionId: c, responseGroupUid:
|
|
4150
|
-
let
|
|
4151
|
-
const x = (
|
|
4152
|
-
const
|
|
4153
|
-
|
|
4154
|
-
const Q =
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
}), window.navigator.mediaDevices.getUserMedia({ video: !0, audio: !0 }).then((
|
|
4158
|
-
|
|
4191
|
+
const { surveyId: p, questionId: c, responseGroupUid: m, visitorId: h, envId: g } = n;
|
|
4192
|
+
let f;
|
|
4193
|
+
const x = (D) => {
|
|
4194
|
+
const L = ct, N = ct + "-audio-only";
|
|
4195
|
+
vn(l.uploadProgressLabel, "none"), oe && oe.startTime >= gn && oe.abort();
|
|
4196
|
+
const Q = R.document.getElementById("ul-camera-button");
|
|
4197
|
+
D ? (l.children()[0].classList.add("vjs-hidden"), T.removeClass(L), T.addClass(N), Q.innerHTML = K.TurnOnCamera, l.audioPlayerPlaceholder.removeClass("vjs-hidden"), f == null || f.getTracks().forEach((j) => {
|
|
4198
|
+
j.stop();
|
|
4199
|
+
}), window.navigator.mediaDevices.getUserMedia({ video: !0, audio: !0 }).then((j) => {
|
|
4200
|
+
f = j, j.getVideoTracks().forEach((ne) => {
|
|
4159
4201
|
ne.enabled = !1;
|
|
4160
|
-
}), l.record().onDeviceReady(
|
|
4161
|
-
}).catch(l.record().onDeviceError.bind(l.record()))) : (
|
|
4162
|
-
|
|
4163
|
-
}), l.children()[0].classList.remove("vjs-hidden"), l.record().getDevice(), T.removeClass(
|
|
4164
|
-
}, _ = new (
|
|
4202
|
+
}), l.record().onDeviceReady(j);
|
|
4203
|
+
}).catch(l.record().onDeviceError.bind(l.record()))) : (f == null || f.getVideoTracks().forEach((j) => {
|
|
4204
|
+
j.enabled = !0;
|
|
4205
|
+
}), l.children()[0].classList.remove("vjs-hidden"), l.record().getDevice(), T.removeClass(N), T.addClass(L), Q.innerHTML = K.TurnOffCamera, l.audioPlayerPlaceholder.addClass("vjs-hidden"));
|
|
4206
|
+
}, _ = new (R.videojs.getComponent("Button"))(l, {
|
|
4165
4207
|
clickHandler: () => {
|
|
4166
|
-
_.hasClass(
|
|
4208
|
+
_.hasClass(z) || (me({
|
|
4167
4209
|
event: "Video Delete Button Clicked",
|
|
4168
4210
|
apiBase: o,
|
|
4169
4211
|
headers: s,
|
|
4170
|
-
visitorId:
|
|
4171
|
-
envId:
|
|
4172
|
-
metadata: { questionId: c, responseGroupUid:
|
|
4173
|
-
}), x(l.cameraOff), r(
|
|
4212
|
+
visitorId: h,
|
|
4213
|
+
envId: g,
|
|
4214
|
+
metadata: { questionId: c, responseGroupUid: m, surveyId: p }
|
|
4215
|
+
}), x(l.cameraOff), r(A.DELETE, {}), T.removeClass(z), _.addClass(z));
|
|
4174
4216
|
}
|
|
4175
4217
|
});
|
|
4176
4218
|
_.addClass("ul-video-recorder-delete-button"), _.el_.appendChild(ze(K.DeleteButton, "ul-delete-button"));
|
|
4177
|
-
const
|
|
4178
|
-
|
|
4219
|
+
const y = R.document.getElementById(t), k = () => {
|
|
4220
|
+
y.classList.contains("vjs-fullscreen") && l.cameraOff ? y.style.display = "table" : y.style.display = "flex";
|
|
4179
4221
|
};
|
|
4180
4222
|
k();
|
|
4181
|
-
const T = new (
|
|
4223
|
+
const T = new (R.videojs.getComponent("Button"))(l, {
|
|
4182
4224
|
clickHandler: () => {
|
|
4183
|
-
l.record().isRecording() || (l.cameraOff = !l.cameraOff,
|
|
4225
|
+
l.record().isRecording() || (l.cameraOff = !l.cameraOff, me({
|
|
4184
4226
|
event: "Video Camera Button Clicked",
|
|
4185
4227
|
apiBase: o,
|
|
4186
4228
|
headers: s,
|
|
4187
4229
|
visitorId: n.visitorId,
|
|
4188
4230
|
envId: n.envId,
|
|
4189
|
-
metadata: { questionId: c, responseGroupUid:
|
|
4190
|
-
}), x(l.cameraOff), !_.hasClass(
|
|
4231
|
+
metadata: { questionId: c, responseGroupUid: m, surveyId: p, cameraOff: l.cameraOff }
|
|
4232
|
+
}), x(l.cameraOff), !_.hasClass(z) && _.addClass(z), r(A.DELETE, {}), k());
|
|
4191
4233
|
}
|
|
4192
4234
|
});
|
|
4193
4235
|
T.addClass(ct), T.el_.appendChild(ze(K.TurnOffCamera, "ul-camera-button"));
|
|
4194
|
-
const
|
|
4236
|
+
const w = new (R.videojs.getComponent("Button"))(l, {
|
|
4195
4237
|
clickHandler: () => {
|
|
4196
|
-
const
|
|
4238
|
+
const D = R.document.getElementById("ul-recorder-toggle");
|
|
4197
4239
|
if (l.record().isRecording())
|
|
4198
|
-
l.record().stop(),
|
|
4240
|
+
l.record().stop(), D && (D.innerHTML = K.RecordButton), w.removeClass(dt), _.removeClass(z);
|
|
4199
4241
|
else {
|
|
4200
|
-
const
|
|
4201
|
-
if (
|
|
4202
|
-
|
|
4242
|
+
const L = R.document.getElementById("ul-recording-countdown-screen");
|
|
4243
|
+
if (L)
|
|
4244
|
+
L.remove(), D && (D.innerHTML = K.RecordButton), x(l.cameraOff), r(A.DELETE, {}), T.removeClass(z), _.addClass(z), w.removeClass(dt), I.show();
|
|
4203
4245
|
else {
|
|
4204
|
-
|
|
4205
|
-
const
|
|
4206
|
-
|
|
4246
|
+
w.addClass(dt), I.hide(), T.addClass(z), _.addClass(z), D && (D.innerHTML = K.StopButton);
|
|
4247
|
+
const N = R.document.createElement("div");
|
|
4248
|
+
N.id = "ul-recording-countdown-screen", y.insertBefore(N, y.children[1]), N.style.height = `${y.offsetHeight}px`, Ho(l, 3);
|
|
4207
4249
|
}
|
|
4208
4250
|
}
|
|
4209
4251
|
}
|
|
4210
4252
|
});
|
|
4211
|
-
|
|
4212
|
-
const
|
|
4213
|
-
|
|
4214
|
-
const
|
|
4253
|
+
w.addClass("ul-video-recorder-toggle-button"), w.el_.appendChild(ze(K.RecordButton, "ul-recorder-toggle"));
|
|
4254
|
+
const C = R.document.createElement("p");
|
|
4255
|
+
C.style.visibility = "hidden", C.className = "ul-upload-progress-label", e.appendChild(C), l.uploadProgressLabel = C;
|
|
4256
|
+
const O = Vo(l, [
|
|
4215
4257
|
_,
|
|
4216
4258
|
T,
|
|
4217
4259
|
"PlayToggle",
|
|
4218
|
-
|
|
4260
|
+
w,
|
|
4219
4261
|
"FullscreenToggle"
|
|
4220
|
-
]),
|
|
4221
|
-
|
|
4222
|
-
const
|
|
4223
|
-
|
|
4224
|
-
|
|
4262
|
+
]), I = O.children().find((D) => D.name_ === "FullscreenToggle");
|
|
4263
|
+
I.hasClass("vjs-disabled") && I.hide();
|
|
4264
|
+
const v = O.children().find((D) => D.name_ === "PlayToggle");
|
|
4265
|
+
v.hide(), i && T.addClass(z), !i && _.addClass(z), $o(l, O, i, !1, a), l.on("stopRecord", () => {
|
|
4266
|
+
w.hide(), v.show(), I.show(), _.removeClass(z);
|
|
4225
4267
|
}), l.on("deviceReady", () => {
|
|
4226
|
-
|
|
4227
|
-
}), Mi(l, o, r,
|
|
4228
|
-
const
|
|
4229
|
-
!l.cameraOff &&
|
|
4230
|
-
var
|
|
4231
|
-
return (
|
|
4232
|
-
})).then((
|
|
4233
|
-
|
|
4234
|
-
}).catch((
|
|
4268
|
+
w.show(), v.hide(), _.addClass(z);
|
|
4269
|
+
}), Mi(l, o, r, vn, s), i && (l.deviceButton && l.deviceButton.hide(), l.src(i), v.show(), w.hide(), _.removeClass(z));
|
|
4270
|
+
const P = [{ name: "microphone" }];
|
|
4271
|
+
!l.cameraOff && P.push({ name: "camera" }), Promise.all(P.map((D) => {
|
|
4272
|
+
var L;
|
|
4273
|
+
return (L = navigator == null ? void 0 : navigator.permissions) == null ? void 0 : L.query(D);
|
|
4274
|
+
})).then((D) => {
|
|
4275
|
+
D.reduce((N, Q) => N & Q.state === "granted", !0) && l && (l.deviceButton && l.deviceButton.hide(), !i && l.record().getDevice());
|
|
4276
|
+
}).catch((D) => {
|
|
4235
4277
|
});
|
|
4236
|
-
},
|
|
4237
|
-
const n =
|
|
4278
|
+
}, Ho = (e, t = 3) => {
|
|
4279
|
+
const n = R.document.getElementById("ul-recording-countdown-screen");
|
|
4238
4280
|
n && t === 0 ? (n.remove(), e.record().start()) : n && (n.innerHTML = `<span class='ul-countdown-text'>Recording in... ${t}</span>`, setTimeout(() => {
|
|
4239
|
-
|
|
4281
|
+
Ho(e, t - 1);
|
|
4240
4282
|
}, 1e3));
|
|
4241
|
-
},
|
|
4242
|
-
const t =
|
|
4283
|
+
}, Bo = (e) => {
|
|
4284
|
+
const t = R.document.createElement("div");
|
|
4243
4285
|
return t.className = "ul-video-container", t.appendChild(Di(e)), t;
|
|
4244
4286
|
}, kt = (e, t) => {
|
|
4245
|
-
const n =
|
|
4287
|
+
const n = R.document.createElement("video");
|
|
4246
4288
|
n.id = e, n.className = "video-js vjs-default-skin ul-video-player-video";
|
|
4247
|
-
const o =
|
|
4289
|
+
const o = R.document.createElement("p");
|
|
4248
4290
|
o.className = "vjs-no-js", o.innerHTML = "To view this video please enable JavaScript, and consider upgrading to a web browser that";
|
|
4249
|
-
const r =
|
|
4291
|
+
const r = R.document.createElement("a");
|
|
4250
4292
|
return r.href = "https://videojs.com/html5-video-support/", r.target = "_blank", r.innerHTML = "supports HTML5 video", o.appendChild(r), n.appendChild(o), t.appendChild(n), t;
|
|
4251
4293
|
}, $i = (e, t) => {
|
|
4252
|
-
t ? (e.children()[0].classList.add("vjs-hidden"), e.audioPlayerPlaceholder.show(),
|
|
4253
|
-
}, Ye = (e, t) =>
|
|
4254
|
-
|
|
4255
|
-
const d = e + Oo, l =
|
|
4256
|
-
return
|
|
4294
|
+
t ? (e.children()[0].classList.add("vjs-hidden"), e.audioPlayerPlaceholder.show(), R.document.getElementById(`${e.id()}_html5_api`).style.height = "0px") : (e.children()[0].classList.remove("vjs-hidden"), e.audioPlayerPlaceholder.hide(), R.document.getElementById(`${e.id()}_html5_api`).style.height = "100%");
|
|
4295
|
+
}, Ye = (e, t) => R.document.getElementById(e) ? t ? R.videojs(e, t) : R.videojs(e) : (console.error(`Error in finding player element with ID, ${e}`), null), Hi = (e, t, n, o = !1, r = "https://api.sprig.com", i = document, s = null, a = null) => {
|
|
4296
|
+
R.document = i;
|
|
4297
|
+
const d = e + Oo, l = Bo(d);
|
|
4298
|
+
return R.document.addEventListener("securitypolicyviolation", (p) => {
|
|
4257
4299
|
se(
|
|
4258
4300
|
new Error(`Voice & Video feature violates ${p.violatedDirective} web page CSP policies for the question player.`),
|
|
4259
4301
|
"playerDeviceError",
|
|
@@ -4261,7 +4303,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4261
4303
|
{}
|
|
4262
4304
|
);
|
|
4263
4305
|
}), Uo(No, () => {
|
|
4264
|
-
|
|
4306
|
+
R.document.getElementById(At(d)).remove(), kt(d, l);
|
|
4265
4307
|
const p = {
|
|
4266
4308
|
playsinline: !0,
|
|
4267
4309
|
playbackRates: [0.5, 1, 1.5, 2],
|
|
@@ -4270,21 +4312,21 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4270
4312
|
try {
|
|
4271
4313
|
const c = e + Mo;
|
|
4272
4314
|
kt(c, l);
|
|
4273
|
-
const
|
|
4274
|
-
if (!
|
|
4315
|
+
const m = Ye(d, p), h = Ye(c, { muted: !0, ...p });
|
|
4316
|
+
if (!m || !h)
|
|
4275
4317
|
return;
|
|
4276
|
-
Ui(
|
|
4277
|
-
const
|
|
4278
|
-
|
|
4318
|
+
Ui(h, s, a), s || h.addClass(z);
|
|
4319
|
+
const g = Vo(m, ["PlaybackRateMenuButton", "PlayToggle", "FullscreenToggle"]), f = g.children().find((x) => x.name_ === "FullscreenToggle");
|
|
4320
|
+
f.hasClass("vjs-disabled") && f.hide(), $o(m, g, t, n, o, h);
|
|
4279
4321
|
} catch (c) {
|
|
4280
4322
|
se(new Error(`Error when creating video player object ${c}`), "playerDeviceError", r, {});
|
|
4281
4323
|
return;
|
|
4282
4324
|
}
|
|
4283
4325
|
}), l;
|
|
4284
|
-
},
|
|
4285
|
-
|
|
4286
|
-
const d = e + Ao, l =
|
|
4287
|
-
return
|
|
4326
|
+
}, Bi = (e, t = {}, n = "https://api.userleap.com", o, r, i, s = !1, a = document) => {
|
|
4327
|
+
R.document = a;
|
|
4328
|
+
const d = e + Ao, l = Bo(d);
|
|
4329
|
+
return R.document.addEventListener("securitypolicyviolation", (p) => {
|
|
4288
4330
|
se(
|
|
4289
4331
|
new Error(`Voice & Video feature violates ${p.violatedDirective} web page CSP policies for the recorder player.`),
|
|
4290
4332
|
"recorderDeviceError",
|
|
@@ -4294,7 +4336,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4294
4336
|
t.envId
|
|
4295
4337
|
);
|
|
4296
4338
|
}), Uo(No.concat(Ni), () => {
|
|
4297
|
-
kt(d, l),
|
|
4339
|
+
kt(d, l), R.document.getElementById(At(d)).remove();
|
|
4298
4340
|
try {
|
|
4299
4341
|
Vi(
|
|
4300
4342
|
l,
|
|
@@ -4320,14 +4362,14 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4320
4362
|
}), l;
|
|
4321
4363
|
}, Fi = (e) => {
|
|
4322
4364
|
const t = e + Ao;
|
|
4323
|
-
if (
|
|
4365
|
+
if (R.document.getElementById(t) && R.videojs) {
|
|
4324
4366
|
try {
|
|
4325
|
-
if (!
|
|
4367
|
+
if (!R.videojs(t).record().stream)
|
|
4326
4368
|
return;
|
|
4327
4369
|
} catch {
|
|
4328
4370
|
return;
|
|
4329
4371
|
}
|
|
4330
|
-
|
|
4372
|
+
R.videojs(t).record().stop(), R.videojs(t).record().stopDevice();
|
|
4331
4373
|
}
|
|
4332
4374
|
}, zi = (e) => {
|
|
4333
4375
|
const t = Ye(e + Oo);
|
|
@@ -4337,8 +4379,8 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4337
4379
|
return null;
|
|
4338
4380
|
const t = e.match(/https:\/\/stream.mux.com\/(.*)/);
|
|
4339
4381
|
let n = t ? t[1] : null;
|
|
4340
|
-
return n.includes(
|
|
4341
|
-
},
|
|
4382
|
+
return n.includes(fn) && (n = n.replace(fn, "")), n ? `https://image.mux.com/${n}/thumbnail.jpg?time=0` : null;
|
|
4383
|
+
}, A = {
|
|
4342
4384
|
// events
|
|
4343
4385
|
UPLOAD_STARTED: "upload.started",
|
|
4344
4386
|
UPLOAD_PROGRESS: "upload.progress",
|
|
@@ -4365,7 +4407,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4365
4407
|
RecordButton: "Record",
|
|
4366
4408
|
StopButton: "Stop",
|
|
4367
4409
|
PauseButton: "Pause"
|
|
4368
|
-
}, je = "ul-card-video__player_recorder",
|
|
4410
|
+
}, je = "ul-card-video__player_recorder", Wi = "ul-card-video__skip_button", Gi = "ul-video-interview-form", _n = "ul-video-btn", Zi = ({
|
|
4369
4411
|
className: e,
|
|
4370
4412
|
message: t,
|
|
4371
4413
|
next: n,
|
|
@@ -4380,60 +4422,60 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4380
4422
|
headers: l,
|
|
4381
4423
|
responseGroupUid: p,
|
|
4382
4424
|
surveyId: c,
|
|
4383
|
-
viewDocument:
|
|
4384
|
-
visitorId:
|
|
4385
|
-
} = $((
|
|
4386
|
-
apiURL:
|
|
4387
|
-
envId:
|
|
4388
|
-
handleUploadUpdate:
|
|
4389
|
-
headers:
|
|
4390
|
-
responseGroupUid:
|
|
4391
|
-
surveyId:
|
|
4392
|
-
viewDocument:
|
|
4393
|
-
visitorId:
|
|
4394
|
-
})), [
|
|
4425
|
+
viewDocument: m,
|
|
4426
|
+
visitorId: h
|
|
4427
|
+
} = $((L) => ({
|
|
4428
|
+
apiURL: L.apiURL,
|
|
4429
|
+
envId: L.envId,
|
|
4430
|
+
handleUploadUpdate: L.handleUploadUpdate,
|
|
4431
|
+
headers: L.headers,
|
|
4432
|
+
responseGroupUid: L.responseGroupUid,
|
|
4433
|
+
surveyId: L.surveyId,
|
|
4434
|
+
viewDocument: L.viewDocument,
|
|
4435
|
+
visitorId: L.userId
|
|
4436
|
+
})), [g, f] = F(!1), [x, _] = F(null), [y, k] = F(null), [T, w] = F(
|
|
4395
4437
|
0
|
|
4396
4438
|
/* Question */
|
|
4397
|
-
),
|
|
4398
|
-
|
|
4399
|
-
mediaRecordingUid:
|
|
4439
|
+
), C = o && o.videoUrl, O = (L, N) => {
|
|
4440
|
+
L === A.UPLOAD_STARTED ? (_(N[A.UPLOAD_ID]), k(N[A.MEDIA_RECORDING_UID]), f(!0)) : L === A.DELETE ? (_(null), k(null), f(!1)) : L === A.UPLOAD_PROGRESS ? isNaN(N[A.UPLOAD_PROGRESS_PCT]) ? d({
|
|
4441
|
+
mediaRecordingUid: N[A.MEDIA_RECORDING_UID],
|
|
4400
4442
|
isComplete: !0
|
|
4401
4443
|
}) : d({
|
|
4402
|
-
mediaRecordingUid:
|
|
4403
|
-
progressPct:
|
|
4404
|
-
}) :
|
|
4405
|
-
mediaRecordingUid:
|
|
4444
|
+
mediaRecordingUid: N[A.MEDIA_RECORDING_UID],
|
|
4445
|
+
progressPct: N[A.UPLOAD_PROGRESS_PCT]
|
|
4446
|
+
}) : L === A.UPLOAD_FINISHED && d({
|
|
4447
|
+
mediaRecordingUid: N[A.MEDIA_RECORDING_UID],
|
|
4406
4448
|
isComplete: !0
|
|
4407
4449
|
});
|
|
4408
|
-
},
|
|
4409
|
-
if (
|
|
4410
|
-
const
|
|
4411
|
-
src:
|
|
4450
|
+
}, I = (L) => {
|
|
4451
|
+
if (L && L.children.length === 0) {
|
|
4452
|
+
const N = Hi(je, {
|
|
4453
|
+
src: C,
|
|
4412
4454
|
type: "application/x-mpegURL"
|
|
4413
|
-
}, void 0, o.mediaType ===
|
|
4414
|
-
|
|
4455
|
+
}, void 0, o.mediaType === A.MEDIA_TYPE_AUDIO, s, m);
|
|
4456
|
+
L.appendChild(N);
|
|
4415
4457
|
}
|
|
4416
|
-
},
|
|
4417
|
-
if (
|
|
4418
|
-
const
|
|
4458
|
+
}, v = (L) => {
|
|
4459
|
+
if (L && L.children.length === 0) {
|
|
4460
|
+
const N = Bi(je, {
|
|
4419
4461
|
surveyId: c,
|
|
4420
4462
|
responseGroupUid: p,
|
|
4421
4463
|
questionId: r,
|
|
4422
|
-
visitorId:
|
|
4464
|
+
visitorId: h,
|
|
4423
4465
|
envId: a
|
|
4424
|
-
}, s,
|
|
4466
|
+
}, s, O, void 0, {
|
|
4425
4467
|
...l,
|
|
4426
4468
|
"x-ul-video-recorder-origin": "sdk"
|
|
4427
|
-
}, o.mediaType ===
|
|
4428
|
-
|
|
4469
|
+
}, o.mediaType === A.MEDIA_TYPE_AUDIO, m);
|
|
4470
|
+
L.appendChild(N);
|
|
4429
4471
|
}
|
|
4430
|
-
},
|
|
4431
|
-
|
|
4432
|
-
mediaRecordingUid:
|
|
4472
|
+
}, P = (L) => {
|
|
4473
|
+
L.preventDefault(), L.stopPropagation(), Fi(je), x && y ? (d({
|
|
4474
|
+
mediaRecordingUid: y,
|
|
4433
4475
|
isSubmitted: !0
|
|
4434
4476
|
}), n({
|
|
4435
4477
|
value: {
|
|
4436
|
-
mediaRecordingUid:
|
|
4478
|
+
mediaRecordingUid: y
|
|
4437
4479
|
},
|
|
4438
4480
|
questionId: r,
|
|
4439
4481
|
type: i
|
|
@@ -4442,11 +4484,11 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4442
4484
|
questionId: r,
|
|
4443
4485
|
type: i
|
|
4444
4486
|
});
|
|
4445
|
-
},
|
|
4487
|
+
}, D = () => u(pe, {
|
|
4446
4488
|
defaultBody: () => u("button", {
|
|
4447
|
-
className: `${
|
|
4448
|
-
onClick: (
|
|
4449
|
-
|
|
4489
|
+
className: `${_n} ul-record-response-btn`,
|
|
4490
|
+
onClick: (L) => {
|
|
4491
|
+
L.preventDefault(), L.stopPropagation(), zi(je), w(
|
|
4450
4492
|
1
|
|
4451
4493
|
/* Answer */
|
|
4452
4494
|
);
|
|
@@ -4456,7 +4498,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4456
4498
|
});
|
|
4457
4499
|
return u("form", {
|
|
4458
4500
|
className: M([e, E.VideoCard, E.FadeInTransition]),
|
|
4459
|
-
id:
|
|
4501
|
+
id: Gi,
|
|
4460
4502
|
children: [u(te, {
|
|
4461
4503
|
message: t,
|
|
4462
4504
|
properties: o
|
|
@@ -4470,36 +4512,36 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4470
4512
|
},
|
|
4471
4513
|
children: [u("div", {
|
|
4472
4514
|
id: je,
|
|
4473
|
-
ref:
|
|
4474
|
-
}),
|
|
4515
|
+
ref: I
|
|
4516
|
+
}), D()]
|
|
4475
4517
|
}), u("div", {
|
|
4476
4518
|
style: {
|
|
4477
4519
|
display: T === 1 ? "block" : "none"
|
|
4478
4520
|
},
|
|
4479
4521
|
children: [u("button", {
|
|
4480
|
-
className: `${
|
|
4481
|
-
onClick: (
|
|
4482
|
-
|
|
4522
|
+
className: `${_n} ul-back-question-btn`,
|
|
4523
|
+
onClick: (L) => {
|
|
4524
|
+
L.preventDefault(), L.stopPropagation(), w(
|
|
4483
4525
|
0
|
|
4484
4526
|
/* Question */
|
|
4485
4527
|
);
|
|
4486
4528
|
}
|
|
4487
4529
|
}), u("div", {
|
|
4488
4530
|
id: "ul-recorder-player-container",
|
|
4489
|
-
ref:
|
|
4531
|
+
ref: v
|
|
4490
4532
|
})]
|
|
4491
4533
|
})]
|
|
4492
|
-
}), u(
|
|
4493
|
-
disabled: !
|
|
4494
|
-
onClick:
|
|
4534
|
+
}), u(G, {
|
|
4535
|
+
disabled: !g,
|
|
4536
|
+
onClick: P,
|
|
4495
4537
|
children: ye(o)
|
|
4496
4538
|
}), u("button", {
|
|
4497
4539
|
className: `ul-card-text__button ${E.InactiveButton} ${E.SkipButton}`,
|
|
4498
|
-
id:
|
|
4499
|
-
onClick:
|
|
4540
|
+
id: Wi,
|
|
4541
|
+
onClick: P,
|
|
4500
4542
|
style: {
|
|
4501
4543
|
display: o.required ? "none" : "block",
|
|
4502
|
-
...
|
|
4544
|
+
...g ? {
|
|
4503
4545
|
display: "none"
|
|
4504
4546
|
} : {}
|
|
4505
4547
|
},
|
|
@@ -4607,11 +4649,11 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4607
4649
|
slugName: k.slugName,
|
|
4608
4650
|
surveyId: k.surveyId,
|
|
4609
4651
|
viewedCardCount: k.viewedCardCount
|
|
4610
|
-
})), p =
|
|
4611
|
-
|
|
4612
|
-
p.current && (p.current.style.width = `${
|
|
4613
|
-
}, [
|
|
4614
|
-
const x = () => u(
|
|
4652
|
+
})), p = ue(null), c = t.filter((k) => k.type !== b.Uploading && k.type !== b.Thanks), m = ni(t, r), h = l + 1, g = h / (h + m), f = `${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${a}&utm_content=${d}${n && "&utm_term=poweredby_pill"}`;
|
|
4653
|
+
Z(() => {
|
|
4654
|
+
p.current && (p.current.style.width = `${g * 100}%`);
|
|
4655
|
+
}, [g]);
|
|
4656
|
+
const x = () => u(W, {
|
|
4615
4657
|
children: [c.length > 1 && u("div", {
|
|
4616
4658
|
id: "ul-progress-bar-container",
|
|
4617
4659
|
children: u("div", {
|
|
@@ -4627,7 +4669,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4627
4669
|
marginTop: "4px"
|
|
4628
4670
|
},
|
|
4629
4671
|
children: u("a", {
|
|
4630
|
-
href:
|
|
4672
|
+
href: f,
|
|
4631
4673
|
rel: "noreferrer",
|
|
4632
4674
|
target: "_blank",
|
|
4633
4675
|
children: u("div", {
|
|
@@ -4648,7 +4690,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4648
4690
|
}) : null]
|
|
4649
4691
|
}), _ = () => u("a", {
|
|
4650
4692
|
dir: "ltr",
|
|
4651
|
-
href:
|
|
4693
|
+
href: f,
|
|
4652
4694
|
rel: "noreferrer",
|
|
4653
4695
|
target: "_blank",
|
|
4654
4696
|
children: u("div", {
|
|
@@ -4673,13 +4715,13 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4673
4715
|
})
|
|
4674
4716
|
})]
|
|
4675
4717
|
})
|
|
4676
|
-
}),
|
|
4718
|
+
}), y = t[r].type === b.Thanks;
|
|
4677
4719
|
return u("footer", {
|
|
4678
4720
|
className: `ul-footer ${o["userleap-platform"] === "link" ? "ul-footer__link" : ""}`,
|
|
4679
4721
|
style: s ? {} : {
|
|
4680
4722
|
marginBottom: "10px"
|
|
4681
4723
|
},
|
|
4682
|
-
children:
|
|
4724
|
+
children: y && n ? _() : x()
|
|
4683
4725
|
});
|
|
4684
4726
|
}, xn = ({
|
|
4685
4727
|
style: e
|
|
@@ -4717,49 +4759,49 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4717
4759
|
headers: l,
|
|
4718
4760
|
index: p,
|
|
4719
4761
|
next: c,
|
|
4720
|
-
showStripes:
|
|
4721
|
-
surveyId:
|
|
4722
|
-
update:
|
|
4723
|
-
useMobileStyling:
|
|
4762
|
+
showStripes: m,
|
|
4763
|
+
surveyId: h,
|
|
4764
|
+
update: g,
|
|
4765
|
+
useMobileStyling: f,
|
|
4724
4766
|
viewDocument: x
|
|
4725
|
-
} = $((
|
|
4726
|
-
answers:
|
|
4727
|
-
border:
|
|
4728
|
-
cards:
|
|
4729
|
-
close:
|
|
4730
|
-
configureExitOnOverlayClick:
|
|
4731
|
-
destroy:
|
|
4732
|
-
endCard:
|
|
4733
|
-
eventEmitFn:
|
|
4734
|
-
fontFamily:
|
|
4735
|
-
headers:
|
|
4736
|
-
index:
|
|
4737
|
-
next:
|
|
4738
|
-
showStripes:
|
|
4739
|
-
surveyId:
|
|
4740
|
-
update:
|
|
4741
|
-
useMobileStyling:
|
|
4742
|
-
viewDocument:
|
|
4743
|
-
})), _ =
|
|
4767
|
+
} = $((j) => ({
|
|
4768
|
+
answers: j.answers,
|
|
4769
|
+
border: j.border,
|
|
4770
|
+
cards: j.cards,
|
|
4771
|
+
close: j.close,
|
|
4772
|
+
configureExitOnOverlayClick: j.configureExitOnOverlayClick,
|
|
4773
|
+
destroy: j.destroy,
|
|
4774
|
+
endCard: j.endCard,
|
|
4775
|
+
eventEmitFn: j.eventEmitFn,
|
|
4776
|
+
fontFamily: j.fontFamily,
|
|
4777
|
+
headers: j.headers,
|
|
4778
|
+
index: j.index,
|
|
4779
|
+
next: j.next,
|
|
4780
|
+
showStripes: j.showStripes,
|
|
4781
|
+
surveyId: j.surveyId,
|
|
4782
|
+
update: j.update,
|
|
4783
|
+
useMobileStyling: j.useMobileStyling,
|
|
4784
|
+
viewDocument: j.viewDocument
|
|
4785
|
+
})), _ = ue(null), y = ue(!1), k = l["userleap-platform"], {
|
|
4744
4786
|
props: T,
|
|
4745
|
-
type:
|
|
4746
|
-
name:
|
|
4747
|
-
} = n[p],
|
|
4748
|
-
|
|
4749
|
-
_.current && (_.current.classList.contains("ul-app--visible") || _.current.classList.add("ul-app--visible"), !
|
|
4750
|
-
name:
|
|
4751
|
-
[Jo.SurveyId]:
|
|
4787
|
+
type: w,
|
|
4788
|
+
name: C
|
|
4789
|
+
} = n[p], O = n.length;
|
|
4790
|
+
Z(() => {
|
|
4791
|
+
_.current && (_.current.classList.contains("ul-app--visible") || _.current.classList.add("ul-app--visible"), !y.current && a && (y.current = !0, a(he.SurveyAppeared, {
|
|
4792
|
+
name: he.SurveyAppeared,
|
|
4793
|
+
[Jo.SurveyId]: h
|
|
4752
4794
|
})));
|
|
4753
|
-
}, [a,
|
|
4754
|
-
|
|
4755
|
-
}, [p,
|
|
4795
|
+
}, [a, h]), Z(() => {
|
|
4796
|
+
g();
|
|
4797
|
+
}, [p, g]), Z(() => {
|
|
4756
4798
|
r(() => o());
|
|
4757
4799
|
}, [o, r]);
|
|
4758
|
-
const
|
|
4759
|
-
|
|
4760
|
-
},
|
|
4800
|
+
const I = () => o(ke), v = (j) => {
|
|
4801
|
+
j.key === "Enter" && I();
|
|
4802
|
+
}, P = async function(j) {
|
|
4761
4803
|
c({
|
|
4762
|
-
data:
|
|
4804
|
+
data: j,
|
|
4763
4805
|
completeSurvey: () => {
|
|
4764
4806
|
i(ke);
|
|
4765
4807
|
},
|
|
@@ -4767,130 +4809,130 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4767
4809
|
}), Xo(x);
|
|
4768
4810
|
};
|
|
4769
4811
|
if (e) {
|
|
4770
|
-
for (const
|
|
4771
|
-
if (
|
|
4812
|
+
for (const j of e)
|
|
4813
|
+
if (j.questionId === C) {
|
|
4772
4814
|
let ne;
|
|
4773
|
-
if (
|
|
4774
|
-
const
|
|
4815
|
+
if (w === b.MultipleChoice) {
|
|
4816
|
+
const ge = T.options.find(({
|
|
4775
4817
|
value: nt
|
|
4776
|
-
}) => nt ===
|
|
4777
|
-
if (!
|
|
4818
|
+
}) => nt === j.value);
|
|
4819
|
+
if (!ge)
|
|
4778
4820
|
break;
|
|
4779
4821
|
ne = {
|
|
4780
|
-
[
|
|
4822
|
+
[ge.id]: ge.value
|
|
4781
4823
|
};
|
|
4782
4824
|
} else
|
|
4783
|
-
ne =
|
|
4784
|
-
|
|
4825
|
+
ne = j.value;
|
|
4826
|
+
P({
|
|
4785
4827
|
value: ne,
|
|
4786
|
-
type:
|
|
4787
|
-
questionId:
|
|
4828
|
+
type: w,
|
|
4829
|
+
questionId: j.questionId
|
|
4788
4830
|
});
|
|
4789
4831
|
break;
|
|
4790
4832
|
}
|
|
4791
4833
|
}
|
|
4792
|
-
const
|
|
4834
|
+
const D = () => [pt.Email, pt.Link].includes(l["userleap-platform"]) ? !1 : !s || p + 1 !== O, L = () => f ? {
|
|
4793
4835
|
borderColor: t
|
|
4794
4836
|
} : {
|
|
4795
4837
|
borderColor: t,
|
|
4796
4838
|
margin: "15px"
|
|
4797
|
-
},
|
|
4798
|
-
const
|
|
4839
|
+
}, N = () => {
|
|
4840
|
+
const j = {
|
|
4799
4841
|
className: "ul-card",
|
|
4800
|
-
next:
|
|
4801
|
-
questionId:
|
|
4802
|
-
type:
|
|
4842
|
+
next: P,
|
|
4843
|
+
questionId: C,
|
|
4844
|
+
type: w
|
|
4803
4845
|
};
|
|
4804
|
-
switch (
|
|
4846
|
+
switch (w) {
|
|
4805
4847
|
case b.ConsentLegal:
|
|
4806
|
-
return
|
|
4807
|
-
...
|
|
4848
|
+
return H(ci, {
|
|
4849
|
+
...j,
|
|
4808
4850
|
...T,
|
|
4809
|
-
key:
|
|
4851
|
+
key: C
|
|
4810
4852
|
});
|
|
4811
4853
|
case b.Likert:
|
|
4812
|
-
return
|
|
4813
|
-
...
|
|
4854
|
+
return H(ui, {
|
|
4855
|
+
...j,
|
|
4814
4856
|
...T,
|
|
4815
|
-
key:
|
|
4857
|
+
key: C
|
|
4816
4858
|
});
|
|
4817
4859
|
case b.Matrix:
|
|
4818
|
-
return
|
|
4819
|
-
...
|
|
4860
|
+
return H(pi, {
|
|
4861
|
+
...j,
|
|
4820
4862
|
...T,
|
|
4821
|
-
key:
|
|
4863
|
+
key: C
|
|
4822
4864
|
});
|
|
4823
4865
|
case b.MultipleChoice:
|
|
4824
|
-
return
|
|
4825
|
-
...
|
|
4866
|
+
return H(hi, {
|
|
4867
|
+
...j,
|
|
4826
4868
|
...T,
|
|
4827
|
-
key:
|
|
4869
|
+
key: C
|
|
4828
4870
|
});
|
|
4829
4871
|
case b.MultipleSelect:
|
|
4830
|
-
return
|
|
4831
|
-
...
|
|
4872
|
+
return H(mi, {
|
|
4873
|
+
...j,
|
|
4832
4874
|
...T,
|
|
4833
|
-
key:
|
|
4875
|
+
key: C
|
|
4834
4876
|
});
|
|
4835
4877
|
case b.NPS:
|
|
4836
|
-
return
|
|
4837
|
-
...
|
|
4838
|
-
key:
|
|
4878
|
+
return H(fi, {
|
|
4879
|
+
...j,
|
|
4880
|
+
key: C,
|
|
4839
4881
|
props: T
|
|
4840
4882
|
});
|
|
4841
4883
|
case b.Open:
|
|
4842
|
-
return
|
|
4843
|
-
...
|
|
4884
|
+
return H(gi, {
|
|
4885
|
+
...j,
|
|
4844
4886
|
...T,
|
|
4845
|
-
key:
|
|
4887
|
+
key: C
|
|
4846
4888
|
});
|
|
4847
4889
|
case b.RecordedTask:
|
|
4848
|
-
return
|
|
4849
|
-
...
|
|
4890
|
+
return H(Ti, {
|
|
4891
|
+
...j,
|
|
4850
4892
|
...T,
|
|
4851
|
-
key:
|
|
4893
|
+
key: C
|
|
4852
4894
|
});
|
|
4853
4895
|
case b.TextUrlPrompt:
|
|
4854
|
-
return
|
|
4855
|
-
...
|
|
4896
|
+
return H(Ri, {
|
|
4897
|
+
...j,
|
|
4856
4898
|
...T,
|
|
4857
|
-
key:
|
|
4899
|
+
key: C
|
|
4858
4900
|
});
|
|
4859
4901
|
case b.Thanks:
|
|
4860
|
-
return
|
|
4861
|
-
...
|
|
4902
|
+
return H(Ii, {
|
|
4903
|
+
...j,
|
|
4862
4904
|
...T,
|
|
4863
|
-
key:
|
|
4905
|
+
key: C
|
|
4864
4906
|
});
|
|
4865
4907
|
case b.Uploading:
|
|
4866
|
-
return
|
|
4867
|
-
...
|
|
4908
|
+
return H(Yi, {
|
|
4909
|
+
...j,
|
|
4868
4910
|
...T,
|
|
4869
|
-
key:
|
|
4911
|
+
key: C
|
|
4870
4912
|
});
|
|
4871
4913
|
case b.VideoVoice:
|
|
4872
|
-
return
|
|
4873
|
-
...
|
|
4914
|
+
return H(Zi, {
|
|
4915
|
+
...j,
|
|
4874
4916
|
...T,
|
|
4875
|
-
key:
|
|
4917
|
+
key: C
|
|
4876
4918
|
});
|
|
4877
4919
|
default:
|
|
4878
4920
|
return null;
|
|
4879
4921
|
}
|
|
4880
|
-
}, Q = (
|
|
4922
|
+
}, Q = (j) => {
|
|
4881
4923
|
var Ut;
|
|
4882
|
-
const ne = window.sprigAPI,
|
|
4883
|
-
if (!ne || !
|
|
4924
|
+
const ne = window.sprigAPI, ge = j.target;
|
|
4925
|
+
if (!ne || !ge)
|
|
4884
4926
|
return;
|
|
4885
|
-
const nt = [
|
|
4927
|
+
const nt = [ge, ge.parentElement];
|
|
4886
4928
|
for (const Ue of nt)
|
|
4887
4929
|
if (((Ut = Ue == null ? void 0 : Ue.tagName) == null ? void 0 : Ut.toLowerCase()) === "a") {
|
|
4888
|
-
|
|
4930
|
+
j.preventDefault(), ne == null || ne.openUrl(Ue.href);
|
|
4889
4931
|
return;
|
|
4890
4932
|
}
|
|
4891
4933
|
};
|
|
4892
4934
|
return u("div", {
|
|
4893
|
-
className: M("ul-app",
|
|
4935
|
+
className: M("ul-app", We(l) ? "ul-app--visible" : "ul-app--overlay"),
|
|
4894
4936
|
dir: "auto",
|
|
4895
4937
|
id: ke,
|
|
4896
4938
|
onClick: Q,
|
|
@@ -4904,15 +4946,15 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4904
4946
|
children: u("div", {
|
|
4905
4947
|
className: "ul-app__container",
|
|
4906
4948
|
children: u("div", {
|
|
4907
|
-
className: M(
|
|
4908
|
-
style:
|
|
4909
|
-
children: [
|
|
4910
|
-
className: M(
|
|
4949
|
+
className: M(B(E.CardContainer, f)),
|
|
4950
|
+
style: L(),
|
|
4951
|
+
children: [D() && u("div", {
|
|
4952
|
+
className: M(B(E.CloseContainer, f)),
|
|
4911
4953
|
children: u("div", {
|
|
4912
4954
|
"aria-label": "Close button",
|
|
4913
4955
|
className: E.CloseButton,
|
|
4914
|
-
onClick:
|
|
4915
|
-
onKeyPress:
|
|
4956
|
+
onClick: I,
|
|
4957
|
+
onKeyPress: v,
|
|
4916
4958
|
role: "button",
|
|
4917
4959
|
tabIndex: 0,
|
|
4918
4960
|
children: u("svg", {
|
|
@@ -4927,7 +4969,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4927
4969
|
})
|
|
4928
4970
|
})
|
|
4929
4971
|
})
|
|
4930
|
-
}),
|
|
4972
|
+
}), m && u("div", {
|
|
4931
4973
|
className: "ul-header__container",
|
|
4932
4974
|
dir: "ltr",
|
|
4933
4975
|
children: u("div", {
|
|
@@ -4936,12 +4978,12 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4936
4978
|
})
|
|
4937
4979
|
}), u("div", {
|
|
4938
4980
|
className: M(Ko(E.CardMainContent, k)),
|
|
4939
|
-
children:
|
|
4981
|
+
children: N()
|
|
4940
4982
|
}), u(Qi, {})]
|
|
4941
4983
|
})
|
|
4942
4984
|
})
|
|
4943
4985
|
});
|
|
4944
|
-
}, Ji = '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}', Xi = async (e, t) => {
|
|
4986
|
+
}, Ji = 'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;margin:auto;text-align:start;min-width:200px}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:#fff}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(93px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;overflow:auto}.ul-card--matrix_question_container{display:flex;flex-direction:column}.ul-matrix-scroll-gradient{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl){-webkit-mask-image:linear-gradient(270deg,#000,90%,transparent);mask-image:linear-gradient(270deg,#000,90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl)+.ul-matrix-scroll-arrow{rotate:180deg}.ul-matrix-scroll-arrow{align-self:flex-end;background:none;border:none;color:#000;padding:0;position:absolute;top:45%}.ul-matrix-scroll-arrow:hover{cursor:pointer}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{max-width:100%}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:-webkit-fill-available}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#fff;border-radius:5px;text-align:start;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:15px;justify-content:center;flex-direction:column}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%}.close-btn{cursor:pointer;height:18px;margin-inline-end:-10px;position:relative;top:-10px;width:18px;z-index:1}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}', Xi = async (e, t) => {
|
|
4945
4987
|
var o;
|
|
4946
4988
|
const n = await fetch(t, {
|
|
4947
4989
|
method: "POST",
|
|
@@ -4998,23 +5040,23 @@ async function es(e, t, n, o, r, i, s) {
|
|
|
4998
5040
|
});
|
|
4999
5041
|
return;
|
|
5000
5042
|
}
|
|
5001
|
-
const
|
|
5043
|
+
const m = new Blob(s, {
|
|
5002
5044
|
type: Fo()
|
|
5003
5045
|
});
|
|
5004
5046
|
if (!a.defaultView)
|
|
5005
5047
|
return;
|
|
5006
|
-
const
|
|
5048
|
+
const h = new a.defaultView.File([m], `recording video ${Date.now()}`), g = i.createUpload({
|
|
5007
5049
|
// endpoint computed from backend separately and hacked together
|
|
5008
5050
|
endpoint: c,
|
|
5009
|
-
file:
|
|
5051
|
+
file: h,
|
|
5010
5052
|
chunkSize: 5120
|
|
5011
5053
|
// Uploads the file in ~5mb chunks
|
|
5012
5054
|
});
|
|
5013
|
-
|
|
5014
|
-
d && d(null,
|
|
5015
|
-
}),
|
|
5016
|
-
l && l(r,
|
|
5017
|
-
}),
|
|
5055
|
+
g.on("error", (f) => {
|
|
5056
|
+
d && d(null, f);
|
|
5057
|
+
}), g.on("progress", (f) => {
|
|
5058
|
+
l && l(r, f);
|
|
5059
|
+
}), g.on("success", () => {
|
|
5018
5060
|
d && d(r, !0);
|
|
5019
5061
|
});
|
|
5020
5062
|
}
|
|
@@ -5110,12 +5152,12 @@ const ts = {
|
|
|
5110
5152
|
const o = [];
|
|
5111
5153
|
if (t.includes(re.Video) && this.state.avStream) {
|
|
5112
5154
|
this.state.avRecorder = yn(this.state.avStream);
|
|
5113
|
-
const r =
|
|
5155
|
+
const r = mt();
|
|
5114
5156
|
Cn(this.state.avRecorder, r, this.state.chunks), o.push(r);
|
|
5115
5157
|
}
|
|
5116
5158
|
if (t.includes(re.Screen) && this.state.captureStream) {
|
|
5117
5159
|
this.state.screenRecorder = yn(this.state.captureStream);
|
|
5118
|
-
const r =
|
|
5160
|
+
const r = mt();
|
|
5119
5161
|
Cn(this.state.screenRecorder, r, this.state.chunks), o.push(r);
|
|
5120
5162
|
}
|
|
5121
5163
|
o && n && n(o);
|
|
@@ -5196,7 +5238,7 @@ const os = (e, t) => {
|
|
|
5196
5238
|
};
|
|
5197
5239
|
};
|
|
5198
5240
|
function is(e, t = !0) {
|
|
5199
|
-
var
|
|
5241
|
+
var w;
|
|
5200
5242
|
const {
|
|
5201
5243
|
answers: n,
|
|
5202
5244
|
apiURL: o,
|
|
@@ -5208,18 +5250,18 @@ function is(e, t = !0) {
|
|
|
5208
5250
|
previewKey: l,
|
|
5209
5251
|
viewDocument: p,
|
|
5210
5252
|
viewWindow: c
|
|
5211
|
-
} = e,
|
|
5212
|
-
qe.configure(
|
|
5213
|
-
cards:
|
|
5253
|
+
} = e, m = We(e.headers) ? e.frame : p.body, h = e.UpChunk || window.UpChunk, g = $e, f = os(e.cards, !!i);
|
|
5254
|
+
qe.configure(g, {
|
|
5255
|
+
cards: f,
|
|
5214
5256
|
hasEndCard: !!i,
|
|
5215
5257
|
apiURL: o,
|
|
5216
|
-
UpChunk:
|
|
5258
|
+
UpChunk: h
|
|
5217
5259
|
}), $.setState({
|
|
5218
5260
|
apiURL: o,
|
|
5219
5261
|
answers: n,
|
|
5220
5262
|
border: e.border,
|
|
5221
5263
|
index: e.startingQuestionIdx || 0,
|
|
5222
|
-
cards:
|
|
5264
|
+
cards: f,
|
|
5223
5265
|
configureExitOnOverlayClick: e.configureExitOnOverlayClick,
|
|
5224
5266
|
customMetadata: e.customMetadata,
|
|
5225
5267
|
endCard: e.endCard,
|
|
@@ -5240,7 +5282,7 @@ function is(e, t = !0) {
|
|
|
5240
5282
|
mode: e.mode,
|
|
5241
5283
|
previewKey: l,
|
|
5242
5284
|
recorder: qe,
|
|
5243
|
-
recorderEventEmitter:
|
|
5285
|
+
recorderEventEmitter: g,
|
|
5244
5286
|
responseGroupUid: e.responseGroupUid,
|
|
5245
5287
|
showStripes: e.showStripes,
|
|
5246
5288
|
showSurveyBrand: e.showSurveyBrand,
|
|
@@ -5263,25 +5305,25 @@ function is(e, t = !0) {
|
|
|
5263
5305
|
x();
|
|
5264
5306
|
const {
|
|
5265
5307
|
head: _
|
|
5266
|
-
} = p,
|
|
5267
|
-
if (
|
|
5268
|
-
const
|
|
5269
|
-
|
|
5308
|
+
} = p, y = p.createElement("style");
|
|
5309
|
+
if (y.id = "sprig-style", y.textContent = Ji, y.nonce = e.styleNonce, _.appendChild(y), e.fontFamily && a && parent) {
|
|
5310
|
+
const C = p.createElement("link");
|
|
5311
|
+
C.rel = "stylesheet", C.href = a, _.appendChild(C);
|
|
5270
5312
|
}
|
|
5271
|
-
if (e.customStyles && er(p, r, e.styleNonce), !
|
|
5313
|
+
if (e.customStyles && er(p, r, e.styleNonce), !h)
|
|
5272
5314
|
if (e.installationMethod !== wn.Npm) {
|
|
5273
|
-
const
|
|
5274
|
-
|
|
5315
|
+
const C = p.createElement("script");
|
|
5316
|
+
C.src = "https://cdn.sprig.com/userleap-web-upchunk-v2.2.2.js", C.onload = () => {
|
|
5275
5317
|
qe.setUpChunk(c.UpChunk);
|
|
5276
|
-
},
|
|
5318
|
+
}, C.onerror = () => {
|
|
5277
5319
|
console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure");
|
|
5278
|
-
}, _.appendChild(
|
|
5320
|
+
}, _.appendChild(C);
|
|
5279
5321
|
} else
|
|
5280
5322
|
console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");
|
|
5281
|
-
const k = "2.26.
|
|
5323
|
+
const k = "2.26.5", T = s || ((w = d.eventEmitter) == null ? void 0 : w.emit);
|
|
5282
5324
|
T == null || T(ce.VerifyViewVersion, {
|
|
5283
5325
|
[Re.ViewVersion]: k
|
|
5284
|
-
}),
|
|
5326
|
+
}), m && t && Ee(u(Ki, {}), m);
|
|
5285
5327
|
}
|
|
5286
5328
|
const as = {
|
|
5287
5329
|
configure: is
|