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