@sprig-technologies/sprig-browser 2.26.2 → 2.26.4
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/electron.cjs +1 -0
- package/dist/{index-FFayU6Cl.js → index-GurVf9fu.js} +2032 -1764
- package/dist/index-rCLyJyii.cjs +8 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +25 -9
- package/dist/index.js +2 -2
- package/dist/{view-0V5XIs3c.js → view-KfdScd8f.js} +1295 -1248
- package/dist/view-TTq-V8ms.cjs +685 -0
- package/package.json +5 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g 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-GurVf9fu.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];
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
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];
|
|
@@ -19,10 +19,10 @@ function B(e, t, n) {
|
|
|
19
19
|
return Le(e, s, o, r, null);
|
|
20
20
|
}
|
|
21
21
|
function Le(e, t, n, o, r) {
|
|
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 ?? ++
|
|
23
|
-
return r == null &&
|
|
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 && S.vnode != null && S.vnode(i), i;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Rn() {
|
|
26
26
|
return { current: null };
|
|
27
27
|
}
|
|
28
28
|
function W(e) {
|
|
@@ -39,7 +39,7 @@ function Se(e, t) {
|
|
|
39
39
|
return n.__e;
|
|
40
40
|
return typeof e.type == "function" ? Se(e) : null;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function In(e) {
|
|
43
43
|
var t, n;
|
|
44
44
|
if ((e = e.__) != null && e.__c != null) {
|
|
45
45
|
for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
|
|
@@ -47,37 +47,37 @@ function Rn(e) {
|
|
|
47
47
|
e.__e = e.__c.base = n.__e;
|
|
48
48
|
break;
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return In(e);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
(!e.__d && (e.__d = !0) && ve.push(e) && !Ge.__r++ ||
|
|
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
56
|
function Ge() {
|
|
57
57
|
var e, t, n, o, r, i, s, a, d;
|
|
58
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,
|
|
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
60
|
Ge.__r = 0;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
var c,
|
|
64
|
-
for (n.__d = d,
|
|
65
|
-
(
|
|
66
|
-
n.__d = d, n.__e =
|
|
62
|
+
function Ln(e, t, n, o, r, i, s, a, d, l, p) {
|
|
63
|
+
var c, m, h, g, f, x = o && o.__k || Pn, _ = t.length;
|
|
64
|
+
for (n.__d = d, nr(n, t, x), d = n.__d, c = 0; c < _; c++)
|
|
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
|
-
function
|
|
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(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 =
|
|
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
|
-
function
|
|
76
|
+
function Dn(e, t, n) {
|
|
77
77
|
var o, r;
|
|
78
78
|
if (typeof e.type == "function") {
|
|
79
79
|
for (o = e.__k, r = 0; o && r < o.length; r++)
|
|
80
|
-
o[r] && (o[r].__ = e, t =
|
|
80
|
+
o[r] && (o[r].__ = e, t = Dn(o[r], t, n));
|
|
81
81
|
return t;
|
|
82
82
|
}
|
|
83
83
|
return e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;
|
|
@@ -87,7 +87,7 @@ function le(e, t) {
|
|
|
87
87
|
le(n, t);
|
|
88
88
|
}) : t.push(e)), t;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function or(e, t, n, o) {
|
|
91
91
|
var r = e.key, i = e.type, s = n - 1, a = n + 1, d = t[n];
|
|
92
92
|
if (d === null || d && r == d.key && i === d.type)
|
|
93
93
|
return n;
|
|
@@ -107,7 +107,7 @@ function nr(e, t, n, o) {
|
|
|
107
107
|
return -1;
|
|
108
108
|
}
|
|
109
109
|
function Bt(e, t, n) {
|
|
110
|
-
t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" ||
|
|
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) {
|
|
113
113
|
var i;
|
|
@@ -124,7 +124,7 @@ function Ve(e, t, n, o, r) {
|
|
|
124
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
|
-
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 ?
|
|
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);
|
|
128
128
|
else {
|
|
129
129
|
if (r)
|
|
130
130
|
t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
@@ -137,145 +137,145 @@ function Ve(e, t, n, o, r) {
|
|
|
137
137
|
typeof n == "function" || (n == null || n === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Ft(e) {
|
|
141
141
|
var t = this.l[e.type + !1];
|
|
142
142
|
if (e.t) {
|
|
143
143
|
if (e.t <= t.u)
|
|
144
144
|
return;
|
|
145
145
|
} else
|
|
146
146
|
e.t = Date.now();
|
|
147
|
-
return t(
|
|
147
|
+
return t(S.event ? S.event(e) : e);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return this.l[e.type + !0](
|
|
149
|
+
function zt(e) {
|
|
150
|
+
return this.l[e.type + !0](S.event ? S.event(e) : e);
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
var p, c,
|
|
152
|
+
function St(e, t, n, o, r, i, s, a, d, l) {
|
|
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 (
|
|
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 =
|
|
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
|
-
c.componentWillUpdate != null && c.componentWillUpdate(
|
|
172
|
-
c.componentDidUpdate(
|
|
171
|
+
c.componentWillUpdate != null && c.componentWillUpdate(_, c.__s, k), c.componentDidUpdate != null && c.__h.push(function() {
|
|
172
|
+
c.componentDidUpdate(h, g, f);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
if (c.context = k, c.props =
|
|
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
|
-
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e =
|
|
189
|
-
(p =
|
|
188
|
+
i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = rr(n.__e, t, n, o, r, i, s, d, l);
|
|
189
|
+
(p = S.diffed) && p(t);
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Nn(e, t, n) {
|
|
192
192
|
t.__d = void 0;
|
|
193
193
|
for (var o = 0; o < n.length; o++)
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
Et(n[o], n[++o], n[++o]);
|
|
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
|
-
function
|
|
206
|
-
var l, p, c,
|
|
207
|
-
if (
|
|
205
|
+
function rr(e, t, n, o, r, i, s, a, d) {
|
|
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 (
|
|
216
|
-
return document.createTextNode(
|
|
217
|
-
e = r ? document.createElementNS("http://www.w3.org/2000/svg",
|
|
215
|
+
if (y === null)
|
|
216
|
+
return document.createTextNode(_);
|
|
217
|
+
e = r ? document.createElementNS("http://www.w3.org/2000/svg", y) : document.createElement(y, _.is && _), i = null, a = !1;
|
|
218
218
|
}
|
|
219
|
-
if (
|
|
220
|
-
x ===
|
|
219
|
+
if (y === null)
|
|
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
|
-
|
|
227
|
-
for (l in
|
|
228
|
-
|
|
226
|
+
h = x[l], l == "children" || (l == "dangerouslySetInnerHTML" ? c = h : l === "key" || l in _ || Ve(e, l, null, h, r));
|
|
227
|
+
for (l in _)
|
|
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 = ""),
|
|
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
|
-
i[l] != null &&
|
|
234
|
-
a || (l = "value",
|
|
233
|
+
i[l] != null && jn(i[l]);
|
|
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
|
}
|
|
238
|
-
function
|
|
238
|
+
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] &&
|
|
259
|
-
n || e.__e == null ||
|
|
258
|
+
o[r] && vt(o[r], t, n || typeof e.type != "function");
|
|
259
|
+
n || e.__e == null || jn(e.__e), e.__ = e.__e = e.__d = void 0;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ir(e, t, n) {
|
|
262
262
|
return this.constructor(e, 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
|
-
function
|
|
269
|
-
Ee(e, t,
|
|
268
|
+
function On(e, t) {
|
|
269
|
+
Ee(e, t, On);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function sr(e, t, n) {
|
|
272
272
|
var o, r, i, s, a = ae({}, e.props);
|
|
273
273
|
for (i in e.type && e.type.defaultProps && (s = e.type.defaultProps), t)
|
|
274
274
|
i == "key" ? o = t[i] : i == "ref" ? r = t[i] : a[i] = t[i] === void 0 && s !== void 0 ? s[i] : t[i];
|
|
275
275
|
return arguments.length > 2 && (a.children = arguments.length > 3 ? Oe.call(arguments, 2) : n), Le(e.type, a, o || e.key, r || e.ref, null);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
var n = { __c: t = "__cC" +
|
|
277
|
+
function Mn(e, t) {
|
|
278
|
+
var n = { __c: t = "__cC" + Tn++, __: e, Consumer: function(o, r) {
|
|
279
279
|
return o.children(r);
|
|
280
280
|
}, Provider: function(o) {
|
|
281
281
|
var r, i;
|
|
@@ -283,7 +283,7 @@ function On(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 On(e, t) {
|
|
|
295
295
|
} };
|
|
296
296
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
297
297
|
}
|
|
298
|
-
Oe =
|
|
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 {
|
|
@@ -305,22 +305,22 @@ Oe = Tn.slice, w = { __e: function(e, t, n, o) {
|
|
|
305
305
|
e = a;
|
|
306
306
|
}
|
|
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 = W, ve = [],
|
|
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
|
-
}, Ge.__r = 0,
|
|
316
|
-
function
|
|
315
|
+
}, Ge.__r = 0, Tn = 0;
|
|
316
|
+
function An(e) {
|
|
317
317
|
var t, n, o = "";
|
|
318
318
|
if (typeof e == "string" || typeof e == "number")
|
|
319
319
|
o += e;
|
|
320
320
|
else if (typeof e == "object")
|
|
321
321
|
if (Array.isArray(e))
|
|
322
322
|
for (t = 0; t < e.length; t++)
|
|
323
|
-
e[t] && (n =
|
|
323
|
+
e[t] && (n = An(e[t])) && (o && (o += " "), o += n);
|
|
324
324
|
else
|
|
325
325
|
for (t in e)
|
|
326
326
|
e[t] && (o && (o += " "), o += t);
|
|
@@ -328,39 +328,39 @@ function Mn(e) {
|
|
|
328
328
|
}
|
|
329
329
|
function M() {
|
|
330
330
|
for (var e, t, n = 0, o = ""; n < arguments.length; )
|
|
331
|
-
(e = arguments[n++]) && (t =
|
|
331
|
+
(e = arguments[n++]) && (t = An(e)) && (o && (o += " "), o += t);
|
|
332
332
|
return o;
|
|
333
333
|
}
|
|
334
|
-
var de, V,
|
|
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
|
|
341
|
-
return Te = 1,
|
|
340
|
+
function F(e) {
|
|
341
|
+
return Te = 1, Tt(Fn, e);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Tt(e, t, n) {
|
|
344
344
|
var o = xe(de++, 2);
|
|
345
|
-
if (o.t = e, !o.__c && (o.__ = [n ? n(t) :
|
|
345
|
+
if (o.t = e, !o.__c && (o.__ = [n ? n(t) : Fn(void 0, t), function(a) {
|
|
346
346
|
var d = o.__N ? o.__N[0] : o.__[0], l = o.t(d, a);
|
|
347
347
|
d !== l && (o.__N = [l, o.__[1]], o.__c.setState({}));
|
|
348
348
|
}], o.__c = V, !V.u)) {
|
|
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,20 +376,20 @@ function Et(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
|
}, []);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Vn(e, t, n) {
|
|
393
393
|
Te = 6, Me(function() {
|
|
394
394
|
return typeof e == "function" ? (e(t()), function() {
|
|
395
395
|
return e(null);
|
|
@@ -400,22 +400,22 @@ function Un(e, t, n) {
|
|
|
400
400
|
}
|
|
401
401
|
function Ke(e, t) {
|
|
402
402
|
var n = xe(de++, 7);
|
|
403
|
-
return
|
|
403
|
+
return jt(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function $n(e, t) {
|
|
406
406
|
return Te = 8, Ke(function() {
|
|
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
|
-
function
|
|
415
|
-
|
|
414
|
+
function Pt(e, t) {
|
|
415
|
+
S.useDebugValue && S.useDebugValue(t ? t(e) : e);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
var t = xe(de++, 10), n =
|
|
417
|
+
function ar(e) {
|
|
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() {
|
|
@@ -432,81 +432,81 @@ function Bn() {
|
|
|
432
432
|
}
|
|
433
433
|
return e.__;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
for (var e; e =
|
|
435
|
+
function lr() {
|
|
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
|
-
t && (
|
|
450
|
-
n.__N && (n.__ = n.__N), n.__V =
|
|
451
|
-
})) : (t.__h.forEach(
|
|
452
|
-
},
|
|
453
|
-
|
|
449
|
+
t && (rt === V ? (t.__h = [], V.__h = [], t.__.forEach(function(n) {
|
|
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 && (
|
|
456
|
-
n.i && (n.__H = n.i), n.__V !==
|
|
457
|
-
})),
|
|
458
|
-
},
|
|
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
|
+
})), rt = V = null;
|
|
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
|
-
}),
|
|
470
|
-
},
|
|
471
|
-
|
|
469
|
+
}), Yt && Yt(e, t);
|
|
470
|
+
}, S.unmount = function(e) {
|
|
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
|
-
var
|
|
482
|
-
function
|
|
481
|
+
var Kt = typeof requestAnimationFrame == "function";
|
|
482
|
+
function cr(e) {
|
|
483
483
|
var t, n = function() {
|
|
484
|
-
clearTimeout(o),
|
|
484
|
+
clearTimeout(o), Kt && cancelAnimationFrame(t), setTimeout(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
|
}
|
|
496
|
-
function
|
|
496
|
+
function jt(e, t) {
|
|
497
497
|
return !e || e.length !== t.length || t.some(function(n, o) {
|
|
498
498
|
return n !== e[o];
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Fn(e, t) {
|
|
502
502
|
return typeof t == "function" ? t(e) : t;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function zn(e, t) {
|
|
505
505
|
for (var n in t)
|
|
506
506
|
e[n] = t[n];
|
|
507
507
|
return e;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function bt(e, t) {
|
|
510
510
|
for (var n in e)
|
|
511
511
|
if (n !== "__source" && !(n in t))
|
|
512
512
|
return !0;
|
|
@@ -518,70 +518,70 @@ function gt(e, t) {
|
|
|
518
518
|
function Ze(e) {
|
|
519
519
|
this.props = e;
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function qn(e, t) {
|
|
522
522
|
function n(r) {
|
|
523
523
|
var i = this.props.ref, s = i == r.ref;
|
|
524
|
-
return !s && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, r) || !s :
|
|
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
|
-
return
|
|
532
|
+
return bt(this.props, e) || bt(this.state, t);
|
|
533
533
|
};
|
|
534
|
-
var
|
|
535
|
-
|
|
536
|
-
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null),
|
|
534
|
+
var Jt = S.__b;
|
|
535
|
+
S.__b = function(e) {
|
|
536
|
+
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Jt && Jt(e);
|
|
537
537
|
};
|
|
538
|
-
var
|
|
539
|
-
function
|
|
538
|
+
var dr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
539
|
+
function Wn(e) {
|
|
540
540
|
function t(n) {
|
|
541
|
-
var o =
|
|
541
|
+
var o = zn({}, n);
|
|
542
542
|
return delete o.ref, e(o, n.ref || null);
|
|
543
543
|
}
|
|
544
|
-
return t.$$typeof =
|
|
544
|
+
return t.$$typeof = dr, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
545
545
|
}
|
|
546
|
-
var
|
|
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 },
|
|
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)
|
|
560
560
|
return t.__e == null && (t.__e = n.__e, t.__k = n.__k), r.__c(e, t);
|
|
561
561
|
}
|
|
562
|
-
|
|
562
|
+
ur(e, t, n, o);
|
|
563
563
|
};
|
|
564
|
-
var
|
|
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
|
-
}), e.__c.__H = null), (e =
|
|
569
|
-
return
|
|
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 Zn(o, t, n);
|
|
570
570
|
})), e;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function Yn(e, t, n) {
|
|
573
573
|
return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(o) {
|
|
574
|
-
return
|
|
574
|
+
return Yn(o, t, n);
|
|
575
575
|
}), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
|
|
576
576
|
}
|
|
577
577
|
function De() {
|
|
578
578
|
this.__u = 0, this.t = null, this.__b = null;
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Qn(e) {
|
|
581
581
|
var t = e.__.__c;
|
|
582
582
|
return t && t.__a && t.__a(e);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function Kn(e) {
|
|
585
585
|
var t, n, o;
|
|
586
586
|
function r(i) {
|
|
587
587
|
if (t || (t = e()).then(function(s) {
|
|
@@ -592,20 +592,20 @@ function Qn(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
|
-
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null),
|
|
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) {
|
|
606
606
|
var n = t.__c, o = this;
|
|
607
607
|
o.t == null && (o.t = []), o.t.push(n);
|
|
608
|
-
var r =
|
|
608
|
+
var r = Qn(o.__v), i = !1, s = function() {
|
|
609
609
|
i || (i = !0, n.__R = null, r ? r(a) : a());
|
|
610
610
|
};
|
|
611
611
|
n.__R = s;
|
|
@@ -613,7 +613,7 @@ w.unmount = function(e) {
|
|
|
613
613
|
if (!--o.__u) {
|
|
614
614
|
if (o.state.__a) {
|
|
615
615
|
var d = o.state.__a;
|
|
616
|
-
o.__v.__k[0] =
|
|
616
|
+
o.__v.__k[0] = Yn(d, d.__c.__P, d.__c.__O);
|
|
617
617
|
}
|
|
618
618
|
var l;
|
|
619
619
|
for (o.setState({ __a: o.__b = null }); l = o.t.pop(); )
|
|
@@ -627,14 +627,14 @@ 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
|
-
var
|
|
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))
|
|
639
639
|
for (n = e.u; n; ) {
|
|
640
640
|
for (; n.length > 3; )
|
|
@@ -644,12 +644,12 @@ var en = function(e, t, n) {
|
|
|
644
644
|
e.u = n = n[2];
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
function
|
|
647
|
+
function pr(e) {
|
|
648
648
|
return this.getChildContext = function() {
|
|
649
649
|
return e.context;
|
|
650
650
|
}, e.children;
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function hr(e) {
|
|
653
653
|
var t = this, n = e.i;
|
|
654
654
|
t.componentWillUnmount = function() {
|
|
655
655
|
Ee(null, t.l), t.l = null, t.i = null;
|
|
@@ -659,17 +659,17 @@ function pr(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
|
-
function
|
|
665
|
-
var n =
|
|
664
|
+
function Jn(e, t) {
|
|
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) {
|
|
669
|
-
var t = this, n =
|
|
669
|
+
var t = this, n = Qn(t.__v), o = t.o.get(e);
|
|
670
670
|
return o[0]++, function(r) {
|
|
671
671
|
var i = function() {
|
|
672
|
-
t.props.revealOrder ? (o.push(r),
|
|
672
|
+
t.props.revealOrder ? (o.push(r), tn(t, e, o)) : r();
|
|
673
673
|
};
|
|
674
674
|
n ? n(i) : i();
|
|
675
675
|
};
|
|
@@ -683,17 +683,17 @@ function Kn(e, t) {
|
|
|
683
683
|
}, Ce.prototype.componentDidUpdate = Ce.prototype.componentDidMount = function() {
|
|
684
684
|
var e = this;
|
|
685
685
|
this.o.forEach(function(t, n) {
|
|
686
|
-
|
|
686
|
+
tn(e, n, t);
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
var
|
|
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
|
-
function
|
|
692
|
+
function eo(e, t, n) {
|
|
693
693
|
return t.__k == null && (t.textContent = ""), Ee(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
return
|
|
695
|
+
function to(e, t, n) {
|
|
696
|
+
return On(e, t), typeof n == "function" && n(), e ? e.__c : null;
|
|
697
697
|
}
|
|
698
698
|
ee.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
699
699
|
Object.defineProperty(ee.prototype, e, { configurable: !0, get: function() {
|
|
@@ -702,95 +702,95 @@ ee.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
702
702
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
703
703
|
} });
|
|
704
704
|
});
|
|
705
|
-
var
|
|
706
|
-
function gr() {
|
|
707
|
-
}
|
|
705
|
+
var nn = S.event;
|
|
708
706
|
function br() {
|
|
709
|
-
return this.cancelBubble;
|
|
710
707
|
}
|
|
711
708
|
function xr() {
|
|
709
|
+
return this.cancelBubble;
|
|
710
|
+
}
|
|
711
|
+
function yr() {
|
|
712
712
|
return this.defaultPrevented;
|
|
713
713
|
}
|
|
714
|
-
|
|
715
|
-
return
|
|
714
|
+
S.event = function(e) {
|
|
715
|
+
return nn && (e = nn(e)), e.persist = br, e.isPropagationStopped = xr, e.isDefaultPrevented = yr, e.nativeEvent = e;
|
|
716
716
|
};
|
|
717
|
-
var
|
|
717
|
+
var Rt, Cr = { enumerable: !1, configurable: !0, get: function() {
|
|
718
718
|
return this.class;
|
|
719
|
-
} },
|
|
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) {
|
|
731
731
|
d.props.selected = r.value.indexOf(d.props.value) != -1;
|
|
732
732
|
})), o == "select" && r.defaultValue != null && (r.value = le(n.children).forEach(function(d) {
|
|
733
733
|
d.props.selected = r.multiple ? r.defaultValue.indexOf(d.props.value) != -1 : r.defaultValue == d.props.value;
|
|
734
|
-
})), n.class && !n.className ? (r.class = n.class, Object.defineProperty(r, "className",
|
|
735
|
-
}(e), e.$$typeof =
|
|
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
|
+
}(e), e.$$typeof = Xn, on && on(e);
|
|
736
736
|
};
|
|
737
|
-
var
|
|
738
|
-
|
|
739
|
-
|
|
737
|
+
var rn = S.__r;
|
|
738
|
+
S.__r = function(e) {
|
|
739
|
+
rn && rn(e), Rt = e.__c;
|
|
740
740
|
};
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
|
|
741
|
+
var sn = S.diffed;
|
|
742
|
+
S.diffed = function(e) {
|
|
743
|
+
sn && sn(e);
|
|
744
744
|
var t = e.props, n = e.__e;
|
|
745
|
-
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value),
|
|
745
|
+
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Rt = null;
|
|
746
746
|
};
|
|
747
|
-
var
|
|
748
|
-
return
|
|
749
|
-
} } } },
|
|
750
|
-
function
|
|
751
|
-
return
|
|
747
|
+
var no = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
748
|
+
return Rt.__n[e.__c].props.value;
|
|
749
|
+
} } } }, kr = "17.0.2";
|
|
750
|
+
function oo(e) {
|
|
751
|
+
return H.bind(null, e);
|
|
752
752
|
}
|
|
753
753
|
function Ae(e) {
|
|
754
|
-
return !!e && e.$$typeof ===
|
|
755
|
-
}
|
|
756
|
-
function oo(e) {
|
|
757
|
-
return Ae(e) && e.type === W;
|
|
754
|
+
return !!e && e.$$typeof === Xn;
|
|
758
755
|
}
|
|
759
756
|
function ro(e) {
|
|
760
|
-
return Ae(e)
|
|
757
|
+
return Ae(e) && e.type === W;
|
|
761
758
|
}
|
|
762
759
|
function io(e) {
|
|
763
|
-
return
|
|
760
|
+
return Ae(e) ? sr.apply(null, arguments) : e;
|
|
764
761
|
}
|
|
765
762
|
function so(e) {
|
|
763
|
+
return !!e.__k && (Ee(null, e), !0);
|
|
764
|
+
}
|
|
765
|
+
function ao(e) {
|
|
766
766
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
767
767
|
}
|
|
768
|
-
var
|
|
768
|
+
var lo = function(e, t) {
|
|
769
769
|
return e(t);
|
|
770
|
-
},
|
|
770
|
+
}, co = function(e, t) {
|
|
771
771
|
return e(t);
|
|
772
|
-
},
|
|
773
|
-
function
|
|
772
|
+
}, uo = W;
|
|
773
|
+
function It(e) {
|
|
774
774
|
e();
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function po(e) {
|
|
777
777
|
return e;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
return [!1,
|
|
779
|
+
function ho() {
|
|
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
|
-
r.__ = n, r.v = t,
|
|
787
|
-
}, [e, n, t]),
|
|
788
|
-
return
|
|
789
|
-
|
|
786
|
+
r.__ = n, r.v = t, it(r) && i({ h: r });
|
|
787
|
+
}, [e, n, t]), Z(function() {
|
|
788
|
+
return it(r) && i({ h: r }), e(function() {
|
|
789
|
+
it(r) && i({ h: r });
|
|
790
790
|
});
|
|
791
791
|
}, [e]), n;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function it(e) {
|
|
794
794
|
var t, n, o = e.v, r = e.__;
|
|
795
795
|
try {
|
|
796
796
|
var i = o();
|
|
@@ -799,68 +799,68 @@ function rt(e) {
|
|
|
799
799
|
return !0;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
var
|
|
803
|
-
const
|
|
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
|
+
const Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
804
804
|
__proto__: null,
|
|
805
|
-
Children:
|
|
805
|
+
Children: Gn,
|
|
806
806
|
Component: ee,
|
|
807
807
|
Fragment: W,
|
|
808
808
|
PureComponent: Ze,
|
|
809
|
-
StrictMode:
|
|
809
|
+
StrictMode: uo,
|
|
810
810
|
Suspense: De,
|
|
811
811
|
SuspenseList: Ce,
|
|
812
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
813
|
-
cloneElement:
|
|
814
|
-
createContext:
|
|
815
|
-
createElement:
|
|
816
|
-
createFactory:
|
|
817
|
-
createPortal:
|
|
818
|
-
createRef:
|
|
819
|
-
default:
|
|
820
|
-
findDOMNode:
|
|
821
|
-
flushSync:
|
|
822
|
-
forwardRef:
|
|
823
|
-
hydrate:
|
|
812
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: no,
|
|
813
|
+
cloneElement: io,
|
|
814
|
+
createContext: Mn,
|
|
815
|
+
createElement: H,
|
|
816
|
+
createFactory: oo,
|
|
817
|
+
createPortal: Jn,
|
|
818
|
+
createRef: Rn,
|
|
819
|
+
default: wr,
|
|
820
|
+
findDOMNode: ao,
|
|
821
|
+
flushSync: co,
|
|
822
|
+
forwardRef: Wn,
|
|
823
|
+
hydrate: to,
|
|
824
824
|
isElement: fo,
|
|
825
|
-
isFragment:
|
|
825
|
+
isFragment: ro,
|
|
826
826
|
isValidElement: Ae,
|
|
827
|
-
lazy:
|
|
828
|
-
memo:
|
|
829
|
-
render:
|
|
830
|
-
startTransition:
|
|
831
|
-
unmountComponentAtNode:
|
|
832
|
-
unstable_batchedUpdates:
|
|
833
|
-
useCallback:
|
|
834
|
-
useContext:
|
|
835
|
-
useDebugValue:
|
|
836
|
-
useDeferredValue:
|
|
837
|
-
useEffect:
|
|
838
|
-
useErrorBoundary:
|
|
827
|
+
lazy: Kn,
|
|
828
|
+
memo: qn,
|
|
829
|
+
render: eo,
|
|
830
|
+
startTransition: It,
|
|
831
|
+
unmountComponentAtNode: so,
|
|
832
|
+
unstable_batchedUpdates: lo,
|
|
833
|
+
useCallback: $n,
|
|
834
|
+
useContext: Hn,
|
|
835
|
+
useDebugValue: Pt,
|
|
836
|
+
useDeferredValue: po,
|
|
837
|
+
useEffect: Z,
|
|
838
|
+
useErrorBoundary: ar,
|
|
839
839
|
useId: Bn,
|
|
840
|
-
useImperativeHandle:
|
|
841
|
-
useInsertionEffect:
|
|
840
|
+
useImperativeHandle: Vn,
|
|
841
|
+
useInsertionEffect: mo,
|
|
842
842
|
useLayoutEffect: Me,
|
|
843
843
|
useMemo: Ke,
|
|
844
|
-
useReducer:
|
|
845
|
-
useRef:
|
|
846
|
-
useState:
|
|
847
|
-
useSyncExternalStore:
|
|
848
|
-
useTransition:
|
|
849
|
-
version:
|
|
850
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
844
|
+
useReducer: Tt,
|
|
845
|
+
useRef: ue,
|
|
846
|
+
useState: F,
|
|
847
|
+
useSyncExternalStore: go,
|
|
848
|
+
useTransition: ho,
|
|
849
|
+
version: kr
|
|
850
|
+
}, Symbol.toStringTag, { value: "Module" })), an = (e) => {
|
|
851
851
|
let t;
|
|
852
852
|
const n = /* @__PURE__ */ new Set(), o = (d, l) => {
|
|
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
|
-
},
|
|
861
|
-
var
|
|
862
|
-
const
|
|
863
|
-
var
|
|
860
|
+
}, Er = (e) => e ? an(e) : an;
|
|
861
|
+
var vo = { exports: {} }, _o = {};
|
|
862
|
+
const bo = /* @__PURE__ */ zo(Sr);
|
|
863
|
+
var xo = { exports: {} }, yo = {};
|
|
864
864
|
/**
|
|
865
865
|
* @license React
|
|
866
866
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -870,38 +870,38 @@ var bo = { exports: {} }, xo = {};
|
|
|
870
870
|
* This source code is licensed under the MIT license found in the
|
|
871
871
|
* LICENSE file in the root directory of this source tree.
|
|
872
872
|
*/
|
|
873
|
-
var Pe =
|
|
874
|
-
function
|
|
873
|
+
var Pe = bo;
|
|
874
|
+
function Tr(e, t) {
|
|
875
875
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
function
|
|
879
|
-
var n = t(), o =
|
|
880
|
-
return
|
|
881
|
-
r.value = n, r.getSnapshot = t,
|
|
882
|
-
}, [e, n, t]),
|
|
883
|
-
return
|
|
884
|
-
|
|
877
|
+
var Pr = typeof Object.is == "function" ? Object.is : Tr, jr = Pe.useState, Rr = Pe.useEffect, Ir = Pe.useLayoutEffect, Lr = Pe.useDebugValue;
|
|
878
|
+
function Dr(e, t) {
|
|
879
|
+
var n = t(), o = jr({ inst: { value: n, getSnapshot: t } }), r = o[0].inst, i = o[1];
|
|
880
|
+
return Ir(function() {
|
|
881
|
+
r.value = n, r.getSnapshot = t, st(r) && i({ inst: r });
|
|
882
|
+
}, [e, n, t]), Rr(function() {
|
|
883
|
+
return st(r) && i({ inst: r }), e(function() {
|
|
884
|
+
st(r) && i({ inst: r });
|
|
885
885
|
});
|
|
886
|
-
}, [e]),
|
|
886
|
+
}, [e]), Lr(n), n;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function st(e) {
|
|
889
889
|
var t = e.getSnapshot;
|
|
890
890
|
e = e.value;
|
|
891
891
|
try {
|
|
892
892
|
var n = t();
|
|
893
|
-
return !
|
|
893
|
+
return !Pr(e, n);
|
|
894
894
|
} catch {
|
|
895
895
|
return !0;
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Nr(e, t) {
|
|
899
899
|
return t();
|
|
900
900
|
}
|
|
901
|
-
var
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
var
|
|
901
|
+
var Or = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? Nr : Dr;
|
|
902
|
+
yo.useSyncExternalStore = Pe.useSyncExternalStore !== void 0 ? Pe.useSyncExternalStore : Or;
|
|
903
|
+
xo.exports = yo;
|
|
904
|
+
var Mr = xo.exports;
|
|
905
905
|
/**
|
|
906
906
|
* @license React
|
|
907
907
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -911,64 +911,64 @@ var Or = bo.exports;
|
|
|
911
911
|
* This source code is licensed under the MIT license found in the
|
|
912
912
|
* LICENSE file in the root directory of this source tree.
|
|
913
913
|
*/
|
|
914
|
-
var Je =
|
|
915
|
-
function
|
|
914
|
+
var Je = bo, Ar = Mr;
|
|
915
|
+
function Ur(e, t) {
|
|
916
916
|
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
917
917
|
}
|
|
918
|
-
var
|
|
919
|
-
|
|
920
|
-
var i =
|
|
918
|
+
var 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
|
-
i =
|
|
927
|
-
function d(
|
|
926
|
+
i = Fr(function() {
|
|
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
|
-
var a =
|
|
948
|
+
var a = $r(e, i[0], i[1]);
|
|
949
949
|
return Br(function() {
|
|
950
950
|
s.hasValue = !0, s.value = a;
|
|
951
|
-
}, [a]),
|
|
951
|
+
}, [a]), zr(a), a;
|
|
952
952
|
};
|
|
953
|
-
|
|
954
|
-
var
|
|
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,
|
|
961
961
|
t,
|
|
962
962
|
n
|
|
963
963
|
);
|
|
964
|
-
return
|
|
964
|
+
return Pt(o), o;
|
|
965
965
|
}
|
|
966
|
-
const
|
|
967
|
-
const t = typeof e == "function" ?
|
|
966
|
+
const ln = (e) => {
|
|
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
|
-
},
|
|
970
|
-
var
|
|
971
|
-
const
|
|
969
|
+
}, Co = (e) => e ? ln(e) : ln;
|
|
970
|
+
var xt = /* @__PURE__ */ ((e) => (e[e.And = 1] = "And", e[e.Or = 2] = "Or", e))(xt || {});
|
|
971
|
+
const cn = 1, Lt = {
|
|
972
972
|
eq(e, t) {
|
|
973
973
|
return e == t;
|
|
974
974
|
},
|
|
@@ -1028,7 +1028,7 @@ const ln = 1, It = {
|
|
|
1028
1028
|
notcontains(e, t) {
|
|
1029
1029
|
return !this.contains(e, t);
|
|
1030
1030
|
}
|
|
1031
|
-
},
|
|
1031
|
+
}, Yr = (e, t, n) => {
|
|
1032
1032
|
switch (t) {
|
|
1033
1033
|
case b.VideoVoice:
|
|
1034
1034
|
return !!(e && e.value);
|
|
@@ -1053,13 +1053,13 @@ const ln = 1, It = {
|
|
|
1053
1053
|
default:
|
|
1054
1054
|
return !0;
|
|
1055
1055
|
}
|
|
1056
|
-
},
|
|
1056
|
+
}, ko = (e, t) => {
|
|
1057
1057
|
if (t === b.Matrix) {
|
|
1058
1058
|
const n = Object.keys(e).length, o = Object.values(e).filter((r) => r !== null).length;
|
|
1059
1059
|
return o > 0 && o < n;
|
|
1060
1060
|
}
|
|
1061
1061
|
return !1;
|
|
1062
|
-
},
|
|
1062
|
+
}, wo = ({
|
|
1063
1063
|
cards: e,
|
|
1064
1064
|
index: t,
|
|
1065
1065
|
hasEndCard: n,
|
|
@@ -1074,41 +1074,41 @@ const ln = 1, It = {
|
|
|
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[
|
|
1094
|
-
comparator:
|
|
1092
|
+
for (let f = 1; f < c.length; f += 2) {
|
|
1093
|
+
const x = c[f], _ = c[f + 1], y = dn({
|
|
1094
|
+
comparator: _.comparator,
|
|
1095
1095
|
// @ts-expect-error - unknown response type
|
|
1096
|
-
response: o[
|
|
1096
|
+
response: o[_.questionIndex],
|
|
1097
1097
|
// @ts-expect-error - expected card type
|
|
1098
|
-
type: e[
|
|
1099
|
-
value:
|
|
1098
|
+
type: e[_.questionIndex].type,
|
|
1099
|
+
value: _.value
|
|
1100
1100
|
});
|
|
1101
|
-
x ===
|
|
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
|
}
|
|
1108
1108
|
const d = e.findIndex((p) => p.type === b.Uploading);
|
|
1109
1109
|
let l;
|
|
1110
1110
|
return d > 0 ? l = n ? e.length - 3 : e.length - 2 : l = e.length - 1, t >= l || s === -1 || s !== null && s > l ? d > 0 && Object.values(r).some((c) => c.isSubmitted && !c.isComplete) ? d : n ? e.length - 1 : null : s === -1 ? null : s;
|
|
1111
|
-
},
|
|
1111
|
+
}, dn = ({
|
|
1112
1112
|
comparator: e,
|
|
1113
1113
|
response: t,
|
|
1114
1114
|
type: n,
|
|
@@ -1141,7 +1141,7 @@ const ln = 1, It = {
|
|
|
1141
1141
|
if (e === J.GivenUp)
|
|
1142
1142
|
return n === b.RecordedTask ? "taskStatus" in t && t.taskStatus === X.GivenUp : !0;
|
|
1143
1143
|
if (e === J.Partial)
|
|
1144
|
-
return n === b.Matrix ?
|
|
1144
|
+
return n === b.Matrix ? ko(t, n) : !1;
|
|
1145
1145
|
if (e === J.Skipped)
|
|
1146
1146
|
switch (n) {
|
|
1147
1147
|
case b.TextUrlPrompt:
|
|
@@ -1167,12 +1167,12 @@ const ln = 1, It = {
|
|
|
1167
1167
|
default:
|
|
1168
1168
|
return !1;
|
|
1169
1169
|
}
|
|
1170
|
-
return
|
|
1171
|
-
},
|
|
1170
|
+
return Lt[e](t, o);
|
|
1171
|
+
}, Qr = 13, Kr = (e, t) => e.reduce((n, o) => n.concat(n.map((r) => [...r, o])), [[]]).filter((n) => t || n.length > 0), Jr = (e) => {
|
|
1172
1172
|
var t, n, o;
|
|
1173
1173
|
switch (e.type) {
|
|
1174
1174
|
case b.MultipleSelect:
|
|
1175
|
-
return !e || !e.props || !e.props.options ? null : e.props.options.length >
|
|
1175
|
+
return !e || !e.props || !e.props.options ? null : e.props.options.length > Qr ? e.props.options.map((r) => [r.value]) : Kr(e.props.options.map((r) => r.value), !e.props.properties.required);
|
|
1176
1176
|
case b.MultipleChoice: {
|
|
1177
1177
|
if (!e || !e.props || !e.props.options)
|
|
1178
1178
|
return null;
|
|
@@ -1210,11 +1210,11 @@ const ln = 1, It = {
|
|
|
1210
1210
|
skipped: !0
|
|
1211
1211
|
}]];
|
|
1212
1212
|
case b.ConsentLegal:
|
|
1213
|
-
return [
|
|
1213
|
+
return [cn, ...e.props.properties.required ? [] : [null]];
|
|
1214
1214
|
default:
|
|
1215
|
-
return [
|
|
1215
|
+
return [cn];
|
|
1216
1216
|
}
|
|
1217
|
-
},
|
|
1217
|
+
}, Xr = (e) => e in Lt, ei = (e) => typeof e == "object" && e !== null && "taskStatus" in e, ti = (e, t = []) => t.reduce((n, o) => {
|
|
1218
1218
|
const {
|
|
1219
1219
|
group: r,
|
|
1220
1220
|
target: i
|
|
@@ -1233,7 +1233,7 @@ const ln = 1, It = {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
});
|
|
1235
1235
|
return [...n, ...s];
|
|
1236
|
-
}, []),
|
|
1236
|
+
}, []), ni = (e, t) => {
|
|
1237
1237
|
const n = /* @__PURE__ */ new Set([b.Thanks, b.Uploading]);
|
|
1238
1238
|
if (t >= e.length || t < 0 || n.has(e[t].type))
|
|
1239
1239
|
return 0;
|
|
@@ -1245,37 +1245,37 @@ const ln = 1, It = {
|
|
|
1245
1245
|
[-1]: 0
|
|
1246
1246
|
};
|
|
1247
1247
|
for (let i = o.length - 2; i >= t; i--) {
|
|
1248
|
-
const s = o[i], a =
|
|
1248
|
+
const s = o[i], a = ti(i, s.props.routingOptions);
|
|
1249
1249
|
if (a.length === 0) {
|
|
1250
1250
|
r[i] = r[i + 1] + 1;
|
|
1251
1251
|
continue;
|
|
1252
1252
|
}
|
|
1253
|
-
let d = 0, l =
|
|
1253
|
+
let d = 0, l = Jr(s);
|
|
1254
1254
|
if (l === null)
|
|
1255
1255
|
return o.length - 1 - t;
|
|
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],
|
|
1262
|
-
const x =
|
|
1263
|
-
value:
|
|
1264
|
-
}, s.type,
|
|
1265
|
-
return !(x && c === J.Answered ||
|
|
1259
|
+
target: m,
|
|
1260
|
+
value: h
|
|
1261
|
+
} = a[p], g = l.filter((f) => {
|
|
1262
|
+
const x = Yr({
|
|
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
|
}
|
|
1277
1277
|
return r[t];
|
|
1278
|
-
},
|
|
1278
|
+
}, oi = (e) => !(e.type === b.Thanks || e.type === b.Uploading), $ = Co()((e, t) => ({
|
|
1279
1279
|
allResponses: [],
|
|
1280
1280
|
answers: void 0,
|
|
1281
1281
|
apiURL: "",
|
|
@@ -1287,10 +1287,10 @@ const ln = 1, It = {
|
|
|
1287
1287
|
remove: i,
|
|
1288
1288
|
trackHistory: s
|
|
1289
1289
|
} = o;
|
|
1290
|
-
await r(n),
|
|
1290
|
+
await r(n), at(o) || s({
|
|
1291
1291
|
event: "closed"
|
|
1292
|
-
}),
|
|
1293
|
-
initiator:
|
|
1292
|
+
}), ot(`Closing survey: ${o.surveyId}`), Vt.enable(), i({
|
|
1293
|
+
initiator: $t.Closed
|
|
1294
1294
|
});
|
|
1295
1295
|
},
|
|
1296
1296
|
configureExitOnOverlayClick: () => {
|
|
@@ -1302,8 +1302,8 @@ const ln = 1, It = {
|
|
|
1302
1302
|
fadeout: r,
|
|
1303
1303
|
remove: i
|
|
1304
1304
|
} = t();
|
|
1305
|
-
o(ce.SurveyComplete), await r(n),
|
|
1306
|
-
initiator:
|
|
1305
|
+
o(ce.SurveyComplete), await r(n), Vt.enable(), i({
|
|
1306
|
+
initiator: $t.Complete
|
|
1307
1307
|
});
|
|
1308
1308
|
},
|
|
1309
1309
|
endCard: {
|
|
@@ -1317,7 +1317,7 @@ const ln = 1, It = {
|
|
|
1317
1317
|
headers: r,
|
|
1318
1318
|
viewDocument: i
|
|
1319
1319
|
} = t();
|
|
1320
|
-
return We(r) ? Promise.resolve() : (o(
|
|
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 ln = 1, It = {
|
|
|
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
|
},
|
|
@@ -1376,9 +1376,9 @@ const ln = 1, It = {
|
|
|
1376
1376
|
headers: {
|
|
1377
1377
|
Authorization: "",
|
|
1378
1378
|
"Content-Type": "",
|
|
1379
|
-
"userleap-platform":
|
|
1379
|
+
"userleap-platform": pt.Web,
|
|
1380
1380
|
"x-ul-environment-id": "",
|
|
1381
|
-
"x-ul-installation-method":
|
|
1381
|
+
"x-ul-installation-method": wn.Snippet,
|
|
1382
1382
|
"x-ul-sdk-version": "",
|
|
1383
1383
|
"x-ul-visitor-id": ""
|
|
1384
1384
|
},
|
|
@@ -1406,51 +1406,51 @@ const ln = 1, It = {
|
|
|
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
|
-
},
|
|
1414
|
-
|
|
1415
|
-
const
|
|
1413
|
+
}, _ = x.value;
|
|
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 ln = 1, It = {
|
|
|
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
|
|
@@ -1511,7 +1511,7 @@ const ln = 1, It = {
|
|
|
1511
1511
|
responseGroupUid: i
|
|
1512
1512
|
}) => {
|
|
1513
1513
|
const s = t();
|
|
1514
|
-
if (!i ||
|
|
1514
|
+
if (!i || at(s))
|
|
1515
1515
|
return;
|
|
1516
1516
|
const a = {
|
|
1517
1517
|
responseGroupUid: i,
|
|
@@ -1521,19 +1521,19 @@ const ln = 1, It = {
|
|
|
1521
1521
|
completedAt: n,
|
|
1522
1522
|
previewKey: s.previewKey
|
|
1523
1523
|
};
|
|
1524
|
-
n &&
|
|
1524
|
+
ot(`Submitting response: ${JSON.stringify(r.value, null, 2)} for survey: ${s.surveyId}`), n && (ot("Survey complete"), Wo({
|
|
1525
1525
|
id: s.surveyId
|
|
1526
|
-
});
|
|
1527
|
-
const d = await s.trackPromise(
|
|
1526
|
+
}));
|
|
1527
|
+
const d = await s.trackPromise(ht(`${s.apiURL}/sdk/1/environments/${s.envId}/visitors/${s.userId}/responses/submit`, {
|
|
1528
1528
|
body: JSON.stringify(a),
|
|
1529
1529
|
headers: s.headers,
|
|
1530
1530
|
method: "POST"
|
|
1531
1531
|
}));
|
|
1532
1532
|
if (!d.ok) {
|
|
1533
|
-
d.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", d.error), await s.trackPromise(
|
|
1533
|
+
d.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", d.error), await s.trackPromise(un(s, "submitResponse", d.error)));
|
|
1534
1534
|
return;
|
|
1535
1535
|
}
|
|
1536
|
-
s.eventEmitFn(
|
|
1536
|
+
s.eventEmitFn(he.QuestionAnswered, {
|
|
1537
1537
|
...r,
|
|
1538
1538
|
questionIndex: o
|
|
1539
1539
|
});
|
|
@@ -1546,7 +1546,7 @@ const ln = 1, It = {
|
|
|
1546
1546
|
isNew: r = !1
|
|
1547
1547
|
}) => {
|
|
1548
1548
|
const i = t();
|
|
1549
|
-
if (
|
|
1549
|
+
if (at(i))
|
|
1550
1550
|
return;
|
|
1551
1551
|
const {
|
|
1552
1552
|
cards: s,
|
|
@@ -1560,12 +1560,12 @@ const ln = 1, It = {
|
|
|
1560
1560
|
isNew: r,
|
|
1561
1561
|
responseGroupUid: i.responseGroupUid,
|
|
1562
1562
|
previewKey: i.previewKey
|
|
1563
|
-
}, p = await i.trackPromise(
|
|
1563
|
+
}, p = await i.trackPromise(ht(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`, {
|
|
1564
1564
|
body: JSON.stringify(l),
|
|
1565
1565
|
headers: i.headers,
|
|
1566
1566
|
method: "POST"
|
|
1567
1567
|
}));
|
|
1568
|
-
!p.ok && p.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", p.error), await i.trackPromise(
|
|
1568
|
+
!p.ok && p.reportError && (console.warn("[Sprig] (ERR-428) Failed to track survey event", p.error), await i.trackPromise(un(i, "trackHistory", p.error)));
|
|
1569
1569
|
},
|
|
1570
1570
|
trackPromise: async (n) => {
|
|
1571
1571
|
let {
|
|
@@ -1589,12 +1589,12 @@ const ln = 1, It = {
|
|
|
1589
1589
|
viewDocument: d
|
|
1590
1590
|
} = t(), p = n[o].type === b.Matrix;
|
|
1591
1591
|
setTimeout(() => {
|
|
1592
|
-
var
|
|
1593
|
-
const [c,
|
|
1594
|
-
We(r) ? i(
|
|
1595
|
-
name:
|
|
1592
|
+
var h, g;
|
|
1593
|
+
const [c, m] = Go(d);
|
|
1594
|
+
We(r) ? i(he.SurveyHeight, {
|
|
1595
|
+
name: he.SurveyHeight,
|
|
1596
1596
|
contentFrameHeight: c
|
|
1597
|
-
}) : ((
|
|
1597
|
+
}) : ((h = s.setHeight) == null || h.call(s, c), a || (g = s.setWidth) == null || g.call(s, p ? m : parseInt(Zo)));
|
|
1598
1598
|
}, 100);
|
|
1599
1599
|
},
|
|
1600
1600
|
uploadingCardViewed: !1,
|
|
@@ -1604,7 +1604,7 @@ const ln = 1, It = {
|
|
|
1604
1604
|
userId: "",
|
|
1605
1605
|
viewDocument: window.document,
|
|
1606
1606
|
viewedCardCount: 0
|
|
1607
|
-
})),
|
|
1607
|
+
})), at = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview, un = async (e, t, n) => {
|
|
1608
1608
|
const {
|
|
1609
1609
|
mode: o,
|
|
1610
1610
|
userId: r,
|
|
@@ -1629,25 +1629,32 @@ const ln = 1, It = {
|
|
|
1629
1629
|
meta: p,
|
|
1630
1630
|
vid: r,
|
|
1631
1631
|
envId: i
|
|
1632
|
-
}
|
|
1633
|
-
(await pt(`${s}/sdk/1/errors`, {
|
|
1632
|
+
}, m = await ht(`${s}/sdk/1/errors`, {
|
|
1634
1633
|
method: "POST",
|
|
1635
1634
|
headers: Object.assign({
|
|
1636
1635
|
"x-ul-error": window.btoa(`userleap-${Date.now()}-error`)
|
|
1637
1636
|
}, a),
|
|
1638
1637
|
body: JSON.stringify(c)
|
|
1639
|
-
})
|
|
1638
|
+
});
|
|
1639
|
+
if (!m.ok)
|
|
1640
|
+
console.warn("[Sprig] (ERR-444) Failed to report error to API", n);
|
|
1641
|
+
else {
|
|
1642
|
+
const {
|
|
1643
|
+
presignedUrl: h
|
|
1644
|
+
} = m.json;
|
|
1645
|
+
Yo(h);
|
|
1646
|
+
}
|
|
1640
1647
|
};
|
|
1641
|
-
var
|
|
1648
|
+
var ri = 0;
|
|
1642
1649
|
function u(e, t, n, o, r, i) {
|
|
1643
1650
|
var s, a, d = {};
|
|
1644
1651
|
for (a in t)
|
|
1645
1652
|
a == "ref" ? s = t[a] : d[a] = t[a];
|
|
1646
|
-
var l = { type: e, props: d, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --
|
|
1653
|
+
var l = { type: e, props: d, key: n, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --ri, __i: -1, __u: 0, __source: r, __self: i };
|
|
1647
1654
|
if (typeof e == "function" && (s = e.defaultProps))
|
|
1648
1655
|
for (a in s)
|
|
1649
1656
|
d[a] === void 0 && (d[a] = s[a]);
|
|
1650
|
-
return
|
|
1657
|
+
return S.vnode && S.vnode(l), l;
|
|
1651
1658
|
}
|
|
1652
1659
|
const G = (e) => u("button", {
|
|
1653
1660
|
...e,
|
|
@@ -1674,14 +1681,14 @@ const G = (e) => u("button", {
|
|
|
1674
1681
|
children: n
|
|
1675
1682
|
})]
|
|
1676
1683
|
});
|
|
1677
|
-
},
|
|
1684
|
+
}, pn = ({
|
|
1678
1685
|
buttonText: e = "View Prototype",
|
|
1679
1686
|
handleClick: t
|
|
1680
1687
|
}) => u("button", {
|
|
1681
1688
|
className: "prototype-button",
|
|
1682
1689
|
onClick: t,
|
|
1683
1690
|
children: e
|
|
1684
|
-
}, "prototype-btn"),
|
|
1691
|
+
}, "prototype-btn"), pe = ({
|
|
1685
1692
|
defaultBody: e,
|
|
1686
1693
|
embeddedType: t = "prototype",
|
|
1687
1694
|
properties: n
|
|
@@ -1692,32 +1699,32 @@ const G = (e) => u("button", {
|
|
|
1692
1699
|
hasViewedEmbed: r,
|
|
1693
1700
|
headers: i,
|
|
1694
1701
|
useDesktopPrototype: s
|
|
1695
|
-
} = $((
|
|
1696
|
-
handleClickEmbedButton:
|
|
1697
|
-
hasViewedEmbed:
|
|
1698
|
-
headers:
|
|
1699
|
-
useDesktopPrototype:
|
|
1700
|
-
})), a = (n == null ? void 0 : n.conceptUrl) || ((c = n == null ? void 0 : n.consentDocument) == null ? void 0 : c.url), d = window.innerWidth <
|
|
1701
|
-
|
|
1702
|
+
} = $((m) => ({
|
|
1703
|
+
handleClickEmbedButton: m.handleClickEmbedButton,
|
|
1704
|
+
hasViewedEmbed: m.hasViewedEmbed,
|
|
1705
|
+
headers: m.headers,
|
|
1706
|
+
useDesktopPrototype: m.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 = (m, h) => {
|
|
1708
|
+
m.preventDefault(), o(h);
|
|
1702
1709
|
};
|
|
1703
1710
|
if (!s && d && !r && a && ["email", "link"].includes(l)) {
|
|
1704
1711
|
if (t === "prototype")
|
|
1705
|
-
return u(
|
|
1706
|
-
handleClick: (
|
|
1707
|
-
p(
|
|
1712
|
+
return u(pn, {
|
|
1713
|
+
handleClick: (m) => {
|
|
1714
|
+
p(m, ce.ViewPrototypeClick);
|
|
1708
1715
|
}
|
|
1709
1716
|
});
|
|
1710
1717
|
if (t === "pdf")
|
|
1711
|
-
return u(
|
|
1718
|
+
return u(pn, {
|
|
1712
1719
|
buttonText: (n == null ? void 0 : n.viewDocumentText) || "View Document",
|
|
1713
|
-
handleClick: (
|
|
1714
|
-
p(
|
|
1720
|
+
handleClick: (m) => {
|
|
1721
|
+
p(m, ce.ViewAgreementClick);
|
|
1715
1722
|
}
|
|
1716
1723
|
});
|
|
1717
1724
|
}
|
|
1718
1725
|
return e();
|
|
1719
|
-
},
|
|
1720
|
-
const n =
|
|
1726
|
+
}, So = (e, t) => {
|
|
1727
|
+
const n = ue(0), o = () => {
|
|
1721
1728
|
if (e.current) {
|
|
1722
1729
|
const r = e.current;
|
|
1723
1730
|
r.style.height = "1px";
|
|
@@ -1725,8 +1732,8 @@ const G = (e) => u("button", {
|
|
|
1725
1732
|
n.current !== l && t(), n.current = l, r.style.height = `${l}px`;
|
|
1726
1733
|
}
|
|
1727
1734
|
};
|
|
1728
|
-
return
|
|
1729
|
-
},
|
|
1735
|
+
return Z(o, []), o;
|
|
1736
|
+
}, Dt = ({
|
|
1730
1737
|
ariaLabel: e,
|
|
1731
1738
|
border: t,
|
|
1732
1739
|
choiceStyle: n = {},
|
|
@@ -1739,52 +1746,52 @@ const G = (e) => u("button", {
|
|
|
1739
1746
|
useMobileStyling: l,
|
|
1740
1747
|
error: p,
|
|
1741
1748
|
allowTextEntry: c,
|
|
1742
|
-
noneOfTheAbove:
|
|
1743
|
-
promptText:
|
|
1744
|
-
onUserInputChanged:
|
|
1749
|
+
noneOfTheAbove: m,
|
|
1750
|
+
promptText: h,
|
|
1751
|
+
onUserInputChanged: g
|
|
1745
1752
|
}) => {
|
|
1746
1753
|
const {
|
|
1747
|
-
styleNonce:
|
|
1754
|
+
styleNonce: f,
|
|
1748
1755
|
viewDocument: x
|
|
1749
|
-
} = $((
|
|
1750
|
-
styleNonce:
|
|
1751
|
-
viewDocument:
|
|
1752
|
-
})), [
|
|
1753
|
-
|
|
1756
|
+
} = $((N) => ({
|
|
1757
|
+
styleNonce: N.styleNonce,
|
|
1758
|
+
viewDocument: N.viewDocument
|
|
1759
|
+
})), [_, y] = F(!1);
|
|
1760
|
+
ai(x, t, f);
|
|
1754
1761
|
const k = ({
|
|
1755
|
-
isSelected:
|
|
1762
|
+
isSelected: N,
|
|
1756
1763
|
userText: Q
|
|
1757
1764
|
}) => {
|
|
1758
|
-
|
|
1765
|
+
g && g({
|
|
1759
1766
|
id: a || "",
|
|
1760
|
-
selected:
|
|
1767
|
+
selected: N,
|
|
1761
1768
|
value: i,
|
|
1762
1769
|
userText: Q,
|
|
1763
|
-
noneOfTheAbove:
|
|
1770
|
+
noneOfTheAbove: m
|
|
1764
1771
|
});
|
|
1765
|
-
}, T = (
|
|
1766
|
-
|
|
1772
|
+
}, T = (N) => {
|
|
1773
|
+
N.stopPropagation(), k({
|
|
1767
1774
|
isSelected: d || !r,
|
|
1768
1775
|
userText: s
|
|
1769
|
-
}),
|
|
1770
|
-
},
|
|
1771
|
-
|
|
1772
|
-
},
|
|
1773
|
-
|
|
1774
|
-
},
|
|
1775
|
-
(
|
|
1776
|
-
},
|
|
1777
|
-
onClick: (
|
|
1778
|
-
onKeyPress: (
|
|
1776
|
+
}), y(!1);
|
|
1777
|
+
}, w = () => {
|
|
1778
|
+
_ || y(!0);
|
|
1779
|
+
}, C = () => {
|
|
1780
|
+
_ && y(!1);
|
|
1781
|
+
}, O = (N) => {
|
|
1782
|
+
(N.key === "Enter" || N.key === " ") && T(N);
|
|
1783
|
+
}, I = {
|
|
1784
|
+
onClick: (N) => T(N),
|
|
1785
|
+
onKeyPress: (N) => O(N)
|
|
1779
1786
|
};
|
|
1780
|
-
"ontouchstart" in x.documentElement ? (
|
|
1781
|
-
const
|
|
1787
|
+
"ontouchstart" in x.documentElement ? (I.onTouchStart = C, I.onTouchCancel = C, I.onTouchEnd = C) : (I.onMouseDown = w, I.onMouseLeave = C);
|
|
1788
|
+
const v = d ? `radio-${a}` : `checkbox-${a}`, P = r || _ ? [Fe] : [], D = [...p ? [Eo] : [], ...P], L = o ? {
|
|
1782
1789
|
"aria-labelledby": `label-${a}`
|
|
1783
1790
|
} : {
|
|
1784
1791
|
"aria-label": e
|
|
1785
1792
|
};
|
|
1786
1793
|
return u("div", {
|
|
1787
|
-
className: M([...
|
|
1794
|
+
className: M([...B(E.Choice, l), ...D]),
|
|
1788
1795
|
id: `choice-div-${a}`,
|
|
1789
1796
|
style: {
|
|
1790
1797
|
...n,
|
|
@@ -1792,20 +1799,20 @@ const G = (e) => u("button", {
|
|
|
1792
1799
|
borderColor: Ie
|
|
1793
1800
|
} : {}
|
|
1794
1801
|
},
|
|
1795
|
-
...
|
|
1802
|
+
...I,
|
|
1796
1803
|
children: [u("div", {
|
|
1797
1804
|
className: M([E.ChoiceLabelContainer]),
|
|
1798
1805
|
children: [d ? u("div", {
|
|
1799
|
-
...
|
|
1800
|
-
className: M([E.ChoiceRadio, ...
|
|
1801
|
-
id:
|
|
1806
|
+
...L,
|
|
1807
|
+
className: M([E.ChoiceRadio, ...P]),
|
|
1808
|
+
id: v,
|
|
1802
1809
|
role: "radio",
|
|
1803
1810
|
tabIndex: 0
|
|
1804
1811
|
}) : u("div", {
|
|
1805
1812
|
"aria-checked": r,
|
|
1806
1813
|
"aria-labelledby": `label-${a}`,
|
|
1807
1814
|
className: E.ChoiceCheckbox,
|
|
1808
|
-
id:
|
|
1815
|
+
id: v,
|
|
1809
1816
|
role: "checkbox",
|
|
1810
1817
|
style: r ? {
|
|
1811
1818
|
backgroundColor: t,
|
|
@@ -1827,42 +1834,42 @@ const G = (e) => u("button", {
|
|
|
1827
1834
|
})
|
|
1828
1835
|
})
|
|
1829
1836
|
}), o && u("label", {
|
|
1830
|
-
className: M(
|
|
1831
|
-
htmlFor:
|
|
1837
|
+
className: M(B(E.ChoiceLabel, l)),
|
|
1838
|
+
htmlFor: v,
|
|
1832
1839
|
id: `label-${a}`,
|
|
1833
1840
|
children: o
|
|
1834
1841
|
})]
|
|
1835
1842
|
}), c && r && u("div", {
|
|
1836
|
-
className: M([E.ChoiceTextEntryContainer, ...
|
|
1837
|
-
children: u(
|
|
1838
|
-
onTextChange: (
|
|
1843
|
+
className: M([E.ChoiceTextEntryContainer, ...P]),
|
|
1844
|
+
children: u(ii, {
|
|
1845
|
+
onTextChange: (N) => k({
|
|
1839
1846
|
isSelected: r,
|
|
1840
|
-
userText:
|
|
1847
|
+
userText: N
|
|
1841
1848
|
}),
|
|
1842
|
-
promptText:
|
|
1849
|
+
promptText: h || "Please specify",
|
|
1843
1850
|
textValue: s,
|
|
1844
1851
|
useMobileStyling: l
|
|
1845
1852
|
})
|
|
1846
1853
|
})]
|
|
1847
1854
|
});
|
|
1848
|
-
},
|
|
1855
|
+
}, ii = ({
|
|
1849
1856
|
promptText: e,
|
|
1850
1857
|
textValue: t,
|
|
1851
1858
|
onTextChange: n,
|
|
1852
1859
|
useMobileStyling: o
|
|
1853
1860
|
}) => {
|
|
1854
|
-
const r =
|
|
1861
|
+
const r = ue(null), {
|
|
1855
1862
|
update: i
|
|
1856
1863
|
} = $((a) => ({
|
|
1857
1864
|
update: a.update
|
|
1858
|
-
})), s =
|
|
1859
|
-
return
|
|
1865
|
+
})), s = So(r, () => i());
|
|
1866
|
+
return Z(() => {
|
|
1860
1867
|
r.current && r.current.focus();
|
|
1861
1868
|
}, []), u("textarea", {
|
|
1862
1869
|
"aria-label": e,
|
|
1863
1870
|
"aria-multiline": "true",
|
|
1864
1871
|
"aria-placeholder": e,
|
|
1865
|
-
className: M(
|
|
1872
|
+
className: M(B(E.ChoiceTextInput, o)),
|
|
1866
1873
|
"data-gramm": "false",
|
|
1867
1874
|
maxLength: 5e3,
|
|
1868
1875
|
name: "text",
|
|
@@ -1881,10 +1888,10 @@ const G = (e) => u("button", {
|
|
|
1881
1888
|
rows: 1,
|
|
1882
1889
|
value: t
|
|
1883
1890
|
});
|
|
1884
|
-
},
|
|
1885
|
-
let o = e.getElementById(
|
|
1886
|
-
o || (o = e.createElement("style"), r = !0),
|
|
1887
|
-
},
|
|
1891
|
+
}, hn = "ul-select-style-element", Fe = "ul-select-active-dynamic-style", Eo = "ul-select-error-dynamic-style", si = (e) => e.tagName.toLowerCase() === "style", ai = (e, t, n) => {
|
|
1892
|
+
let o = e.getElementById(hn), r = !1;
|
|
1893
|
+
o || (o = e.createElement("style"), r = !0), si(o) && (o.id = hn, n && (o.nonce = n), o.textContent = li(t), r && e.head.appendChild(o));
|
|
1894
|
+
}, li = (e) => `
|
|
1888
1895
|
.${Fe} {
|
|
1889
1896
|
border-color: ${e};
|
|
1890
1897
|
}
|
|
@@ -1892,10 +1899,10 @@ const G = (e) => u("button", {
|
|
|
1892
1899
|
border: 6px solid ${e};
|
|
1893
1900
|
box-shadow: none;
|
|
1894
1901
|
}
|
|
1895
|
-
.${
|
|
1902
|
+
.${Eo} {
|
|
1896
1903
|
border-color: ${Ie};
|
|
1897
1904
|
}
|
|
1898
|
-
`, ye = (e) => (e == null ? void 0 : e.buttonText) || "Next",
|
|
1905
|
+
`, ye = (e) => (e == null ? void 0 : e.buttonText) || "Next", Nt = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", ci = ({
|
|
1899
1906
|
className: e,
|
|
1900
1907
|
message: t,
|
|
1901
1908
|
next: n,
|
|
@@ -1906,58 +1913,58 @@ const G = (e) => u("button", {
|
|
|
1906
1913
|
const {
|
|
1907
1914
|
useMobileStyling: s,
|
|
1908
1915
|
border: a
|
|
1909
|
-
} = $((
|
|
1910
|
-
useMobileStyling:
|
|
1911
|
-
border:
|
|
1912
|
-
})), [d, l] =
|
|
1913
|
-
|
|
1914
|
-
let
|
|
1915
|
-
if (!
|
|
1916
|
+
} = $((v) => ({
|
|
1917
|
+
useMobileStyling: v.useMobileStyling,
|
|
1918
|
+
border: v.border
|
|
1919
|
+
})), [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) => {
|
|
1920
|
+
v.preventDefault(), v.stopPropagation();
|
|
1921
|
+
let D = null;
|
|
1922
|
+
if (!P) {
|
|
1916
1923
|
if (!k) {
|
|
1917
|
-
|
|
1924
|
+
h(!0);
|
|
1918
1925
|
return;
|
|
1919
1926
|
}
|
|
1920
|
-
|
|
1927
|
+
D = {
|
|
1921
1928
|
submitted: !0
|
|
1922
|
-
},
|
|
1929
|
+
}, g && (D.name = p);
|
|
1923
1930
|
}
|
|
1924
1931
|
n({
|
|
1925
|
-
value:
|
|
1932
|
+
value: D,
|
|
1926
1933
|
questionId: r,
|
|
1927
1934
|
type: i
|
|
1928
1935
|
});
|
|
1929
|
-
},
|
|
1930
|
-
|
|
1931
|
-
},
|
|
1932
|
-
|
|
1933
|
-
},
|
|
1934
|
-
|
|
1935
|
-
},
|
|
1936
|
-
children: [u(
|
|
1936
|
+
}, w = (v) => {
|
|
1937
|
+
v.preventDefault(), v.stopPropagation(), c(v.currentTarget.value);
|
|
1938
|
+
}, C = (v) => {
|
|
1939
|
+
v.currentTarget.style.borderColor = m && !y ? Ie : a;
|
|
1940
|
+
}, O = (v) => {
|
|
1941
|
+
v.currentTarget.style.borderColor = m && !y ? Ie : wt;
|
|
1942
|
+
}, I = () => u("div", {
|
|
1943
|
+
children: [u(Dt, {
|
|
1937
1944
|
allowTextEntry: !1,
|
|
1938
1945
|
border: a,
|
|
1939
|
-
error:
|
|
1946
|
+
error: m && !d,
|
|
1940
1947
|
isRadio: !1,
|
|
1941
1948
|
isSelected: d,
|
|
1942
1949
|
label: x,
|
|
1943
1950
|
onUserInputChanged: ({
|
|
1944
|
-
selected:
|
|
1951
|
+
selected: v
|
|
1945
1952
|
}) => {
|
|
1946
|
-
|
|
1953
|
+
v !== d && l(!d);
|
|
1947
1954
|
},
|
|
1948
1955
|
useMobileStyling: s
|
|
1949
|
-
}),
|
|
1950
|
-
"aria-label":
|
|
1951
|
-
"aria-placeholder":
|
|
1952
|
-
className: M(
|
|
1956
|
+
}), g && u("input", {
|
|
1957
|
+
"aria-label": f,
|
|
1958
|
+
"aria-placeholder": f,
|
|
1959
|
+
className: M(B(E.ConsentLegalNameInput, s)),
|
|
1953
1960
|
"data-gramm": "false",
|
|
1954
1961
|
maxLength: 250,
|
|
1955
1962
|
name: "name",
|
|
1956
|
-
onBlur:
|
|
1957
|
-
onFocus:
|
|
1958
|
-
onInput:
|
|
1959
|
-
placeholder:
|
|
1960
|
-
style:
|
|
1963
|
+
onBlur: O,
|
|
1964
|
+
onFocus: C,
|
|
1965
|
+
onInput: w,
|
|
1966
|
+
placeholder: f,
|
|
1967
|
+
style: m && !y ? {
|
|
1961
1968
|
borderColor: Ie
|
|
1962
1969
|
} : {},
|
|
1963
1970
|
tabIndex: 0,
|
|
@@ -1967,11 +1974,11 @@ const G = (e) => u("button", {
|
|
|
1967
1974
|
children: [u(G, {
|
|
1968
1975
|
className: k ? "" : E.ButtonDisabled,
|
|
1969
1976
|
onClick: T,
|
|
1970
|
-
children:
|
|
1977
|
+
children: _
|
|
1971
1978
|
}), o.required === !1 && u("button", {
|
|
1972
1979
|
className: E.SkipButton,
|
|
1973
|
-
onClick: (
|
|
1974
|
-
children:
|
|
1980
|
+
onClick: (v) => T(v, !0),
|
|
1981
|
+
children: Nt(o)
|
|
1975
1982
|
})]
|
|
1976
1983
|
})]
|
|
1977
1984
|
});
|
|
@@ -1985,13 +1992,13 @@ const G = (e) => u("button", {
|
|
|
1985
1992
|
__html: o.richTextBody
|
|
1986
1993
|
} : void 0,
|
|
1987
1994
|
id: "ul-card__consent-legal-body-container"
|
|
1988
|
-
}), u(
|
|
1995
|
+
}), u(pe, {
|
|
1989
1996
|
properties: o,
|
|
1990
|
-
defaultBody:
|
|
1997
|
+
defaultBody: I,
|
|
1991
1998
|
embeddedType: "pdf"
|
|
1992
1999
|
})]
|
|
1993
2000
|
}, r);
|
|
1994
|
-
},
|
|
2001
|
+
}, di = ({
|
|
1995
2002
|
activeValue: e,
|
|
1996
2003
|
border: t,
|
|
1997
2004
|
icon: n,
|
|
@@ -2004,21 +2011,21 @@ const G = (e) => u("button", {
|
|
|
2004
2011
|
useMobileStyling: l,
|
|
2005
2012
|
value: p
|
|
2006
2013
|
}) => {
|
|
2007
|
-
const c = `option-${p}`,
|
|
2014
|
+
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], _ = () => {
|
|
2008
2015
|
switch (s) {
|
|
2009
2016
|
case be.Star:
|
|
2010
|
-
return M([...
|
|
2017
|
+
return M([...B(E.LikertStar, l), ...B(`${E.LikertStar}-${p}`, l)]);
|
|
2011
2018
|
case be.Smiley:
|
|
2012
|
-
return M([...
|
|
2019
|
+
return M([...B(E.LikertSmiley, l), ...B(`${E.LikertSmiley}-${p}`, l)]);
|
|
2013
2020
|
default:
|
|
2014
|
-
return M(p === i ? [...
|
|
2021
|
+
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)]);
|
|
2015
2022
|
}
|
|
2016
|
-
},
|
|
2023
|
+
}, y = () => {
|
|
2017
2024
|
a(-1), d(!1);
|
|
2018
2025
|
};
|
|
2019
2026
|
return u("div", {
|
|
2020
|
-
"aria-label":
|
|
2021
|
-
className:
|
|
2027
|
+
"aria-label": m ? void 0 : String(p),
|
|
2028
|
+
className: _(),
|
|
2022
2029
|
dangerouslySetInnerHTML: {
|
|
2023
2030
|
__html: n
|
|
2024
2031
|
},
|
|
@@ -2026,17 +2033,17 @@ const G = (e) => u("button", {
|
|
|
2026
2033
|
onClick: () => r(),
|
|
2027
2034
|
onPointerDown: () => d(!0),
|
|
2028
2035
|
onPointerEnter: () => a(p),
|
|
2029
|
-
onPointerLeave:
|
|
2036
|
+
onPointerLeave: y,
|
|
2030
2037
|
role: "radio",
|
|
2031
2038
|
style: {
|
|
2032
|
-
color:
|
|
2033
|
-
borderColor:
|
|
2034
|
-
fillOpacity:
|
|
2035
|
-
zIndex:
|
|
2039
|
+
color: m ? "" : f,
|
|
2040
|
+
borderColor: g ? f : "",
|
|
2041
|
+
fillOpacity: g ? "" : x,
|
|
2042
|
+
zIndex: g ? 3 : "auto"
|
|
2036
2043
|
},
|
|
2037
2044
|
tabIndex: 0
|
|
2038
2045
|
});
|
|
2039
|
-
},
|
|
2046
|
+
}, ui = ({
|
|
2040
2047
|
className: e,
|
|
2041
2048
|
labels: t,
|
|
2042
2049
|
message: n,
|
|
@@ -2048,69 +2055,69 @@ const G = (e) => u("button", {
|
|
|
2048
2055
|
const {
|
|
2049
2056
|
border: a,
|
|
2050
2057
|
useMobileStyling: d
|
|
2051
|
-
} = $((
|
|
2052
|
-
border:
|
|
2053
|
-
useMobileStyling:
|
|
2054
|
-
})), [l, p] =
|
|
2055
|
-
let
|
|
2058
|
+
} = $((I) => ({
|
|
2059
|
+
border: I.border,
|
|
2060
|
+
useMobileStyling: I.useMobileStyling
|
|
2061
|
+
})), [l, p] = F(-1), [c, m] = F(!1), h = t && t.left, g = t && t.right;
|
|
2062
|
+
let f;
|
|
2056
2063
|
const {
|
|
2057
2064
|
range: x,
|
|
2058
|
-
scaleLabelType:
|
|
2059
|
-
ratingIcons:
|
|
2065
|
+
scaleLabelType: _,
|
|
2066
|
+
ratingIcons: y
|
|
2060
2067
|
} = r;
|
|
2061
|
-
x && (
|
|
2062
|
-
const k =
|
|
2063
|
-
var
|
|
2064
|
-
switch (
|
|
2068
|
+
x && (f = Number(x));
|
|
2069
|
+
const k = f || 5, T = (I) => {
|
|
2070
|
+
var v, P;
|
|
2071
|
+
switch (_) {
|
|
2065
2072
|
case be.Star:
|
|
2066
|
-
return (
|
|
2073
|
+
return (v = y[0]) == null ? void 0 : v.svg;
|
|
2067
2074
|
case be.Smiley:
|
|
2068
|
-
return (
|
|
2075
|
+
return (P = y[I]) == null ? void 0 : P.svg;
|
|
2069
2076
|
default:
|
|
2070
|
-
return String(
|
|
2077
|
+
return String(I + 1);
|
|
2071
2078
|
}
|
|
2072
|
-
},
|
|
2073
|
-
const
|
|
2074
|
-
return u(
|
|
2079
|
+
}, w = [...Array(k)].map((I, v) => {
|
|
2080
|
+
const P = v + 1;
|
|
2081
|
+
return u(di, {
|
|
2075
2082
|
activeValue: l,
|
|
2076
2083
|
border: a,
|
|
2077
|
-
icon: T(
|
|
2084
|
+
icon: T(v),
|
|
2078
2085
|
isPressed: c,
|
|
2079
2086
|
onSubmit: () => o({
|
|
2080
|
-
value:
|
|
2087
|
+
value: P,
|
|
2081
2088
|
questionId: i,
|
|
2082
2089
|
type: s
|
|
2083
2090
|
}),
|
|
2084
2091
|
range: k,
|
|
2085
|
-
scaleLabelType:
|
|
2092
|
+
scaleLabelType: _,
|
|
2086
2093
|
setActiveValue: p,
|
|
2087
|
-
setIsPressed:
|
|
2094
|
+
setIsPressed: m,
|
|
2088
2095
|
useMobileStyling: d,
|
|
2089
|
-
value:
|
|
2090
|
-
},
|
|
2091
|
-
}),
|
|
2092
|
-
|
|
2096
|
+
value: P
|
|
2097
|
+
}, v);
|
|
2098
|
+
}), C = (I) => {
|
|
2099
|
+
I.preventDefault(), I.stopPropagation(), o({
|
|
2093
2100
|
value: null,
|
|
2094
2101
|
questionId: i,
|
|
2095
2102
|
type: s
|
|
2096
2103
|
});
|
|
2097
|
-
},
|
|
2104
|
+
}, O = () => u(W, {
|
|
2098
2105
|
children: [u("div", {
|
|
2099
2106
|
"aria-label": `Rating (1 - ${k})`,
|
|
2100
2107
|
className: "ul-card--likert__numbers",
|
|
2101
2108
|
role: "radiogroup",
|
|
2102
|
-
children:
|
|
2109
|
+
children: w
|
|
2103
2110
|
}), u("div", {
|
|
2104
2111
|
className: "ul-card--likert__labels",
|
|
2105
2112
|
children: [u("span", {
|
|
2106
|
-
children:
|
|
2113
|
+
children: h
|
|
2107
2114
|
}), u("span", {
|
|
2108
|
-
children:
|
|
2115
|
+
children: g
|
|
2109
2116
|
})]
|
|
2110
2117
|
}), !r.required && u("div", {
|
|
2111
2118
|
className: "ul-vertical-centered-container",
|
|
2112
2119
|
children: u(G, {
|
|
2113
|
-
onClick:
|
|
2120
|
+
onClick: C,
|
|
2114
2121
|
children: ye(r)
|
|
2115
2122
|
})
|
|
2116
2123
|
})]
|
|
@@ -2120,12 +2127,12 @@ const G = (e) => u("button", {
|
|
|
2120
2127
|
children: [u(te, {
|
|
2121
2128
|
message: n,
|
|
2122
2129
|
properties: r
|
|
2123
|
-
}), u(
|
|
2130
|
+
}), u(pe, {
|
|
2124
2131
|
properties: r,
|
|
2125
|
-
defaultBody:
|
|
2132
|
+
defaultBody: O
|
|
2126
2133
|
})]
|
|
2127
2134
|
}, i);
|
|
2128
|
-
},
|
|
2135
|
+
}, pi = ({
|
|
2129
2136
|
className: e,
|
|
2130
2137
|
message: t,
|
|
2131
2138
|
next: n,
|
|
@@ -2137,35 +2144,51 @@ const G = (e) => u("button", {
|
|
|
2137
2144
|
const {
|
|
2138
2145
|
border: a,
|
|
2139
2146
|
useMobileStyling: d
|
|
2140
|
-
} = $((
|
|
2141
|
-
border:
|
|
2142
|
-
useMobileStyling:
|
|
2143
|
-
})), l = r.matrixColumn, p = o.length, c = l.length,
|
|
2144
|
-
|
|
2145
|
-
|
|
2147
|
+
} = $((v) => ({
|
|
2148
|
+
border: v.border,
|
|
2149
|
+
useMobileStyling: v.useMobileStyling
|
|
2150
|
+
})), l = r.matrixColumn, p = o.length, c = l.length, m = r.required, h = ue(null), [g, f] = F(!1), x = () => {
|
|
2151
|
+
const v = h.current;
|
|
2152
|
+
v && f(v.clientWidth + Math.abs(v.scrollLeft) < v.scrollWidth);
|
|
2153
|
+
};
|
|
2154
|
+
Z(() => {
|
|
2155
|
+
let v;
|
|
2156
|
+
if (h.current) {
|
|
2157
|
+
v = h.current;
|
|
2158
|
+
const P = new ResizeObserver((D) => {
|
|
2159
|
+
f(Math.round(D[0].contentRect.width) < v.scrollWidth);
|
|
2160
|
+
});
|
|
2161
|
+
return P.observe(v), () => {
|
|
2162
|
+
v && P.unobserve(v);
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
}, []);
|
|
2166
|
+
const _ = (v) => {
|
|
2167
|
+
v.preventDefault(), v.stopPropagation(), n({
|
|
2168
|
+
value: k,
|
|
2146
2169
|
questionId: i,
|
|
2147
2170
|
type: s
|
|
2148
2171
|
});
|
|
2149
|
-
},
|
|
2150
|
-
|
|
2172
|
+
}, y = o.reduce((v, P) => (v[P.id] = null, v), {}), [k, T] = F(y), w = (v, P) => {
|
|
2173
|
+
T((D) => ({
|
|
2151
2174
|
...D,
|
|
2152
|
-
[
|
|
2175
|
+
[v]: P
|
|
2153
2176
|
}));
|
|
2154
|
-
}, C =
|
|
2177
|
+
}, C = m && Object.values(k).every((v) => v == null), O = o.map((v) => u(W, {
|
|
2155
2178
|
children: [u("div", {
|
|
2156
|
-
"aria-label":
|
|
2179
|
+
"aria-label": v.label,
|
|
2157
2180
|
className: "ul-matrix-row-label",
|
|
2158
|
-
children:
|
|
2159
|
-
},
|
|
2181
|
+
children: v.label
|
|
2182
|
+
}, v.label), u("div", {
|
|
2160
2183
|
className: "ul-matrix-row-options",
|
|
2161
2184
|
role: "radiogroup",
|
|
2162
|
-
children: l.map((
|
|
2163
|
-
const
|
|
2185
|
+
children: l.map((P, D) => {
|
|
2186
|
+
const L = D === c - 1;
|
|
2164
2187
|
return u("div", {
|
|
2165
|
-
className: M("ul-matrix-option-wrapper",
|
|
2166
|
-
children: u(
|
|
2188
|
+
className: M("ul-matrix-option-wrapper", L && "ul-matrix-last-option"),
|
|
2189
|
+
children: u(Dt, {
|
|
2167
2190
|
allowTextEntry: !1,
|
|
2168
|
-
ariaLabel: `${
|
|
2191
|
+
ariaLabel: `${v.label}-${P.label}`,
|
|
2169
2192
|
border: a,
|
|
2170
2193
|
choiceStyle: {
|
|
2171
2194
|
background: "transparent",
|
|
@@ -2174,26 +2197,50 @@ const G = (e) => u("button", {
|
|
|
2174
2197
|
padding: "0"
|
|
2175
2198
|
},
|
|
2176
2199
|
error: !1,
|
|
2177
|
-
id: `${
|
|
2200
|
+
id: `${v.id}-${P.value}`,
|
|
2178
2201
|
isRadio: !0,
|
|
2179
|
-
isSelected:
|
|
2180
|
-
onUserInputChanged: () => v
|
|
2202
|
+
isSelected: k[v.id] === P.value,
|
|
2203
|
+
onUserInputChanged: () => w(v.id, P.value),
|
|
2181
2204
|
useMobileStyling: d
|
|
2182
2205
|
})
|
|
2183
|
-
},
|
|
2206
|
+
}, P.value);
|
|
2184
2207
|
})
|
|
2185
2208
|
})]
|
|
2186
|
-
})),
|
|
2209
|
+
})), I = () => u("div", {
|
|
2210
|
+
className: "ul-card--matrix_question_container",
|
|
2187
2211
|
children: [u("div", {
|
|
2188
|
-
className: "ul-card--matrix_container",
|
|
2189
|
-
|
|
2212
|
+
className: M(["ul-card--matrix_container", g && "ul-matrix-scroll-gradient"]),
|
|
2213
|
+
onScroll: () => {
|
|
2214
|
+
x();
|
|
2215
|
+
},
|
|
2216
|
+
ref: h,
|
|
2190
2217
|
children: u("div", {
|
|
2191
2218
|
className: "ul-card--matrix_grid",
|
|
2192
2219
|
style: `--numColumns: ${c}; --numRows: ${p + 1}`,
|
|
2193
|
-
children: [u("div", {}), " ", l.map((
|
|
2220
|
+
children: [u("div", {}), " ", l.map((v) => u("div", {
|
|
2194
2221
|
className: "ul-matrix-column-label",
|
|
2195
|
-
children:
|
|
2196
|
-
},
|
|
2222
|
+
children: v.label
|
|
2223
|
+
}, v.label)), O]
|
|
2224
|
+
})
|
|
2225
|
+
}), g && u("button", {
|
|
2226
|
+
className: "ul-matrix-scroll-arrow",
|
|
2227
|
+
onClick: (v) => {
|
|
2228
|
+
v.preventDefault();
|
|
2229
|
+
const P = h.current;
|
|
2230
|
+
if (P) {
|
|
2231
|
+
const D = getComputedStyle(P).direction === "rtl";
|
|
2232
|
+
P.scrollLeft = D ? P.clientWidth - P.scrollWidth : P.scrollWidth;
|
|
2233
|
+
}
|
|
2234
|
+
},
|
|
2235
|
+
children: u("svg", {
|
|
2236
|
+
fill: "currentColor",
|
|
2237
|
+
height: "32",
|
|
2238
|
+
viewBox: "0 0 256 256",
|
|
2239
|
+
width: "32",
|
|
2240
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2241
|
+
children: u("path", {
|
|
2242
|
+
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"
|
|
2243
|
+
})
|
|
2197
2244
|
})
|
|
2198
2245
|
}), u("div", {
|
|
2199
2246
|
className: "ul-card__button-wrapper",
|
|
@@ -2206,16 +2253,16 @@ const G = (e) => u("button", {
|
|
|
2206
2253
|
return u("form", {
|
|
2207
2254
|
className: M([e, E.FadeInTransition, "ul-card__matrix"]),
|
|
2208
2255
|
id: "text-form",
|
|
2209
|
-
onSubmit:
|
|
2256
|
+
onSubmit: _,
|
|
2210
2257
|
children: [u(te, {
|
|
2211
2258
|
message: t,
|
|
2212
2259
|
properties: r
|
|
2213
|
-
}), u(
|
|
2260
|
+
}), u(pe, {
|
|
2214
2261
|
properties: r,
|
|
2215
|
-
defaultBody:
|
|
2262
|
+
defaultBody: I
|
|
2216
2263
|
})]
|
|
2217
2264
|
}, i);
|
|
2218
|
-
},
|
|
2265
|
+
}, To = ({
|
|
2219
2266
|
className: e,
|
|
2220
2267
|
message: t,
|
|
2221
2268
|
onSubmit: n,
|
|
@@ -2227,70 +2274,70 @@ const G = (e) => u("button", {
|
|
|
2227
2274
|
const {
|
|
2228
2275
|
border: a,
|
|
2229
2276
|
useMobileStyling: d
|
|
2230
|
-
} = $((
|
|
2231
|
-
border:
|
|
2232
|
-
useMobileStyling:
|
|
2233
|
-
})), l = o.reduce((
|
|
2277
|
+
} = $((C) => ({
|
|
2278
|
+
border: C.border,
|
|
2279
|
+
useMobileStyling: C.useMobileStyling
|
|
2280
|
+
})), l = o.reduce((C, O) => (C[O.id] = {
|
|
2234
2281
|
isSelected: !1
|
|
2235
|
-
},
|
|
2236
|
-
var
|
|
2237
|
-
return (
|
|
2238
|
-
}),
|
|
2239
|
-
var
|
|
2240
|
-
const
|
|
2241
|
-
return ((
|
|
2242
|
-
}), x = Object.values(p).some((
|
|
2243
|
-
id:
|
|
2244
|
-
label:
|
|
2245
|
-
value:
|
|
2246
|
-
optionProperties:
|
|
2282
|
+
}, C), {}), [p, c] = F(l), m = s === b.MultipleChoice, h = r.required, g = o.find((C) => {
|
|
2283
|
+
var O;
|
|
2284
|
+
return (O = C.optionProperties) == null ? void 0 : O.noneOfTheAbove;
|
|
2285
|
+
}), f = Object.entries(p).some(([C, O]) => {
|
|
2286
|
+
var P;
|
|
2287
|
+
const I = o.find((D) => `${D.id}` === C), v = O.userText === void 0 || O.userText.trim() === "";
|
|
2288
|
+
return ((P = I == null ? void 0 : I.optionProperties) == null ? void 0 : P.allowsTextEntry) && v && O.isSelected;
|
|
2289
|
+
}), x = Object.values(p).some((C) => C.isSelected), _ = f || h && !x, y = o.map(({
|
|
2290
|
+
id: C,
|
|
2291
|
+
label: O,
|
|
2292
|
+
value: I,
|
|
2293
|
+
optionProperties: v
|
|
2247
2294
|
}) => {
|
|
2248
|
-
var
|
|
2249
|
-
const
|
|
2250
|
-
allowsTextEntry:
|
|
2251
|
-
noneOfTheAbove:
|
|
2295
|
+
var N, Q;
|
|
2296
|
+
const P = `${C}`, {
|
|
2297
|
+
allowsTextEntry: D,
|
|
2298
|
+
noneOfTheAbove: L
|
|
2252
2299
|
} = {
|
|
2253
2300
|
allowsTextEntry: !1,
|
|
2254
2301
|
noneOfTheAbove: !1,
|
|
2255
|
-
...
|
|
2302
|
+
...v
|
|
2256
2303
|
};
|
|
2257
|
-
return u(
|
|
2258
|
-
allowTextEntry:
|
|
2304
|
+
return u(Dt, {
|
|
2305
|
+
allowTextEntry: D,
|
|
2259
2306
|
border: a,
|
|
2260
2307
|
error: !1,
|
|
2261
|
-
id:
|
|
2262
|
-
isRadio:
|
|
2263
|
-
noneOfTheAbove:
|
|
2264
|
-
isSelected: !!((
|
|
2265
|
-
label:
|
|
2266
|
-
onUserInputChanged: (
|
|
2308
|
+
id: P,
|
|
2309
|
+
isRadio: m,
|
|
2310
|
+
noneOfTheAbove: L,
|
|
2311
|
+
isSelected: !!((N = p[P]) != null && N.isSelected),
|
|
2312
|
+
label: O,
|
|
2313
|
+
onUserInputChanged: (j) => T(j.id, j.selected, j.userText, j.noneOfTheAbove),
|
|
2267
2314
|
promptText: "Please specify",
|
|
2268
|
-
text: (Q = p[
|
|
2315
|
+
text: (Q = p[C]) == null ? void 0 : Q.userText,
|
|
2269
2316
|
useMobileStyling: d,
|
|
2270
|
-
value:
|
|
2271
|
-
},
|
|
2272
|
-
}), k = (
|
|
2273
|
-
|
|
2274
|
-
}, T = (
|
|
2275
|
-
const
|
|
2276
|
-
if ((
|
|
2277
|
-
for (const
|
|
2278
|
-
|
|
2317
|
+
value: I
|
|
2318
|
+
}, P);
|
|
2319
|
+
}), k = (C) => {
|
|
2320
|
+
C.preventDefault(), C.stopPropagation(), n(p);
|
|
2321
|
+
}, T = (C, O, I, v) => {
|
|
2322
|
+
const P = Object.assign({}, p);
|
|
2323
|
+
if ((m || v) && O)
|
|
2324
|
+
for (const D of Object.values(P))
|
|
2325
|
+
D.isSelected = !1, delete D.userText;
|
|
2279
2326
|
else
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
isSelected:
|
|
2283
|
-
userText:
|
|
2284
|
-
}, c(
|
|
2285
|
-
},
|
|
2327
|
+
g && !v && p[g.id].isSelected && (P[g.id].isSelected = !1);
|
|
2328
|
+
P[C] = {
|
|
2329
|
+
isSelected: O,
|
|
2330
|
+
userText: I
|
|
2331
|
+
}, c(P);
|
|
2332
|
+
}, w = () => u("div", {
|
|
2286
2333
|
children: [u("div", {
|
|
2287
|
-
className: M(
|
|
2288
|
-
role:
|
|
2289
|
-
children:
|
|
2334
|
+
className: M(B(E.ChoiceGroup, d)),
|
|
2335
|
+
role: m ? "radiogroup" : "group",
|
|
2336
|
+
children: y
|
|
2290
2337
|
}), u("div", {
|
|
2291
2338
|
className: "ul-card__button-wrapper",
|
|
2292
2339
|
children: u(G, {
|
|
2293
|
-
disabled:
|
|
2340
|
+
disabled: _,
|
|
2294
2341
|
onClick: k,
|
|
2295
2342
|
children: ye(r)
|
|
2296
2343
|
})
|
|
@@ -2303,22 +2350,22 @@ const G = (e) => u("button", {
|
|
|
2303
2350
|
children: [u(te, {
|
|
2304
2351
|
message: t,
|
|
2305
2352
|
properties: r
|
|
2306
|
-
}), u(
|
|
2353
|
+
}), u(pe, {
|
|
2307
2354
|
properties: r,
|
|
2308
|
-
defaultBody:
|
|
2355
|
+
defaultBody: w
|
|
2309
2356
|
})]
|
|
2310
2357
|
}, i);
|
|
2311
|
-
},
|
|
2358
|
+
}, hi = (e) => {
|
|
2312
2359
|
const {
|
|
2313
2360
|
questionId: t,
|
|
2314
2361
|
type: n,
|
|
2315
2362
|
next: o,
|
|
2316
2363
|
options: r
|
|
2317
2364
|
} = e;
|
|
2318
|
-
return u(
|
|
2365
|
+
return u(To, {
|
|
2319
2366
|
...e,
|
|
2320
2367
|
onSubmit: (s) => {
|
|
2321
|
-
const a = Object.entries(s).find(([,
|
|
2368
|
+
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 ? {
|
|
2322
2369
|
[d]: {
|
|
2323
2370
|
userText: l.userText
|
|
2324
2371
|
}
|
|
@@ -2333,22 +2380,22 @@ const G = (e) => u("button", {
|
|
|
2333
2380
|
});
|
|
2334
2381
|
}
|
|
2335
2382
|
});
|
|
2336
|
-
},
|
|
2383
|
+
}, mi = (e) => {
|
|
2337
2384
|
const {
|
|
2338
2385
|
questionId: t,
|
|
2339
2386
|
type: n,
|
|
2340
2387
|
next: o
|
|
2341
2388
|
} = e;
|
|
2342
|
-
return u(
|
|
2389
|
+
return u(To, {
|
|
2343
2390
|
...e,
|
|
2344
2391
|
onSubmit: (i) => {
|
|
2345
2392
|
const s = {}, a = Object.entries(i).reduce((l, [p, c]) => (l[p] = c.isSelected, l), s), d = Object.entries(i).reduce((l, [p, c]) => {
|
|
2346
2393
|
if (!c.userText)
|
|
2347
2394
|
return l;
|
|
2348
|
-
const
|
|
2349
|
-
return
|
|
2395
|
+
const m = l || {};
|
|
2396
|
+
return m[p] = {
|
|
2350
2397
|
userText: c.userText
|
|
2351
|
-
},
|
|
2398
|
+
}, m;
|
|
2352
2399
|
}, null);
|
|
2353
2400
|
o({
|
|
2354
2401
|
value: a,
|
|
@@ -2372,20 +2419,20 @@ const G = (e) => u("button", {
|
|
|
2372
2419
|
const {
|
|
2373
2420
|
border: a,
|
|
2374
2421
|
useMobileStyling: d
|
|
2375
|
-
} = $((
|
|
2376
|
-
border:
|
|
2377
|
-
useMobileStyling:
|
|
2378
|
-
})), l = t && t.left, p = t && t.right, c = [...Array(11)].map((
|
|
2379
|
-
className: M([...
|
|
2380
|
-
id: `option-${
|
|
2422
|
+
} = $((g) => ({
|
|
2423
|
+
border: g.border,
|
|
2424
|
+
useMobileStyling: g.useMobileStyling
|
|
2425
|
+
})), l = t && t.left, p = t && t.right, c = [...Array(11)].map((g, f) => u("div", {
|
|
2426
|
+
className: M([...B(E.NPSNumber, d), ...B(`${E.NPSNumber}-${f}`, d)]),
|
|
2427
|
+
id: `option-${f}`,
|
|
2381
2428
|
onClick: () => r({
|
|
2382
|
-
value:
|
|
2429
|
+
value: f,
|
|
2383
2430
|
questionId: i,
|
|
2384
2431
|
type: s
|
|
2385
2432
|
}),
|
|
2386
2433
|
onKeyPress: (x) => {
|
|
2387
2434
|
x.preventDefault(), (x.key === "Enter" || x.key === " ") && r({
|
|
2388
|
-
value:
|
|
2435
|
+
value: f,
|
|
2389
2436
|
questionId: i,
|
|
2390
2437
|
type: s
|
|
2391
2438
|
});
|
|
@@ -2394,18 +2441,18 @@ const G = (e) => u("button", {
|
|
|
2394
2441
|
x.currentTarget.style.zIndex = "2", x.currentTarget.style.borderColor = a;
|
|
2395
2442
|
},
|
|
2396
2443
|
onPointerLeave: (x) => {
|
|
2397
|
-
x.currentTarget.style.zIndex = "auto", x.currentTarget.style.borderColor =
|
|
2444
|
+
x.currentTarget.style.zIndex = "auto", x.currentTarget.style.borderColor = wt;
|
|
2398
2445
|
},
|
|
2399
2446
|
role: "radio",
|
|
2400
2447
|
tabIndex: 0,
|
|
2401
|
-
children:
|
|
2402
|
-
},
|
|
2403
|
-
|
|
2448
|
+
children: f
|
|
2449
|
+
}, f)), m = (g) => {
|
|
2450
|
+
g.preventDefault(), g.stopPropagation(), r({
|
|
2404
2451
|
value: null,
|
|
2405
2452
|
questionId: i,
|
|
2406
2453
|
type: s
|
|
2407
2454
|
});
|
|
2408
|
-
},
|
|
2455
|
+
}, h = () => u("div", {
|
|
2409
2456
|
children: [u("div", {
|
|
2410
2457
|
className: "ul-card--nps__numbers",
|
|
2411
2458
|
children: c
|
|
@@ -2419,7 +2466,7 @@ const G = (e) => u("button", {
|
|
|
2419
2466
|
}), !o.required && u("div", {
|
|
2420
2467
|
className: "ul-vertical-centered-container",
|
|
2421
2468
|
children: u(G, {
|
|
2422
|
-
onClick:
|
|
2469
|
+
onClick: m,
|
|
2423
2470
|
children: ye(o)
|
|
2424
2471
|
})
|
|
2425
2472
|
})]
|
|
@@ -2429,12 +2476,12 @@ const G = (e) => u("button", {
|
|
|
2429
2476
|
children: [u(te, {
|
|
2430
2477
|
message: n,
|
|
2431
2478
|
properties: o
|
|
2432
|
-
}), u(
|
|
2479
|
+
}), u(pe, {
|
|
2433
2480
|
properties: o,
|
|
2434
|
-
defaultBody:
|
|
2481
|
+
defaultBody: h
|
|
2435
2482
|
})]
|
|
2436
2483
|
}, i);
|
|
2437
|
-
},
|
|
2484
|
+
}, gi = ({
|
|
2438
2485
|
className: e,
|
|
2439
2486
|
message: t,
|
|
2440
2487
|
next: n,
|
|
@@ -2446,48 +2493,48 @@ const G = (e) => u("button", {
|
|
|
2446
2493
|
border: s,
|
|
2447
2494
|
useMobileStyling: a,
|
|
2448
2495
|
update: d
|
|
2449
|
-
} = $((
|
|
2450
|
-
border:
|
|
2451
|
-
useMobileStyling:
|
|
2452
|
-
update:
|
|
2453
|
-
})), [l, p] =
|
|
2454
|
-
|
|
2455
|
-
}, x = (
|
|
2456
|
-
|
|
2496
|
+
} = $((w) => ({
|
|
2497
|
+
border: w.border,
|
|
2498
|
+
useMobileStyling: w.useMobileStyling,
|
|
2499
|
+
update: w.update
|
|
2500
|
+
})), [l, p] = F(""), c = ue(null), m = l.trim(), h = o.required === !0 && !m, g = So(c, () => d()), f = (w) => {
|
|
2501
|
+
g(), w.preventDefault(), w.stopPropagation(), p(w.currentTarget.value);
|
|
2502
|
+
}, x = (w) => {
|
|
2503
|
+
w.preventDefault(), w.stopPropagation(), n({
|
|
2457
2504
|
value: l,
|
|
2458
2505
|
questionId: r,
|
|
2459
2506
|
type: i
|
|
2460
2507
|
});
|
|
2461
|
-
},
|
|
2462
|
-
|
|
2463
|
-
}, k = (
|
|
2464
|
-
|
|
2508
|
+
}, _ = o && o.openTextPlaceholder ? o.openTextPlaceholder : "", y = (w) => {
|
|
2509
|
+
w.currentTarget.style.borderColor = s;
|
|
2510
|
+
}, k = (w) => {
|
|
2511
|
+
w.currentTarget.style.borderColor = wt;
|
|
2465
2512
|
}, T = () => u("div", {
|
|
2466
2513
|
className: "ul-card-text",
|
|
2467
2514
|
children: [u("div", {
|
|
2468
2515
|
className: "ul-card-text__container",
|
|
2469
2516
|
children: u("textarea", {
|
|
2470
|
-
"aria-label":
|
|
2517
|
+
"aria-label": _,
|
|
2471
2518
|
"aria-labelledby": E.QuestionHeader,
|
|
2472
2519
|
"aria-multiline": "true",
|
|
2473
|
-
"aria-placeholder":
|
|
2474
|
-
className: M(
|
|
2520
|
+
"aria-placeholder": _,
|
|
2521
|
+
className: M(B(E.OpenTextInput, a)),
|
|
2475
2522
|
"data-gramm": "false",
|
|
2476
2523
|
maxLength: 5e3,
|
|
2477
2524
|
name: "text",
|
|
2478
2525
|
onBlur: k,
|
|
2479
|
-
onChange:
|
|
2480
|
-
onFocus:
|
|
2481
|
-
placeholder:
|
|
2526
|
+
onChange: f,
|
|
2527
|
+
onFocus: y,
|
|
2528
|
+
placeholder: _,
|
|
2482
2529
|
ref: c,
|
|
2483
2530
|
role: "textbox",
|
|
2484
2531
|
tabIndex: 0
|
|
2485
2532
|
})
|
|
2486
2533
|
}), u(G, {
|
|
2487
|
-
disabled:
|
|
2534
|
+
disabled: h,
|
|
2488
2535
|
onClick: x,
|
|
2489
2536
|
style: {
|
|
2490
|
-
backgroundColor:
|
|
2537
|
+
backgroundColor: h ? "" : s
|
|
2491
2538
|
},
|
|
2492
2539
|
children: ye(o)
|
|
2493
2540
|
})]
|
|
@@ -2498,23 +2545,23 @@ const G = (e) => u("button", {
|
|
|
2498
2545
|
children: [u(te, {
|
|
2499
2546
|
message: t,
|
|
2500
2547
|
properties: o
|
|
2501
|
-
}), u(
|
|
2548
|
+
}), u(pe, {
|
|
2502
2549
|
defaultBody: T,
|
|
2503
2550
|
properties: o
|
|
2504
2551
|
})]
|
|
2505
2552
|
}, r);
|
|
2506
2553
|
};
|
|
2507
2554
|
var fe = /* @__PURE__ */ ((e) => (e[e.RequestNeeded = 1] = "RequestNeeded", e[e.TryAgain = 2] = "TryAgain", e[e.Ready = 3] = "Ready", e))(fe || {});
|
|
2508
|
-
const Xe = (e) => e.type ===
|
|
2555
|
+
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) => {
|
|
2509
2556
|
if (e === void 0)
|
|
2510
2557
|
return fe.RequestNeeded;
|
|
2511
2558
|
if (e) {
|
|
2512
|
-
if (!
|
|
2559
|
+
if (!vi(e, t))
|
|
2513
2560
|
return fe.RequestNeeded;
|
|
2514
2561
|
} else
|
|
2515
2562
|
return fe.TryAgain;
|
|
2516
2563
|
return fe.Ready;
|
|
2517
|
-
},
|
|
2564
|
+
}, mn = {
|
|
2518
2565
|
avStream: null,
|
|
2519
2566
|
currentPage: null,
|
|
2520
2567
|
mediaRecordingUids: null,
|
|
@@ -2524,16 +2571,16 @@ const Xe = (e) => e.type === Z.AvPermission, To = (e) => e.type === Z.ScreenPerm
|
|
|
2524
2571
|
recordingMediaTypes: void 0,
|
|
2525
2572
|
screenPermissionRequested: !1,
|
|
2526
2573
|
type: void 0
|
|
2527
|
-
}, ie =
|
|
2528
|
-
...
|
|
2574
|
+
}, ie = Co((e) => ({
|
|
2575
|
+
...mn,
|
|
2529
2576
|
reset: () => {
|
|
2530
|
-
e(
|
|
2577
|
+
e(mn);
|
|
2531
2578
|
},
|
|
2532
2579
|
updatePage: (t) => {
|
|
2533
2580
|
e(t);
|
|
2534
2581
|
}
|
|
2535
2582
|
}));
|
|
2536
|
-
function
|
|
2583
|
+
function yt({
|
|
2537
2584
|
currentPage: e,
|
|
2538
2585
|
pages: t
|
|
2539
2586
|
}) {
|
|
@@ -2566,7 +2613,7 @@ function xt({
|
|
|
2566
2613
|
}
|
|
2567
2614
|
});
|
|
2568
2615
|
}
|
|
2569
|
-
function
|
|
2616
|
+
function _i({
|
|
2570
2617
|
pages: e,
|
|
2571
2618
|
userId: t,
|
|
2572
2619
|
responseGroupUid: n,
|
|
@@ -2587,42 +2634,42 @@ function vi({
|
|
|
2587
2634
|
};
|
|
2588
2635
|
let p = 0;
|
|
2589
2636
|
d.emit(ce.RecordedTaskPermissionScreen), a(ce.RecordedTaskPermissionScreen), d.emit(q.PermissionStatus, {
|
|
2590
|
-
[U.PermissionStatusCallback]: (
|
|
2637
|
+
[U.PermissionStatusCallback]: (m, h, g, f) => {
|
|
2591
2638
|
const x = e[p], {
|
|
2592
|
-
type:
|
|
2593
|
-
} = x,
|
|
2639
|
+
type: _
|
|
2640
|
+
} = x, y = [re.Screen];
|
|
2594
2641
|
if (Xe(x)) {
|
|
2595
2642
|
const {
|
|
2596
2643
|
permissionDescriptors: k
|
|
2597
|
-
} = x, T = k == null ? void 0 : k.includes(we.Microphone),
|
|
2598
|
-
T &&
|
|
2599
|
-
const
|
|
2600
|
-
(
|
|
2644
|
+
} = x, T = k == null ? void 0 : k.includes(we.Microphone), w = k == null ? void 0 : k.includes(we.Camera);
|
|
2645
|
+
T && y.push(re.Audio), w && y.push(re.Video);
|
|
2646
|
+
const C = (m == null ? void 0 : m.active) && !w, O = (m == null ? void 0 : m.active) && h;
|
|
2647
|
+
(C || O) && p++;
|
|
2601
2648
|
}
|
|
2602
|
-
|
|
2603
|
-
[U.RecordingMediaTypes]:
|
|
2649
|
+
Po(e[p]) && g && (p++, d.emit(q.BeginRecording, {
|
|
2650
|
+
[U.RecordingMediaTypes]: y,
|
|
2604
2651
|
[U.StartRecordingCallback]: (k) => s({
|
|
2605
2652
|
mediaRecordingUids: k
|
|
2606
2653
|
})
|
|
2607
2654
|
})), s({
|
|
2608
2655
|
currentPage: e[p],
|
|
2609
|
-
avStream:
|
|
2610
|
-
screenPermissionRequested:
|
|
2656
|
+
avStream: m,
|
|
2657
|
+
screenPermissionRequested: g,
|
|
2611
2658
|
nextQuestion: i,
|
|
2612
|
-
type:
|
|
2659
|
+
type: _,
|
|
2613
2660
|
passthroughData: l,
|
|
2614
|
-
recordingMediaTypes:
|
|
2615
|
-
captureStream:
|
|
2661
|
+
recordingMediaTypes: y,
|
|
2662
|
+
captureStream: f
|
|
2616
2663
|
});
|
|
2617
2664
|
}
|
|
2618
2665
|
});
|
|
2619
2666
|
const c = e[p];
|
|
2620
|
-
return c.type ===
|
|
2667
|
+
return c.type === Y.AvPermission && yt({
|
|
2621
2668
|
currentPage: c,
|
|
2622
2669
|
pages: e
|
|
2623
2670
|
}), c;
|
|
2624
2671
|
}
|
|
2625
|
-
function
|
|
2672
|
+
function Ct({
|
|
2626
2673
|
status: e
|
|
2627
2674
|
}) {
|
|
2628
2675
|
const {
|
|
@@ -2674,7 +2721,7 @@ function yt({
|
|
|
2674
2721
|
}
|
|
2675
2722
|
});
|
|
2676
2723
|
}
|
|
2677
|
-
function
|
|
2724
|
+
function Ot({
|
|
2678
2725
|
pages: e,
|
|
2679
2726
|
setIsRequestingPermission: t
|
|
2680
2727
|
}) {
|
|
@@ -2691,7 +2738,7 @@ function Nt({
|
|
|
2691
2738
|
return;
|
|
2692
2739
|
const d = e.indexOf(i);
|
|
2693
2740
|
switch (i.type) {
|
|
2694
|
-
case
|
|
2741
|
+
case Y.AvPermission: {
|
|
2695
2742
|
const l = a ? d + 2 : d + 1;
|
|
2696
2743
|
a && s && n.emit(q.BeginRecording, {
|
|
2697
2744
|
[U.RecordingMediaTypes]: s,
|
|
@@ -2705,17 +2752,17 @@ function Nt({
|
|
|
2705
2752
|
});
|
|
2706
2753
|
return;
|
|
2707
2754
|
}
|
|
2708
|
-
case
|
|
2755
|
+
case Y.ScreenPermission:
|
|
2709
2756
|
n.emit(q.ScreenPermission, {
|
|
2710
2757
|
[U.ScreenPermissionRequested]: t,
|
|
2711
2758
|
[U.StreamReadyCallback]: (l, p) => {
|
|
2712
2759
|
const c = p ? e[d + 1] : i;
|
|
2713
2760
|
p && s && n.emit(q.BeginRecording, {
|
|
2714
2761
|
[U.RecordingMediaTypes]: s,
|
|
2715
|
-
[U.StartRecordingCallback]: (
|
|
2762
|
+
[U.StartRecordingCallback]: (m) => {
|
|
2716
2763
|
r({
|
|
2717
2764
|
captureStream: p,
|
|
2718
|
-
mediaRecordingUids:
|
|
2765
|
+
mediaRecordingUids: m
|
|
2719
2766
|
});
|
|
2720
2767
|
}
|
|
2721
2768
|
}), r({
|
|
@@ -2726,17 +2773,17 @@ function Nt({
|
|
|
2726
2773
|
}
|
|
2727
2774
|
});
|
|
2728
2775
|
return;
|
|
2729
|
-
case
|
|
2776
|
+
case Y.StartTask:
|
|
2730
2777
|
o(ce.RecordedTaskStart), n.emit(ce.RecordedTaskStart), n.emit(q.StartTask), r({
|
|
2731
2778
|
currentPage: e[d + 1],
|
|
2732
2779
|
screenPermissionRequested: !0
|
|
2733
2780
|
});
|
|
2734
2781
|
return;
|
|
2735
|
-
case
|
|
2782
|
+
case Y.CompleteTask:
|
|
2736
2783
|
return;
|
|
2737
2784
|
}
|
|
2738
2785
|
}
|
|
2739
|
-
const
|
|
2786
|
+
const Ro = "ul-permission-graphics-container", Io = "ul-permission-body", Lo = M([Ro, "ul_recorded-task-inset-spacing"]), et = M(["ul-horizontal-button-container", "ul-horizontal-button-container-left"]), Do = ({
|
|
2740
2787
|
richTextBody: e
|
|
2741
2788
|
}) => u("div", {
|
|
2742
2789
|
className: "ul-rich-text-body",
|
|
@@ -2750,18 +2797,18 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2750
2797
|
bottom: n = !1
|
|
2751
2798
|
}) => e ? null : u(G, {
|
|
2752
2799
|
className: M([n && "ul-skip-button-below", E.InactiveButton]),
|
|
2753
|
-
onClick:
|
|
2800
|
+
onClick: Ct.bind(null, {
|
|
2754
2801
|
status: X.Abandoned
|
|
2755
2802
|
}),
|
|
2756
2803
|
children: t || "Skip"
|
|
2757
|
-
}),
|
|
2804
|
+
}), Mt = (e) => {
|
|
2758
2805
|
const {
|
|
2759
2806
|
avStream: t,
|
|
2760
2807
|
captureStream: n,
|
|
2761
2808
|
recordingMediaTypes: o,
|
|
2762
2809
|
updatePage: r
|
|
2763
2810
|
} = ie.getState(), i = (o == null ? void 0 : o.includes(re.Audio)) || (o == null ? void 0 : o.includes(re.Video));
|
|
2764
|
-
|
|
2811
|
+
Z(() => {
|
|
2765
2812
|
const s = setInterval(() => {
|
|
2766
2813
|
i && t && !t.active ? r({
|
|
2767
2814
|
avStream: null,
|
|
@@ -2773,7 +2820,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2773
2820
|
}, 1e3);
|
|
2774
2821
|
return () => clearInterval(s);
|
|
2775
2822
|
}, [t, n, i, e, o, r]);
|
|
2776
|
-
},
|
|
2823
|
+
}, bi = ({
|
|
2777
2824
|
content: e,
|
|
2778
2825
|
pages: t,
|
|
2779
2826
|
required: n
|
|
@@ -2783,14 +2830,14 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2783
2830
|
skipButtonText: r,
|
|
2784
2831
|
taskDetail: i
|
|
2785
2832
|
} = e;
|
|
2786
|
-
return
|
|
2833
|
+
return Mt(t), u("div", {
|
|
2787
2834
|
className: "ul-task-page",
|
|
2788
|
-
children: [u(
|
|
2835
|
+
children: [i && u(Do, {
|
|
2789
2836
|
richTextBody: i
|
|
2790
2837
|
}), u("div", {
|
|
2791
2838
|
className: et,
|
|
2792
2839
|
children: [u(G, {
|
|
2793
|
-
onClick:
|
|
2840
|
+
onClick: Ot.bind(null, {
|
|
2794
2841
|
pages: t
|
|
2795
2842
|
}),
|
|
2796
2843
|
children: o
|
|
@@ -2800,7 +2847,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2800
2847
|
})]
|
|
2801
2848
|
})]
|
|
2802
2849
|
}, "start-task");
|
|
2803
|
-
},
|
|
2850
|
+
}, xi = ({
|
|
2804
2851
|
content: e,
|
|
2805
2852
|
pages: t,
|
|
2806
2853
|
properties: n
|
|
@@ -2809,20 +2856,20 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2809
2856
|
buttonText: o,
|
|
2810
2857
|
skipButtonText: r
|
|
2811
2858
|
} = e;
|
|
2812
|
-
|
|
2813
|
-
const s = u(
|
|
2859
|
+
Mt(t);
|
|
2860
|
+
const s = u(pe, {
|
|
2814
2861
|
properties: n,
|
|
2815
2862
|
defaultBody: () => u("div", {
|
|
2816
2863
|
className: et,
|
|
2817
2864
|
children: [u(G, {
|
|
2818
2865
|
className: "ul-complete-task-button",
|
|
2819
|
-
onClick:
|
|
2866
|
+
onClick: Ct.bind(null, {
|
|
2820
2867
|
status: X.Completed
|
|
2821
2868
|
}),
|
|
2822
2869
|
children: o
|
|
2823
2870
|
}), u(G, {
|
|
2824
2871
|
className: M([E.InactiveButton]),
|
|
2825
|
-
onClick:
|
|
2872
|
+
onClick: Ct.bind(null, {
|
|
2826
2873
|
status: X.GivenUp
|
|
2827
2874
|
}),
|
|
2828
2875
|
children: r
|
|
@@ -2831,11 +2878,11 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2831
2878
|
});
|
|
2832
2879
|
return u("div", {
|
|
2833
2880
|
className: "ul-task-page",
|
|
2834
|
-
children: [u(
|
|
2881
|
+
children: [e.taskDetail && u(Do, {
|
|
2835
2882
|
richTextBody: e.taskDetail
|
|
2836
2883
|
}), s]
|
|
2837
2884
|
}, "complete-task");
|
|
2838
|
-
},
|
|
2885
|
+
}, yi = ({
|
|
2839
2886
|
content: e,
|
|
2840
2887
|
pages: t,
|
|
2841
2888
|
required: n
|
|
@@ -2843,10 +2890,10 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2843
2890
|
const {
|
|
2844
2891
|
buttonText: o,
|
|
2845
2892
|
skipButtonText: r
|
|
2846
|
-
} = e, [i] = $((d) => [d.tabTitle]), [s, a] =
|
|
2893
|
+
} = e, [i] = $((d) => [d.tabTitle]), [s, a] = F(!1);
|
|
2847
2894
|
return u("div", {
|
|
2848
2895
|
children: [u("div", {
|
|
2849
|
-
className:
|
|
2896
|
+
className: Lo,
|
|
2850
2897
|
children: [u("p", {
|
|
2851
2898
|
style: {
|
|
2852
2899
|
marginTop: "auto"
|
|
@@ -2855,7 +2902,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2855
2902
|
}), u("div", {
|
|
2856
2903
|
className: "ul-select-tab-container",
|
|
2857
2904
|
children: u("p", {
|
|
2858
|
-
className:
|
|
2905
|
+
className: Io,
|
|
2859
2906
|
children: i
|
|
2860
2907
|
})
|
|
2861
2908
|
})]
|
|
@@ -2863,7 +2910,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2863
2910
|
className: n ? "" : et,
|
|
2864
2911
|
children: [u(G, {
|
|
2865
2912
|
disabled: s,
|
|
2866
|
-
onClick:
|
|
2913
|
+
onClick: Ot.bind(null, {
|
|
2867
2914
|
pages: t,
|
|
2868
2915
|
setIsRequestingPermission: a
|
|
2869
2916
|
}),
|
|
@@ -2874,14 +2921,14 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2874
2921
|
})]
|
|
2875
2922
|
})]
|
|
2876
2923
|
});
|
|
2877
|
-
},
|
|
2924
|
+
}, Ci = ({
|
|
2878
2925
|
content: e
|
|
2879
2926
|
}) => u("div", {
|
|
2880
|
-
className: M([
|
|
2927
|
+
className: M([Ro, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"]),
|
|
2881
2928
|
dangerouslySetInnerHTML: {
|
|
2882
2929
|
__html: e.svg
|
|
2883
2930
|
}
|
|
2884
|
-
}, "ul-permission-request-graphic"),
|
|
2931
|
+
}, "ul-permission-request-graphic"), ki = ({
|
|
2885
2932
|
content: e,
|
|
2886
2933
|
pages: t,
|
|
2887
2934
|
required: n
|
|
@@ -2892,9 +2939,9 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2892
2939
|
skipButtonText: i,
|
|
2893
2940
|
tryAgainButtonText: s
|
|
2894
2941
|
} = e, a = Xe(t[0]) ? t[0] : null;
|
|
2895
|
-
return
|
|
2942
|
+
return Z(() => {
|
|
2896
2943
|
const d = setInterval(() => {
|
|
2897
|
-
a !== null &&
|
|
2944
|
+
a !== null && yt({
|
|
2898
2945
|
currentPage: a,
|
|
2899
2946
|
pages: t
|
|
2900
2947
|
});
|
|
@@ -2902,21 +2949,21 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2902
2949
|
return () => clearInterval(d);
|
|
2903
2950
|
}, [a, t]), a ? u("div", {
|
|
2904
2951
|
children: [u("div", {
|
|
2905
|
-
className:
|
|
2952
|
+
className: Lo,
|
|
2906
2953
|
children: u("p", {
|
|
2907
2954
|
className: "ul-av-permission-denied-paragraph",
|
|
2908
2955
|
children: [u("span", {
|
|
2909
2956
|
className: "ul-av-permission-denied-headline",
|
|
2910
2957
|
children: o
|
|
2911
2958
|
}), u("span", {
|
|
2912
|
-
className:
|
|
2959
|
+
className: Io,
|
|
2913
2960
|
children: r
|
|
2914
2961
|
})]
|
|
2915
2962
|
})
|
|
2916
2963
|
}), u("div", {
|
|
2917
2964
|
className: et,
|
|
2918
2965
|
children: [u(G, {
|
|
2919
|
-
onClick:
|
|
2966
|
+
onClick: yt.bind(null, {
|
|
2920
2967
|
currentPage: a,
|
|
2921
2968
|
pages: t
|
|
2922
2969
|
}),
|
|
@@ -2927,7 +2974,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2927
2974
|
})]
|
|
2928
2975
|
})]
|
|
2929
2976
|
}) : null;
|
|
2930
|
-
},
|
|
2977
|
+
}, wi = ({
|
|
2931
2978
|
stream: e
|
|
2932
2979
|
}) => u("video", {
|
|
2933
2980
|
autoPlay: !0,
|
|
@@ -2937,7 +2984,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2937
2984
|
ref: (t) => {
|
|
2938
2985
|
t && (t.srcObject = e || null);
|
|
2939
2986
|
}
|
|
2940
|
-
}),
|
|
2987
|
+
}), Si = ({
|
|
2941
2988
|
content: e,
|
|
2942
2989
|
pages: t,
|
|
2943
2990
|
required: n
|
|
@@ -2947,13 +2994,13 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2947
2994
|
} = e, {
|
|
2948
2995
|
avStream: r
|
|
2949
2996
|
} = ie.getState();
|
|
2950
|
-
return
|
|
2951
|
-
children: [u(
|
|
2997
|
+
return Mt(t), u("div", {
|
|
2998
|
+
children: [u(wi, {
|
|
2952
2999
|
stream: r
|
|
2953
3000
|
}), u("div", {
|
|
2954
3001
|
className: "ul-vertical-button-container-center",
|
|
2955
3002
|
children: [u(G, {
|
|
2956
|
-
onClick:
|
|
3003
|
+
onClick: Ot.bind(null, {
|
|
2957
3004
|
pages: t
|
|
2958
3005
|
}),
|
|
2959
3006
|
children: e.buttonText
|
|
@@ -2964,7 +3011,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2964
3011
|
})]
|
|
2965
3012
|
})]
|
|
2966
3013
|
});
|
|
2967
|
-
},
|
|
3014
|
+
}, Ei = ({
|
|
2968
3015
|
properties: e
|
|
2969
3016
|
}) => {
|
|
2970
3017
|
const {
|
|
@@ -2977,34 +3024,34 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
2977
3024
|
if (r === void 0)
|
|
2978
3025
|
return null;
|
|
2979
3026
|
switch (r == null ? void 0 : r.type) {
|
|
2980
|
-
case
|
|
2981
|
-
const i =
|
|
2982
|
-
return i === fe.RequestNeeded ? u(
|
|
3027
|
+
case Y.AvPermission: {
|
|
3028
|
+
const i = jo(o, r);
|
|
3029
|
+
return i === fe.RequestNeeded ? u(Ci, {
|
|
2983
3030
|
content: r
|
|
2984
|
-
}) : i === fe.TryAgain ? u(
|
|
3031
|
+
}) : i === fe.TryAgain ? u(ki, {
|
|
2985
3032
|
content: r,
|
|
2986
3033
|
pages: t,
|
|
2987
3034
|
required: n
|
|
2988
|
-
}) : u(
|
|
3035
|
+
}) : u(Si, {
|
|
2989
3036
|
content: r,
|
|
2990
3037
|
pages: t,
|
|
2991
3038
|
required: n
|
|
2992
3039
|
});
|
|
2993
3040
|
}
|
|
2994
|
-
case
|
|
2995
|
-
return u(
|
|
3041
|
+
case Y.ScreenPermission:
|
|
3042
|
+
return u(yi, {
|
|
2996
3043
|
content: r,
|
|
2997
3044
|
pages: t,
|
|
2998
3045
|
required: n
|
|
2999
3046
|
});
|
|
3000
|
-
case
|
|
3001
|
-
return u(
|
|
3047
|
+
case Y.StartTask:
|
|
3048
|
+
return u(bi, {
|
|
3002
3049
|
content: r,
|
|
3003
3050
|
pages: t,
|
|
3004
3051
|
required: n
|
|
3005
3052
|
});
|
|
3006
|
-
case
|
|
3007
|
-
return u(
|
|
3053
|
+
case Y.CompleteTask:
|
|
3054
|
+
return u(xi, {
|
|
3008
3055
|
content: r,
|
|
3009
3056
|
pages: t,
|
|
3010
3057
|
properties: e
|
|
@@ -3012,7 +3059,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3012
3059
|
default:
|
|
3013
3060
|
return null;
|
|
3014
3061
|
}
|
|
3015
|
-
},
|
|
3062
|
+
}, Ti = ({
|
|
3016
3063
|
className: e,
|
|
3017
3064
|
properties: t,
|
|
3018
3065
|
next: n,
|
|
@@ -3024,40 +3071,40 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3024
3071
|
userId: a
|
|
3025
3072
|
} = r, d = ie(), {
|
|
3026
3073
|
screenPermissionRequested: l
|
|
3027
|
-
} = d, p = ie((
|
|
3028
|
-
let c = ie((
|
|
3029
|
-
c || (c =
|
|
3074
|
+
} = d, p = ie((f) => f.avStream);
|
|
3075
|
+
let c = ie((f) => f.currentPage);
|
|
3076
|
+
c || (c = _i({
|
|
3030
3077
|
questionId: o,
|
|
3031
3078
|
surveyId: i,
|
|
3032
|
-
next: (
|
|
3033
|
-
n(
|
|
3079
|
+
next: (f) => {
|
|
3080
|
+
n(f);
|
|
3034
3081
|
},
|
|
3035
3082
|
pages: t.pages,
|
|
3036
3083
|
responseGroupUid: s,
|
|
3037
3084
|
userId: a
|
|
3038
3085
|
}));
|
|
3039
|
-
let
|
|
3040
|
-
const
|
|
3041
|
-
return
|
|
3086
|
+
let m = c.headline, h = c.captionText;
|
|
3087
|
+
const g = jo(p, c);
|
|
3088
|
+
return Po(c) && l && (m = c.permissionDeniedHeadline, h = c.permissionDeniedCaptionText), Xe(c) && g === fe.Ready && (m = c.permissionGrantedHeadline, h = c.permissionGrantedCaptionText), u("div", {
|
|
3042
3089
|
className: M([e, "ul-center-horizontally", E.FadeInTransition]),
|
|
3043
3090
|
children: [u(te, {
|
|
3044
|
-
message:
|
|
3091
|
+
message: m,
|
|
3045
3092
|
properties: {
|
|
3046
|
-
captionText:
|
|
3093
|
+
captionText: h
|
|
3047
3094
|
}
|
|
3048
|
-
}), u(
|
|
3095
|
+
}), u(Ei, {
|
|
3049
3096
|
properties: t
|
|
3050
3097
|
})]
|
|
3051
3098
|
});
|
|
3052
|
-
},
|
|
3099
|
+
}, Pi = {
|
|
3053
3100
|
"{{user_id}}": "externalUserId",
|
|
3054
3101
|
"{{email}}": "email"
|
|
3055
|
-
},
|
|
3102
|
+
}, ji = (e = void 0, t = {}) => {
|
|
3056
3103
|
if (!e)
|
|
3057
3104
|
return e;
|
|
3058
3105
|
let n = e;
|
|
3059
3106
|
const o = [];
|
|
3060
|
-
for (const [d, l] of Object.entries(
|
|
3107
|
+
for (const [d, l] of Object.entries(Pi))
|
|
3061
3108
|
if (n.toLowerCase().includes(d))
|
|
3062
3109
|
if (t[l]) {
|
|
3063
3110
|
const p = new RegExp(d, "gi");
|
|
@@ -3071,7 +3118,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3071
3118
|
return r;
|
|
3072
3119
|
const a = s.map((d) => d.join("=")).join("&");
|
|
3073
3120
|
return `${r}?${a}`;
|
|
3074
|
-
},
|
|
3121
|
+
}, Ri = ({
|
|
3075
3122
|
className: e,
|
|
3076
3123
|
message: t,
|
|
3077
3124
|
next: n,
|
|
@@ -3083,9 +3130,9 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3083
3130
|
visitorAttributes: s
|
|
3084
3131
|
} = $((c) => ({
|
|
3085
3132
|
visitorAttributes: c.visitorAttributes
|
|
3086
|
-
})), a = (c,
|
|
3133
|
+
})), a = (c, m = !1) => {
|
|
3087
3134
|
n({
|
|
3088
|
-
value:
|
|
3135
|
+
value: m ? {
|
|
3089
3136
|
skipped: !0
|
|
3090
3137
|
} : void 0,
|
|
3091
3138
|
questionId: r,
|
|
@@ -3098,7 +3145,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3098
3145
|
type: i
|
|
3099
3146
|
});
|
|
3100
3147
|
}, l = () => {
|
|
3101
|
-
const c =
|
|
3148
|
+
const c = ji(o && o.buttonUrl, s);
|
|
3102
3149
|
return u("div", {
|
|
3103
3150
|
className: "ul-card-button-group",
|
|
3104
3151
|
children: [u("a", {
|
|
@@ -3114,11 +3161,11 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3114
3161
|
children: ye(o)
|
|
3115
3162
|
}), o.required === !1 && u("button", {
|
|
3116
3163
|
className: E.SkipButton,
|
|
3117
|
-
onClick: (
|
|
3118
|
-
children:
|
|
3164
|
+
onClick: (m) => a(m, !0),
|
|
3165
|
+
children: Nt(o)
|
|
3119
3166
|
})]
|
|
3120
3167
|
});
|
|
3121
|
-
}, p = (c,
|
|
3168
|
+
}, p = (c, m) => c ? u("div", {
|
|
3122
3169
|
className: "ul-rich-text-body",
|
|
3123
3170
|
dangerouslySetInnerHTML: {
|
|
3124
3171
|
__html: c
|
|
@@ -3127,20 +3174,20 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3127
3174
|
}) : u("div", {
|
|
3128
3175
|
className: "ul-rich-text-body",
|
|
3129
3176
|
id: "ul-card__text-url-body-container",
|
|
3130
|
-
children: (
|
|
3131
|
-
children:
|
|
3132
|
-
},
|
|
3177
|
+
children: (m ? m.split(/\n\s*\n/g) : []).map((h, g) => u("p", {
|
|
3178
|
+
children: h
|
|
3179
|
+
}, g))
|
|
3133
3180
|
});
|
|
3134
3181
|
return u("div", {
|
|
3135
3182
|
className: M([e, "ul-card__text-url-prompt", E.FadeInTransition]),
|
|
3136
3183
|
children: [u(te, {
|
|
3137
3184
|
message: t
|
|
3138
|
-
}), p(o == null ? void 0 : o.richTextBody, o == null ? void 0 : o.body), u(
|
|
3185
|
+
}), p(o == null ? void 0 : o.richTextBody, o == null ? void 0 : o.body), u(pe, {
|
|
3139
3186
|
defaultBody: l,
|
|
3140
3187
|
properties: o
|
|
3141
3188
|
})]
|
|
3142
3189
|
}, r);
|
|
3143
|
-
},
|
|
3190
|
+
}, Ii = ({
|
|
3144
3191
|
className: e,
|
|
3145
3192
|
questionId: t
|
|
3146
3193
|
}) => {
|
|
@@ -3155,7 +3202,7 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3155
3202
|
endCard: d.endCard,
|
|
3156
3203
|
forceBrandedLogo: d.forceBrandedLogo
|
|
3157
3204
|
}));
|
|
3158
|
-
|
|
3205
|
+
Z(() => {
|
|
3159
3206
|
setTimeout(() => {
|
|
3160
3207
|
o(ke);
|
|
3161
3208
|
}, i ? 4e3 : 2e3);
|
|
@@ -3200,10 +3247,10 @@ const jo = "ul-permission-graphics-container", Ro = "ul-permission-body", Io = M
|
|
|
3200
3247
|
})
|
|
3201
3248
|
})
|
|
3202
3249
|
}, t);
|
|
3203
|
-
},
|
|
3250
|
+
}, _e = "https://cdn.sprig.com", R = {
|
|
3204
3251
|
document: void 0,
|
|
3205
3252
|
videojs: void 0
|
|
3206
|
-
},
|
|
3253
|
+
}, Li = `/* progress control styles */
|
|
3207
3254
|
.video-js .vjs-control {
|
|
3208
3255
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
3209
3256
|
}
|
|
@@ -3860,26 +3907,26 @@ span.ul-button-text {
|
|
|
3860
3907
|
.vjs-poster {
|
|
3861
3908
|
background-size: cover;
|
|
3862
3909
|
}
|
|
3863
|
-
`,
|
|
3864
|
-
const t =
|
|
3865
|
-
return t.className = "ul-video-player-loading", t.id =
|
|
3866
|
-
const o =
|
|
3910
|
+
`, Di = (e) => {
|
|
3911
|
+
const t = R.document.createElement("div");
|
|
3912
|
+
return t.className = "ul-video-player-loading", t.id = At(e), ["first", "second", "third", "fourth"].map((n) => {
|
|
3913
|
+
const o = R.document.createElement("div");
|
|
3867
3914
|
o.className = n, t.appendChild(o);
|
|
3868
3915
|
}), t;
|
|
3869
|
-
},
|
|
3870
|
-
{ type: "link", content: `${
|
|
3871
|
-
{ type: "script", content: `${
|
|
3872
|
-
{ type: "script", content: `${
|
|
3873
|
-
{ type: "script", content: `${
|
|
3874
|
-
{ type: "script", content: `${
|
|
3875
|
-
],
|
|
3876
|
-
{ type: "link", content: `${
|
|
3877
|
-
{ type: "script", content: `${
|
|
3878
|
-
{ type: "style", content:
|
|
3879
|
-
],
|
|
3880
|
-
let oe,
|
|
3881
|
-
const
|
|
3882
|
-
const s =
|
|
3916
|
+
}, At = (e) => e + "-loading-spiner", z = "hidden", fn = ".m3u8", lt = "questionId", ct = "ul-video-recorder-camera-off-button", dt = "ul-recording-in-session", Ni = [
|
|
3917
|
+
{ type: "link", content: `${_e}/dependencies/videojs-record-4.5.0.min.css` },
|
|
3918
|
+
{ type: "script", content: `${_e}/dependencies/RecordRTC-5.6.2.js` },
|
|
3919
|
+
{ type: "script", content: `${_e}/dependencies/adapter.8.0.0.min.js` },
|
|
3920
|
+
{ type: "script", content: `${_e}/dependencies/videojs-record-4.5.0.min.js` },
|
|
3921
|
+
{ type: "script", content: `${_e}/userleap-web-upchunk-v2.2.2.js` }
|
|
3922
|
+
], No = [
|
|
3923
|
+
{ type: "link", content: `${_e}/dependencies/video-js-7.18.0.min.css` },
|
|
3924
|
+
{ type: "script", content: `${_e}/dependencies/video-js-7.18.0.min.js` },
|
|
3925
|
+
{ type: "style", content: Li }
|
|
3926
|
+
], Oo = "-video-player", Mo = "-secondary-video-player", Ao = "-video-recorder";
|
|
3927
|
+
let oe, gn;
|
|
3928
|
+
const me = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, metadata: i }) => {
|
|
3929
|
+
const s = R.document.documentElement;
|
|
3883
3930
|
if (!o || !r)
|
|
3884
3931
|
return;
|
|
3885
3932
|
const a = {
|
|
@@ -3903,7 +3950,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3903
3950
|
body: JSON.stringify(a)
|
|
3904
3951
|
})).ok || console.warn("[Sprig] (ERR-444) Failed to track analytics", e);
|
|
3905
3952
|
}, se = async (e, t, n, o, r, i) => {
|
|
3906
|
-
|
|
3953
|
+
me({
|
|
3907
3954
|
event: `Video Error ${t}`,
|
|
3908
3955
|
apiBase: n,
|
|
3909
3956
|
headers: o,
|
|
@@ -3911,7 +3958,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3911
3958
|
envId: i,
|
|
3912
3959
|
metadata: { errorMessage: e.message }
|
|
3913
3960
|
});
|
|
3914
|
-
const s =
|
|
3961
|
+
const s = R.document.documentElement, a = {
|
|
3915
3962
|
screenWidth: window.screen.width,
|
|
3916
3963
|
screenHeight: window.screen.height,
|
|
3917
3964
|
clientWidth: s.clientWidth,
|
|
@@ -3935,67 +3982,67 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
3935
3982
|
},
|
|
3936
3983
|
body: JSON.stringify(d)
|
|
3937
3984
|
})).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", e);
|
|
3938
|
-
},
|
|
3985
|
+
}, Oi = (e, { type: t, content: n }) => new Promise(function(o, r) {
|
|
3939
3986
|
let i;
|
|
3940
|
-
t === "script" ? (i =
|
|
3987
|
+
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() {
|
|
3941
3988
|
o(n);
|
|
3942
3989
|
}, i.onerror = function() {
|
|
3943
3990
|
r(n);
|
|
3944
3991
|
}, i.async = !1, i.id = btoa(n), e.appendChild(i);
|
|
3945
|
-
}),
|
|
3992
|
+
}), Uo = (e, t) => {
|
|
3946
3993
|
if (e.length === 0)
|
|
3947
3994
|
return t && t();
|
|
3948
3995
|
Promise.all(
|
|
3949
|
-
e.reduce((n, o) => (n.push(
|
|
3996
|
+
e.reduce((n, o) => (n.push(Oi(R.document.head, o)), n), [])
|
|
3950
3997
|
).then(() => {
|
|
3951
|
-
|
|
3998
|
+
R.videojs = R.document.defaultView.videojs, t && t();
|
|
3952
3999
|
}).catch(function(n) {
|
|
3953
4000
|
console.log(n + " failed to load");
|
|
3954
4001
|
});
|
|
3955
|
-
},
|
|
4002
|
+
}, vn = (e, t, n) => {
|
|
3956
4003
|
if (t === "start" && (e.style.visibility = "visible"), t === "none")
|
|
3957
|
-
e.style.visibility =
|
|
4004
|
+
e.style.visibility = z;
|
|
3958
4005
|
else if (t === "success")
|
|
3959
|
-
e.style.visibility =
|
|
4006
|
+
e.style.visibility = z, e.innerHTML = "Upload succeeded!";
|
|
3960
4007
|
else {
|
|
3961
4008
|
const o = Math.round(parseFloat(n));
|
|
3962
4009
|
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%)`;
|
|
3963
4010
|
}
|
|
3964
|
-
},
|
|
3965
|
-
const n =
|
|
4011
|
+
}, ut = (e, t) => {
|
|
4012
|
+
const n = R.videojs(e.id());
|
|
3966
4013
|
return n == null ? void 0 : n.payload[t];
|
|
3967
|
-
},
|
|
4014
|
+
}, Mi = (e, t, n, o, r) => {
|
|
3968
4015
|
const { surveyId: i, responseGroupUid: s, visitorId: a, envId: d } = e.payload;
|
|
3969
4016
|
e.on("deviceError", function() {
|
|
3970
|
-
console.warn("device error: ", e.deviceErrorCode), e.deviceErrorCode.message === "Permission denied" ? (e.deviceButton.addClass("permission-denied"), n && n(
|
|
4017
|
+
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({
|
|
3971
4018
|
event: "Video Permission Denied",
|
|
3972
4019
|
apiBase: t,
|
|
3973
4020
|
headers: r,
|
|
3974
4021
|
visitorId: a,
|
|
3975
4022
|
envId: d,
|
|
3976
|
-
metadata: { questionId:
|
|
3977
|
-
})) : (n && n(
|
|
4023
|
+
metadata: { questionId: ut(e, lt), responseGroupUid: s, surveyId: i }
|
|
4024
|
+
})) : (n && n(A.ERROR, { type: A.OTHER }), se(new Error(e.deviceErrorCode.message), "recorderDeviceError", t, r, a, d));
|
|
3978
4025
|
}), e.on("error", function(l, p) {
|
|
3979
4026
|
se(p || e.error(), "recorderError", t, r, a, d);
|
|
3980
4027
|
}), e.on("startRecord", function(l, p) {
|
|
3981
|
-
o(e.uploadProgressLabel, "none"),
|
|
4028
|
+
o(e.uploadProgressLabel, "none"), me({
|
|
3982
4029
|
event: "Video Record Start",
|
|
3983
4030
|
apiBase: t,
|
|
3984
4031
|
headers: r,
|
|
3985
4032
|
visitorId: a,
|
|
3986
4033
|
envId: d,
|
|
3987
|
-
metadata: { questionId:
|
|
4034
|
+
metadata: { questionId: ut(e, lt), responseGroupUid: s, surveyId: i }
|
|
3988
4035
|
});
|
|
3989
4036
|
}), e.on("finishRecord", async function() {
|
|
3990
4037
|
o(e.uploadProgressLabel, "start", 0);
|
|
3991
|
-
const l =
|
|
4038
|
+
const l = ut(e, lt);
|
|
3992
4039
|
if (!i) {
|
|
3993
|
-
const
|
|
3994
|
-
return n && n(
|
|
4040
|
+
const f = "internal error: missing fields in payload";
|
|
4041
|
+
return n && n(A.ERROR, { type: A.OTHER }), se(new Error(f), "finishRecord", t, r, a, d), null;
|
|
3995
4042
|
}
|
|
3996
4043
|
e.record().stopDevice();
|
|
3997
|
-
const p = e.cameraOff ?
|
|
3998
|
-
|
|
4044
|
+
const p = e.cameraOff ? A.MEDIA_TYPE_AUDIO : A.MEDIA_TYPE_VIDEO, c = mt();
|
|
4045
|
+
me({
|
|
3999
4046
|
event: "Video Record Finish",
|
|
4000
4047
|
apiBase: t,
|
|
4001
4048
|
headers: r,
|
|
@@ -4003,29 +4050,29 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4003
4050
|
envId: d,
|
|
4004
4051
|
metadata: { mediaRecordingUid: c, questionId: l, responseGroupUid: s, surveyId: i, mediaType: p }
|
|
4005
4052
|
});
|
|
4006
|
-
const
|
|
4053
|
+
const m = {
|
|
4007
4054
|
surveyId: i,
|
|
4008
4055
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4009
4056
|
mediaType: p,
|
|
4010
4057
|
mediaRecordingUid: c
|
|
4011
4058
|
};
|
|
4012
|
-
l && (
|
|
4013
|
-
const
|
|
4014
|
-
const
|
|
4059
|
+
l && (m.questionId = l), s && (m.responseGroupUid = s), a && (m.visitorId = a);
|
|
4060
|
+
const g = await (async () => {
|
|
4061
|
+
const f = await fetch(`${t}/2/environments/integrations/upload`, {
|
|
4015
4062
|
method: "POST",
|
|
4016
4063
|
cache: "no-cache",
|
|
4017
4064
|
headers: { "Content-Type": "application/json" },
|
|
4018
|
-
body: JSON.stringify(
|
|
4065
|
+
body: JSON.stringify(m)
|
|
4019
4066
|
});
|
|
4020
|
-
if (
|
|
4021
|
-
const x = await
|
|
4022
|
-
return n && n(
|
|
4023
|
-
[
|
|
4024
|
-
[
|
|
4025
|
-
[
|
|
4067
|
+
if (f.ok) {
|
|
4068
|
+
const x = await f.json();
|
|
4069
|
+
return n && n(A.UPLOAD_STARTED, {
|
|
4070
|
+
[A.UPLOAD_ID]: x.upload.id,
|
|
4071
|
+
[A.MEDIA_TYPE]: p,
|
|
4072
|
+
[A.MEDIA_RECORDING_UID]: c
|
|
4026
4073
|
}), x.upload.url;
|
|
4027
4074
|
} else
|
|
4028
|
-
return n && n(
|
|
4075
|
+
return n && n(A.ERROR, { type: A.OTHER, response: f }), se(
|
|
4029
4076
|
new Error("failed to get upload response with url"),
|
|
4030
4077
|
"finishRecord",
|
|
4031
4078
|
t,
|
|
@@ -4034,31 +4081,31 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4034
4081
|
d
|
|
4035
4082
|
), null;
|
|
4036
4083
|
})();
|
|
4037
|
-
|
|
4084
|
+
g && (oe = R.document.defaultView.UpChunk.createUpload({
|
|
4038
4085
|
// endpoint computed from backend separately and hacked together
|
|
4039
|
-
endpoint:
|
|
4040
|
-
file: new
|
|
4086
|
+
endpoint: g,
|
|
4087
|
+
file: new R.document.defaultView.File(
|
|
4041
4088
|
[e.recordedData],
|
|
4042
4089
|
`recording ${p} ${Date.now()}`
|
|
4043
4090
|
),
|
|
4044
4091
|
chunkSize: 5120
|
|
4045
4092
|
// Uploads the file in ~5mb chunks
|
|
4046
|
-
}), oe.startTime = Date.now(),
|
|
4093
|
+
}), oe.startTime = Date.now(), me({
|
|
4047
4094
|
event: "Video Upload Start",
|
|
4048
4095
|
apiBase: t,
|
|
4049
4096
|
headers: r,
|
|
4050
4097
|
visitorId: a,
|
|
4051
4098
|
envId: d,
|
|
4052
|
-
metadata: { mediaRecordingUid: c, questionId: l, responseGroupUid: s, surveyId: i, mediaType: p, url:
|
|
4053
|
-
}), oe.on("error", (
|
|
4054
|
-
o(e.uploadProgressLabel, "none"), n && n(
|
|
4055
|
-
}), oe.on("progress", (
|
|
4056
|
-
n && n(
|
|
4057
|
-
[
|
|
4058
|
-
[
|
|
4059
|
-
}), o(e.uploadProgressLabel, "progress",
|
|
4099
|
+
metadata: { mediaRecordingUid: c, questionId: l, responseGroupUid: s, surveyId: i, mediaType: p, url: g }
|
|
4100
|
+
}), oe.on("error", (f) => {
|
|
4101
|
+
o(e.uploadProgressLabel, "none"), n && n(A.UPLOAD_FINISHED, { [A.MEDIA_RECORDING_UID]: c }), se(f, "finishRecord", t, r, a, d);
|
|
4102
|
+
}), oe.on("progress", (f) => {
|
|
4103
|
+
n && n(A.UPLOAD_PROGRESS, {
|
|
4104
|
+
[A.MEDIA_RECORDING_UID]: c,
|
|
4105
|
+
[A.UPLOAD_PROGRESS_PCT]: f.detail
|
|
4106
|
+
}), o(e.uploadProgressLabel, "progress", f.detail);
|
|
4060
4107
|
}), oe.on("success", () => {
|
|
4061
|
-
o(e.uploadProgressLabel, "success"), n && n(
|
|
4108
|
+
o(e.uploadProgressLabel, "success"), n && n(A.UPLOAD_FINISHED, { [A.MEDIA_RECORDING_UID]: c }), me({
|
|
4062
4109
|
event: "Video Upload Success",
|
|
4063
4110
|
apiBase: t,
|
|
4064
4111
|
headers: r,
|
|
@@ -4070,18 +4117,18 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4070
4117
|
responseGroupUid: s,
|
|
4071
4118
|
surveyId: i,
|
|
4072
4119
|
mediaType: p,
|
|
4073
|
-
url:
|
|
4120
|
+
url: g,
|
|
4074
4121
|
elapsedMs: oe.startTime && Date.now() - oe.startTime
|
|
4075
4122
|
}
|
|
4076
4123
|
});
|
|
4077
4124
|
}));
|
|
4078
4125
|
});
|
|
4079
|
-
},
|
|
4080
|
-
const n = new (
|
|
4126
|
+
}, Vo = (e, t) => {
|
|
4127
|
+
const n = new (R.videojs.getComponent("Component"))(e);
|
|
4081
4128
|
return n.addClass("ul-buttons-panel"), t.map((o) => {
|
|
4082
4129
|
n.addChild(o);
|
|
4083
|
-
}),
|
|
4084
|
-
},
|
|
4130
|
+
}), Ai(n), n;
|
|
4131
|
+
}, Ai = (e) => {
|
|
4085
4132
|
e.children().forEach((t) => {
|
|
4086
4133
|
if (K[t.name_]) {
|
|
4087
4134
|
const n = ze(K[t.name_], `ul-${K[t.name_]}`);
|
|
@@ -4089,15 +4136,15 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4089
4136
|
}
|
|
4090
4137
|
});
|
|
4091
4138
|
}, ze = (e, t = "") => {
|
|
4092
|
-
const n =
|
|
4139
|
+
const n = R.document.createElement("span");
|
|
4093
4140
|
return n.className = "ul-button-text", n.innerHTML = e, n.id = t, n;
|
|
4094
|
-
},
|
|
4141
|
+
}, $o = (e, t, n, o, r = !1, i) => {
|
|
4095
4142
|
e.addClass("ul-video-player");
|
|
4096
|
-
const s = new (
|
|
4097
|
-
s.addClass("ul-control-panel"), e.progressBar = s.addChild("ProgressControl"), n && e.src(n), e.audioPlayerPlaceholder = new (
|
|
4098
|
-
const a = n && n.src ?
|
|
4099
|
-
n && (r || !a) ? (e.children()[0].classList.add("vjs-hidden"),
|
|
4100
|
-
!r && n && !a &&
|
|
4143
|
+
const s = new (R.videojs.getComponent("Component"))(e);
|
|
4144
|
+
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");
|
|
4145
|
+
const a = n && n.src ? qi(n.src) : null;
|
|
4146
|
+
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", () => {
|
|
4147
|
+
!r && n && !a && $i(e, !1), i == null || i.play();
|
|
4101
4148
|
}), e.on("pause", () => {
|
|
4102
4149
|
i == null || i.pause();
|
|
4103
4150
|
}), e.on("seeked", () => {
|
|
@@ -4105,12 +4152,12 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4105
4152
|
}), e.on("ratechange", () => {
|
|
4106
4153
|
i == null || i.playbackRate(e.playbackRate());
|
|
4107
4154
|
}), e.addChild(e.audioPlayerPlaceholder, {}, 1), s.addChild(t), e.addChild(s), o && o(e);
|
|
4108
|
-
},
|
|
4109
|
-
e.addClass(`ul${
|
|
4110
|
-
const o = new (
|
|
4155
|
+
}, Ui = (e, t, n) => {
|
|
4156
|
+
e.addClass(`ul${Mo}`);
|
|
4157
|
+
const o = new (R.videojs.getComponent("Component"))(e);
|
|
4111
4158
|
t && e.src(t), e.addChild(o), n && n(e);
|
|
4112
|
-
},
|
|
4113
|
-
|
|
4159
|
+
}, Vi = (e, t, n, o, r, i, s, a = !1) => {
|
|
4160
|
+
gn = Date.now();
|
|
4114
4161
|
const l = Ye(t, {
|
|
4115
4162
|
controls: !1,
|
|
4116
4163
|
bigPlayButton: !1,
|
|
@@ -4140,145 +4187,145 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4140
4187
|
if (!l)
|
|
4141
4188
|
return;
|
|
4142
4189
|
l.payload = n;
|
|
4143
|
-
const { surveyId: p, questionId: c, responseGroupUid:
|
|
4144
|
-
let
|
|
4145
|
-
const x = (
|
|
4146
|
-
const
|
|
4147
|
-
|
|
4148
|
-
const Q =
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
}), window.navigator.mediaDevices.getUserMedia({ video: !0, audio: !0 }).then((
|
|
4152
|
-
|
|
4190
|
+
const { surveyId: p, questionId: c, responseGroupUid: m, visitorId: h, envId: g } = n;
|
|
4191
|
+
let f;
|
|
4192
|
+
const x = (D) => {
|
|
4193
|
+
const L = ct, N = ct + "-audio-only";
|
|
4194
|
+
vn(l.uploadProgressLabel, "none"), oe && oe.startTime >= gn && oe.abort();
|
|
4195
|
+
const Q = R.document.getElementById("ul-camera-button");
|
|
4196
|
+
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) => {
|
|
4197
|
+
j.stop();
|
|
4198
|
+
}), window.navigator.mediaDevices.getUserMedia({ video: !0, audio: !0 }).then((j) => {
|
|
4199
|
+
f = j, j.getVideoTracks().forEach((ne) => {
|
|
4153
4200
|
ne.enabled = !1;
|
|
4154
|
-
}), l.record().onDeviceReady(
|
|
4155
|
-
}).catch(l.record().onDeviceError.bind(l.record()))) : (
|
|
4156
|
-
|
|
4157
|
-
}), l.children()[0].classList.remove("vjs-hidden"), l.record().getDevice(), T.removeClass(
|
|
4158
|
-
},
|
|
4201
|
+
}), l.record().onDeviceReady(j);
|
|
4202
|
+
}).catch(l.record().onDeviceError.bind(l.record()))) : (f == null || f.getVideoTracks().forEach((j) => {
|
|
4203
|
+
j.enabled = !0;
|
|
4204
|
+
}), 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"));
|
|
4205
|
+
}, _ = new (R.videojs.getComponent("Button"))(l, {
|
|
4159
4206
|
clickHandler: () => {
|
|
4160
|
-
|
|
4207
|
+
_.hasClass(z) || (me({
|
|
4161
4208
|
event: "Video Delete Button Clicked",
|
|
4162
4209
|
apiBase: o,
|
|
4163
4210
|
headers: s,
|
|
4164
|
-
visitorId:
|
|
4165
|
-
envId:
|
|
4166
|
-
metadata: { questionId: c, responseGroupUid:
|
|
4167
|
-
}), x(l.cameraOff), r(
|
|
4211
|
+
visitorId: h,
|
|
4212
|
+
envId: g,
|
|
4213
|
+
metadata: { questionId: c, responseGroupUid: m, surveyId: p }
|
|
4214
|
+
}), x(l.cameraOff), r(A.DELETE, {}), T.removeClass(z), _.addClass(z));
|
|
4168
4215
|
}
|
|
4169
4216
|
});
|
|
4170
|
-
|
|
4171
|
-
const
|
|
4172
|
-
|
|
4217
|
+
_.addClass("ul-video-recorder-delete-button"), _.el_.appendChild(ze(K.DeleteButton, "ul-delete-button"));
|
|
4218
|
+
const y = R.document.getElementById(t), k = () => {
|
|
4219
|
+
y.classList.contains("vjs-fullscreen") && l.cameraOff ? y.style.display = "table" : y.style.display = "flex";
|
|
4173
4220
|
};
|
|
4174
4221
|
k();
|
|
4175
|
-
const T = new (
|
|
4222
|
+
const T = new (R.videojs.getComponent("Button"))(l, {
|
|
4176
4223
|
clickHandler: () => {
|
|
4177
|
-
l.record().isRecording() || (l.cameraOff = !l.cameraOff,
|
|
4224
|
+
l.record().isRecording() || (l.cameraOff = !l.cameraOff, me({
|
|
4178
4225
|
event: "Video Camera Button Clicked",
|
|
4179
4226
|
apiBase: o,
|
|
4180
4227
|
headers: s,
|
|
4181
4228
|
visitorId: n.visitorId,
|
|
4182
4229
|
envId: n.envId,
|
|
4183
|
-
metadata: { questionId: c, responseGroupUid:
|
|
4184
|
-
}), x(l.cameraOff), !
|
|
4230
|
+
metadata: { questionId: c, responseGroupUid: m, surveyId: p, cameraOff: l.cameraOff }
|
|
4231
|
+
}), x(l.cameraOff), !_.hasClass(z) && _.addClass(z), r(A.DELETE, {}), k());
|
|
4185
4232
|
}
|
|
4186
4233
|
});
|
|
4187
|
-
T.addClass(
|
|
4188
|
-
const
|
|
4234
|
+
T.addClass(ct), T.el_.appendChild(ze(K.TurnOffCamera, "ul-camera-button"));
|
|
4235
|
+
const w = new (R.videojs.getComponent("Button"))(l, {
|
|
4189
4236
|
clickHandler: () => {
|
|
4190
|
-
const
|
|
4237
|
+
const D = R.document.getElementById("ul-recorder-toggle");
|
|
4191
4238
|
if (l.record().isRecording())
|
|
4192
|
-
l.record().stop(),
|
|
4239
|
+
l.record().stop(), D && (D.innerHTML = K.RecordButton), w.removeClass(dt), _.removeClass(z);
|
|
4193
4240
|
else {
|
|
4194
|
-
const
|
|
4195
|
-
if (
|
|
4196
|
-
|
|
4241
|
+
const L = R.document.getElementById("ul-recording-countdown-screen");
|
|
4242
|
+
if (L)
|
|
4243
|
+
L.remove(), D && (D.innerHTML = K.RecordButton), x(l.cameraOff), r(A.DELETE, {}), T.removeClass(z), _.addClass(z), w.removeClass(dt), I.show();
|
|
4197
4244
|
else {
|
|
4198
|
-
|
|
4199
|
-
const
|
|
4200
|
-
|
|
4245
|
+
w.addClass(dt), I.hide(), T.addClass(z), _.addClass(z), D && (D.innerHTML = K.StopButton);
|
|
4246
|
+
const N = R.document.createElement("div");
|
|
4247
|
+
N.id = "ul-recording-countdown-screen", y.insertBefore(N, y.children[1]), N.style.height = `${y.offsetHeight}px`, Ho(l, 3);
|
|
4201
4248
|
}
|
|
4202
4249
|
}
|
|
4203
4250
|
}
|
|
4204
4251
|
});
|
|
4205
|
-
|
|
4206
|
-
const
|
|
4207
|
-
|
|
4208
|
-
const
|
|
4209
|
-
|
|
4252
|
+
w.addClass("ul-video-recorder-toggle-button"), w.el_.appendChild(ze(K.RecordButton, "ul-recorder-toggle"));
|
|
4253
|
+
const C = R.document.createElement("p");
|
|
4254
|
+
C.style.visibility = "hidden", C.className = "ul-upload-progress-label", e.appendChild(C), l.uploadProgressLabel = C;
|
|
4255
|
+
const O = Vo(l, [
|
|
4256
|
+
_,
|
|
4210
4257
|
T,
|
|
4211
4258
|
"PlayToggle",
|
|
4212
|
-
|
|
4259
|
+
w,
|
|
4213
4260
|
"FullscreenToggle"
|
|
4214
|
-
]),
|
|
4215
|
-
|
|
4216
|
-
const
|
|
4217
|
-
|
|
4218
|
-
|
|
4261
|
+
]), I = O.children().find((D) => D.name_ === "FullscreenToggle");
|
|
4262
|
+
I.hasClass("vjs-disabled") && I.hide();
|
|
4263
|
+
const v = O.children().find((D) => D.name_ === "PlayToggle");
|
|
4264
|
+
v.hide(), i && T.addClass(z), !i && _.addClass(z), $o(l, O, i, !1, a), l.on("stopRecord", () => {
|
|
4265
|
+
w.hide(), v.show(), I.show(), _.removeClass(z);
|
|
4219
4266
|
}), l.on("deviceReady", () => {
|
|
4220
|
-
|
|
4221
|
-
}),
|
|
4222
|
-
const
|
|
4223
|
-
!l.cameraOff &&
|
|
4224
|
-
var
|
|
4225
|
-
return (
|
|
4226
|
-
})).then((
|
|
4227
|
-
|
|
4228
|
-
}).catch((
|
|
4267
|
+
w.show(), v.hide(), _.addClass(z);
|
|
4268
|
+
}), Mi(l, o, r, vn, s), i && (l.deviceButton && l.deviceButton.hide(), l.src(i), v.show(), w.hide(), _.removeClass(z));
|
|
4269
|
+
const P = [{ name: "microphone" }];
|
|
4270
|
+
!l.cameraOff && P.push({ name: "camera" }), Promise.all(P.map((D) => {
|
|
4271
|
+
var L;
|
|
4272
|
+
return (L = navigator == null ? void 0 : navigator.permissions) == null ? void 0 : L.query(D);
|
|
4273
|
+
})).then((D) => {
|
|
4274
|
+
D.reduce((N, Q) => N & Q.state === "granted", !0) && l && (l.deviceButton && l.deviceButton.hide(), !i && l.record().getDevice());
|
|
4275
|
+
}).catch((D) => {
|
|
4229
4276
|
});
|
|
4230
|
-
},
|
|
4231
|
-
const n =
|
|
4277
|
+
}, Ho = (e, t = 3) => {
|
|
4278
|
+
const n = R.document.getElementById("ul-recording-countdown-screen");
|
|
4232
4279
|
n && t === 0 ? (n.remove(), e.record().start()) : n && (n.innerHTML = `<span class='ul-countdown-text'>Recording in... ${t}</span>`, setTimeout(() => {
|
|
4233
|
-
|
|
4280
|
+
Ho(e, t - 1);
|
|
4234
4281
|
}, 1e3));
|
|
4235
4282
|
}, Bo = (e) => {
|
|
4236
|
-
const t =
|
|
4237
|
-
return t.className = "ul-video-container", t.appendChild(
|
|
4238
|
-
},
|
|
4239
|
-
const n =
|
|
4283
|
+
const t = R.document.createElement("div");
|
|
4284
|
+
return t.className = "ul-video-container", t.appendChild(Di(e)), t;
|
|
4285
|
+
}, kt = (e, t) => {
|
|
4286
|
+
const n = R.document.createElement("video");
|
|
4240
4287
|
n.id = e, n.className = "video-js vjs-default-skin ul-video-player-video";
|
|
4241
|
-
const o =
|
|
4288
|
+
const o = R.document.createElement("p");
|
|
4242
4289
|
o.className = "vjs-no-js", o.innerHTML = "To view this video please enable JavaScript, and consider upgrading to a web browser that";
|
|
4243
|
-
const r =
|
|
4290
|
+
const r = R.document.createElement("a");
|
|
4244
4291
|
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;
|
|
4245
|
-
},
|
|
4246
|
-
t ? (e.children()[0].classList.add("vjs-hidden"), e.audioPlayerPlaceholder.show(),
|
|
4247
|
-
}, Ye = (e, t) =>
|
|
4248
|
-
|
|
4249
|
-
const d = e +
|
|
4250
|
-
return
|
|
4292
|
+
}, $i = (e, t) => {
|
|
4293
|
+
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%");
|
|
4294
|
+
}, 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) => {
|
|
4295
|
+
R.document = i;
|
|
4296
|
+
const d = e + Oo, l = Bo(d);
|
|
4297
|
+
return R.document.addEventListener("securitypolicyviolation", (p) => {
|
|
4251
4298
|
se(
|
|
4252
4299
|
new Error(`Voice & Video feature violates ${p.violatedDirective} web page CSP policies for the question player.`),
|
|
4253
4300
|
"playerDeviceError",
|
|
4254
4301
|
r,
|
|
4255
4302
|
{}
|
|
4256
4303
|
);
|
|
4257
|
-
}),
|
|
4258
|
-
|
|
4304
|
+
}), Uo(No, () => {
|
|
4305
|
+
R.document.getElementById(At(d)).remove(), kt(d, l);
|
|
4259
4306
|
const p = {
|
|
4260
4307
|
playsinline: !0,
|
|
4261
4308
|
playbackRates: [0.5, 1, 1.5, 2],
|
|
4262
4309
|
fill: !0
|
|
4263
4310
|
};
|
|
4264
4311
|
try {
|
|
4265
|
-
const c = e +
|
|
4266
|
-
|
|
4267
|
-
const
|
|
4268
|
-
if (!
|
|
4312
|
+
const c = e + Mo;
|
|
4313
|
+
kt(c, l);
|
|
4314
|
+
const m = Ye(d, p), h = Ye(c, { muted: !0, ...p });
|
|
4315
|
+
if (!m || !h)
|
|
4269
4316
|
return;
|
|
4270
|
-
|
|
4271
|
-
const
|
|
4272
|
-
|
|
4317
|
+
Ui(h, s, a), s || h.addClass(z);
|
|
4318
|
+
const g = Vo(m, ["PlaybackRateMenuButton", "PlayToggle", "FullscreenToggle"]), f = g.children().find((x) => x.name_ === "FullscreenToggle");
|
|
4319
|
+
f.hasClass("vjs-disabled") && f.hide(), $o(m, g, t, n, o, h);
|
|
4273
4320
|
} catch (c) {
|
|
4274
4321
|
se(new Error(`Error when creating video player object ${c}`), "playerDeviceError", r, {});
|
|
4275
4322
|
return;
|
|
4276
4323
|
}
|
|
4277
4324
|
}), l;
|
|
4278
4325
|
}, Bi = (e, t = {}, n = "https://api.userleap.com", o, r, i, s = !1, a = document) => {
|
|
4279
|
-
|
|
4280
|
-
const d = e +
|
|
4281
|
-
return
|
|
4326
|
+
R.document = a;
|
|
4327
|
+
const d = e + Ao, l = Bo(d);
|
|
4328
|
+
return R.document.addEventListener("securitypolicyviolation", (p) => {
|
|
4282
4329
|
se(
|
|
4283
4330
|
new Error(`Voice & Video feature violates ${p.violatedDirective} web page CSP policies for the recorder player.`),
|
|
4284
4331
|
"recorderDeviceError",
|
|
@@ -4287,10 +4334,10 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4287
4334
|
t.visitorId,
|
|
4288
4335
|
t.envId
|
|
4289
4336
|
);
|
|
4290
|
-
}),
|
|
4291
|
-
|
|
4337
|
+
}), Uo(No.concat(Ni), () => {
|
|
4338
|
+
kt(d, l), R.document.getElementById(At(d)).remove();
|
|
4292
4339
|
try {
|
|
4293
|
-
|
|
4340
|
+
Vi(
|
|
4294
4341
|
l,
|
|
4295
4342
|
d,
|
|
4296
4343
|
t,
|
|
@@ -4312,27 +4359,27 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4312
4359
|
return;
|
|
4313
4360
|
}
|
|
4314
4361
|
}), l;
|
|
4315
|
-
},
|
|
4316
|
-
const t = e +
|
|
4317
|
-
if (
|
|
4362
|
+
}, Fi = (e) => {
|
|
4363
|
+
const t = e + Ao;
|
|
4364
|
+
if (R.document.getElementById(t) && R.videojs) {
|
|
4318
4365
|
try {
|
|
4319
|
-
if (!
|
|
4366
|
+
if (!R.videojs(t).record().stream)
|
|
4320
4367
|
return;
|
|
4321
4368
|
} catch {
|
|
4322
4369
|
return;
|
|
4323
4370
|
}
|
|
4324
|
-
|
|
4371
|
+
R.videojs(t).record().stop(), R.videojs(t).record().stopDevice();
|
|
4325
4372
|
}
|
|
4326
|
-
}, Fi = (e) => {
|
|
4327
|
-
const t = Ye(e + No);
|
|
4328
|
-
t == null || t.pause();
|
|
4329
4373
|
}, zi = (e) => {
|
|
4374
|
+
const t = Ye(e + Oo);
|
|
4375
|
+
t == null || t.pause();
|
|
4376
|
+
}, qi = (e) => {
|
|
4330
4377
|
if (!e)
|
|
4331
4378
|
return null;
|
|
4332
4379
|
const t = e.match(/https:\/\/stream.mux.com\/(.*)/);
|
|
4333
4380
|
let n = t ? t[1] : null;
|
|
4334
4381
|
return n.includes(fn) && (n = n.replace(fn, "")), n ? `https://image.mux.com/${n}/thumbnail.jpg?time=0` : null;
|
|
4335
|
-
},
|
|
4382
|
+
}, A = {
|
|
4336
4383
|
// events
|
|
4337
4384
|
UPLOAD_STARTED: "upload.started",
|
|
4338
4385
|
UPLOAD_PROGRESS: "upload.progress",
|
|
@@ -4359,7 +4406,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4359
4406
|
RecordButton: "Record",
|
|
4360
4407
|
StopButton: "Stop",
|
|
4361
4408
|
PauseButton: "Pause"
|
|
4362
|
-
}, je = "ul-card-video__player_recorder",
|
|
4409
|
+
}, je = "ul-card-video__player_recorder", Wi = "ul-card-video__skip_button", Gi = "ul-video-interview-form", _n = "ul-video-btn", Zi = ({
|
|
4363
4410
|
className: e,
|
|
4364
4411
|
message: t,
|
|
4365
4412
|
next: n,
|
|
@@ -4374,60 +4421,60 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4374
4421
|
headers: l,
|
|
4375
4422
|
responseGroupUid: p,
|
|
4376
4423
|
surveyId: c,
|
|
4377
|
-
viewDocument:
|
|
4378
|
-
visitorId:
|
|
4379
|
-
} = $((
|
|
4380
|
-
apiURL:
|
|
4381
|
-
envId:
|
|
4382
|
-
handleUploadUpdate:
|
|
4383
|
-
headers:
|
|
4384
|
-
responseGroupUid:
|
|
4385
|
-
surveyId:
|
|
4386
|
-
viewDocument:
|
|
4387
|
-
visitorId:
|
|
4388
|
-
})), [
|
|
4424
|
+
viewDocument: m,
|
|
4425
|
+
visitorId: h
|
|
4426
|
+
} = $((L) => ({
|
|
4427
|
+
apiURL: L.apiURL,
|
|
4428
|
+
envId: L.envId,
|
|
4429
|
+
handleUploadUpdate: L.handleUploadUpdate,
|
|
4430
|
+
headers: L.headers,
|
|
4431
|
+
responseGroupUid: L.responseGroupUid,
|
|
4432
|
+
surveyId: L.surveyId,
|
|
4433
|
+
viewDocument: L.viewDocument,
|
|
4434
|
+
visitorId: L.userId
|
|
4435
|
+
})), [g, f] = F(!1), [x, _] = F(null), [y, k] = F(null), [T, w] = F(
|
|
4389
4436
|
0
|
|
4390
4437
|
/* Question */
|
|
4391
|
-
),
|
|
4392
|
-
|
|
4393
|
-
mediaRecordingUid:
|
|
4438
|
+
), C = o && o.videoUrl, O = (L, N) => {
|
|
4439
|
+
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({
|
|
4440
|
+
mediaRecordingUid: N[A.MEDIA_RECORDING_UID],
|
|
4394
4441
|
isComplete: !0
|
|
4395
4442
|
}) : d({
|
|
4396
|
-
mediaRecordingUid:
|
|
4397
|
-
progressPct:
|
|
4398
|
-
}) :
|
|
4399
|
-
mediaRecordingUid:
|
|
4443
|
+
mediaRecordingUid: N[A.MEDIA_RECORDING_UID],
|
|
4444
|
+
progressPct: N[A.UPLOAD_PROGRESS_PCT]
|
|
4445
|
+
}) : L === A.UPLOAD_FINISHED && d({
|
|
4446
|
+
mediaRecordingUid: N[A.MEDIA_RECORDING_UID],
|
|
4400
4447
|
isComplete: !0
|
|
4401
4448
|
});
|
|
4402
|
-
},
|
|
4403
|
-
if (
|
|
4404
|
-
const
|
|
4405
|
-
src:
|
|
4449
|
+
}, I = (L) => {
|
|
4450
|
+
if (L && L.children.length === 0) {
|
|
4451
|
+
const N = Hi(je, {
|
|
4452
|
+
src: C,
|
|
4406
4453
|
type: "application/x-mpegURL"
|
|
4407
|
-
}, void 0, o.mediaType ===
|
|
4408
|
-
|
|
4454
|
+
}, void 0, o.mediaType === A.MEDIA_TYPE_AUDIO, s, m);
|
|
4455
|
+
L.appendChild(N);
|
|
4409
4456
|
}
|
|
4410
|
-
},
|
|
4411
|
-
if (
|
|
4412
|
-
const
|
|
4457
|
+
}, v = (L) => {
|
|
4458
|
+
if (L && L.children.length === 0) {
|
|
4459
|
+
const N = Bi(je, {
|
|
4413
4460
|
surveyId: c,
|
|
4414
4461
|
responseGroupUid: p,
|
|
4415
4462
|
questionId: r,
|
|
4416
|
-
visitorId:
|
|
4463
|
+
visitorId: h,
|
|
4417
4464
|
envId: a
|
|
4418
|
-
}, s,
|
|
4465
|
+
}, s, O, void 0, {
|
|
4419
4466
|
...l,
|
|
4420
4467
|
"x-ul-video-recorder-origin": "sdk"
|
|
4421
|
-
}, o.mediaType ===
|
|
4422
|
-
|
|
4468
|
+
}, o.mediaType === A.MEDIA_TYPE_AUDIO, m);
|
|
4469
|
+
L.appendChild(N);
|
|
4423
4470
|
}
|
|
4424
|
-
},
|
|
4425
|
-
|
|
4426
|
-
mediaRecordingUid:
|
|
4471
|
+
}, P = (L) => {
|
|
4472
|
+
L.preventDefault(), L.stopPropagation(), Fi(je), x && y ? (d({
|
|
4473
|
+
mediaRecordingUid: y,
|
|
4427
4474
|
isSubmitted: !0
|
|
4428
4475
|
}), n({
|
|
4429
4476
|
value: {
|
|
4430
|
-
mediaRecordingUid:
|
|
4477
|
+
mediaRecordingUid: y
|
|
4431
4478
|
},
|
|
4432
4479
|
questionId: r,
|
|
4433
4480
|
type: i
|
|
@@ -4436,11 +4483,11 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4436
4483
|
questionId: r,
|
|
4437
4484
|
type: i
|
|
4438
4485
|
});
|
|
4439
|
-
},
|
|
4486
|
+
}, D = () => u(pe, {
|
|
4440
4487
|
defaultBody: () => u("button", {
|
|
4441
|
-
className: `${
|
|
4442
|
-
onClick: (
|
|
4443
|
-
|
|
4488
|
+
className: `${_n} ul-record-response-btn`,
|
|
4489
|
+
onClick: (L) => {
|
|
4490
|
+
L.preventDefault(), L.stopPropagation(), zi(je), w(
|
|
4444
4491
|
1
|
|
4445
4492
|
/* Answer */
|
|
4446
4493
|
);
|
|
@@ -4450,7 +4497,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4450
4497
|
});
|
|
4451
4498
|
return u("form", {
|
|
4452
4499
|
className: M([e, E.VideoCard, E.FadeInTransition]),
|
|
4453
|
-
id:
|
|
4500
|
+
id: Gi,
|
|
4454
4501
|
children: [u(te, {
|
|
4455
4502
|
message: t,
|
|
4456
4503
|
properties: o
|
|
@@ -4464,44 +4511,44 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4464
4511
|
},
|
|
4465
4512
|
children: [u("div", {
|
|
4466
4513
|
id: je,
|
|
4467
|
-
ref:
|
|
4468
|
-
}),
|
|
4514
|
+
ref: I
|
|
4515
|
+
}), D()]
|
|
4469
4516
|
}), u("div", {
|
|
4470
4517
|
style: {
|
|
4471
4518
|
display: T === 1 ? "block" : "none"
|
|
4472
4519
|
},
|
|
4473
4520
|
children: [u("button", {
|
|
4474
|
-
className: `${
|
|
4475
|
-
onClick: (
|
|
4476
|
-
|
|
4521
|
+
className: `${_n} ul-back-question-btn`,
|
|
4522
|
+
onClick: (L) => {
|
|
4523
|
+
L.preventDefault(), L.stopPropagation(), w(
|
|
4477
4524
|
0
|
|
4478
4525
|
/* Question */
|
|
4479
4526
|
);
|
|
4480
4527
|
}
|
|
4481
4528
|
}), u("div", {
|
|
4482
4529
|
id: "ul-recorder-player-container",
|
|
4483
|
-
ref:
|
|
4530
|
+
ref: v
|
|
4484
4531
|
})]
|
|
4485
4532
|
})]
|
|
4486
4533
|
}), u(G, {
|
|
4487
|
-
disabled: !
|
|
4488
|
-
onClick:
|
|
4534
|
+
disabled: !g,
|
|
4535
|
+
onClick: P,
|
|
4489
4536
|
children: ye(o)
|
|
4490
4537
|
}), u("button", {
|
|
4491
4538
|
className: `ul-card-text__button ${E.InactiveButton} ${E.SkipButton}`,
|
|
4492
|
-
id:
|
|
4493
|
-
onClick:
|
|
4539
|
+
id: Wi,
|
|
4540
|
+
onClick: P,
|
|
4494
4541
|
style: {
|
|
4495
4542
|
display: o.required ? "none" : "block",
|
|
4496
|
-
...
|
|
4543
|
+
...g ? {
|
|
4497
4544
|
display: "none"
|
|
4498
4545
|
} : {}
|
|
4499
4546
|
},
|
|
4500
|
-
children:
|
|
4547
|
+
children: Nt(o)
|
|
4501
4548
|
})]
|
|
4502
4549
|
})]
|
|
4503
4550
|
});
|
|
4504
|
-
},
|
|
4551
|
+
}, Yi = ({
|
|
4505
4552
|
className: e
|
|
4506
4553
|
}) => {
|
|
4507
4554
|
const {
|
|
@@ -4539,7 +4586,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4539
4586
|
children: o
|
|
4540
4587
|
})]
|
|
4541
4588
|
});
|
|
4542
|
-
},
|
|
4589
|
+
}, bn = ({
|
|
4543
4590
|
logoOnly: e = !1,
|
|
4544
4591
|
style: t = {}
|
|
4545
4592
|
}) => u("svg", {
|
|
@@ -4578,7 +4625,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4578
4625
|
fill: "black",
|
|
4579
4626
|
fillOpacity: "0.7"
|
|
4580
4627
|
})]
|
|
4581
|
-
}),
|
|
4628
|
+
}), Qi = () => {
|
|
4582
4629
|
const {
|
|
4583
4630
|
border: e,
|
|
4584
4631
|
cards: t,
|
|
@@ -4601,10 +4648,10 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4601
4648
|
slugName: k.slugName,
|
|
4602
4649
|
surveyId: k.surveyId,
|
|
4603
4650
|
viewedCardCount: k.viewedCardCount
|
|
4604
|
-
})), p =
|
|
4605
|
-
|
|
4606
|
-
p.current && (p.current.style.width = `${
|
|
4607
|
-
}, [
|
|
4651
|
+
})), 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"}`;
|
|
4652
|
+
Z(() => {
|
|
4653
|
+
p.current && (p.current.style.width = `${g * 100}%`);
|
|
4654
|
+
}, [g]);
|
|
4608
4655
|
const x = () => u(W, {
|
|
4609
4656
|
children: [c.length > 1 && u("div", {
|
|
4610
4657
|
id: "ul-progress-bar-container",
|
|
@@ -4621,16 +4668,16 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4621
4668
|
marginTop: "4px"
|
|
4622
4669
|
},
|
|
4623
4670
|
children: u("a", {
|
|
4624
|
-
href:
|
|
4671
|
+
href: f,
|
|
4625
4672
|
rel: "noreferrer",
|
|
4626
4673
|
target: "_blank",
|
|
4627
4674
|
children: u("div", {
|
|
4628
4675
|
style: {
|
|
4629
4676
|
display: "flex"
|
|
4630
4677
|
},
|
|
4631
|
-
children: [u(
|
|
4678
|
+
children: [u(bn, {
|
|
4632
4679
|
logoOnly: !1
|
|
4633
|
-
}), n && u(
|
|
4680
|
+
}), n && u(xn, {
|
|
4634
4681
|
style: {
|
|
4635
4682
|
display: "block",
|
|
4636
4683
|
margin: "auto 0 auto 4px",
|
|
@@ -4640,16 +4687,16 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4640
4687
|
})
|
|
4641
4688
|
})
|
|
4642
4689
|
}) : null]
|
|
4643
|
-
}),
|
|
4690
|
+
}), _ = () => u("a", {
|
|
4644
4691
|
dir: "ltr",
|
|
4645
|
-
href:
|
|
4692
|
+
href: f,
|
|
4646
4693
|
rel: "noreferrer",
|
|
4647
4694
|
target: "_blank",
|
|
4648
4695
|
children: u("div", {
|
|
4649
4696
|
className: "thank-you-card-link",
|
|
4650
4697
|
children: [u("div", {
|
|
4651
4698
|
className: "sprig-box-logo",
|
|
4652
|
-
children: u(
|
|
4699
|
+
children: u(bn, {
|
|
4653
4700
|
logoOnly: !0,
|
|
4654
4701
|
style: {
|
|
4655
4702
|
margin: "auto"
|
|
@@ -4657,7 +4704,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4657
4704
|
})
|
|
4658
4705
|
}), u("div", {
|
|
4659
4706
|
children: u("p", {
|
|
4660
|
-
children: ["Capture insights about your own product", u(
|
|
4707
|
+
children: ["Capture insights about your own product", u(xn, {
|
|
4661
4708
|
style: {
|
|
4662
4709
|
display: "inline-flex",
|
|
4663
4710
|
marginInlineStart: "4px",
|
|
@@ -4667,15 +4714,15 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4667
4714
|
})
|
|
4668
4715
|
})]
|
|
4669
4716
|
})
|
|
4670
|
-
}),
|
|
4717
|
+
}), y = t[r].type === b.Thanks;
|
|
4671
4718
|
return u("footer", {
|
|
4672
4719
|
className: `ul-footer ${o["userleap-platform"] === "link" ? "ul-footer__link" : ""}`,
|
|
4673
4720
|
style: s ? {} : {
|
|
4674
4721
|
marginBottom: "10px"
|
|
4675
4722
|
},
|
|
4676
|
-
children:
|
|
4723
|
+
children: y && n ? _() : x()
|
|
4677
4724
|
});
|
|
4678
|
-
},
|
|
4725
|
+
}, xn = ({
|
|
4679
4726
|
style: e
|
|
4680
4727
|
}) => u("svg", {
|
|
4681
4728
|
fill: "none",
|
|
@@ -4697,7 +4744,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4697
4744
|
strokeLinejoin: "round",
|
|
4698
4745
|
strokeWidth: "1.35"
|
|
4699
4746
|
})]
|
|
4700
|
-
}),
|
|
4747
|
+
}), Ki = () => {
|
|
4701
4748
|
const {
|
|
4702
4749
|
answers: e,
|
|
4703
4750
|
border: t,
|
|
@@ -4711,175 +4758,175 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4711
4758
|
headers: l,
|
|
4712
4759
|
index: p,
|
|
4713
4760
|
next: c,
|
|
4714
|
-
showStripes:
|
|
4715
|
-
surveyId:
|
|
4716
|
-
update:
|
|
4717
|
-
useMobileStyling:
|
|
4761
|
+
showStripes: m,
|
|
4762
|
+
surveyId: h,
|
|
4763
|
+
update: g,
|
|
4764
|
+
useMobileStyling: f,
|
|
4718
4765
|
viewDocument: x
|
|
4719
|
-
} = $((
|
|
4720
|
-
answers:
|
|
4721
|
-
border:
|
|
4722
|
-
cards:
|
|
4723
|
-
close:
|
|
4724
|
-
configureExitOnOverlayClick:
|
|
4725
|
-
destroy:
|
|
4726
|
-
endCard:
|
|
4727
|
-
eventEmitFn:
|
|
4728
|
-
fontFamily:
|
|
4729
|
-
headers:
|
|
4730
|
-
index:
|
|
4731
|
-
next:
|
|
4732
|
-
showStripes:
|
|
4733
|
-
surveyId:
|
|
4734
|
-
update:
|
|
4735
|
-
useMobileStyling:
|
|
4736
|
-
viewDocument:
|
|
4737
|
-
})),
|
|
4766
|
+
} = $((j) => ({
|
|
4767
|
+
answers: j.answers,
|
|
4768
|
+
border: j.border,
|
|
4769
|
+
cards: j.cards,
|
|
4770
|
+
close: j.close,
|
|
4771
|
+
configureExitOnOverlayClick: j.configureExitOnOverlayClick,
|
|
4772
|
+
destroy: j.destroy,
|
|
4773
|
+
endCard: j.endCard,
|
|
4774
|
+
eventEmitFn: j.eventEmitFn,
|
|
4775
|
+
fontFamily: j.fontFamily,
|
|
4776
|
+
headers: j.headers,
|
|
4777
|
+
index: j.index,
|
|
4778
|
+
next: j.next,
|
|
4779
|
+
showStripes: j.showStripes,
|
|
4780
|
+
surveyId: j.surveyId,
|
|
4781
|
+
update: j.update,
|
|
4782
|
+
useMobileStyling: j.useMobileStyling,
|
|
4783
|
+
viewDocument: j.viewDocument
|
|
4784
|
+
})), _ = ue(null), y = ue(!1), k = l["userleap-platform"], {
|
|
4738
4785
|
props: T,
|
|
4739
|
-
type:
|
|
4740
|
-
name:
|
|
4741
|
-
} = n[p],
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
name:
|
|
4745
|
-
[
|
|
4786
|
+
type: w,
|
|
4787
|
+
name: C
|
|
4788
|
+
} = n[p], O = n.length;
|
|
4789
|
+
Z(() => {
|
|
4790
|
+
_.current && (_.current.classList.contains("ul-app--visible") || _.current.classList.add("ul-app--visible"), !y.current && a && (y.current = !0, a(he.SurveyAppeared, {
|
|
4791
|
+
name: he.SurveyAppeared,
|
|
4792
|
+
[Jo.SurveyId]: h
|
|
4746
4793
|
})));
|
|
4747
|
-
}, [a,
|
|
4748
|
-
|
|
4749
|
-
}, [p,
|
|
4794
|
+
}, [a, h]), Z(() => {
|
|
4795
|
+
g();
|
|
4796
|
+
}, [p, g]), Z(() => {
|
|
4750
4797
|
r(() => o());
|
|
4751
4798
|
}, [o, r]);
|
|
4752
|
-
const
|
|
4753
|
-
|
|
4754
|
-
},
|
|
4799
|
+
const I = () => o(ke), v = (j) => {
|
|
4800
|
+
j.key === "Enter" && I();
|
|
4801
|
+
}, P = async function(j) {
|
|
4755
4802
|
c({
|
|
4756
|
-
data:
|
|
4803
|
+
data: j,
|
|
4757
4804
|
completeSurvey: () => {
|
|
4758
4805
|
i(ke);
|
|
4759
4806
|
},
|
|
4760
4807
|
endCard: s
|
|
4761
|
-
}),
|
|
4808
|
+
}), Xo(x);
|
|
4762
4809
|
};
|
|
4763
4810
|
if (e) {
|
|
4764
|
-
for (const
|
|
4765
|
-
if (
|
|
4811
|
+
for (const j of e)
|
|
4812
|
+
if (j.questionId === C) {
|
|
4766
4813
|
let ne;
|
|
4767
|
-
if (
|
|
4768
|
-
const
|
|
4814
|
+
if (w === b.MultipleChoice) {
|
|
4815
|
+
const ge = T.options.find(({
|
|
4769
4816
|
value: nt
|
|
4770
|
-
}) => nt ===
|
|
4771
|
-
if (!
|
|
4817
|
+
}) => nt === j.value);
|
|
4818
|
+
if (!ge)
|
|
4772
4819
|
break;
|
|
4773
4820
|
ne = {
|
|
4774
|
-
[
|
|
4821
|
+
[ge.id]: ge.value
|
|
4775
4822
|
};
|
|
4776
4823
|
} else
|
|
4777
|
-
ne =
|
|
4778
|
-
|
|
4824
|
+
ne = j.value;
|
|
4825
|
+
P({
|
|
4779
4826
|
value: ne,
|
|
4780
|
-
type:
|
|
4781
|
-
questionId:
|
|
4827
|
+
type: w,
|
|
4828
|
+
questionId: j.questionId
|
|
4782
4829
|
});
|
|
4783
4830
|
break;
|
|
4784
4831
|
}
|
|
4785
4832
|
}
|
|
4786
|
-
const
|
|
4833
|
+
const D = () => [pt.Email, pt.Link].includes(l["userleap-platform"]) ? !1 : !s || p + 1 !== O, L = () => f ? {
|
|
4787
4834
|
borderColor: t
|
|
4788
4835
|
} : {
|
|
4789
4836
|
borderColor: t,
|
|
4790
4837
|
margin: "15px"
|
|
4791
|
-
},
|
|
4792
|
-
const
|
|
4838
|
+
}, N = () => {
|
|
4839
|
+
const j = {
|
|
4793
4840
|
className: "ul-card",
|
|
4794
|
-
next:
|
|
4795
|
-
questionId:
|
|
4796
|
-
type:
|
|
4841
|
+
next: P,
|
|
4842
|
+
questionId: C,
|
|
4843
|
+
type: w
|
|
4797
4844
|
};
|
|
4798
|
-
switch (
|
|
4845
|
+
switch (w) {
|
|
4799
4846
|
case b.ConsentLegal:
|
|
4800
|
-
return
|
|
4801
|
-
...
|
|
4847
|
+
return H(ci, {
|
|
4848
|
+
...j,
|
|
4802
4849
|
...T,
|
|
4803
|
-
key:
|
|
4850
|
+
key: C
|
|
4804
4851
|
});
|
|
4805
4852
|
case b.Likert:
|
|
4806
|
-
return
|
|
4807
|
-
...
|
|
4853
|
+
return H(ui, {
|
|
4854
|
+
...j,
|
|
4808
4855
|
...T,
|
|
4809
|
-
key:
|
|
4856
|
+
key: C
|
|
4810
4857
|
});
|
|
4811
4858
|
case b.Matrix:
|
|
4812
|
-
return
|
|
4813
|
-
...
|
|
4859
|
+
return H(pi, {
|
|
4860
|
+
...j,
|
|
4814
4861
|
...T,
|
|
4815
|
-
key:
|
|
4862
|
+
key: C
|
|
4816
4863
|
});
|
|
4817
4864
|
case b.MultipleChoice:
|
|
4818
|
-
return
|
|
4819
|
-
...
|
|
4865
|
+
return H(hi, {
|
|
4866
|
+
...j,
|
|
4820
4867
|
...T,
|
|
4821
|
-
key:
|
|
4868
|
+
key: C
|
|
4822
4869
|
});
|
|
4823
4870
|
case b.MultipleSelect:
|
|
4824
|
-
return
|
|
4825
|
-
...
|
|
4871
|
+
return H(mi, {
|
|
4872
|
+
...j,
|
|
4826
4873
|
...T,
|
|
4827
|
-
key:
|
|
4874
|
+
key: C
|
|
4828
4875
|
});
|
|
4829
4876
|
case b.NPS:
|
|
4830
|
-
return
|
|
4831
|
-
...
|
|
4832
|
-
key:
|
|
4877
|
+
return H(fi, {
|
|
4878
|
+
...j,
|
|
4879
|
+
key: C,
|
|
4833
4880
|
props: T
|
|
4834
4881
|
});
|
|
4835
4882
|
case b.Open:
|
|
4836
|
-
return
|
|
4837
|
-
...
|
|
4883
|
+
return H(gi, {
|
|
4884
|
+
...j,
|
|
4838
4885
|
...T,
|
|
4839
|
-
key:
|
|
4886
|
+
key: C
|
|
4840
4887
|
});
|
|
4841
4888
|
case b.RecordedTask:
|
|
4842
|
-
return
|
|
4843
|
-
...
|
|
4889
|
+
return H(Ti, {
|
|
4890
|
+
...j,
|
|
4844
4891
|
...T,
|
|
4845
|
-
key:
|
|
4892
|
+
key: C
|
|
4846
4893
|
});
|
|
4847
4894
|
case b.TextUrlPrompt:
|
|
4848
|
-
return
|
|
4849
|
-
...
|
|
4895
|
+
return H(Ri, {
|
|
4896
|
+
...j,
|
|
4850
4897
|
...T,
|
|
4851
|
-
key:
|
|
4898
|
+
key: C
|
|
4852
4899
|
});
|
|
4853
4900
|
case b.Thanks:
|
|
4854
|
-
return
|
|
4855
|
-
...
|
|
4901
|
+
return H(Ii, {
|
|
4902
|
+
...j,
|
|
4856
4903
|
...T,
|
|
4857
|
-
key:
|
|
4904
|
+
key: C
|
|
4858
4905
|
});
|
|
4859
4906
|
case b.Uploading:
|
|
4860
|
-
return
|
|
4861
|
-
...
|
|
4907
|
+
return H(Yi, {
|
|
4908
|
+
...j,
|
|
4862
4909
|
...T,
|
|
4863
|
-
key:
|
|
4910
|
+
key: C
|
|
4864
4911
|
});
|
|
4865
4912
|
case b.VideoVoice:
|
|
4866
|
-
return
|
|
4867
|
-
...
|
|
4913
|
+
return H(Zi, {
|
|
4914
|
+
...j,
|
|
4868
4915
|
...T,
|
|
4869
|
-
key:
|
|
4916
|
+
key: C
|
|
4870
4917
|
});
|
|
4871
4918
|
default:
|
|
4872
4919
|
return null;
|
|
4873
4920
|
}
|
|
4874
|
-
}, Q = (
|
|
4875
|
-
var
|
|
4876
|
-
const ne = window.sprigAPI,
|
|
4877
|
-
if (!ne || !
|
|
4921
|
+
}, Q = (j) => {
|
|
4922
|
+
var Ut;
|
|
4923
|
+
const ne = window.sprigAPI, ge = j.target;
|
|
4924
|
+
if (!ne || !ge)
|
|
4878
4925
|
return;
|
|
4879
|
-
const nt = [
|
|
4926
|
+
const nt = [ge, ge.parentElement];
|
|
4880
4927
|
for (const Ue of nt)
|
|
4881
|
-
if (((
|
|
4882
|
-
|
|
4928
|
+
if (((Ut = Ue == null ? void 0 : Ue.tagName) == null ? void 0 : Ut.toLowerCase()) === "a") {
|
|
4929
|
+
j.preventDefault(), ne == null || ne.openUrl(Ue.href);
|
|
4883
4930
|
return;
|
|
4884
4931
|
}
|
|
4885
4932
|
};
|
|
@@ -4888,7 +4935,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4888
4935
|
dir: "auto",
|
|
4889
4936
|
id: ke,
|
|
4890
4937
|
onClick: Q,
|
|
4891
|
-
ref:
|
|
4938
|
+
ref: _,
|
|
4892
4939
|
style: {
|
|
4893
4940
|
"--theme": t,
|
|
4894
4941
|
...d ? {
|
|
@@ -4898,15 +4945,15 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4898
4945
|
children: u("div", {
|
|
4899
4946
|
className: "ul-app__container",
|
|
4900
4947
|
children: u("div", {
|
|
4901
|
-
className: M(
|
|
4902
|
-
style:
|
|
4903
|
-
children: [
|
|
4904
|
-
className: M(
|
|
4948
|
+
className: M(B(E.CardContainer, f)),
|
|
4949
|
+
style: L(),
|
|
4950
|
+
children: [D() && u("div", {
|
|
4951
|
+
className: M(B(E.CloseContainer, f)),
|
|
4905
4952
|
children: u("div", {
|
|
4906
4953
|
"aria-label": "Close button",
|
|
4907
4954
|
className: E.CloseButton,
|
|
4908
|
-
onClick:
|
|
4909
|
-
onKeyPress:
|
|
4955
|
+
onClick: I,
|
|
4956
|
+
onKeyPress: v,
|
|
4910
4957
|
role: "button",
|
|
4911
4958
|
tabIndex: 0,
|
|
4912
4959
|
children: u("svg", {
|
|
@@ -4921,7 +4968,7 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4921
4968
|
})
|
|
4922
4969
|
})
|
|
4923
4970
|
})
|
|
4924
|
-
}),
|
|
4971
|
+
}), m && u("div", {
|
|
4925
4972
|
className: "ul-header__container",
|
|
4926
4973
|
dir: "ltr",
|
|
4927
4974
|
children: u("div", {
|
|
@@ -4929,13 +4976,13 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4929
4976
|
children: "For development purposes only"
|
|
4930
4977
|
})
|
|
4931
4978
|
}), u("div", {
|
|
4932
|
-
className: M(
|
|
4933
|
-
children:
|
|
4934
|
-
}), u(
|
|
4979
|
+
className: M(Ko(E.CardMainContent, k)),
|
|
4980
|
+
children: N()
|
|
4981
|
+
}), u(Qi, {})]
|
|
4935
4982
|
})
|
|
4936
4983
|
})
|
|
4937
4984
|
});
|
|
4938
|
-
}, Ki = 'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:start;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:#fff}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(93px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;max-width:var(--maxWidth);overflow:auto}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{min-width:min-content;padding-right:20px}.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}', Ji = async (e, t) => {
|
|
4985
|
+
}, 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) => {
|
|
4939
4986
|
var o;
|
|
4940
4987
|
const n = await fetch(t, {
|
|
4941
4988
|
method: "POST",
|
|
@@ -4950,33 +4997,33 @@ const he = async ({ event: e, apiBase: t, headers: n, visitorId: o, envId: r, me
|
|
|
4950
4997
|
return (o = r == null ? void 0 : r.upload) == null ? void 0 : o.url;
|
|
4951
4998
|
} else
|
|
4952
4999
|
return null;
|
|
4953
|
-
},
|
|
5000
|
+
}, Fo = () => MediaRecorder.isTypeSupported(
|
|
4954
5001
|
"video/webm"
|
|
4955
5002
|
/* Webm */
|
|
4956
|
-
) ? "video/webm" : "video/mp4",
|
|
5003
|
+
) ? "video/webm" : "video/mp4", yn = (e) => {
|
|
4957
5004
|
const t = {
|
|
4958
5005
|
audioBitsPerSecond: 128e3,
|
|
4959
5006
|
//standard setting based on documentation's example
|
|
4960
5007
|
videoBitsPerSecond: 25e5,
|
|
4961
|
-
mimeType:
|
|
5008
|
+
mimeType: Fo()
|
|
4962
5009
|
};
|
|
4963
5010
|
return new MediaRecorder(e, t);
|
|
4964
|
-
},
|
|
5011
|
+
}, Cn = (e, t, n) => {
|
|
4965
5012
|
n[t] = [], e.ondataavailable = function(o) {
|
|
4966
5013
|
n[t].push(o.data);
|
|
4967
5014
|
}, e.currentMediaRecordingUid = t, e.start();
|
|
4968
5015
|
};
|
|
4969
|
-
function
|
|
5016
|
+
function kn(e, t, n, o, r, i) {
|
|
4970
5017
|
if (e && e.state !== "inactive") {
|
|
4971
5018
|
const {
|
|
4972
5019
|
[U.BeginCallback]: s
|
|
4973
5020
|
} = o, a = e.currentMediaRecordingUid;
|
|
4974
5021
|
if (!a)
|
|
4975
5022
|
return;
|
|
4976
|
-
s && s(a), e.onstop = () =>
|
|
5023
|
+
s && s(a), e.onstop = () => es(t, e, n, o, a, r, i), e.stop();
|
|
4977
5024
|
}
|
|
4978
5025
|
}
|
|
4979
|
-
async function
|
|
5026
|
+
async function es(e, t, n, o, r, i, s) {
|
|
4980
5027
|
const a = $.getState().viewDocument, {
|
|
4981
5028
|
[U.UploadCallback]: d,
|
|
4982
5029
|
[U.ProgressCallback]: l
|
|
@@ -4985,38 +5032,38 @@ async function Xi(e, t, n, o, r, i, s) {
|
|
|
4985
5032
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4986
5033
|
mediaRecordingUid: r,
|
|
4987
5034
|
...o[U.PassthroughData]
|
|
4988
|
-
}, c = await
|
|
5035
|
+
}, c = await Xi(p, e);
|
|
4989
5036
|
if (!c) {
|
|
4990
5037
|
d && d(null, {
|
|
4991
5038
|
message: "failed to get upload url"
|
|
4992
5039
|
});
|
|
4993
5040
|
return;
|
|
4994
5041
|
}
|
|
4995
|
-
const
|
|
4996
|
-
type:
|
|
5042
|
+
const m = new Blob(s, {
|
|
5043
|
+
type: Fo()
|
|
4997
5044
|
});
|
|
4998
5045
|
if (!a.defaultView)
|
|
4999
5046
|
return;
|
|
5000
|
-
const
|
|
5047
|
+
const h = new a.defaultView.File([m], `recording video ${Date.now()}`), g = i.createUpload({
|
|
5001
5048
|
// endpoint computed from backend separately and hacked together
|
|
5002
5049
|
endpoint: c,
|
|
5003
|
-
file:
|
|
5050
|
+
file: h,
|
|
5004
5051
|
chunkSize: 5120
|
|
5005
5052
|
// Uploads the file in ~5mb chunks
|
|
5006
5053
|
});
|
|
5007
|
-
|
|
5008
|
-
d && d(null,
|
|
5009
|
-
}),
|
|
5010
|
-
l && l(r,
|
|
5011
|
-
}),
|
|
5054
|
+
g.on("error", (f) => {
|
|
5055
|
+
d && d(null, f);
|
|
5056
|
+
}), g.on("progress", (f) => {
|
|
5057
|
+
l && l(r, f);
|
|
5058
|
+
}), g.on("success", () => {
|
|
5012
5059
|
d && d(r, !0);
|
|
5013
5060
|
});
|
|
5014
5061
|
}
|
|
5015
|
-
const
|
|
5062
|
+
const ts = {
|
|
5016
5063
|
chunks: {}
|
|
5017
|
-
},
|
|
5064
|
+
}, ns = {
|
|
5018
5065
|
state: {
|
|
5019
|
-
...
|
|
5066
|
+
...ts
|
|
5020
5067
|
},
|
|
5021
5068
|
stopRecording(e) {
|
|
5022
5069
|
const {
|
|
@@ -5025,7 +5072,7 @@ const es = {
|
|
|
5025
5072
|
screenRecorder: o,
|
|
5026
5073
|
UpChunk: r
|
|
5027
5074
|
} = this.state, i = this.state.avStream && this.state.avStream.getVideoTracks().length > 0 ? re.Video : re.Audio;
|
|
5028
|
-
this.state.chunks && t && r && (n != null && n.currentMediaRecordingUid &&
|
|
5075
|
+
this.state.chunks && t && r && (n != null && n.currentMediaRecordingUid && kn(n, t, i, e, r, this.state.chunks[n == null ? void 0 : n.currentMediaRecordingUid]), o != null && o.currentMediaRecordingUid && kn(o, t, re.Screen, e, r, this.state.chunks[o == null ? void 0 : o.currentMediaRecordingUid]));
|
|
5029
5076
|
},
|
|
5030
5077
|
handleCancelledStream(e) {
|
|
5031
5078
|
const t = e.getVideoTracks(), n = e.getAudioTracks();
|
|
@@ -5103,14 +5150,14 @@ const es = {
|
|
|
5103
5150
|
return;
|
|
5104
5151
|
const o = [];
|
|
5105
5152
|
if (t.includes(re.Video) && this.state.avStream) {
|
|
5106
|
-
this.state.avRecorder =
|
|
5107
|
-
const r =
|
|
5108
|
-
|
|
5153
|
+
this.state.avRecorder = yn(this.state.avStream);
|
|
5154
|
+
const r = mt();
|
|
5155
|
+
Cn(this.state.avRecorder, r, this.state.chunks), o.push(r);
|
|
5109
5156
|
}
|
|
5110
5157
|
if (t.includes(re.Screen) && this.state.captureStream) {
|
|
5111
|
-
this.state.screenRecorder =
|
|
5112
|
-
const r =
|
|
5113
|
-
|
|
5158
|
+
this.state.screenRecorder = yn(this.state.captureStream);
|
|
5159
|
+
const r = mt();
|
|
5160
|
+
Cn(this.state.screenRecorder, r, this.state.chunks), o.push(r);
|
|
5114
5161
|
}
|
|
5115
5162
|
o && n && n(o);
|
|
5116
5163
|
},
|
|
@@ -5138,7 +5185,7 @@ const es = {
|
|
|
5138
5185
|
screenRecorder: i
|
|
5139
5186
|
} = this.state, {
|
|
5140
5187
|
allResponses: s
|
|
5141
|
-
} = $.getState(), a =
|
|
5188
|
+
} = $.getState(), a = wo({
|
|
5142
5189
|
cards: n,
|
|
5143
5190
|
index: e,
|
|
5144
5191
|
hasEndCard: o,
|
|
@@ -5150,9 +5197,9 @@ const es = {
|
|
|
5150
5197
|
}));
|
|
5151
5198
|
});
|
|
5152
5199
|
}
|
|
5153
|
-
}, qe = Object.create(
|
|
5200
|
+
}, qe = Object.create(ns);
|
|
5154
5201
|
Object.freeze(qe);
|
|
5155
|
-
const
|
|
5202
|
+
const os = (e, t) => {
|
|
5156
5203
|
const n = [...e], o = /* @__PURE__ */ new Set([b.VideoVoice, b.RecordedTask]);
|
|
5157
5204
|
return e.some((r) => o.has(r.type)) && n.push({
|
|
5158
5205
|
name: -2,
|
|
@@ -5167,7 +5214,7 @@ const ns = (e, t) => {
|
|
|
5167
5214
|
},
|
|
5168
5215
|
type: b.Thanks
|
|
5169
5216
|
}), n;
|
|
5170
|
-
},
|
|
5217
|
+
}, rs = ({
|
|
5171
5218
|
mode: e = null,
|
|
5172
5219
|
viewWindow: t,
|
|
5173
5220
|
viewDocument: n
|
|
@@ -5189,8 +5236,8 @@ const ns = (e, t) => {
|
|
|
5189
5236
|
l: t.navigator.language
|
|
5190
5237
|
};
|
|
5191
5238
|
};
|
|
5192
|
-
function
|
|
5193
|
-
var
|
|
5239
|
+
function is(e, t = !0) {
|
|
5240
|
+
var w;
|
|
5194
5241
|
const {
|
|
5195
5242
|
answers: n,
|
|
5196
5243
|
apiURL: o,
|
|
@@ -5202,18 +5249,18 @@ function rs(e, t = !0) {
|
|
|
5202
5249
|
previewKey: l,
|
|
5203
5250
|
viewDocument: p,
|
|
5204
5251
|
viewWindow: c
|
|
5205
|
-
} = e,
|
|
5206
|
-
qe.configure(
|
|
5207
|
-
cards:
|
|
5252
|
+
} = e, m = We(e.headers) ? e.frame : p.body, h = e.UpChunk || window.UpChunk, g = $e, f = os(e.cards, !!i);
|
|
5253
|
+
qe.configure(g, {
|
|
5254
|
+
cards: f,
|
|
5208
5255
|
hasEndCard: !!i,
|
|
5209
5256
|
apiURL: o,
|
|
5210
|
-
UpChunk:
|
|
5257
|
+
UpChunk: h
|
|
5211
5258
|
}), $.setState({
|
|
5212
5259
|
apiURL: o,
|
|
5213
5260
|
answers: n,
|
|
5214
5261
|
border: e.border,
|
|
5215
5262
|
index: e.startingQuestionIdx || 0,
|
|
5216
|
-
cards:
|
|
5263
|
+
cards: f,
|
|
5217
5264
|
configureExitOnOverlayClick: e.configureExitOnOverlayClick,
|
|
5218
5265
|
customMetadata: e.customMetadata,
|
|
5219
5266
|
endCard: e.endCard,
|
|
@@ -5226,7 +5273,7 @@ function rs(e, t = !0) {
|
|
|
5226
5273
|
hasViewedEmbed: !1,
|
|
5227
5274
|
isPreview: e.isPreview,
|
|
5228
5275
|
marketingUrl: "https://sprig.com",
|
|
5229
|
-
meta:
|
|
5276
|
+
meta: rs({
|
|
5230
5277
|
mode: e.mode,
|
|
5231
5278
|
viewWindow: c,
|
|
5232
5279
|
viewDocument: p
|
|
@@ -5234,7 +5281,7 @@ function rs(e, t = !0) {
|
|
|
5234
5281
|
mode: e.mode,
|
|
5235
5282
|
previewKey: l,
|
|
5236
5283
|
recorder: qe,
|
|
5237
|
-
recorderEventEmitter:
|
|
5284
|
+
recorderEventEmitter: g,
|
|
5238
5285
|
responseGroupUid: e.responseGroupUid,
|
|
5239
5286
|
showStripes: e.showStripes,
|
|
5240
5287
|
showSurveyBrand: e.showSurveyBrand,
|
|
@@ -5256,30 +5303,30 @@ function rs(e, t = !0) {
|
|
|
5256
5303
|
} = $.getState();
|
|
5257
5304
|
x();
|
|
5258
5305
|
const {
|
|
5259
|
-
head:
|
|
5260
|
-
} = p,
|
|
5261
|
-
if (
|
|
5262
|
-
const
|
|
5263
|
-
|
|
5306
|
+
head: _
|
|
5307
|
+
} = p, y = p.createElement("style");
|
|
5308
|
+
if (y.id = "sprig-style", y.textContent = Ji, y.nonce = e.styleNonce, _.appendChild(y), e.fontFamily && a && parent) {
|
|
5309
|
+
const C = p.createElement("link");
|
|
5310
|
+
C.rel = "stylesheet", C.href = a, _.appendChild(C);
|
|
5264
5311
|
}
|
|
5265
|
-
if (e.customStyles &&
|
|
5266
|
-
if (e.installationMethod !==
|
|
5267
|
-
const
|
|
5268
|
-
|
|
5312
|
+
if (e.customStyles && er(p, r, e.styleNonce), !h)
|
|
5313
|
+
if (e.installationMethod !== wn.Npm) {
|
|
5314
|
+
const C = p.createElement("script");
|
|
5315
|
+
C.src = "https://cdn.sprig.com/userleap-web-upchunk-v2.2.2.js", C.onload = () => {
|
|
5269
5316
|
qe.setUpChunk(c.UpChunk);
|
|
5270
|
-
},
|
|
5317
|
+
}, C.onerror = () => {
|
|
5271
5318
|
console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure");
|
|
5272
|
-
},
|
|
5319
|
+
}, _.appendChild(C);
|
|
5273
5320
|
} else
|
|
5274
5321
|
console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");
|
|
5275
|
-
const k = "2.26.
|
|
5322
|
+
const k = "2.26.4", T = s || ((w = d.eventEmitter) == null ? void 0 : w.emit);
|
|
5276
5323
|
T == null || T(ce.VerifyViewVersion, {
|
|
5277
5324
|
[Re.ViewVersion]: k
|
|
5278
|
-
}),
|
|
5325
|
+
}), m && t && Ee(u(Ki, {}), m);
|
|
5279
5326
|
}
|
|
5280
|
-
const
|
|
5281
|
-
configure:
|
|
5327
|
+
const as = {
|
|
5328
|
+
configure: is
|
|
5282
5329
|
};
|
|
5283
5330
|
export {
|
|
5284
|
-
|
|
5331
|
+
as as default
|
|
5285
5332
|
};
|