@sprig-technologies/sprig-browser 2.26.2 → 2.26.4

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