@sprig-technologies/sprig-bundled 1.1.6 → 1.1.7

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,4 +1,4 @@
1
- import { b as _n, C as bt, D as vt, A as he, e as Me, s as qe, S as X, a as Qe, c as gn, d as bn, i as vn, E as yn, f as ve, g as at, r as xn, v as yt, h as xt } from "./index-_6NzDQiF.js";
1
+ import { b as _n, C as vt, D as bt, A as he, e as Me, s as He, S as K, a as Qe, c as gn, d as vn, i as bn, E as yn, f as be, g as at, r as xn, v as yt, h as xt } from "./index-DvS_ADe1.js";
2
2
  var we, N, or, le, kt, ar, Ye, sr, ke = {}, lr = [], kn = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Oe = Array.isArray;
3
3
  function ne(e, t) {
4
4
  for (var r in t)
@@ -28,7 +28,7 @@ function dr() {
28
28
  function z(e) {
29
29
  return e.children;
30
30
  }
31
- function J(e, t) {
31
+ function X(e, t) {
32
32
  this.props = e, this.context = t;
33
33
  }
34
34
  function me(e, t) {
@@ -60,15 +60,15 @@ function De() {
60
60
  De.__r = 0;
61
61
  }
62
62
  function wt(e, t, r, n, i, o, a, l, d, h, p) {
63
- var c, u, m, f, g, y = n && n.__k || lr, b = t.length;
64
- for (r.__d = d, function(v, E, C) {
63
+ var c, u, m, f, g, y = n && n.__k || lr, v = t.length;
64
+ for (r.__d = d, function(b, E, C) {
65
65
  var k, x, w, I, _, T = E.length, M = C.length, R = M, D = 0;
66
- for (v.__k = [], k = 0; k < T; k++)
67
- (x = v.__k[k] = (x = E[k]) == null || typeof x == "boolean" || typeof x == "function" ? null : typeof x == "string" || typeof x == "number" || typeof x == "bigint" || x.constructor == String ? ye(null, x, null, null, x) : Oe(x) ? ye(z, { children: x }, null, null, null) : x.constructor === void 0 && x.__b > 0 ? ye(x.type, x.props, x.key, x.ref ? x.ref : null, x.__v) : x) != null ? (x.__ = v, x.__b = v.__b + 1, _ = wn(x, C, I = k + D, R), x.__i = _, w = null, _ !== -1 && (R--, (w = C[_]) && (w.__u |= 131072)), w == null || w.__v === null ? (_ == -1 && D--, typeof x.type != "function" && (x.__u |= 65536)) : _ !== I && (_ === I + 1 ? D++ : _ > I ? R > T - I ? D += _ - I : D-- : D = _ < I && _ == I - 1 ? _ - I : 0, _ !== k + D && (x.__u |= 65536))) : (w = C[k]) && w.key == null && w.__e && (w.__e == v.__d && (v.__d = me(w)), Xe(w, w, !1), C[k] = null, R--);
66
+ for (b.__k = [], k = 0; k < T; k++)
67
+ (x = b.__k[k] = (x = E[k]) == null || typeof x == "boolean" || typeof x == "function" ? null : typeof x == "string" || typeof x == "number" || typeof x == "bigint" || x.constructor == String ? ye(null, x, null, null, x) : Oe(x) ? ye(z, { children: x }, null, null, null) : x.constructor === void 0 && x.__b > 0 ? ye(x.type, x.props, x.key, x.ref ? x.ref : null, x.__v) : x) != null ? (x.__ = b, x.__b = b.__b + 1, _ = wn(x, C, I = k + D, R), x.__i = _, w = null, _ !== -1 && (R--, (w = C[_]) && (w.__u |= 131072)), w == null || w.__v === null ? (_ == -1 && D--, typeof x.type != "function" && (x.__u |= 65536)) : _ !== I && (_ === I + 1 ? D++ : _ > I ? R > T - I ? D += _ - I : D-- : D = _ < I && _ == I - 1 ? _ - I : 0, _ !== k + D && (x.__u |= 65536))) : (w = C[k]) && w.key == null && w.__e && (w.__e == b.__d && (b.__d = me(w)), Xe(w, w, !1), C[k] = null, R--);
68
68
  if (R)
69
69
  for (k = 0; k < M; k++)
70
- (w = C[k]) != null && !(131072 & w.__u) && (w.__e == v.__d && (v.__d = me(w)), Xe(w, w));
71
- }(r, t, y), d = r.__d, c = 0; c < b; c++)
70
+ (w = C[k]) != null && !(131072 & w.__u) && (w.__e == b.__d && (b.__d = me(w)), Xe(w, w));
71
+ }(r, t, y), d = r.__d, c = 0; c < v; c++)
72
72
  (m = r.__k[c]) != null && typeof m != "boolean" && typeof m != "function" && (u = m.__i === -1 ? ke : y[m.__i] || ke, m.__i = c, st(e, m, u, i, o, a, l, d, h, p), f = m.__e, m.ref && u.ref != m.ref && (u.ref && lt(u.ref, null, m), p.push(m.ref, m.__c || f, m)), g == null && f != null && (g = f), 65536 & m.__u || u.__k === m.__k ? d = pr(m, d, e) : typeof m.type == "function" && m.__d !== void 0 ? d = m.__d : f && (d = f.nextSibling), m.__d = void 0, m.__u &= -196609);
73
73
  r.__d = d, r.__e = g;
74
74
  }
@@ -149,29 +149,29 @@ function Tt(e) {
149
149
  return this.l[e.type + !0](N.event ? N.event(e) : e);
150
150
  }
151
151
  function st(e, t, r, n, i, o, a, l, d, h) {
152
- var p, c, u, m, f, g, y, b, v, E, C, k, x, w, I, _ = t.type;
152
+ var p, c, u, m, f, g, y, v, b, E, C, k, x, w, I, _ = t.type;
153
153
  if (t.constructor !== void 0)
154
154
  return null;
155
155
  128 & r.__u && (d = !!(32 & r.__u), o = [l = t.__e = r.__e]), (p = N.__b) && p(t);
156
156
  e:
157
157
  if (typeof _ == "function")
158
158
  try {
159
- if (b = t.props, v = (p = _.contextType) && n[p.__c], E = p ? v ? v.props.value : p.__ : n, r.__c ? y = (c = t.__c = r.__c).__ = c.__E : ("prototype" in _ && _.prototype.render ? t.__c = c = new _(b, E) : (t.__c = c = new J(b, E), c.constructor = _, c.render = Cn), v && v.sub(c), c.props = b, c.state || (c.state = {}), c.context = E, c.__n = n, u = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), _.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ne({}, c.__s)), ne(c.__s, _.getDerivedStateFromProps(b, c.__s))), m = c.props, f = c.state, c.__v = t, u)
159
+ if (v = t.props, b = (p = _.contextType) && n[p.__c], E = p ? b ? b.props.value : p.__ : n, r.__c ? y = (c = t.__c = r.__c).__ = c.__E : ("prototype" in _ && _.prototype.render ? t.__c = c = new _(v, E) : (t.__c = c = new X(v, E), c.constructor = _, c.render = Cn), b && b.sub(c), c.props = v, c.state || (c.state = {}), c.context = E, c.__n = n, u = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), _.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = ne({}, c.__s)), ne(c.__s, _.getDerivedStateFromProps(v, c.__s))), m = c.props, f = c.state, c.__v = t, u)
160
160
  _.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
161
161
  else {
162
- if (_.getDerivedStateFromProps == null && b !== m && c.componentWillReceiveProps != null && c.componentWillReceiveProps(b, E), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(b, c.__s, E) === !1 || t.__v === r.__v)) {
163
- for (t.__v !== r.__v && (c.props = b, c.state = c.__s, c.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.forEach(function(T) {
162
+ if (_.getDerivedStateFromProps == null && v !== m && c.componentWillReceiveProps != null && c.componentWillReceiveProps(v, E), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(v, c.__s, E) === !1 || t.__v === r.__v)) {
163
+ for (t.__v !== r.__v && (c.props = v, c.state = c.__s, c.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.forEach(function(T) {
164
164
  T && (T.__ = t);
165
165
  }), C = 0; C < c._sb.length; C++)
166
166
  c.__h.push(c._sb[C]);
167
167
  c._sb = [], c.__h.length && a.push(c);
168
168
  break e;
169
169
  }
170
- c.componentWillUpdate != null && c.componentWillUpdate(b, c.__s, E), c.componentDidUpdate != null && c.__h.push(function() {
170
+ c.componentWillUpdate != null && c.componentWillUpdate(v, c.__s, E), c.componentDidUpdate != null && c.__h.push(function() {
171
171
  c.componentDidUpdate(m, f, g);
172
172
  });
173
173
  }
174
- if (c.context = E, c.props = b, c.__P = e, c.__e = !1, k = N.__r, x = 0, "prototype" in _ && _.prototype.render) {
174
+ if (c.context = E, c.props = v, c.__P = e, c.__e = !1, k = N.__r, x = 0, "prototype" in _ && _.prototype.render) {
175
175
  for (c.state = c.__s, c.__d = !1, k && k(t), p = c.render(c.props, c.state, c.context), w = 0; w < c._sb.length; w++)
176
176
  c.__h.push(c._sb[w]);
177
177
  c._sb = [];
@@ -184,36 +184,36 @@ function st(e, t, r, n, i, o, a, l, d, h) {
184
184
  t.__v = null, d || o != null ? (t.__e = l, t.__u |= d ? 160 : 32, o[o.indexOf(l)] = null) : (t.__e = r.__e, t.__k = r.__k), N.__e(T, t, r);
185
185
  }
186
186
  else
187
- o == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = function(T, M, R, D, S, H, A, j, W) {
188
- var P, Z, Ne, Ee, B, ue, Ie, Q = R.props, re = M.props, Y = M.type;
189
- if (Y === "svg" && (S = !0), H != null) {
190
- for (P = 0; P < H.length; P++)
191
- if ((B = H[P]) && "setAttribute" in B == !!Y && (Y ? B.localName === Y : B.nodeType === 3)) {
192
- T = B, H[P] = null;
187
+ o == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = function(T, M, R, D, S, q, A, j, W) {
188
+ var P, Z, Ne, Ee, B, ue, Ie, Y = R.props, re = M.props, J = M.type;
189
+ if (J === "svg" && (S = !0), q != null) {
190
+ for (P = 0; P < q.length; P++)
191
+ if ((B = q[P]) && "setAttribute" in B == !!J && (J ? B.localName === J : B.nodeType === 3)) {
192
+ T = B, q[P] = null;
193
193
  break;
194
194
  }
195
195
  }
196
196
  if (T == null) {
197
- if (Y === null)
197
+ if (J === null)
198
198
  return document.createTextNode(re);
199
- T = S ? document.createElementNS("http://www.w3.org/2000/svg", Y) : document.createElement(Y, re.is && re), H = null, j = !1;
199
+ T = S ? document.createElementNS("http://www.w3.org/2000/svg", J) : document.createElement(J, re.is && re), q = null, j = !1;
200
200
  }
201
- if (Y === null)
202
- Q === re || j && T.data === re || (T.data = re);
201
+ if (J === null)
202
+ Y === re || j && T.data === re || (T.data = re);
203
203
  else {
204
- if (H = H && we.call(T.childNodes), Q = R.props || ke, !j && H != null)
205
- for (Q = {}, P = 0; P < T.attributes.length; P++)
206
- Q[(B = T.attributes[P]).name] = B.value;
207
- for (P in Q)
208
- B = Q[P], P == "children" || (P == "dangerouslySetInnerHTML" ? Ne = B : P === "key" || P in re || Pe(T, P, null, B, S));
204
+ if (q = q && we.call(T.childNodes), Y = R.props || ke, !j && q != null)
205
+ for (Y = {}, P = 0; P < T.attributes.length; P++)
206
+ Y[(B = T.attributes[P]).name] = B.value;
207
+ for (P in Y)
208
+ B = Y[P], P == "children" || (P == "dangerouslySetInnerHTML" ? Ne = B : P === "key" || P in re || Pe(T, P, null, B, S));
209
209
  for (P in re)
210
- B = re[P], P == "children" ? Ee = B : P == "dangerouslySetInnerHTML" ? Z = B : P == "value" ? ue = B : P == "checked" ? Ie = B : P === "key" || j && typeof B != "function" || Q[P] === B || Pe(T, P, B, Q[P], S);
210
+ B = re[P], P == "children" ? Ee = B : P == "dangerouslySetInnerHTML" ? Z = B : P == "value" ? ue = B : P == "checked" ? Ie = B : P === "key" || j && typeof B != "function" || Y[P] === B || Pe(T, P, B, Y[P], S);
211
211
  if (Z)
212
212
  j || Ne && (Z.__html === Ne.__html || Z.__html === T.innerHTML) || (T.innerHTML = Z.__html), M.__k = [];
213
- else if (Ne && (T.innerHTML = ""), wt(T, Oe(Ee) ? Ee : [Ee], M, R, D, S && Y !== "foreignObject", H, A, H ? H[0] : R.__k && me(R, 0), j, W), H != null)
214
- for (P = H.length; P--; )
215
- H[P] != null && cr(H[P]);
216
- j || (P = "value", ue !== void 0 && (ue !== T[P] || Y === "progress" && !ue || Y === "option" && ue !== Q[P]) && Pe(T, P, ue, Q[P], !1), P = "checked", Ie !== void 0 && Ie !== T[P] && Pe(T, P, Ie, Q[P], !1));
213
+ else if (Ne && (T.innerHTML = ""), wt(T, Oe(Ee) ? Ee : [Ee], M, R, D, S && J !== "foreignObject", q, A, q ? q[0] : R.__k && me(R, 0), j, W), q != null)
214
+ for (P = q.length; P--; )
215
+ q[P] != null && cr(q[P]);
216
+ j || (P = "value", ue !== void 0 && (ue !== T[P] || J === "progress" && !ue || J === "option" && ue !== Y[P]) && Pe(T, P, ue, Y[P], !1), P = "checked", Ie !== void 0 && Ie !== T[P] && Pe(T, P, Ie, Y[P], !1));
217
217
  }
218
218
  return T;
219
219
  }(r.__e, t, r, n, i, o, a, d, h);
@@ -303,12 +303,12 @@ we = lr.slice, N = { __e: function(e, t, r, n) {
303
303
  e = l;
304
304
  }
305
305
  throw e;
306
- } }, or = 0, J.prototype.setState = function(e, t) {
306
+ } }, or = 0, X.prototype.setState = function(e, t) {
307
307
  var r;
308
308
  r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ne({}, this.state), typeof e == "function" && (e = e(ne({}, r), this.props)), e && ne(r, e), e != null && this.__v && (t && this._sb.push(t), Je(this));
309
- }, J.prototype.forceUpdate = function(e) {
309
+ }, X.prototype.forceUpdate = function(e) {
310
310
  this.__v && (this.__e = !0, e && this.__h.push(e), Je(this));
311
- }, J.prototype.render = z, le = [], ar = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ye = function(e, t) {
311
+ }, X.prototype.render = z, le = [], ar = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ye = function(e, t) {
312
312
  return e.__v.__b - t.__v.__b;
313
313
  }, De.__r = 0, sr = 0;
314
314
  var oe, O, Fe, Nt, _e = 0, _r = [], Re = [], Et = N.__b, It = N.__r, Pt = N.diffed, Mt = N.__c, Rt = N.unmount;
@@ -364,7 +364,7 @@ function Ce(e, t) {
364
364
  var r = ce(oe++, 4);
365
365
  !N.__s && ut(r.__H, t) && (r.__ = e, r.i = t, O.__h.push(r));
366
366
  }
367
- function K(e) {
367
+ function Q(e) {
368
368
  return _e = 5, Se(function() {
369
369
  return { current: e };
370
370
  }, []);
@@ -387,14 +387,14 @@ function Ue(e, t) {
387
387
  return e;
388
388
  }, t);
389
389
  }
390
- function br(e) {
390
+ function vr(e) {
391
391
  var t = O.context[e.__c], r = ce(oe++, 9);
392
392
  return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(O)), t.props.value) : e.__;
393
393
  }
394
394
  function dt(e, t) {
395
395
  N.useDebugValue && N.useDebugValue(t ? t(e) : e);
396
396
  }
397
- function vr() {
397
+ function br() {
398
398
  var e = ce(oe++, 11);
399
399
  if (!e.__) {
400
400
  for (var t = O.__v; t !== null && !t.__m && t.__ !== null; )
@@ -500,12 +500,12 @@ function kr(e, t) {
500
500
  }
501
501
  return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
502
502
  }
503
- (Ae.prototype = new J()).isPureReactComponent = !0, Ae.prototype.shouldComponentUpdate = function(e, t) {
503
+ (Ae.prototype = new X()).isPureReactComponent = !0, Ae.prototype.shouldComponentUpdate = function(e, t) {
504
504
  return tt(this.props, e) || tt(this.state, t);
505
505
  };
506
- var Ht = N.__b;
506
+ var qt = N.__b;
507
507
  N.__b = function(e) {
508
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), Ht && Ht(e);
508
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), qt && qt(e);
509
509
  };
510
510
  var En = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
511
511
  function pt(e) {
@@ -515,9 +515,9 @@ function pt(e) {
515
515
  }
516
516
  return t.$$typeof = En, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
517
517
  }
518
- var qt = function(e, t) {
518
+ var Ht = function(e, t) {
519
519
  return e == null ? null : ie(ie(e).map(t));
520
- }, wr = { map: qt, forEach: qt, count: function(e) {
520
+ }, wr = { map: Ht, forEach: Ht, count: function(e) {
521
521
  return e ? ie(e).length : 0;
522
522
  }, only: function(e) {
523
523
  var t = ie(e);
@@ -574,7 +574,7 @@ function pe() {
574
574
  N.unmount = function(e) {
575
575
  var t = e.__c;
576
576
  t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Ot && Ot(e);
577
- }, (xe.prototype = new J()).__c = function(e, t) {
577
+ }, (xe.prototype = new X()).__c = function(e, t) {
578
578
  var r = t.__c, n = this;
579
579
  n.t == null && (n.t = []), n.t.push(r);
580
580
  var i = Tr(n.__v), o = !1, a = function() {
@@ -637,7 +637,7 @@ function Er(e, t) {
637
637
  var r = U(Mn, { __v: e, i: t });
638
638
  return r.containerInfo = t, r;
639
639
  }
640
- (pe.prototype = new J()).__a = function(e) {
640
+ (pe.prototype = new X()).__a = function(e) {
641
641
  var t = this, r = Tr(t.__v), n = t.o.get(e);
642
642
  return n[0]++, function(i) {
643
643
  var o = function() {
@@ -658,7 +658,7 @@ function Er(e, t) {
658
658
  Dt(e, r, t);
659
659
  });
660
660
  };
661
- var Ir = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Rn = /^(?: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]/, Ln = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Hn = /[A-Z0-9]/g, qn = typeof document < "u", On = function(e) {
661
+ var Ir = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Rn = /^(?: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]/, Ln = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, qn = /[A-Z0-9]/g, Hn = typeof document < "u", On = function(e) {
662
662
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
663
663
  };
664
664
  function Pr(e, t, r) {
@@ -667,8 +667,8 @@ function Pr(e, t, r) {
667
667
  function Mr(e, t, r) {
668
668
  return mr(e, t), typeof r == "function" && r(), e ? e.__c : null;
669
669
  }
670
- J.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
671
- Object.defineProperty(J.prototype, e, { configurable: !0, get: function() {
670
+ X.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
671
+ Object.defineProperty(X.prototype, e, { configurable: !0, get: function() {
672
672
  return this["UNSAFE_" + e];
673
673
  }, set: function(t) {
674
674
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
@@ -694,9 +694,9 @@ N.vnode = function(e) {
694
694
  var r = t.props, n = t.type, i = {};
695
695
  for (var o in r) {
696
696
  var a = r[o];
697
- if (!(o === "value" && "defaultValue" in r && a == null || qn && o === "children" && n === "noscript" || o === "class" || o === "className")) {
697
+ if (!(o === "value" && "defaultValue" in r && a == null || Hn && o === "children" && n === "noscript" || o === "class" || o === "className")) {
698
698
  var l = o.toLowerCase();
699
- o === "defaultValue" && "value" in r && r.value == null ? o = "value" : o === "download" && a === !0 ? a = "" : l === "ondoubleclick" ? o = "ondblclick" : l !== "onchange" || n !== "input" && n !== "textarea" || On(r.type) ? l === "onfocus" ? o = "onfocusin" : l === "onblur" ? o = "onfocusout" : Ln.test(o) ? o = l : n.indexOf("-") === -1 && Rn.test(o) ? o = o.replace(Hn, "-$&").toLowerCase() : a === null && (a = void 0) : l = o = "oninput", l === "oninput" && i[o = l] && (o = "oninputCapture"), i[o] = a;
699
+ o === "defaultValue" && "value" in r && r.value == null ? o = "value" : o === "download" && a === !0 ? a = "" : l === "ondoubleclick" ? o = "ondblclick" : l !== "onchange" || n !== "input" && n !== "textarea" || On(r.type) ? l === "onfocus" ? o = "onfocusin" : l === "onblur" ? o = "onfocusout" : Ln.test(o) ? o = l : n.indexOf("-") === -1 && Rn.test(o) ? o = o.replace(qn, "-$&").toLowerCase() : a === null && (a = void 0) : l = o = "oninput", l === "oninput" && i[o = l] && (o = "oninputCapture"), i[o] = a;
700
700
  }
701
701
  }
702
702
  n == "select" && i.multiple && Array.isArray(i.value) && (i.value = ie(r.children).forEach(function(d) {
@@ -725,10 +725,10 @@ function Lr(e) {
725
725
  function Te(e) {
726
726
  return !!e && e.$$typeof === Ir;
727
727
  }
728
- function Hr(e) {
728
+ function qr(e) {
729
729
  return Te(e) && e.type === z;
730
730
  }
731
- function qr(e) {
731
+ function Hr(e) {
732
732
  return Te(e) ? Sn.apply(null, arguments) : e;
733
733
  }
734
734
  function Or(e) {
@@ -771,15 +771,15 @@ function We(e) {
771
771
  return !0;
772
772
  }
773
773
  }
774
- var Vn = { useState: V, useId: vr, useReducer: ct, useEffect: F, useLayoutEffect: Ce, useInsertionEffect: $r, useTransition: Br, useDeferredValue: Vr, useSyncExternalStore: Fr, startTransition: mt, useRef: K, useImperativeHandle: gr, useMemo: Se, useCallback: Ue, useContext: br, useDebugValue: dt, version: "17.0.2", Children: wr, render: Pr, hydrate: Mr, unmountComponentAtNode: Or, createPortal: Er, createElement: U, createContext: fr, createFactory: Lr, cloneElement: qr, createRef: dr, Fragment: z, isValidElement: Te, isElement: zr, isFragment: Hr, findDOMNode: Dr, Component: J, PureComponent: Ae, memo: kr, forwardRef: pt, flushSync: Ar, unstable_batchedUpdates: Ur, StrictMode: jr, Suspense: xe, SuspenseList: pe, lazy: Nr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Rr };
775
- const Bn = Object.freeze(Object.defineProperty({ __proto__: null, Children: wr, Component: J, Fragment: z, PureComponent: Ae, StrictMode: jr, Suspense: xe, SuspenseList: pe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Rr, cloneElement: qr, createContext: fr, createElement: U, createFactory: Lr, createPortal: Er, createRef: dr, default: Vn, findDOMNode: Dr, flushSync: Ar, forwardRef: pt, hydrate: Mr, isElement: zr, isFragment: Hr, isValidElement: Te, lazy: Nr, memo: kr, render: Pr, startTransition: mt, unmountComponentAtNode: Or, unstable_batchedUpdates: Ur, useCallback: Ue, useContext: br, useDebugValue: dt, useDeferredValue: Vr, useEffect: F, useErrorBoundary: function(e) {
774
+ var Vn = { useState: V, useId: br, useReducer: ct, useEffect: F, useLayoutEffect: Ce, useInsertionEffect: $r, useTransition: Br, useDeferredValue: Vr, useSyncExternalStore: Fr, startTransition: mt, useRef: Q, useImperativeHandle: gr, useMemo: Se, useCallback: Ue, useContext: vr, useDebugValue: dt, version: "17.0.2", Children: wr, render: Pr, hydrate: Mr, unmountComponentAtNode: Or, createPortal: Er, createElement: U, createContext: fr, createFactory: Lr, cloneElement: Hr, createRef: dr, Fragment: z, isValidElement: Te, isElement: zr, isFragment: qr, findDOMNode: Dr, Component: X, PureComponent: Ae, memo: kr, forwardRef: pt, flushSync: Ar, unstable_batchedUpdates: Ur, StrictMode: jr, Suspense: xe, SuspenseList: pe, lazy: Nr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Rr };
775
+ const Bn = Object.freeze(Object.defineProperty({ __proto__: null, Children: wr, Component: X, Fragment: z, PureComponent: Ae, StrictMode: jr, Suspense: xe, SuspenseList: pe, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Rr, cloneElement: Hr, createContext: fr, createElement: U, createFactory: Lr, createPortal: Er, createRef: dr, default: Vn, findDOMNode: Dr, flushSync: Ar, forwardRef: pt, hydrate: Mr, isElement: zr, isFragment: qr, isValidElement: Te, lazy: Nr, memo: kr, render: Pr, startTransition: mt, unmountComponentAtNode: Or, unstable_batchedUpdates: Ur, useCallback: Ue, useContext: vr, useDebugValue: dt, useDeferredValue: Vr, useEffect: F, useErrorBoundary: function(e) {
776
776
  var t = ce(oe++, 10), r = V();
777
777
  return t.__ = e, O.componentDidCatch || (O.componentDidCatch = function(n, i) {
778
778
  t.__ && t.__(n, i), r[1](n);
779
779
  }), [r[0], function() {
780
780
  r[1](void 0);
781
781
  }];
782
- }, useId: vr, useImperativeHandle: gr, useInsertionEffect: $r, useLayoutEffect: Ce, useMemo: Se, useReducer: ct, useRef: K, useState: V, useSyncExternalStore: Fr, useTransition: Br, version: "17.0.2" }, Symbol.toStringTag, { value: "Module" })), Bt = (e) => {
782
+ }, useId: br, useImperativeHandle: gr, useInsertionEffect: $r, useLayoutEffect: Ce, useMemo: Se, useReducer: ct, useRef: Q, useState: V, useSyncExternalStore: Fr, useTransition: Br, version: "17.0.2" }, Symbol.toStringTag, { value: "Module" })), Bt = (e) => {
783
783
  let t;
784
784
  const r = /* @__PURE__ */ new Set(), n = (a, l) => {
785
785
  const d = typeof a == "function" ? a(t) : a;
@@ -943,8 +943,8 @@ const ii = $n(Wr.exports), { useSyncExternalStoreWithSelector: oi } = ii, Ft = (
943
943
  continue;
944
944
  let f = Wt({ comparator: m.comparator, response: n[m.questionIndex], type: o.type, value: m.value });
945
945
  for (let g = 1; g < c.length; g += 2) {
946
- const y = c[g], b = c[g + 1], v = Wt({ comparator: b.comparator, response: n[b.questionIndex], type: e[b.questionIndex].type, value: b.value });
947
- y === ai ? f && (f = v) : y === si && (f || (f = v));
946
+ const y = c[g], v = c[g + 1], b = Wt({ comparator: v.comparator, response: n[v.questionIndex], type: e[v.questionIndex].type, value: v.value });
947
+ y === ai ? f && (f = b) : y === si && (f || (f = b));
948
948
  }
949
949
  if (f) {
950
950
  a = u === -1 && r ? e.length - 1 : u;
@@ -1052,16 +1052,16 @@ const ii = $n(Wr.exports), { useSyncExternalStoreWithSelector: oi } = ii, Ft = (
1052
1052
  return { comparator: d, target: o, value: h };
1053
1053
  });
1054
1054
  return [...r, ...a];
1055
- }, []), Ge = /* @__PURE__ */ new Set(["thanks", "uploading"]), q = Kr()((e, t) => ({ allResponses: [], answers: void 0, apiURL: "", border: "#000000", cards: [], close: async (r = he) => {
1055
+ }, []), Ge = /* @__PURE__ */ new Set(["thanks", "uploading"]), H = Kr()((e, t) => ({ allResponses: [], answers: void 0, apiURL: "", border: "#000000", cards: [], close: async (r = he) => {
1056
1056
  const n = t(), { fadeout: i, remove: o, trackHistory: a, studyType: l } = n;
1057
- await i(r), Ke(n) || a({ event: "closed" }), _n.info("SurveyClosing", { surveyId: n.surveyId }), bt.enable(), o({ initiator: vt.Closed, studyType: l });
1057
+ await i(r), Ke(n) || a({ event: "closed" }), _n.info("SurveyClosing", { surveyId: n.surveyId }), vt.enable(), o({ initiator: bt.Closed, studyType: l });
1058
1058
  }, configureExitOnOverlayClick: () => {
1059
1059
  }, customMetadata: {}, destroy: async (r) => {
1060
1060
  const { eventEmitFn: n, fadeout: i, remove: o, studyType: a, surveyId: l } = t();
1061
- n("survey.complete", l), await i(r), bt.enable(), o({ initiator: vt.Complete, studyType: a });
1061
+ n("survey.complete", l), await i(r), vt.enable(), o({ initiator: bt.Complete, studyType: a });
1062
1062
  }, endCard: { headline: "" }, envId: "", eventEmitFn: Me.emit.bind(Me), fadeout: async (r) => {
1063
1063
  const { eventEmitFn: n, headers: i, viewDocument: o } = t();
1064
- return qe(i) ? Promise.resolve() : (n(X.SurveyFadingOut), new Promise((a) => {
1064
+ return He(i) ? Promise.resolve() : (n(K.SurveyFadingOut), new Promise((a) => {
1065
1065
  const l = o.getElementById(r);
1066
1066
  l ? (l.addEventListener("transitionend", () => {
1067
1067
  a();
@@ -1075,25 +1075,25 @@ const ii = $n(Wr.exports), { useSyncExternalStoreWithSelector: oi } = ii, Ft = (
1075
1075
  const { cards: a, destroy: l, index: d, uploadProgress: h } = t(), p = n || ((m = h[r]) == null ? void 0 : m.isComplete), c = { ...h, [r]: { progressPct: p ? 100 : i || ((f = h[r]) == null ? void 0 : f.progressPct), isComplete: p, isSubmitted: o || ((g = h[r]) == null ? void 0 : g.isSubmitted) } };
1076
1076
  if (e({ uploadProgress: c }), a[d].type !== "uploading")
1077
1077
  return;
1078
- const u = Object.entries(h).every(([y, b]) => !b.isSubmitted || b.isComplete || r == y && n);
1078
+ const u = Object.entries(h).every(([y, v]) => !v.isSubmitted || v.isComplete || r == y && n);
1079
1079
  if (u && d >= a.length - 1)
1080
1080
  return l(he);
1081
1081
  e({ index: u ? d + 1 : d, uploadingCardViewed: !0 });
1082
1082
  }, hasViewedEmbed: !1, headers: { Authorization: "", "Content-Type": "", "userleap-platform": "web", "x-ul-environment-id": "", "x-ul-installation-method": "web-snippet", "x-ul-sdk-version": "", "x-ul-visitor-id": "" }, index: 0, isPreview: !1, marketingUrl: "https://sprig.com", meta: { ch: 0, cw: 0, l: "", mode: null, p: "", sh: 0, sw: 0 }, mode: void 0, next: (r) => {
1083
1083
  const { allResponses: n, cards: i, eventEmitFn: o, index: a, responseGroupUid: l, submit: d, trackHistory: h, uploadProgress: p, viewedCardCount: c } = t();
1084
1084
  e({ minScrollableHeight: void 0 });
1085
- const u = Date.now(), m = [...i], f = m[a], { type: g } = r.data, y = { ...r.data }, b = y.value;
1086
- ((I) => !Ge.has(I.type))(f) && (f.value = b), y.answeredAt = u, delete y.type;
1087
- const v = { response: y, responseGroupUid: l, questionIndex: a };
1088
- let E = g === "multiplechoice" ? Object.values(b).find((I) => I !== !1) : b;
1089
- g === "multipleselect" && (E = m[a].props.options.reduce((I, _) => (b[_.id] && I.push(_.value), I), []));
1085
+ const u = Date.now(), m = [...i], f = m[a], { type: g } = r.data, y = { ...r.data }, v = y.value;
1086
+ ((I) => !Ge.has(I.type))(f) && (f.value = v), y.answeredAt = u, delete y.type;
1087
+ const b = { response: y, responseGroupUid: l, questionIndex: a };
1088
+ let E = g === "multiplechoice" ? Object.values(v).find((I) => I !== !1) : v;
1089
+ g === "multipleselect" && (E = m[a].props.options.reduce((I, _) => (v[_.id] && I.push(_.value), I), []));
1090
1090
  const C = n.slice(0);
1091
1091
  C[a] = E, e({ allResponses: C });
1092
1092
  const k = Yr({ cards: m, index: a, hasEndCard: !!r.endCard, uploadProgress: p, allResponses: C });
1093
1093
  if (k === null)
1094
- return v.completedAt = u, d(v), void r.completeSurvey();
1095
- Ge.has(m[k].type) && (v.completedAt = u);
1096
- const x = d(v);
1094
+ return b.completedAt = u, d(b), void r.completeSurvey();
1095
+ Ge.has(m[k].type) && (b.completedAt = u);
1096
+ const x = d(b);
1097
1097
  Ge.has(m[k].type) || x.finally(() => {
1098
1098
  h({ event: "seen", index: k });
1099
1099
  });
@@ -1104,11 +1104,11 @@ const ii = $n(Wr.exports), { useSyncExternalStoreWithSelector: oi } = ii, Ft = (
1104
1104
  const { removeIframeIfReady: r } = t();
1105
1105
  e((n) => ({ unresolvedRequestCount: n.unresolvedRequestCount - 1 })), r();
1106
1106
  }, responseGroupUid: "", remove: ({ initiator: r, studyType: n }) => {
1107
- const { removeIframeIfReady: i } = t();
1108
- e({ pendingRemoveIframeReason: r, studyType: n }), i();
1107
+ const { eventEmitFn: i, removeIframeIfReady: o, surveyId: a } = t();
1108
+ e({ pendingRemoveIframeReason: r, studyType: n }), i(K.SurveyCloseRequested, { name: K.SurveyCloseRequested, initiator: r, studyType: n, "survey.id": a }), o();
1109
1109
  }, removeIframeIfReady: () => {
1110
1110
  const { eventEmitFn: r, pendingRemoveIframeReason: n, unresolvedRequestCount: i, studyType: o, surveyId: a } = t();
1111
- n && i === 0 && (r(X.SurveyWillClose, { name: X.SurveyWillClose, initiator: n, studyType: o, "survey.id": a }), e({ pendingRemoveIframeReason: null, studyType: o }));
1111
+ n && i === 0 && (r(K.SurveyWillClose, { name: K.SurveyWillClose, initiator: n, studyType: o, "survey.id": a }), e({ pendingRemoveIframeReason: null, studyType: o }));
1112
1112
  }, seen: async () => {
1113
1113
  const { trackHistory: r } = t();
1114
1114
  return r({ event: "seen", isNew: !0 });
@@ -1117,7 +1117,7 @@ const ii = $n(Wr.exports), { useSyncExternalStoreWithSelector: oi } = ii, Ft = (
1117
1117
  if (!o || Ke(a))
1118
1118
  return;
1119
1119
  const l = { responseGroupUid: o, meta: a.meta, customMetadata: a.customMetadata, responses: [i], completedAt: r, previewKey: a.previewKey }, d = await a.trackPromise(Qe(`${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/responses/submit`, { body: JSON.stringify(l), headers: a.headers, method: "POST" }));
1120
- d.ok ? a.eventEmitFn(X.QuestionAnswered, { ...i, questionIndex: n, "survey.id": a.surveyId }) : d.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", d.error), await a.trackPromise(Zt(a, "submitResponse", d.error)));
1120
+ d.ok ? a.eventEmitFn(K.QuestionAnswered, { ...i, questionIndex: n, "survey.id": a.surveyId }) : d.reportError && (console.warn("[Sprig] (ERR-427) Failed to submit response", d.error), await a.trackPromise(Zt(a, "submitResponse", d.error)));
1121
1121
  }, surveyId: 0, tabTitle: "", trackHistory: async ({ event: r, index: n, isNew: i = !1 }) => {
1122
1122
  const o = t();
1123
1123
  if (Ke(o))
@@ -1130,12 +1130,12 @@ const ii = $n(Wr.exports), { useSyncExternalStoreWithSelector: oi } = ii, Ft = (
1130
1130
  throw n(), i;
1131
1131
  });
1132
1132
  }, unresolvedRequestCount: 0, update: () => {
1133
- const { cards: r, index: n, headers: i, eventEmitFn: o, frame: a, useMobileStyling: l, surveyId: d, viewDocument: h } = t(), p = i["userleap-platform"] === "web", c = qe(i), u = r[n], m = u.type === "matrix" && !(u.props.properties.displayMatrixAsAccordion || l);
1133
+ const { cards: r, index: n, headers: i, eventEmitFn: o, frame: a, useMobileStyling: l, surveyId: d, viewDocument: h } = t(), p = i["userleap-platform"] === "web", c = He(i), u = r[n], m = u.type === "matrix" && !(u.props.properties.displayMatrixAsAccordion || l);
1134
1134
  e({ minScrollableHeight: void 0 }), setTimeout(() => {
1135
- var b, v, E;
1136
- !c && !l && ((b = a == null ? void 0 : a.setWidth) == null || b.call(a, gn));
1137
- const [f, g, y] = bn(h, p && !l, c);
1138
- c ? (o(X.SurveyHeight, { name: X.SurveyHeight, contentFrameHeight: f, "survey.id": d }), o(X.SurveyWidth, { name: X.SurveyWidth, contentFrameWidth: g, "survey.id": d })) : ((v = a.setHeight) == null || v.call(a, f), e({ minScrollableHeight: y }), !l && m && ((E = a.setWidth) == null || E.call(a, g)));
1135
+ var v, b, E;
1136
+ !c && !l && ((v = a == null ? void 0 : a.setWidth) == null || v.call(a, gn));
1137
+ const [f, g, y] = vn(h, p && !l, c);
1138
+ c ? (o(K.SurveyHeight, { name: K.SurveyHeight, contentFrameHeight: f, "survey.id": d }), o(K.SurveyWidth, { name: K.SurveyWidth, contentFrameWidth: g, "survey.id": d })) : ((b = a.setHeight) == null || b.call(a, f), e({ minScrollableHeight: y }), !l && m && ((E = a.setWidth) == null || E.call(a, g)));
1139
1139
  }, 100);
1140
1140
  }, uploadingCardViewed: !1, uploadProgress: {}, useDesktopPrototype: void 0, useMobileStyling: !1, userId: "", viewDocument: window.document, viewedCardCount: 0 })), Ke = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview || e.previewMode, Zt = async (e, t, r) => {
1141
1141
  const { mode: n, userId: i, envId: o, apiURL: a, headers: l, viewDocument: d } = e, h = d.documentElement, p = { mode: n, screenWidth: window.screen.width, screenHeight: window.screen.height, clientWidth: h.clientWidth, clientHeight: h.clientHeight, location: window.location.href, language: window.navigator.language }, c = { action: t, err: { message: `${r == null ? void 0 : r.name} - ${r == null ? void 0 : r.message}`, stack: r == null ? void 0 : r.stack }, meta: p, vid: i, envId: o };
@@ -1153,7 +1153,7 @@ function s(e, t, r, n, i, o) {
1153
1153
  return N.vnode && N.vnode(h), h;
1154
1154
  }
1155
1155
  const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", style: { opacity: e ? 1 : 0 }, children: s(Xr, { className: "sprig-check" }) }), Gt = "250ms", fi = pt(({ animate: e, children: t, header: r, isOpen: n, onClick: i, showHeaderCheck: o }, a) => {
1156
- const l = K(null), [d, h] = V(0), [p, c] = V("none"), [u, m] = V(!0);
1156
+ const l = Q(null), [d, h] = V(0), [p, c] = V("none"), [u, m] = V(!0);
1157
1157
  return F(() => {
1158
1158
  var g;
1159
1159
  const f = (g = l.current) == null ? void 0 : g.getBoundingClientRect();
@@ -1165,11 +1165,11 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1165
1165
  const n = t ? "--mobile" : "--desktop";
1166
1166
  return `${e + n} ${e + (r ? `${n}_${r}` : "")} ${e}`;
1167
1167
  }, _i = (e, t) => `${e} ${e}__${t}`, G = (e) => s("button", { ...e, className: L("ul-card-text__button", e.className), id: "ul-card-text__button" }), en = () => {
1168
- const { viewDocument: e } = q((n) => ({ viewDocument: n.viewDocument })), [t, r] = V(!1);
1168
+ const { viewDocument: e } = H((n) => ({ viewDocument: n.viewDocument })), [t, r] = V(!1);
1169
1169
  return F(() => {
1170
1170
  const n = e.querySelector(".sprig-question-body"), i = new ResizeObserver(() => {
1171
1171
  window.requestAnimationFrame(() => {
1172
- r(!!(n && vn(n) && n.scrollHeight > n.offsetHeight));
1172
+ r(!!(n && bn(n) && n.scrollHeight > n.offsetHeight));
1173
1173
  });
1174
1174
  });
1175
1175
  return n && i.observe(n), () => {
@@ -1177,16 +1177,16 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1177
1177
  };
1178
1178
  }, [e]), t;
1179
1179
  }, Kt = ({ plainText: e, richText: t, id: r, className: n, isHeader: i }) => t ? s("div", { className: n, dangerouslySetInnerHTML: { __html: t }, id: r }) : e ? s(i ? "h1" : "p", { className: n, id: r, children: e }) : null, gi = () => {
1180
- const { cards: e, close: t, endCard: r, headers: n, index: i } = q((l) => ({ cards: l.cards, close: l.close, endCard: l.endCard, headers: l.headers, index: l.index, useMobileStyling: l.useMobileStyling })), o = e.length, a = Se(() => () => t(he), [t]);
1180
+ const { cards: e, close: t, endCard: r, headers: n, index: i } = H((l) => ({ cards: l.cards, close: l.close, endCard: l.endCard, headers: l.headers, index: l.index, useMobileStyling: l.useMobileStyling })), o = e.length, a = Se(() => () => t(he), [t]);
1181
1181
  return ["email", "link"].includes(n["userleap-platform"]) || r && i + 1 === o ? null : s("div", { "aria-label": "Close button", className: "close-btn", onClick: a, onKeyPress: (l) => {
1182
1182
  l.key === "Enter" && a();
1183
1183
  }, role: "button", tabIndex: 0, children: s("svg", { fill: "none", height: "16px", viewBox: "0 0 13 13", width: "16px", xmlns: "http://www.w3.org/2000/svg", children: s("path", { d: "M2.54964 1.78369L1.78369 2.54964L5.73405 6.5L1.78369 10.4504L2.54964 11.2163L6.5 7.26595L10.4504 11.2163L11.2163 10.4504L7.26595 6.5L11.2163 2.54964L10.4504 1.78369L6.5 5.73405L2.54964 1.78369Z", fill: "#262136" }) }) });
1184
1184
  }, te = ({ message: e, properties: t }) => {
1185
- const r = K(null), n = t == null ? void 0 : t.captionText, i = en();
1185
+ const r = Q(null), n = t == null ? void 0 : t.captionText, i = en();
1186
1186
  return s("div", { className: L("question-header-container", "sprig-header-container", i ? "sprig-border-bottom" : null), ref: r, children: [s("div", { className: "question-header-button-container", children: [s(Kt, { className: "ul-question", id: "ul-question", isHeader: !0, plainText: e, richText: t == null ? void 0 : t.questionHtml }), s(gi, {})] }), s(Kt, { className: "ul-caption", id: "ul-caption", plainText: n, richText: t == null ? void 0 : t.captionHtml })] });
1187
1187
  }, Qt = ({ buttonText: e = "View Prototype", handleClick: t }) => s("button", { className: "prototype-button", onClick: t, children: e }, "prototype-btn"), ae = ({ defaultBody: e, embeddedType: t = "prototype", properties: r }) => {
1188
1188
  var c;
1189
- const { handleClickEmbedButton: n, hasViewedEmbed: i, headers: o, useDesktopPrototype: a } = q((u) => ({ handleClickEmbedButton: u.handleClickEmbedButton, hasViewedEmbed: u.hasViewedEmbed, headers: u.headers, useDesktopPrototype: u.useDesktopPrototype })), l = (r == null ? void 0 : r.conceptUrl) || ((c = r == null ? void 0 : r.consentDocument) == null ? void 0 : c.url), d = window.innerWidth < yn, h = o["userleap-platform"], p = (u, m) => {
1189
+ const { handleClickEmbedButton: n, hasViewedEmbed: i, headers: o, useDesktopPrototype: a } = H((u) => ({ handleClickEmbedButton: u.handleClickEmbedButton, hasViewedEmbed: u.hasViewedEmbed, headers: u.headers, useDesktopPrototype: u.useDesktopPrototype })), l = (r == null ? void 0 : r.conceptUrl) || ((c = r == null ? void 0 : r.consentDocument) == null ? void 0 : c.url), d = window.innerWidth < yn, h = o["userleap-platform"], p = (u, m) => {
1190
1190
  u.preventDefault(), n(m);
1191
1191
  };
1192
1192
  if (!a && d && !i && l && ["email", "link"].includes(h)) {
@@ -1201,7 +1201,7 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1201
1201
  }
1202
1202
  return e();
1203
1203
  }, tn = ({ isSelected: e, id: t, divId: r, themeColor: n }) => s("div", { "aria-checked": e, "aria-labelledby": `label-${t}`, className: "select-checkbox", id: r, role: "checkbox", style: e ? { backgroundColor: n, borderColor: n, boxShadow: "none" } : {}, tabIndex: 0, children: e && s(Xr, {}) }), rn = (e, t) => {
1204
- const r = K(0);
1204
+ const r = Q(0);
1205
1205
  return () => {
1206
1206
  if (e.current) {
1207
1207
  const n = e.current;
@@ -1211,24 +1211,24 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1211
1211
  }
1212
1212
  };
1213
1213
  }, Be = ({ ariaLabel: e, border: t, choiceStyle: r = {}, label: n, isSelected: i, value: o, text: a, id: l, isRadio: d, useMobileStyling: h, error: p, allowTextEntry: c, noneOfTheAbove: u, promptText: m, onUserInputChanged: f }) => {
1214
- const { styleNonce: g, viewDocument: y } = q((R) => ({ styleNonce: R.styleNonce, viewDocument: R.viewDocument })), [b, v] = V(!1);
1215
- vi(y, t, g);
1214
+ const { styleNonce: g, viewDocument: y } = H((R) => ({ styleNonce: R.styleNonce, viewDocument: R.viewDocument })), [v, b] = V(!1);
1215
+ bi(y, t, g);
1216
1216
  const E = ({ isSelected: R, userText: D }) => {
1217
1217
  f && f({ id: l, selected: R, value: o, userText: D, noneOfTheAbove: u });
1218
1218
  }, C = (R) => {
1219
- R.stopPropagation(), E({ isSelected: d || !i, userText: a }), v(!1);
1219
+ R.stopPropagation(), E({ isSelected: d || !i, userText: a }), b(!1);
1220
1220
  }, k = () => {
1221
- b || v(!0);
1221
+ v || b(!0);
1222
1222
  }, x = () => {
1223
- b && v(!1);
1223
+ v && b(!1);
1224
1224
  }, w = { onClick: (R) => C(R), onKeyPress: (R) => ((D) => {
1225
1225
  D.key !== "Enter" && D.key !== " " || C(D);
1226
1226
  })(R) };
1227
1227
  "ontouchstart" in y.documentElement ? (w.onTouchStart = x, w.onTouchCancel = x, w.onTouchEnd = x) : (w.onMouseDown = k, w.onMouseLeave = x);
1228
- const I = d ? `radio-${l}` : `checkbox-${l}`, _ = i || b ? [He] : [], T = [...p ? [nn] : [], ..._], M = n ? { "aria-labelledby": `label-${l}` } : { "aria-label": e };
1229
- return s("div", { className: L($("choice", h), ...T), id: `choice-div-${l}`, style: { ...r, ...p ? { borderColor: ve } : {} }, ...w, children: [s("div", { className: L("choice-label-container"), children: [d ? s("div", { ...M, className: L("select-radio", ..._), id: I, role: "radio", tabIndex: 0 }) : s(tn, { divId: I, id: l, isSelected: i, themeColor: t }), n && s("label", { className: L($("select-label", h)), htmlFor: I, id: `label-${l}`, children: n })] }), c && i && s("div", { className: L("choice-text-entry-container", ..._), children: s(bi, { onTextChange: (R) => E({ isSelected: i, userText: R }), promptText: m || "Please specify", textValue: a, useMobileStyling: h }) })] });
1230
- }, bi = ({ promptText: e, textValue: t, onTextChange: r, useMobileStyling: n }) => {
1231
- const i = K(null), { update: o } = q((l) => ({ update: l.update })), a = rn(i, () => o());
1228
+ const I = d ? `radio-${l}` : `checkbox-${l}`, _ = i || v ? [qe] : [], T = [...p ? [nn] : [], ..._], M = n ? { "aria-labelledby": `label-${l}` } : { "aria-label": e };
1229
+ return s("div", { className: L($("choice", h), ...T), id: `choice-div-${l}`, style: { ...r, ...p ? { borderColor: be } : {} }, ...w, children: [s("div", { className: L("choice-label-container"), children: [d ? s("div", { ...M, className: L("select-radio", ..._), id: I, role: "radio", tabIndex: 0 }) : s(tn, { divId: I, id: l, isSelected: i, themeColor: t }), n && s("label", { className: L($("select-label", h)), htmlFor: I, id: `label-${l}`, children: n })] }), c && i && s("div", { className: L("choice-text-entry-container", ..._), children: s(vi, { onTextChange: (R) => E({ isSelected: i, userText: R }), promptText: m || "Please specify", textValue: a, useMobileStyling: h }) })] });
1230
+ }, vi = ({ promptText: e, textValue: t, onTextChange: r, useMobileStyling: n }) => {
1231
+ const i = Q(null), { update: o } = H((l) => ({ update: l.update })), a = rn(i, () => o());
1232
1232
  return F(() => (a(), i.current && i.current.focus(), () => {
1233
1233
  o();
1234
1234
  }), []), s("textarea", { "aria-label": e, "aria-multiline": "true", "aria-placeholder": e, className: L($("choice-text-input", n)), "data-gramm": "false", maxLength: 5e3, name: "text", onChange: (l) => {
@@ -1238,25 +1238,25 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1238
1238
  }, onKeyPress: (l) => {
1239
1239
  l.stopPropagation();
1240
1240
  }, placeholder: e, ref: i, role: "textbox", rows: 1, value: t });
1241
- }, Yt = "ul-select-style-element", He = "ul-select-active-dynamic-style", nn = "ul-select-error-dynamic-style", vi = (e, t, r) => {
1241
+ }, Yt = "ul-select-style-element", qe = "ul-select-active-dynamic-style", nn = "ul-select-error-dynamic-style", bi = (e, t, r) => {
1242
1242
  let n = e.getElementById(Yt), i = !1;
1243
1243
  n || (n = e.createElement("style"), i = !0), n.tagName.toLowerCase() === "style" && (n.id = Yt, r && (n.nonce = r), n.textContent = yi(t), i && e.head.appendChild(n));
1244
1244
  }, yi = (e) => `
1245
- .${He} {
1245
+ .${qe} {
1246
1246
  border-color: ${e};
1247
1247
  }
1248
- .${He} .select-radio, .${He}.select-radio {
1248
+ .${qe} .select-radio, .${qe}.select-radio {
1249
1249
  border: 6px solid ${e};
1250
1250
  box-shadow: none;
1251
1251
  }
1252
1252
  .${nn} {
1253
- border-color: ${ve};
1253
+ border-color: ${be};
1254
1254
  }
1255
1255
  `, se = ({ children: e }) => s("div", { className: "sprig-question-body", children: e }), de = ({ children: e }) => {
1256
1256
  const t = en();
1257
1257
  return s("div", { className: L("sprig-question-footer-container", t ? "sprig-border-top" : null), children: e });
1258
- }, be = (e) => (e == null ? void 0 : e.buttonText) || "Next", on = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", xi = ({ className: e, message: t, next: r, properties: n, questionId: i, type: o }) => {
1259
- const { useMobileStyling: a, border: l } = q((_) => ({ useMobileStyling: _.useMobileStyling, border: _.border })), [d, h] = V(!1), [p, c] = V(""), [u, m] = V(!1), f = n == null ? void 0 : n.collectName, g = (n == null ? void 0 : n.nameLabelText) || "Full Name", y = (n == null ? void 0 : n.consentText) || "I agree to the stated conditions", b = (n == null ? void 0 : n.submitButtonText) || "Submit", v = !!p.trim(), E = d && (!f || v), C = (_, T = !1) => {
1258
+ }, ve = (e) => (e == null ? void 0 : e.buttonText) || "Next", on = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", xi = ({ className: e, message: t, next: r, properties: n, questionId: i, type: o }) => {
1259
+ const { useMobileStyling: a, border: l } = H((_) => ({ useMobileStyling: _.useMobileStyling, border: _.border })), [d, h] = V(!1), [p, c] = V(""), [u, m] = V(!1), f = n == null ? void 0 : n.collectName, g = (n == null ? void 0 : n.nameLabelText) || "Full Name", y = (n == null ? void 0 : n.consentText) || "I agree to the stated conditions", v = (n == null ? void 0 : n.submitButtonText) || "Submit", b = !!p.trim(), E = d && (!f || b), C = (_, T = !1) => {
1260
1260
  _.preventDefault(), _.stopPropagation();
1261
1261
  let M = null;
1262
1262
  if (!T) {
@@ -1268,15 +1268,15 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1268
1268
  }, k = (_) => {
1269
1269
  _.preventDefault(), _.stopPropagation(), c(_.currentTarget.value);
1270
1270
  }, x = (_) => {
1271
- _.currentTarget.style.borderColor = u && !v ? ve : l;
1271
+ _.currentTarget.style.borderColor = u && !b ? be : l;
1272
1272
  }, w = (_) => {
1273
- _.currentTarget.style.borderColor = u && !v ? ve : at;
1273
+ _.currentTarget.style.borderColor = u && !b ? be : at;
1274
1274
  }, I = () => s(de, { children: [s("div", { className: "sprig-stretch", children: [s(Be, { allowTextEntry: !1, border: l, error: u && !d, id: "consent", isRadio: !1, isSelected: d, label: y, onUserInputChanged: ({ selected: _ }) => {
1275
1275
  _ !== d && h(!d);
1276
- }, useMobileStyling: a }), f && s("input", { "aria-label": g, "aria-placeholder": g, className: L($("ul-consent-legal__name-input", a)), "data-gramm": "false", maxLength: 250, name: "name", onBlur: w, onFocus: x, onInput: k, placeholder: g, style: u && !v ? { borderColor: ve } : {}, tabIndex: 0, value: p })] }), s("div", { className: "ul-card__button-wrapper ul-card-vertical__button-wrapper", children: [s(G, { className: E ? "" : "sprig-button-disabled", onClick: C, children: b }), n.required === !1 && s("button", { className: "ul-card-skip__button", onClick: (_) => C(_, !0), children: on(n) })] })] });
1277
- return s("div", { className: L(e, "ul-card__consent-legal", "fade-in-transition"), children: [s(te, { message: t, properties: { questionHtml: n.questionHtml } }), s(z, { children: [s(se, { children: s("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: n != null && n.richTextBody ? { __html: n.richTextBody } : void 0, id: "ul-card__consent-legal-body-container" }) }), s(ae, { properties: n, defaultBody: I, embeddedType: "pdf" })] })] }, i);
1276
+ }, useMobileStyling: a }), f && s("input", { "aria-label": g, "aria-placeholder": g, className: L($("ul-consent-legal__name-input", a)), "data-gramm": "false", maxLength: 250, name: "name", onBlur: w, onFocus: x, onInput: k, placeholder: g, style: u && !b ? { borderColor: be } : {}, tabIndex: 0, value: p })] }), s("div", { className: "ul-card__button-wrapper ul-card-vertical__button-wrapper", children: [s(G, { className: E ? "" : "sprig-button-disabled", onClick: C, children: v }), n.required === !1 && s("button", { className: "ul-card-skip__button", onClick: (_) => C(_, !0), children: on(n) })] })] });
1277
+ return s("div", { className: L(e, "ul-card__consent-legal", "fade-in-transition"), children: [s(te, { message: t, properties: { questionHtml: n.questionHtml } }), s(z, { children: [n != null && n.richTextBody ? s(se, { children: s("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: n != null && n.richTextBody ? { __html: n.richTextBody } : void 0, id: "ul-card__consent-legal-body-container" }) }) : null, s(ae, { properties: n, defaultBody: I, embeddedType: "pdf" })] })] }, i);
1278
1278
  }, ki = ({ activeValue: e, border: t, icon: r, isPressed: n, onSubmit: i, range: o, scaleLabelType: a, setActiveValue: l, setIsPressed: d, useMobileStyling: h, value: p, viewDocument: c }) => {
1279
- const u = `option-${p}`, m = a === "number", f = a === "star", g = m && p === e, [y, b] = p <= e && f || p === e ? n ? [t, 1] : [t, 0.3] : ["", 1];
1279
+ const u = `option-${p}`, m = a === "number", f = a === "star", g = m && p === e, [y, v] = p <= e && f || p === e ? n ? [t, 1] : [t, 0.3] : ["", 1];
1280
1280
  return s("button", { "aria-label": m ? void 0 : String(p), className: (() => {
1281
1281
  switch (a) {
1282
1282
  case "star":
@@ -1286,21 +1286,21 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1286
1286
  default:
1287
1287
  return p === o ? L($("likert-number", h), $(`likert-number-${p}`, h), $("likert-last-option", h)) : L($("likert-number", h), $(`likert-number-${p}`, h));
1288
1288
  }
1289
- })(), dangerouslySetInnerHTML: { __html: r }, id: u, onClick: () => i(), onKeyDown: (v) => {
1289
+ })(), dangerouslySetInnerHTML: { __html: r }, id: u, onClick: () => i(), onKeyDown: (b) => {
1290
1290
  var k, x;
1291
1291
  const E = c.querySelectorAll(`.likert-${a ?? "number"}`), C = p - 1;
1292
- v.key === "ArrowRight" ? (k = E[C + 1]) == null || k.focus() : v.key === "ArrowLeft" ? (x = E[C - 1]) == null || x.focus() : v.key !== "Enter" && v.key !== " " || i();
1292
+ b.key === "ArrowRight" ? (k = E[C + 1]) == null || k.focus() : b.key === "ArrowLeft" ? (x = E[C - 1]) == null || x.focus() : b.key !== "Enter" && b.key !== " " || i();
1293
1293
  }, onPointerDown: () => d(!0), onPointerEnter: () => l(p), onPointerLeave: () => {
1294
1294
  l(-1), d(!1);
1295
- }, style: { color: m ? "" : y, borderColor: g ? y : "", fillOpacity: g ? "" : b, zIndex: g ? 3 : "auto" }, tabIndex: 0 });
1295
+ }, style: { color: m ? "" : y, borderColor: g ? y : "", fillOpacity: g ? "" : v, zIndex: g ? 3 : "auto" }, tabIndex: 0 });
1296
1296
  }, wi = ({ className: e, labels: t, message: r, next: n, properties: i, questionId: o, type: a }) => {
1297
- const { border: l, useMobileStyling: d, viewDocument: h } = q((I) => ({ border: I.border, useMobileStyling: I.useMobileStyling, viewDocument: I.viewDocument })), [p, c] = V(-1), [u, m] = V(!1), f = t && t.left, g = t && t.right;
1297
+ const { border: l, useMobileStyling: d, viewDocument: h } = H((I) => ({ border: I.border, useMobileStyling: I.useMobileStyling, viewDocument: I.viewDocument })), [p, c] = V(-1), [u, m] = V(!1), f = t && t.left, g = t && t.right;
1298
1298
  let y;
1299
- const { range: b, scaleLabelType: v, ratingIcons: E } = i;
1300
- b && (y = Number(b));
1299
+ const { range: v, scaleLabelType: b, ratingIcons: E } = i;
1300
+ v && (y = Number(v));
1301
1301
  const C = y || 5, k = (I) => {
1302
1302
  var _, T;
1303
- switch (v) {
1303
+ switch (b) {
1304
1304
  case "star":
1305
1305
  return (_ = E[0]) == null ? void 0 : _.svg;
1306
1306
  case "smiley":
@@ -1310,26 +1310,26 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1310
1310
  }
1311
1311
  }, x = [...Array(C)].map((I, _) => {
1312
1312
  const T = _ + 1;
1313
- return s(ki, { activeValue: p, border: l, icon: k(_), isPressed: u, onSubmit: () => n({ value: T, questionId: o, type: a }), range: C, scaleLabelType: v, setActiveValue: c, setIsPressed: m, useMobileStyling: d, value: T, viewDocument: h }, _);
1313
+ return s(ki, { activeValue: p, border: l, icon: k(_), isPressed: u, onSubmit: () => n({ value: T, questionId: o, type: a }), range: C, scaleLabelType: b, setActiveValue: c, setIsPressed: m, useMobileStyling: d, value: T, viewDocument: h }, _);
1314
1314
  }), w = (I) => {
1315
1315
  I.preventDefault(), I.stopPropagation(), n({ value: null, questionId: o, type: a });
1316
1316
  };
1317
- return s("form", { className: L(e, "ul-card--likert", "fade-in-transition"), children: [s(te, { message: r, properties: i }), s(ae, { properties: i, defaultBody: () => s(z, { children: [s(se, { children: [s("div", { "aria-label": `Rating (1 - ${C})`, className: "ul-card--likert__numbers", role: "radiogroup", children: x }), s("div", { className: "ul-card--likert__labels", children: [s("span", { children: f }), s("span", { children: g })] })] }), !i.required && s(de, { children: s("div", { className: "ul-vertical-centered-container", children: s(G, { onClick: w, children: be(i) }) }) })] }) })] }, o);
1317
+ return s("form", { className: L(e, "ul-card--likert", "fade-in-transition"), children: [s(te, { message: r, properties: i }), s(ae, { properties: i, defaultBody: () => s(z, { children: [s(se, { children: [s("div", { "aria-label": `Rating (1 - ${C})`, className: "ul-card--likert__numbers", role: "radiogroup", children: x }), s("div", { className: "ul-card--likert__labels", children: [s("span", { children: f }), s("span", { children: g })] })] }), !i.required && s(de, { children: s("div", { className: "ul-vertical-centered-container", children: s(G, { onClick: w, children: ve(i) }) }) })] }) })] }, o);
1318
1318
  }, an = (e) => e && (e.scrollHeight > e.offsetHeight ? e : an(e.parentElement)), Ci = (e) => {
1319
1319
  if (!e || !((r) => r instanceof HTMLElement)(e))
1320
1320
  return 0;
1321
1321
  const t = getComputedStyle(e);
1322
1322
  return parseFloat(t.marginTop) + parseFloat(t.marginBottom) + (parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth));
1323
1323
  }, Si = ({ columns: e, onSelect: t, options: r, selectedOptions: n }) => {
1324
- const i = K([]), { border: o, useMobileStyling: a } = q((u) => ({ border: u.border, useMobileStyling: u.useMobileStyling })), l = r.findIndex((u) => n[u.id] === null), [d, h] = V(l), p = Ue((u, m) => {
1324
+ const i = Q([]), { border: o, useMobileStyling: a } = H((u) => ({ border: u.border, useMobileStyling: u.useMobileStyling })), l = r.findIndex((u) => n[u.id] === null), [d, h] = V(l), p = Ue((u, m) => {
1325
1325
  t(u, m);
1326
1326
  const f = d + 1, g = r[f];
1327
1327
  if (g && n[g.id] === null) {
1328
1328
  h(f);
1329
1329
  const y = i.current[d];
1330
1330
  if (y != null && y.firstElementChild) {
1331
- const b = an(y), v = y.firstElementChild, E = Ci(y) + v.clientHeight;
1332
- b == null || b.scrollTo(0, y.offsetTop + E);
1331
+ const v = an(y), b = y.firstElementChild, E = Ci(y) + b.clientHeight;
1332
+ v == null || v.scrollTo(0, y.offsetTop + E);
1333
1333
  }
1334
1334
  }
1335
1335
  }, [t, r, n, d]), c = Ue((u, m) => {
@@ -1340,7 +1340,7 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1340
1340
  }, [o, e, d, p, n, a]);
1341
1341
  return s("div", { children: r.map((u, m) => c(m, u)) });
1342
1342
  }, Ti = ({ columns: e, onSelect: t, options: r, selectedOptions: n }) => {
1343
- const { border: i, useMobileStyling: o } = q((c) => ({ border: c.border, useMobileStyling: c.useMobileStyling })), a = r.length, l = e.length, d = K(null), [h, p] = V(!1);
1343
+ const { border: i, useMobileStyling: o } = H((c) => ({ border: c.border, useMobileStyling: c.useMobileStyling })), a = r.length, l = e.length, d = Q(null), [h, p] = V(!1);
1344
1344
  return F(() => {
1345
1345
  const c = d.current, u = new ResizeObserver((m) => {
1346
1346
  window.requestAnimationFrame(() => {
@@ -1364,14 +1364,14 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1364
1364
  }
1365
1365
  }, children: s("svg", { fill: "currentColor", height: "32", viewBox: "0 0 256 256", width: "32", xmlns: "http://www.w3.org/2000/svg", children: s("path", { 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" }) }) })] });
1366
1366
  }, Ni = ({ className: e, message: t, next: r, options: n, properties: i, questionId: o, type: a }) => {
1367
- const { useMobileStyling: l } = q((y) => ({ useMobileStyling: y.useMobileStyling })), d = i.matrixColumn, h = i.required, p = n.reduce((y, b) => (y[b.id] = null, y), {}), [c, u] = V(p), m = (y, b) => {
1368
- u((v) => ({ ...v, [y]: b }));
1367
+ const { useMobileStyling: l } = H((y) => ({ useMobileStyling: y.useMobileStyling })), d = i.matrixColumn, h = i.required, p = n.reduce((y, v) => (y[v.id] = null, y), {}), [c, u] = V(p), m = (y, v) => {
1368
+ u((b) => ({ ...b, [y]: v }));
1369
1369
  }, f = h && Object.values(c).every((y) => y == null), g = i.displayMatrixAsAccordion || l;
1370
1370
  return s("form", { className: L(e, "fade-in-transition", "ul-card__matrix"), id: "text-form", onSubmit: (y) => {
1371
1371
  y.preventDefault(), y.stopPropagation(), r({ value: c, questionId: o, type: a });
1372
- }, children: [s(te, { message: t, properties: i }), s(ae, { properties: i, defaultBody: () => s(z, { children: [s(se, { children: s(g ? Si : Ti, { columns: d, onSelect: m, options: n, selectedOptions: c }) }), s(de, { children: s("div", { className: "ul-card__button-wrapper", children: s(G, { disabled: f, children: be(i) }) }) })] }) })] }, o);
1372
+ }, children: [s(te, { message: t, properties: i }), s(ae, { properties: i, defaultBody: () => s(z, { children: [s(se, { children: s(g ? Si : Ti, { columns: d, onSelect: m, options: n, selectedOptions: c }) }), s(de, { children: s("div", { className: "ul-card__button-wrapper", children: s(G, { disabled: f, children: ve(i) }) }) })] }) })] }, o);
1373
1373
  }, Ei = ({ options: e, selectItem: t, selectedOptions: r, showCheckbox: n }) => {
1374
- const { themeColor: i } = q((o) => ({ doc: o.viewDocument, themeColor: o.border }));
1374
+ const { themeColor: i } = H((o) => ({ doc: o.viewDocument, themeColor: o.border }));
1375
1375
  return s("div", { className: "select-list", children: e.map((o) => {
1376
1376
  return s("div", { className: "select-option", onClick: (l) => {
1377
1377
  t(o), l.stopPropagation();
@@ -1379,7 +1379,7 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1379
1379
  var a;
1380
1380
  }) });
1381
1381
  }, Ii = ({ isMultiSelect: e = !1, multiselectText: t = "choices selected", onChange: r, options: n, placeholderText: i, value: o }) => {
1382
- const [a, l] = V(!1), { viewDocument: d, update: h } = q((u) => ({ viewDocument: u.viewDocument, update: u.update })), p = () => {
1382
+ const [a, l] = V(!1), { viewDocument: d, update: h } = H((u) => ({ viewDocument: u.viewDocument, update: u.update })), p = () => {
1383
1383
  l(!a), h();
1384
1384
  };
1385
1385
  F(() => {
@@ -1387,9 +1387,20 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1387
1387
  const u = () => {
1388
1388
  l(!1), h();
1389
1389
  };
1390
- return d.addEventListener("click", u), (m = window.parent) == null || m.addEventListener("click", u), () => {
1390
+ d.addEventListener("click", u);
1391
+ try {
1392
+ (m = window.parent) == null || m.addEventListener("click", u);
1393
+ } catch {
1394
+ window.addEventListener("click", u);
1395
+ }
1396
+ return () => {
1391
1397
  var f;
1392
- (f = window.parent) == null || f.removeEventListener("click", u), d.removeEventListener("click", u);
1398
+ d.removeEventListener("click", u);
1399
+ try {
1400
+ (f = window.parent) == null || f.removeEventListener("click", u);
1401
+ } catch {
1402
+ window.removeEventListener("click", u);
1403
+ }
1393
1404
  };
1394
1405
  }, [d, h]);
1395
1406
  const c = o.length === 0 ? ["select-button-placeholder"] : [];
@@ -1398,20 +1409,20 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1398
1409
  }, type: "button", children: [s("span", { children: o.length === 0 ? i : o.length === 1 ? o[0].label : `${o.length} ${t}` }), s(Jr, {})] }), a && s(Ei, { options: n, selectedOptions: o, selectItem: (u) => {
1399
1410
  var g;
1400
1411
  const m = o.some((y) => y.id === u.id), f = o.some((y) => {
1401
- var b;
1402
- return (b = y.optionProperties) == null ? void 0 : b.noneOfTheAbove;
1412
+ var v;
1413
+ return (v = y.optionProperties) == null ? void 0 : v.noneOfTheAbove;
1403
1414
  });
1404
1415
  (g = u.optionProperties) != null && g.noneOfTheAbove && !m ? r([u]) : e ? r(m ? o.filter((y) => y.id !== u.id) : f ? [u] : [...o, u]) : m || r([u]), e || p();
1405
1416
  }, showCheckbox: e })] });
1406
1417
  }, sn = ({ className: e, message: t, onSubmit: r, options: n = [], properties: i, questionId: o, type: a }) => {
1407
- const { border: l, useMobileStyling: d } = q((k) => ({ border: k.border, useMobileStyling: k.useMobileStyling })), h = n.reduce((k, x) => (k[x.id] = { isSelected: !1 }, k), {}), [p, c] = V(h), u = a === "multiplechoice", m = i.required, f = n.find((k) => {
1418
+ const { border: l, useMobileStyling: d } = H((k) => ({ border: k.border, useMobileStyling: k.useMobileStyling })), h = n.reduce((k, x) => (k[x.id] = { isSelected: !1 }, k), {}), [p, c] = V(h), u = a === "multiplechoice", m = i.required, f = n.find((k) => {
1408
1419
  var x;
1409
1420
  return (x = k.optionProperties) == null ? void 0 : x.noneOfTheAbove;
1410
1421
  }), g = Object.entries(p).some(([k, x]) => {
1411
1422
  var _;
1412
1423
  const w = n.find((T) => `${T.id}` === k), I = x.userText === void 0 || x.userText.trim() === "";
1413
1424
  return ((_ = w == null ? void 0 : w.optionProperties) == null ? void 0 : _.allowsTextEntry) && I && x.isSelected;
1414
- }), y = Object.values(p).some((k) => k.isSelected), b = g || m && !y, v = n.map(({ id: k, label: x, value: w, optionProperties: I }) => {
1425
+ }), y = Object.values(p).some((k) => k.isSelected), v = g || m && !y, b = n.map(({ id: k, label: x, value: w, optionProperties: I }) => {
1415
1426
  var R, D;
1416
1427
  const _ = `${k}`, { allowsTextEntry: T, noneOfTheAbove: M } = { allowsTextEntry: !1, noneOfTheAbove: !1, ...I };
1417
1428
  return s(Be, { allowTextEntry: T, border: l, error: !1, id: _, isRadio: u, isSelected: !!((R = p[_]) != null && R.isSelected), label: x, noneOfTheAbove: M, onUserInputChanged: (S) => C(S.id, S.selected, S.userText, S.noneOfTheAbove), promptText: "Please specify", text: (D = p[k]) == null ? void 0 : D.userText, useMobileStyling: d, value: w }, _);
@@ -1431,7 +1442,7 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1431
1442
  for (const w of n)
1432
1443
  k.includes(w) ? x[w.id].isSelected = !0 : x[w.id].isSelected = !1;
1433
1444
  c(x);
1434
- }, options: n, placeholderText: i.dropdownPlaceholderText ?? (u ? "Select choice" : "Select choice(s)"), value: n.filter((k) => p[k.id].isSelected) }) : s("div", { className: L($("ul-card__choices", d)), role: u ? "radiogroup" : "group", children: v }) }), s(de, { children: s("div", { className: "ul-card__button-wrapper", children: s(G, { disabled: b, onClick: E, children: be(i) }) }) })] }) })] }, o);
1445
+ }, options: n, placeholderText: i.dropdownPlaceholderText ?? (u ? "Select choice" : "Select choice(s)"), value: n.filter((k) => p[k.id].isSelected) }) : s("div", { className: L($("ul-card__choices", d)), role: u ? "radiogroup" : "group", children: b }) }), s(de, { children: s("div", { className: "ul-card__button-wrapper", children: s(G, { disabled: v, onClick: E, children: ve(i) }) }) })] }) })] }, o);
1435
1446
  }, Pi = (e) => {
1436
1447
  const { questionId: t, type: r, next: n, options: i } = e;
1437
1448
  return s(sn, { ...e, onSubmit: (o) => {
@@ -1450,10 +1461,10 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1450
1461
  n({ value: o, secondaryValue: a, questionId: t, type: r });
1451
1462
  } });
1452
1463
  }, Ri = ({ className: e, props: { labels: t, message: r, properties: n }, next: i, questionId: o, type: a }) => {
1453
- const { border: l, useMobileStyling: d, viewDocument: h } = q((f) => ({ border: f.border, useMobileStyling: f.useMobileStyling, viewDocument: f.viewDocument })), p = t && t.left, c = t && t.right, u = [...Array(11)].map((f, g) => s("button", { className: L($("nps-number", d), $(`nps-number-${g}`, d)), id: `option-${g}`, onClick: () => i({ value: g, questionId: o, type: a }), onKeyDown: (y) => {
1454
- var v, E;
1455
- const b = h.querySelectorAll("button.nps-number");
1456
- y.key === "ArrowRight" ? (v = b[g + 1]) == null || v.focus() : y.key === "ArrowLeft" ? (E = b[g - 1]) == null || E.focus() : y.key !== "Enter" && y.key !== " " || i({ value: g, questionId: o, type: a });
1464
+ const { border: l, useMobileStyling: d, viewDocument: h } = H((f) => ({ border: f.border, useMobileStyling: f.useMobileStyling, viewDocument: f.viewDocument })), p = t && t.left, c = t && t.right, u = [...Array(11)].map((f, g) => s("button", { className: L($("nps-number", d), $(`nps-number-${g}`, d)), id: `option-${g}`, onClick: () => i({ value: g, questionId: o, type: a }), onKeyDown: (y) => {
1465
+ var b, E;
1466
+ const v = h.querySelectorAll("button.nps-number");
1467
+ y.key === "ArrowRight" ? (b = v[g + 1]) == null || b.focus() : y.key === "ArrowLeft" ? (E = v[g - 1]) == null || E.focus() : y.key !== "Enter" && y.key !== " " || i({ value: g, questionId: o, type: a });
1457
1468
  }, onPointerDown: (y) => {
1458
1469
  y.currentTarget.style.zIndex = "2", y.currentTarget.style.borderColor = l;
1459
1470
  }, onPointerLeave: (y) => {
@@ -1461,18 +1472,18 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1461
1472
  }, tabIndex: 0, children: g }, g)), m = (f) => {
1462
1473
  f.preventDefault(), f.stopPropagation(), i({ value: null, questionId: o, type: a });
1463
1474
  };
1464
- return s("form", { className: L(e, "ul-card--nps", "fade-in-transition"), children: [s(te, { message: r, properties: n }), s(ae, { properties: n, defaultBody: () => s(z, { children: [s(se, { children: [s("div", { className: "ul-card--nps__numbers", children: u }), s("div", { className: "ul-card--nps__labels", children: [s("span", { children: p }), s("span", { children: c })] })] }), !n.required && s(de, { children: s("div", { className: "ul-vertical-centered-container", children: s(G, { onClick: m, children: be(n) }) }) })] }) })] }, o);
1475
+ return s("form", { className: L(e, "ul-card--nps", "fade-in-transition"), children: [s(te, { message: r, properties: n }), s(ae, { properties: n, defaultBody: () => s(z, { children: [s(se, { children: [s("div", { className: "ul-card--nps__numbers", children: u }), s("div", { className: "ul-card--nps__labels", children: [s("span", { children: p }), s("span", { children: c })] })] }), !n.required && s(de, { children: s("div", { className: "ul-vertical-centered-container", children: s(G, { onClick: m, children: ve(n) }) }) })] }) })] }, o);
1465
1476
  }, Li = ({ className: e, message: t, next: r, properties: n, questionId: i, type: o }) => {
1466
- const { border: a, useMobileStyling: l, update: d } = q((C) => ({ border: C.border, useMobileStyling: C.useMobileStyling, update: C.update })), [h, p] = V(""), c = K(null), u = h.trim(), m = n.required === !0 && !u, f = rn(c, () => d()), g = (C) => {
1477
+ const { border: a, useMobileStyling: l, update: d } = H((C) => ({ border: C.border, useMobileStyling: C.useMobileStyling, update: C.update })), [h, p] = V(""), c = Q(null), u = h.trim(), m = n.required === !0 && !u, f = rn(c, () => d()), g = (C) => {
1467
1478
  f(), C.preventDefault(), C.stopPropagation(), p(C.currentTarget.value);
1468
1479
  }, y = (C) => {
1469
1480
  C.preventDefault(), C.stopPropagation(), r({ value: h, questionId: i, type: o });
1470
- }, b = n && n.openTextPlaceholder ? n.openTextPlaceholder : "", v = (C) => {
1481
+ }, v = n && n.openTextPlaceholder ? n.openTextPlaceholder : "", b = (C) => {
1471
1482
  C.currentTarget.style.borderColor = a;
1472
1483
  }, E = (C) => {
1473
1484
  C.currentTarget.style.borderColor = at;
1474
1485
  };
1475
- return s("form", { className: L(e, "ul-card--text", "fade-in-transition"), id: "text-form", children: [s(te, { message: t, properties: n }), s(ae, { defaultBody: () => s("div", { className: "ul-card-text", children: [s(se, { children: s("div", { className: "ul-card-text__container", children: s("textarea", { "aria-labelledby": "ul-question", "aria-describedby": "ul-caption", "aria-multiline": "true", "aria-placeholder": b, className: L($("ul-card-text__input", l)), "data-gramm": "false", maxLength: 5e3, name: "text", onBlur: E, onChange: g, onFocus: v, placeholder: b, ref: c, role: "textbox", tabIndex: 0 }) }) }), s(de, { children: [s(G, { disabled: m, onClick: y, children: be(n) }), n.footerHtml && s("div", { className: "footer", dangerouslySetInnerHTML: { __html: n.footerHtml } })] })] }), properties: n })] }, i);
1486
+ return s("form", { className: L(e, "ul-card--text", "fade-in-transition"), id: "text-form", children: [s(te, { message: t, properties: n }), s(ae, { defaultBody: () => s("div", { className: "ul-card-text", children: [s(se, { children: s("div", { className: "ul-card-text__container", children: s("textarea", { "aria-labelledby": "ul-question", "aria-describedby": "ul-caption", "aria-multiline": "true", "aria-placeholder": v, className: L($("ul-card-text__input", l)), "data-gramm": "false", maxLength: 5e3, name: "text", onBlur: E, onChange: g, onFocus: b, placeholder: v, ref: c, role: "textbox", tabIndex: 0 }) }) }), s(de, { children: [s(G, { disabled: m, onClick: y, children: ve(n) }), n.footerHtml && s("div", { className: "footer", dangerouslySetInnerHTML: { __html: n.footerHtml } })] })] }), properties: n })] }, i);
1476
1487
  }, rt = 1, ln = 2, cn = 3, je = (e) => e.type === "av_permission", Jt = (e) => e.type === "screen_permission", dn = (e, t) => e === void 0 ? rt : e ? ((r, n) => !(je(n) ? n.permissionDescriptors : []).includes("camera") || r.getVideoTracks().length > 0)(e, t) ? cn : rt : ln, Xt = { avStream: null, currentPage: null, mediaRecordingUids: null, nextQuestion: () => {
1477
1488
  }, passthroughData: void 0, recordingMediaTypes: void 0, screenPermissionRequested: !1, type: void 0 }, ee = Kr((e) => ({ ...Xt, reset: () => {
1478
1489
  e(Xt);
@@ -1480,7 +1491,7 @@ const mi = ({ visible: e }) => s("div", { className: "sprig-check-background", s
1480
1491
  e(t);
1481
1492
  } }));
1482
1493
  function nt({ currentPage: e, pages: t }) {
1483
- const { avStream: r, recordingMediaTypes: n, updatePage: i } = ee.getState(), { recorderEventEmitter: o } = q.getState();
1494
+ const { avStream: r, recordingMediaTypes: n, updatePage: i } = ee.getState(), { recorderEventEmitter: o } = H.getState();
1484
1495
  o.emit("av.permission", { "permission.descriptors": e.permissionDescriptors, "stream.ready": (a, l) => {
1485
1496
  if (r === a)
1486
1497
  return;
@@ -1493,7 +1504,7 @@ function nt({ currentPage: e, pages: t }) {
1493
1504
  } });
1494
1505
  }
1495
1506
  function it({ status: e }) {
1496
- const { nextQuestion: t, passthroughData: r, mediaRecordingUids: n, reset: i } = ee.getState(), { recorderEventEmitter: o, handleUploadUpdate: a, index: l } = q.getState(), d = { value: { taskStatus: e }, type: "recordedtask", questionId: (r == null ? void 0 : r.questionId) || 1 };
1507
+ const { nextQuestion: t, passthroughData: r, mediaRecordingUids: n, reset: i } = ee.getState(), { recorderEventEmitter: o, handleUploadUpdate: a, index: l } = H.getState(), d = { value: { taskStatus: e }, type: "recordedtask", questionId: (r == null ? void 0 : r.questionId) || 1 };
1497
1508
  r && o.emit("finish.task", { "begin.callback": (h) => {
1498
1509
  a({ mediaRecordingUid: h, isSubmitted: !0, progressPct: 0, isComplete: !1 });
1499
1510
  }, "progress.callback": (h, p) => {
@@ -1505,7 +1516,7 @@ function it({ status: e }) {
1505
1516
  } });
1506
1517
  }
1507
1518
  function _t({ pages: e, setIsRequestingPermission: t }) {
1508
- const { recorderEventEmitter: r, eventEmitFn: n } = q.getState(), { updatePage: i, currentPage: o, recordingMediaTypes: a, screenPermissionRequested: l } = ee.getState();
1519
+ const { recorderEventEmitter: r, eventEmitFn: n } = H.getState(), { updatePage: i, currentPage: o, recordingMediaTypes: a, screenPermissionRequested: l } = ee.getState();
1509
1520
  if (!o)
1510
1521
  return;
1511
1522
  const d = e.indexOf(o);
@@ -1537,16 +1548,16 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1537
1548
  }, 1e3);
1538
1549
  return () => clearInterval(a);
1539
1550
  }, [t, r, o, e, n, i]);
1540
- }, Hi = ({ content: e, pages: t, required: r }) => {
1551
+ }, qi = ({ content: e, pages: t, required: r }) => {
1541
1552
  const { buttonText: n, skipButtonText: i, taskDetail: o } = e;
1542
1553
  return gt(t), s("div", { className: "ul-task-page", children: [o && s(mn, { richTextBody: o }), s("div", { className: $e, children: [s(G, { onClick: _t.bind(null, { pages: t }), children: n }), s(ze, { required: r, skipButtonText: i })] })] }, "start-task");
1543
- }, qi = ({ content: e, pages: t, properties: r }) => {
1554
+ }, Hi = ({ content: e, pages: t, properties: r }) => {
1544
1555
  const { buttonText: n, skipButtonText: i } = e;
1545
1556
  gt(t);
1546
1557
  const o = s(ae, { properties: r, defaultBody: () => s("div", { className: $e, children: [s(G, { className: "ul-complete-task-button", onClick: it.bind(null, { status: "completed" }), children: n }), s(G, { className: L("ul-button-inactive"), onClick: it.bind(null, { status: "given.up" }), children: i })] }) });
1547
1558
  return s("div", { className: "ul-task-page", children: [e.taskDetail && s(mn, { richTextBody: e.taskDetail }), o] }, "complete-task");
1548
1559
  }, Oi = ({ content: e, pages: t, required: r }) => {
1549
- const { buttonText: n, skipButtonText: i } = e, [o] = q((d) => [d.tabTitle]), [a, l] = V(!1);
1560
+ const { buttonText: n, skipButtonText: i } = e, [o] = H((d) => [d.tabTitle]), [a, l] = V(!1);
1550
1561
  return s("div", { children: [s("div", { className: hn, children: [s("p", { style: { marginTop: "auto" }, children: e.selectTabText }), s("div", { className: "ul-select-tab-container", children: s("p", { className: pn, children: o }) })] }), s("div", { className: r ? "" : $e, children: [s(G, { disabled: a, onClick: _t.bind(null, { pages: t, setIsRequestingPermission: l }), children: n }), s(ze, { required: r, skipButtonText: i })] })] });
1551
1562
  }, Di = ({ content: e }) => s("div", { className: L(un, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"), dangerouslySetInnerHTML: { __html: e.svg } }, "ul-permission-request-graphic"), Ui = ({ content: e, pages: t, required: r }) => {
1552
1563
  const { permissionDeniedHeadline: n, permissionDeniedBody: i, skipButtonText: o, tryAgainButtonText: a } = e, l = je(t[0]) ? t[0] : null;
@@ -1573,22 +1584,22 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1573
1584
  case "screen_permission":
1574
1585
  return s(Oi, { content: i, pages: t, required: r });
1575
1586
  case "start_task":
1576
- return s(Hi, { content: i, pages: t, required: r });
1587
+ return s(qi, { content: i, pages: t, required: r });
1577
1588
  case "complete_task":
1578
- return s(qi, { content: i, pages: t, properties: e });
1589
+ return s(Hi, { content: i, pages: t, properties: e });
1579
1590
  default:
1580
1591
  return null;
1581
1592
  }
1582
1593
  }, Bi = ({ className: e, properties: t, next: r, questionId: n }) => {
1583
- const i = q(), { surveyId: o, responseGroupUid: a, userId: l } = i, d = ee(), { screenPermissionRequested: h } = d, p = ee((g) => g.avStream);
1594
+ const i = H(), { surveyId: o, responseGroupUid: a, userId: l } = i, d = ee(), { screenPermissionRequested: h } = d, p = ee((g) => g.avStream);
1584
1595
  let c = ee((g) => g.currentPage);
1585
- c || (c = function({ pages: g, userId: y, responseGroupUid: b, surveyId: v, questionId: E, next: C }) {
1586
- const { updatePage: k } = ee.getState(), { eventEmitFn: x, recorderEventEmitter: w } = q.getState(), I = { questionId: E, surveyId: v, visitorId: y, responseGroupUid: b };
1596
+ c || (c = function({ pages: g, userId: y, responseGroupUid: v, surveyId: b, questionId: E, next: C }) {
1597
+ const { updatePage: k } = ee.getState(), { eventEmitFn: x, recorderEventEmitter: w } = H.getState(), I = { questionId: E, surveyId: b, visitorId: y, responseGroupUid: v };
1587
1598
  let _ = 0;
1588
1599
  w.emit("recorded.task.permission.screen"), x("recorded.task.permission.screen"), w.emit("permission.status", { "permission.status.callback": (M, R, D, S) => {
1589
- const H = g[_], { type: A } = H, j = ["screen"];
1590
- if (je(H)) {
1591
- const { permissionDescriptors: W } = H, P = W == null ? void 0 : W.includes("microphone"), Z = W == null ? void 0 : W.includes("camera");
1600
+ const q = g[_], { type: A } = q, j = ["screen"];
1601
+ if (je(q)) {
1602
+ const { permissionDescriptors: W } = q, P = W == null ? void 0 : W.includes("microphone"), Z = W == null ? void 0 : W.includes("camera");
1592
1603
  P && j.push("audio"), Z && j.push("video"), (M != null && M.active && !Z || M != null && M.active && R) && _++;
1593
1604
  }
1594
1605
  Jt(g[_]) && D && (_++, w.emit("begin.recording", { "recording.media.types": j, "start.recording.callback": (W) => k({ mediaRecordingUids: W }) })), k({ currentPage: g[_], avStream: M, screenPermissionRequested: D, nextQuestion: C, type: A, passthroughData: I, recordingMediaTypes: j, captureStream: S });
@@ -1602,7 +1613,7 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1602
1613
  const f = dn(p, c);
1603
1614
  return Jt(c) && h && (u = c.permissionDeniedHeadline, m = c.permissionDeniedCaptionText), je(c) && f === cn && (u = c.permissionGrantedHeadline, m = c.permissionGrantedCaptionText), s("div", { className: L(e, "ul-center-horizontally", "fade-in-transition"), children: [s(te, { message: u, properties: { captionText: m } }), s(se, { children: s(Vi, { properties: t }) })] });
1604
1615
  }, $i = { "{{user_id}}": "externalUserId", "{{email}}": "email" }, zi = ({ className: e, message: t, next: r, properties: n, questionId: i, type: o }) => {
1605
- const { visitorAttributes: a } = q((u) => ({ visitorAttributes: u.visitorAttributes })), l = (u, m = !1) => {
1616
+ const { visitorAttributes: a } = H((u) => ({ visitorAttributes: u.visitorAttributes })), l = (u, m = !1) => {
1606
1617
  r({ value: m ? { skipped: !0 } : void 0, questionId: i, type: o });
1607
1618
  }, d = (u) => {
1608
1619
  u.key !== "Enter" && u.key !== " " || r({ value: void 0, questionId: i, type: o });
@@ -1610,30 +1621,30 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1610
1621
  if (!u)
1611
1622
  return u;
1612
1623
  try {
1613
- const v = new URL(u);
1614
- if (v.protocol !== "http:" && v.protocol !== "https:")
1624
+ const b = new URL(u);
1625
+ if (b.protocol !== "http:" && b.protocol !== "https:")
1615
1626
  return;
1616
1627
  } catch {
1617
1628
  return;
1618
1629
  }
1619
1630
  let f = u;
1620
1631
  const g = [];
1621
- for (const [v, E] of Object.entries($i))
1622
- if (f.toLowerCase().includes(v))
1632
+ for (const [b, E] of Object.entries($i))
1633
+ if (f.toLowerCase().includes(b))
1623
1634
  if (m[E]) {
1624
- const C = new RegExp(v, "gi");
1635
+ const C = new RegExp(b, "gi");
1625
1636
  f = f.replace(C, m[E]);
1626
1637
  } else
1627
- g.push(v);
1638
+ g.push(b);
1628
1639
  if (g.length === 0 || !f.includes("?"))
1629
1640
  return f;
1630
- const y = f.slice(0, f.indexOf("?")), b = f.slice(f.indexOf("?") + 1).split("&").map((v) => v.split("=")).filter((v) => !g.includes(v[1]));
1631
- return b.length === 0 ? y : `${y}?${b.map((v) => v.join("=")).join("&")}`;
1641
+ const y = f.slice(0, f.indexOf("?")), v = f.slice(f.indexOf("?") + 1).split("&").map((b) => b.split("=")).filter((b) => !g.includes(b[1]));
1642
+ return v.length === 0 ? y : `${y}?${v.map((b) => b.join("=")).join("&")}`;
1632
1643
  })(n && n.buttonUrl, a);
1633
- return s("div", { className: L(e, "ul-card__text-url-prompt", "fade-in-transition"), children: [s(te, { message: t, properties: { questionHtml: n.questionHtml } }), s(se, { children: (p = n == null ? void 0 : n.richTextBody, c = n == null ? void 0 : n.body, s("div", p ? { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: p }, id: "ul-card__text-url-body-container" } : { className: "ul-rich-text-body", id: "ul-card__text-url-body-container", children: (c ? c.split(/\n\s*\n/g) : []).map((u, m) => s("p", { children: u }, m)) })) }), s(ae, { defaultBody: () => s(de, { children: s("div", { className: "ul-card-button-group", children: [s("a", { className: "ul-card-text__button ul-card__text-url-prompt-button", href: h, id: "ul-card-text__button", onClick: l, onKeyPress: d, rel: "noreferrer", role: h ? "link" : "button", tabIndex: 0, target: "_blank", children: be(n) }), n.required === !1 && s("button", { className: "ul-card-skip__button", onClick: (u) => l(0, !0), children: on(n) })] }) }), properties: n })] }, i);
1644
+ return s("div", { className: L(e, "ul-card__text-url-prompt", "fade-in-transition"), children: [s(te, { message: t, properties: { questionHtml: n.questionHtml } }), s(se, { children: (p = n == null ? void 0 : n.richTextBody, c = n == null ? void 0 : n.body, p ? s("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: p }, id: "ul-card__text-url-body-container" }) : c ? s("div", { className: "ul-rich-text-body", id: "ul-card__text-url-body-container", children: (c ? c.split(/\n\s*\n/g) : []).map((u, m) => s("p", { children: u }, m)) }) : null) }), s(ae, { defaultBody: () => s(de, { children: s("div", { className: "ul-card-button-group", children: [s("a", { className: "ul-card-text__button ul-card__text-url-prompt-button", href: h, id: "ul-card-text__button", onClick: l, onKeyPress: d, rel: "noreferrer", role: h ? "link" : "button", tabIndex: 0, target: "_blank", children: ve(n) }), n.required === !1 && s("button", { className: "ul-card-skip__button", onClick: (u) => l(0, !0), children: on(n) })] }) }), properties: n })] }, i);
1634
1645
  var p, c;
1635
1646
  }, Fi = ({ className: e, questionId: t }) => {
1636
- const { border: r, destroy: n, endCard: i, forceBrandedLogo: o } = q((d) => ({ border: d.border, destroy: d.destroy, endCard: d.endCard, forceBrandedLogo: d.forceBrandedLogo }));
1647
+ const { border: r, destroy: n, endCard: i, forceBrandedLogo: o } = H((d) => ({ border: d.border, destroy: d.destroy, endCard: d.endCard, forceBrandedLogo: d.forceBrandedLogo }));
1637
1648
  F(() => {
1638
1649
  setTimeout(() => {
1639
1650
  n(he);
@@ -1642,21 +1653,21 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1642
1653
  const a = i && i.subheader ? s("p", { className: "ul-caption", children: i.subheader }) : null, l = i && i.headline ? i.headline : "";
1643
1654
  return s("div", { className: L(e, "ul-card--thanks", "fade-in-transition"), children: s("div", { children: s("div", { className: "ul-card--thanks-content", children: [s("div", { className: "ul-thanks-check", children: s("svg", { "aria-labelledby": "title", fill: "none", height: "99", viewBox: "0 0 81 99", width: "81", xmlns: "http://www.w3.org/2000/svg", children: [s("path", { clipRule: "evenodd", d: "M40.5 77C60.9345 77 77.5 60.4345 77.5 40C77.5 19.5655 60.9345 3 40.5 3C20.0655 3 3.5 19.5655 3.5 40C3.5 60.4345 20.0655 77 40.5 77ZM80.5 40C80.5 62.0914 62.5914 80 40.5 80C18.4086 80 0.5 62.0914 0.5 40C0.5 17.9086 18.4086 0 40.5 0C62.5914 0 80.5 17.9086 80.5 40Z", fill: r, fillRule: "evenodd" }), s("path", { clipRule: "evenodd", d: "M55.025 22.9046C55.6299 23.4705 55.6616 24.4198 55.0956 25.0247C54.8724 25.2634 54.6109 25.5285 54.3157 25.8277C52.2547 27.9168 48.5549 31.667 44.8135 39.6658C43.2818 42.9406 42.0864 45.8386 41.0823 48.2729C40.6539 49.3116 40.2603 50.2659 39.8902 51.129C39.287 52.5359 38.7248 53.7508 38.1744 54.625C37.8997 55.0613 37.5806 55.4905 37.2017 55.8245C36.8201 56.1607 36.2613 56.5 35.5457 56.5C34.6742 56.5 34.0892 55.9692 33.7774 55.6083C33.4502 55.2296 33.1752 54.7511 32.9396 54.301C32.7305 53.9013 32.5088 53.4367 32.2797 52.9565C32.2429 52.8794 32.2059 52.8019 32.1688 52.7243C31.8942 52.1499 31.5959 51.534 31.2537 50.8868C29.8886 48.305 27.8539 45.2878 24.2343 43.1382C23.522 42.7152 23.2875 41.7949 23.7105 41.0826C24.1335 40.3703 25.0539 40.1358 25.7662 40.5588C30.0556 43.1062 32.4149 46.6647 33.9058 49.4845C34.2776 50.1876 34.5973 50.8487 34.8753 51.4302C34.9147 51.5124 34.9529 51.5926 34.9902 51.6707C35.2222 52.1567 35.4164 52.5637 35.5978 52.9102C35.6151 52.9434 35.6321 52.9754 35.6485 53.0061C36.0565 52.3531 36.5341 51.3434 37.133 49.9468C37.4781 49.1418 37.8572 48.2229 38.2761 47.2074C39.2886 44.7532 40.5339 41.7347 42.0961 38.3948C46.0591 29.9221 50.0641 25.8648 52.1535 23.7482C52.4423 23.4556 52.6944 23.2002 52.9048 22.9753C53.4708 22.3703 54.42 22.3387 55.025 22.9046ZM35.1994 53.5892C35.1994 53.5892 35.2 53.5888 35.2012 53.5879C35.2 53.5889 35.1994 53.5893 35.1994 53.5892ZM36.0666 53.6682C36.0732 53.674 36.0765 53.6775 36.0765 53.6777C36.0765 53.678 36.0732 53.6751 36.0666 53.6682Z", fill: r, fillRule: "evenodd" }), s("path", { d: "M69.5 97C69.5 98.1046 56.2924 99 40 99C23.7076 99 10.5 98.1046 10.5 97C10.5 95.8954 23.7076 95 40 95C56.2924 95 69.5 95.8954 69.5 97Z", fill: "black", fillOpacity: "0.2" })] }) }), s(te, { message: l }), a] }) }) }, t);
1644
1655
  }, Wi = ({ className: e }) => {
1645
- const { uploadProgress: t } = q((o) => ({ uploadProgress: o.uploadProgress }));
1656
+ const { uploadProgress: t } = H((o) => ({ uploadProgress: o.uploadProgress }));
1646
1657
  let r, n;
1647
1658
  Object.values(t).filter((o) => o.isSubmitted).length > 1 ? (r = "Your responses are processing", n = "Please keep this tab open until your responses are fully processed.") : (r = "Your response is processing", n = "Please keep this tab open until your response is fully processed.");
1648
1659
  const i = Math.round(Math.min(99, ...Object.values(t).filter((o) => o.isSubmitted).map((o) => o.progressPct || 0)));
1649
1660
  return s("div", { className: L(e, "ul-card--uploading", "fade-in-transition"), children: [s("div", { "aria-busy": "true", "aria-label": "Processing...", "aria-live": "polite", className: "ul-loading-spinner-container", role: "progressbar", children: s("div", { className: "ul-loading-spinner", children: [s("div", { className: "first" }), s("div", { className: "second" }), s("div", { className: "third" }), s("div", { className: "fourth" })] }) }), s(te, { message: `${r} (${i}% complete)` }), s("p", { className: "ul-caption", children: n })] });
1650
1661
  }, er = ({ logoOnly: e = !1, style: t = {} }) => s("svg", { alt: (e ? "Powered by " : "") + "Sprig", width: e ? "35" : "112", height: "15", viewBox: e ? "79 0 31 15" : "0 0 112 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { display: "block", ...t }, children: [!e && s("path", { d: "M0.648926 12.0181V2.8584H4.21631C6.0127 2.8584 7.25684 4.06445 7.25684 5.86084V5.87354C7.25684 7.66357 6.0127 8.88867 4.21631 8.88867H2.0708V12.0181H0.648926ZM3.86084 4.05811H2.0708V7.69531H3.86084C5.09229 7.69531 5.80957 7.02881 5.80957 5.87988V5.86719C5.80957 4.72461 5.09229 4.05811 3.86084 4.05811ZM11.6621 12.1514C9.63721 12.1514 8.39941 10.7993 8.39941 8.57764V8.56494C8.39941 6.34961 9.64355 4.99121 11.6621 4.99121C13.6743 4.99121 14.9185 6.34326 14.9185 8.56494V8.57764C14.9185 10.7993 13.6807 12.1514 11.6621 12.1514ZM11.6621 11.0024C12.8428 11.0024 13.5156 10.1011 13.5156 8.57764V8.56494C13.5156 7.03516 12.8428 6.14014 11.6621 6.14014C10.4751 6.14014 9.80859 7.03516 9.80859 8.56494V8.57764C9.80859 10.1074 10.4751 11.0024 11.6621 11.0024ZM17.6226 12.0181L15.7183 5.12451H17.1021L18.3398 10.4438H18.4414L19.8633 5.12451H21.1709L22.5928 10.4438H22.7007L23.9321 5.12451H25.2969L23.3989 12.0181H21.9834L20.5552 6.87646H20.4473L19.0254 12.0181H17.6226ZM29.334 12.1514C27.3154 12.1514 26.0967 10.7739 26.0967 8.59033V8.58398C26.0967 6.43213 27.3408 4.99121 29.2642 4.99121C31.1875 4.99121 32.3682 6.38135 32.3682 8.45068V8.93311H27.4805C27.5059 10.2534 28.2295 11.0215 29.3657 11.0215C30.248 11.0215 30.7749 10.5835 30.9399 10.228L30.9653 10.1772L32.292 10.1709L32.2793 10.228C32.0508 11.1357 31.0986 12.1514 29.334 12.1514ZM29.2705 6.12109C28.3311 6.12109 27.6201 6.76221 27.4995 7.94922H31.0034C30.8955 6.71777 30.2036 6.12109 29.2705 6.12109ZM34.0059 12.0181V5.12451H35.3833V6.16553H35.4849C35.7324 5.43555 36.3735 5.00391 37.2939 5.00391C37.5161 5.00391 37.7573 5.03564 37.897 5.06738V6.33691C37.6494 6.28613 37.4146 6.25439 37.1543 6.25439C36.1006 6.25439 35.3833 6.90186 35.3833 7.89844V12.0181H34.0059ZM41.9277 12.1514C39.9092 12.1514 38.6904 10.7739 38.6904 8.59033V8.58398C38.6904 6.43213 39.9346 4.99121 41.8579 4.99121C43.7812 4.99121 44.9619 6.38135 44.9619 8.45068V8.93311H40.0742C40.0996 10.2534 40.8232 11.0215 41.9595 11.0215C42.8418 11.0215 43.3687 10.5835 43.5337 10.228L43.5591 10.1772L44.8857 10.1709L44.873 10.228C44.6445 11.1357 43.6924 12.1514 41.9277 12.1514ZM41.8643 6.12109C40.9248 6.12109 40.2139 6.76221 40.0933 7.94922H43.5972C43.4893 6.71777 42.7974 6.12109 41.8643 6.12109ZM49.1133 12.1323C47.3804 12.1323 46.2568 10.7422 46.2568 8.57764V8.56494C46.2568 6.38135 47.3613 5.00391 49.1133 5.00391C50.0591 5.00391 50.8652 5.47363 51.2334 6.21631H51.3413V2.42041H52.7124V12.0181H51.3413V10.9326H51.2334C50.8335 11.688 50.0781 12.1323 49.1133 12.1323ZM49.5068 10.958C50.6558 10.958 51.3604 10.0503 51.3604 8.57764V8.56494C51.3604 7.09229 50.6494 6.18457 49.5068 6.18457C48.3516 6.18457 47.6597 7.08594 47.6597 8.56494V8.57764C47.6597 10.0566 48.3516 10.958 49.5068 10.958ZM61.98 12.1323C61.0151 12.1323 60.2598 11.688 59.8599 10.9326H59.7583V12.0181H58.3809V2.42041H59.7583V6.21631H59.8599C60.228 5.47363 61.0342 5.00391 61.98 5.00391C63.7319 5.00391 64.8364 6.38135 64.8364 8.56494V8.57764C64.8364 10.7422 63.7192 12.1323 61.98 12.1323ZM61.5928 10.958C62.7417 10.958 63.4336 10.0566 63.4336 8.57764V8.56494C63.4336 7.08594 62.7417 6.18457 61.5928 6.18457C60.4438 6.18457 59.7329 7.09229 59.7329 8.56494V8.57764C59.7329 10.0503 60.4438 10.958 61.5928 10.958ZM66.8867 14.4429C66.7153 14.4429 66.5122 14.4302 66.3345 14.4111V13.3257C66.4678 13.3447 66.6392 13.3511 66.7979 13.3511C67.439 13.3511 67.8262 13.0781 68.0293 12.3799L68.1309 12.0244L65.6299 5.12451H67.1152L68.8418 10.6343H68.9624L70.6826 5.12451H72.1299L69.5654 12.2847C68.9814 13.9287 68.2832 14.4429 66.8867 14.4429Z", fill: "black", fillOpacity: "0.7" }), s("path", { d: "M81.1088 6.63629C79.6878 6.32154 78.9672 5.76865 78.9672 4.99369C78.9672 4.19299 79.736 3.5886 80.7556 3.5886C81.8066 3.5886 82.5995 4.25285 82.5995 5.13336V5.20352H84.0518V5.13336C84.0518 3.52424 82.6405 2.30774 80.7693 2.30774C79.8676 2.30774 79.0414 2.58451 78.4433 3.08655C78.1463 3.33144 77.9077 3.63818 77.7448 3.98479C77.5818 4.33141 77.4984 4.70934 77.5005 5.09153C77.4946 5.44197 77.5675 5.78934 77.714 6.10857C77.8605 6.42779 78.0769 6.71092 78.3475 6.93752C78.8512 7.37584 79.5659 7.70024 80.4709 7.90299C81.9949 8.23898 82.7676 8.81054 82.7676 9.60094C82.7676 10.4576 81.9258 11.1032 80.813 11.1032C79.6571 11.1032 78.7854 10.3856 78.7854 9.43424V9.36408H77.3318V9.43424C77.3318 11.1167 78.8219 12.3847 80.7973 12.3847C81.7421 12.3847 82.6093 12.0983 83.2393 11.5769C83.5519 11.3237 83.8034 11.0048 83.9753 10.6433C84.1472 10.2818 84.2352 9.88702 84.2329 9.48766C84.2329 8.05875 83.1833 7.09907 81.1088 6.63629Z", fill: "black", fillOpacity: "0.7" }), s("path", { d: "M89.2394 4.68276C88.6963 4.67605 88.1596 4.79915 87.6751 5.04156C87.1905 5.28397 86.7725 5.63851 86.4566 6.07497V4.85204H85.0747V14.8479H86.4566V11.0356C86.7725 11.472 87.1906 11.8265 87.6751 12.0688C88.1596 12.3111 88.6963 12.434 89.2394 12.4272C91.3836 12.4272 93 10.7627 93 8.55495C93 6.34723 91.3836 4.68276 89.2394 4.68276ZM91.5608 8.84202C91.5057 9.41605 91.2512 9.95356 90.8406 10.3633C90.4299 10.773 89.8883 11.0296 89.3078 11.0896C88.5363 11.1669 87.8177 10.9461 87.2841 10.4692C86.7505 9.99222 86.4566 9.3106 86.4566 8.55495C86.4566 7.10159 87.5538 6.00546 89.0087 6.00546C89.7619 6.00546 90.4421 6.29124 90.9171 6.81002C91.407 7.34232 91.6357 8.06385 91.5608 8.84202Z", fill: "black", fillOpacity: "0.7" }), s("path", { d: "M109.95 4.85407V6.06349C109.298 5.18298 108.292 4.68286 107.153 4.68286C105.017 4.68286 103.406 6.31709 103.406 8.48426C103.406 10.6514 105.017 12.285 107.153 12.285C108.296 12.285 109.303 11.79 109.95 10.9185V11.1046C109.95 12.6101 108.993 13.5826 107.513 13.5826C106.513 13.5826 105.68 13.1494 105.284 12.424L105.264 12.3867H103.838L103.871 12.48C104.112 13.1892 104.583 13.8001 105.211 14.2179C105.841 14.6324 106.637 14.8512 107.513 14.8512C108.637 14.8512 109.594 14.4972 110.28 13.8285C110.967 13.1597 111.332 12.2194 111.332 11.1213V4.85407H109.95ZM109.175 10.3502C108.588 10.905 107.752 11.138 106.879 10.9887C106.361 10.8984 105.886 10.6475 105.523 10.2725C105.16 9.89751 104.927 9.41787 104.859 8.90328C104.736 8.03757 104.999 7.21756 105.581 6.655C106.069 6.19093 106.723 5.93643 107.401 5.94699C107.565 5.94713 107.729 5.96026 107.891 5.98625C108.946 6.15489 109.781 7.01609 109.921 8.0852C110.039 8.96507 109.766 9.78958 109.175 10.3502Z", fill: "black", fillOpacity: "0.7" }), s("path", { d: "M101.89 2.12378C101.63 2.06766 101.358 2.11486 101.133 2.25518C100.908 2.39551 100.747 2.61769 100.687 2.87371C100.626 3.12973 100.67 3.39902 100.809 3.62339C100.947 3.84775 101.17 4.00917 101.428 4.07275C101.503 4.08936 101.58 4.09778 101.657 4.09786C101.906 4.09824 102.146 4.0083 102.331 3.84518C102.517 3.68206 102.636 3.45714 102.664 3.21327C102.693 2.9694 102.63 2.72361 102.487 2.5227C102.344 2.32179 102.132 2.17981 101.89 2.12378Z", fill: "black", fillOpacity: "0.7" }), s("path", { d: "M100.967 10.934H99.7755C98.9285 10.934 98.4196 10.3644 98.4196 9.40982C98.4196 8.4791 98.8757 7.36945 99.8054 6.01778L99.8178 5.99976V5.61807L95.8571 5.06453C95.8585 4.90331 95.8162 4.74466 95.7346 4.60501C95.653 4.46536 95.5352 4.34979 95.3932 4.27027C95.0381 4.07718 94.6498 4.07717 94.3279 4.26383C94.1667 4.35799 94.035 4.4945 93.9476 4.65816C93.8602 4.82182 93.8205 5.00623 93.8328 5.19087C93.8452 5.37552 93.9092 5.55315 94.0176 5.70402C94.1261 5.85489 94.2748 5.97309 94.4472 6.04546L93.2151 12.258H94.5833L95.7196 6.35891L97.8593 6.7155C97.284 7.73439 96.9921 8.68442 96.9921 9.53919C96.9921 11.1168 97.9577 12.1498 99.5187 12.2496V12.258H102.346V4.87723H100.967V10.934Z", fill: "black", fillOpacity: "0.7" })] }), Zi = () => {
1651
- const { border: e, cards: t, forceBrandedLogo: r, headers: n, index: i, marketingUrl: o, showSurveyBrand: a, slugName: l, surveyId: d, viewedCardCount: h } = q((b) => ({ border: b.border, cards: b.cards, forceBrandedLogo: b.forceBrandedLogo, headers: b.headers, index: b.index, marketingUrl: b.marketingUrl, showSurveyBrand: b.showSurveyBrand, slugName: b.slugName, surveyId: b.surveyId, viewedCardCount: b.viewedCardCount })), p = K(null), c = t.filter((b) => b.type !== "uploading" && b.type !== "thanks"), u = ((b, v) => {
1662
+ const { border: e, cards: t, forceBrandedLogo: r, headers: n, index: i, marketingUrl: o, showSurveyBrand: a, slugName: l, surveyId: d, viewedCardCount: h } = H((v) => ({ border: v.border, cards: v.cards, forceBrandedLogo: v.forceBrandedLogo, headers: v.headers, index: v.index, marketingUrl: v.marketingUrl, showSurveyBrand: v.showSurveyBrand, slugName: v.slugName, surveyId: v.surveyId, viewedCardCount: v.viewedCardCount })), p = Q(null), c = t.filter((v) => v.type !== "uploading" && v.type !== "thanks"), u = ((v, b) => {
1652
1663
  const E = /* @__PURE__ */ new Set(["thanks", "uploading"]);
1653
- if (v >= b.length || v < 0 || E.has(b[v].type))
1664
+ if (b >= v.length || b < 0 || E.has(v[b].type))
1654
1665
  return 0;
1655
- const C = b.filter((x) => !E.has(x.type));
1656
- if (v === C.length - 1)
1666
+ const C = v.filter((x) => !E.has(x.type));
1667
+ if (b === C.length - 1)
1657
1668
  return 1;
1658
1669
  const k = { [C.length - 1]: 1, [-1]: 0 };
1659
- for (let x = C.length - 2; x >= v; x--) {
1670
+ for (let x = C.length - 2; x >= b; x--) {
1660
1671
  const w = C[x], I = pi(x, w.props.routingOptions);
1661
1672
  if (I.length === 0) {
1662
1673
  k[x] = k[x + 1] + 1;
@@ -1664,23 +1675,23 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1664
1675
  }
1665
1676
  let _ = 0, T = ci(w);
1666
1677
  if (T === null)
1667
- return C.length - 1 - v;
1678
+ return C.length - 1 - b;
1668
1679
  for (let M = 0; M < I.length && T.length !== 0; M++) {
1669
- const { comparator: R, target: D, value: S } = I[M], H = T.filter((A) => {
1680
+ const { comparator: R, target: D, value: S } = I[M], q = T.filter((A) => {
1670
1681
  const j = li({ value: A }, w.type, A), W = Qr(A, w.type);
1671
1682
  return !(j && R === "answered" || W && R === "partial" || !j && !W && R === "skipped" || R === "given_up" && ui(A) && A.taskStatus === "given.up" || j && w.type === "open" && (R === "contains" || R === "notcontains") || j && di(R) && ft[R](A, S));
1672
1683
  });
1673
- if (H.length < T.length) {
1684
+ if (q.length < T.length) {
1674
1685
  const A = parseInt(String(D), 10);
1675
1686
  if (A !== -1 && A <= x || A >= C.length)
1676
- return C.length - 1 - v;
1687
+ return C.length - 1 - b;
1677
1688
  _ = Math.max(k[A] + 1, _);
1678
1689
  }
1679
- T = H;
1690
+ T = q;
1680
1691
  }
1681
1692
  T.length > 0 && (_ = Math.max(k[x + 1] + 1, _)), k[x] = _;
1682
1693
  }
1683
- return k[v];
1694
+ return k[b];
1684
1695
  })(t, i), m = h + 1, f = m / (m + u), g = `${o}?utm_source=survey_branding&utm_medium=website&utm_campaign=${l}&utm_content=${d}${r && "&utm_term=poweredby_pill"}`;
1685
1696
  F(() => {
1686
1697
  p.current && (p.current.style.width = 100 * f + "%");
@@ -1688,10 +1699,10 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1688
1699
  const y = t[i].type === "thanks";
1689
1700
  return s("footer", { className: "ul-footer " + (n["userleap-platform"] === "link" ? "ul-footer__link" : ""), children: y && r ? s("a", { dir: "ltr", href: g, rel: "noreferrer", target: "_blank", children: s("div", { className: "thank-you-card-link", children: [s("div", { className: "sprig-box-logo", children: s(er, { logoOnly: !0, style: { margin: "auto" } }) }), s("div", { children: s("p", { children: ["Capture insights about your own product", s(tr, { style: { display: "inline-flex", marginInlineStart: "4px", verticalAlign: "middle" } })] }) })] }) }) : s(z, { children: [c.length > 1 && s("div", { id: "ul-progress-bar-container", children: s("div", { id: "ul-progress-bar-current", ref: p, style: { border: `1px solid ${e || "#000"}` } }) }), a ? s("div", { className: r ? "yellow-footer-logo" : "", style: { marginTop: "4px", marginBottom: "4px" }, children: s("a", { href: g, rel: "noreferrer", target: "_blank", children: s("div", { style: { display: "flex" }, children: [s(er, { logoOnly: !1 }), r && s(tr, { style: { display: "block", margin: "auto 0 auto 4px", transform: "rotateY(0deg) rotate(-45deg)" } })] }) }) }) : null] }) });
1690
1701
  }, tr = ({ style: e }) => s("svg", { fill: "none", height: "10", style: e, viewBox: "0 0 12 10", width: "12", xmlns: "http://www.w3.org/2000/svg", children: [s("path", { d: "M1.47839 5.2085L10.9384 5.2085", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" }), s("path", { d: "M7.0686 1.15845L10.9386 5.20845L7.0686 9.25845", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" })] }), Gi = () => {
1691
- const { answers: e, border: t, cards: r, close: n, configureExitOnOverlayClick: i, destroy: o, endCard: a, eventEmitFn: l, fontFamily: d, headers: h, index: p, minScrollableHeight: c, next: u, previewMode: m, productConfig: f, seen: g, showStripes: y, studyType: b, surveyId: v, update: E, useMobileStyling: C, viewDocument: k } = q((S) => ({ answers: S.answers, border: S.border, cards: S.cards, close: S.close, configureExitOnOverlayClick: S.configureExitOnOverlayClick, destroy: S.destroy, endCard: S.endCard, eventEmitFn: S.eventEmitFn, fontFamily: S.fontFamily, headers: S.headers, index: S.index, previewMode: S.previewMode, productConfig: S.productConfig, minScrollableHeight: S.minScrollableHeight, next: S.next, seen: S.seen, showStripes: S.showStripes, studyType: S.studyType, surveyId: S.surveyId, update: S.update, useMobileStyling: S.useMobileStyling, viewDocument: S.viewDocument })), x = K(null), w = K(!1), I = h["userleap-platform"], { props: _, type: T, name: M } = r[p];
1702
+ const { answers: e, border: t, cards: r, close: n, configureExitOnOverlayClick: i, destroy: o, endCard: a, eventEmitFn: l, fontFamily: d, headers: h, index: p, minScrollableHeight: c, next: u, previewMode: m, productConfig: f, seen: g, showStripes: y, studyType: v, surveyId: b, update: E, useMobileStyling: C, viewDocument: k } = H((S) => ({ answers: S.answers, border: S.border, cards: S.cards, close: S.close, configureExitOnOverlayClick: S.configureExitOnOverlayClick, destroy: S.destroy, endCard: S.endCard, eventEmitFn: S.eventEmitFn, fontFamily: S.fontFamily, headers: S.headers, index: S.index, previewMode: S.previewMode, productConfig: S.productConfig, minScrollableHeight: S.minScrollableHeight, next: S.next, seen: S.seen, showStripes: S.showStripes, studyType: S.studyType, surveyId: S.surveyId, update: S.update, useMobileStyling: S.useMobileStyling, viewDocument: S.viewDocument })), x = Q(null), w = Q(!1), I = h["userleap-platform"], { props: _, type: T, name: M } = r[p];
1692
1703
  F(() => {
1693
- x.current && (x.current.classList.contains("ul-app--visible") || x.current.classList.add("ul-app--visible"), !w.current && l && (w.current = !0, l(X.SurveyAppeared, { name: X.SurveyAppeared, "survey.id": v })));
1694
- }, [l, v]), F(() => {
1704
+ x.current && (x.current.classList.contains("ul-app--visible") || x.current.classList.add("ul-app--visible"), !w.current && l && (w.current = !0, l(K.SurveyAppeared, { name: K.SurveyAppeared, "survey.id": b })));
1705
+ }, [l, b]), F(() => {
1695
1706
  const S = () => {
1696
1707
  k.visibilityState === "visible" && (g(), k.removeEventListener("visibilitychange", S));
1697
1708
  };
@@ -1711,23 +1722,23 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1711
1722
  if (e) {
1712
1723
  for (const S of e)
1713
1724
  if (S.questionId === M) {
1714
- let H;
1725
+ let q;
1715
1726
  if (T === "multiplechoice") {
1716
1727
  const A = _.options.find(({ value: j }) => j === S.value);
1717
1728
  if (!A)
1718
1729
  break;
1719
- H = { [A.id]: A.value };
1730
+ q = { [A.id]: A.value };
1720
1731
  } else
1721
- H = S.value;
1722
- R({ value: H, type: T, questionId: S.questionId });
1732
+ q = S.value;
1733
+ R({ value: q, type: T, questionId: S.questionId });
1723
1734
  break;
1724
1735
  }
1725
1736
  }
1726
1737
  const D = !C && ((f == null ? void 0 : f.framePosition) === "center" || (f == null ? void 0 : f.desktopDisplay) === "center-modal" || ((f == null ? void 0 : f.placement) || "").includes("center"));
1727
- return s("div", { className: L("ul-app", qe(h) ? "ul-app--visible" : "ul-app--overlay"), dir: "auto", id: he, onClick: (S) => {
1738
+ return s("div", { className: L("ul-app", He(h) ? "ul-app--visible" : "ul-app--overlay"), dir: "auto", id: he, onClick: (S) => {
1728
1739
  var W;
1729
- const H = window.sprigAPI, A = S.target;
1730
- if (!H || !A)
1740
+ const q = window.sprigAPI, A = S.target;
1741
+ if (!q || !A)
1731
1742
  return;
1732
1743
  const j = [A, A.parentElement];
1733
1744
  for (const P of j)
@@ -1735,13 +1746,13 @@ const un = "ul-permission-graphics-container", pn = "ul-permission-body", hn = L
1735
1746
  S.preventDefault();
1736
1747
  try {
1737
1748
  const Z = new URL(P.href);
1738
- Z.protocol !== "http:" && Z.protocol !== "https:" || (H == null || H.openUrl(Z.toString()));
1749
+ Z.protocol !== "http:" && Z.protocol !== "https:" || (q == null || q.openUrl(Z.toString()));
1739
1750
  } catch (Z) {
1740
1751
  console.error(Z);
1741
1752
  }
1742
1753
  return;
1743
1754
  }
1744
- }, ref: x, style: { "--theme": t, ...d ? { fontFamily: d.replace(";", "") } : {}, ...D ? { position: "relative" } : {} }, children: s("div", { className: "ul-app__container", children: s("div", { className: L($("ul-card__container", C, b)), style: { ...b !== "feedbackButton" || (f == null ? void 0 : f.desktopDisplay) === "center-modal" ? { borderColor: t } : {}, ...(f == null ? void 0 : f.desktopDisplay) === "slider" ? { margin: "0px" } : {} }, children: s("div", { className: "sprig-container", style: { minHeight: c }, children: [y && s("div", { className: "ul-header__container", dir: "ltr", children: s("div", { className: "ul-header", children: "For development purposes only" }) }), m && s("div", { className: "ul-header__container", dir: "ltr", children: s("div", { className: "ul-header", children: "Preview Mode: Response will not be recorded." }) }), s("div", { className: L(_i("ul-card-main-content", I)), children: (() => {
1755
+ }, ref: x, style: { "--theme": t, ...d ? { fontFamily: d.replace(";", "") } : {}, ...D ? { position: "relative" } : {} }, children: s("div", { className: "ul-app__container", children: s("div", { className: L($("ul-card__container", C, v)), style: { ...v !== "feedbackButton" || (f == null ? void 0 : f.desktopDisplay) === "center-modal" ? { borderColor: t } : {}, ...(f == null ? void 0 : f.desktopDisplay) === "slider" ? { margin: "0px" } : {} }, children: s("div", { className: "sprig-container", style: { minHeight: c }, children: [y && s("div", { className: "ul-header__container", dir: "ltr", children: s("div", { className: "ul-header", children: "For development purposes only" }) }), m && s("div", { className: "ul-header__container", dir: "ltr", children: s("div", { className: "ul-header", children: "Preview Mode: Response will not be recorded." }) }), s("div", { className: L(_i("ul-card-main-content", I)), children: (() => {
1745
1756
  const S = { className: "ul-card", next: R, questionId: M, type: T };
1746
1757
  switch (T) {
1747
1758
  case "consentlegal":
@@ -1784,7 +1795,7 @@ function ir(e, t, r, n, i, o) {
1784
1795
  if (!l)
1785
1796
  return;
1786
1797
  a && a(l), e.onstop = () => async function(d, h, p, c, u, m, f) {
1787
- const g = q.getState().viewDocument, { "upload.callback": y, "progress.callback": b } = c, v = { mediaType: p, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaRecordingUid: u, ...c["passthrough.data"] }, E = await (async (w, I) => {
1798
+ const g = H.getState().viewDocument, { "upload.callback": y, "progress.callback": v } = c, b = { mediaType: p, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaRecordingUid: u, ...c["passthrough.data"] }, E = await (async (w, I) => {
1788
1799
  var T;
1789
1800
  const _ = await fetch(I, { method: "POST", cache: "no-cache", headers: { "Content-Type": "application/json" }, body: JSON.stringify(w) });
1790
1801
  if (_.ok) {
@@ -1792,7 +1803,7 @@ function ir(e, t, r, n, i, o) {
1792
1803
  return (T = M == null ? void 0 : M.upload) == null ? void 0 : T.url;
1793
1804
  }
1794
1805
  return null;
1795
- })(v, d);
1806
+ })(b, d);
1796
1807
  if (!E)
1797
1808
  return void (y && y(null, { message: "failed to get upload url" }));
1798
1809
  const C = new Blob(f, { type: fn() });
@@ -1802,7 +1813,7 @@ function ir(e, t, r, n, i, o) {
1802
1813
  x.on("error", (w) => {
1803
1814
  y && y(null, w);
1804
1815
  }), x.on("progress", (w) => {
1805
- b && b(u, w);
1816
+ v && v(u, w);
1806
1817
  }), x.on("success", () => {
1807
1818
  y && y(u, !0);
1808
1819
  });
@@ -1879,7 +1890,7 @@ const Ki = { state: { chunks: {} }, stopRecording(e) {
1879
1890
  const { "permission.status.callback": t } = e, r = this.state.avStream;
1880
1891
  t && t(r, !!r && (r == null ? void 0 : r.getVideoTracks().length) > 0, !!((n = this.state.captureStream) != null && n.active), this.state.captureStream);
1881
1892
  }, lookAheadAndStopStream(e, t, r, n) {
1882
- const { avRecorder: i, screenRecorder: o } = this.state, { allResponses: a } = q.getState(), l = Yr({ cards: r, index: e, hasEndCard: n, allResponses: a });
1893
+ const { avRecorder: i, screenRecorder: o } = this.state, { allResponses: a } = H.getState(), l = Yr({ cards: r, index: e, hasEndCard: n, allResponses: a });
1883
1894
  l !== null && r[l].type === "recordedtask" || [i, o].map((d) => {
1884
1895
  d && (d.state === "recording" && d.stop(), d.stream.getTracks().map((h) => {
1885
1896
  h.readyState === "live" && h.stop();
@@ -1897,19 +1908,19 @@ const Qi = ({ mode: e = null, viewWindow: t, viewDocument: r, trackPageViewUrl:
1897
1908
  }
1898
1909
  return { mode: e, sw: t.screen.width, sh: t.screen.height, cw: i.clientWidth, ch: i.clientHeight, p: n ?? o, l: t.navigator.language };
1899
1910
  }, Ji = { configure: function(e, t = !0) {
1900
- var b;
1901
- const { answers: r, apiURL: n, endCard: i, eventEmitFn: o, fontFamilyURL: a, frame: l, previewKey: d, viewDocument: h, viewWindow: p } = e, c = qe(e.headers) ? e.frame : h.body, u = e.UpChunk || window.UpChunk, m = Me, f = ((v, E) => {
1902
- const C = [...v], k = /* @__PURE__ */ new Set(["videovoice", "recordedtask"]);
1903
- return v.some((x) => k.has(x.type)) && C.push({ name: -2, props: { routingOptions: [] }, type: "uploading" }), E && C.push({ name: -1, props: { routingOptions: [] }, type: "thanks" }), C;
1911
+ var v;
1912
+ const { answers: r, apiURL: n, endCard: i, eventEmitFn: o, fontFamilyURL: a, frame: l, previewKey: d, viewDocument: h, viewWindow: p } = e, c = He(e.headers) ? e.frame : h.body, u = e.UpChunk || window.UpChunk, m = Me, f = ((b, E) => {
1913
+ const C = [...b], k = /* @__PURE__ */ new Set(["videovoice", "recordedtask"]);
1914
+ return b.some((x) => k.has(x.type)) && C.push({ name: -2, props: { routingOptions: [] }, type: "uploading" }), E && C.push({ name: -1, props: { routingOptions: [] }, type: "thanks" }), C;
1904
1915
  })(e.cards, !!i);
1905
- ot.configure(m, { cards: f, hasEndCard: !!i, apiURL: n, UpChunk: u }), q.setState({ apiURL: n, answers: r, border: e.border, index: e.startingQuestionIdx || 0, cards: f, configureExitOnOverlayClick: e.configureExitOnOverlayClick, customMetadata: e.customMetadata, endCard: e.endCard, envId: e.envId, eventEmitFn: o, fontFamily: e.fontFamily, forceBrandedLogo: e.forceBrandedLogo, frame: l, headers: e.headers, hasViewedEmbed: !1, isPreview: e.isPreview, marketingUrl: "https://sprig.com", meta: Qi({ mode: e.mode, viewWindow: p, viewDocument: h, trackPageViewUrl: e.trackPageViewUrl }), mode: e.mode, previewKey: d, previewMode: e.previewMode, productConfig: e.productConfig, recorder: ot, recorderEventEmitter: m, responseGroupUid: e.responseGroupUid, showStripes: e.showStripes, showSurveyBrand: e.showSurveyBrand, slugName: e.slugName, styleNonce: e.styleNonce, studyType: e.studyType, surveyId: e.surveyId, tabTitle: e.tabTitle, uploadingCardViewed: !1, uploadProgress: {}, useMobileStyling: e.useMobileStyling, useDesktopPrototype: e.useDesktopPrototype, userId: e.userId, viewDocument: e.viewDocument, visitorAttributes: e.visitorAttributes, viewedCardCount: e.startingQuestionIdx || 0 });
1916
+ ot.configure(m, { cards: f, hasEndCard: !!i, apiURL: n, UpChunk: u }), H.setState({ apiURL: n, answers: r, border: e.border, index: e.startingQuestionIdx || 0, cards: f, configureExitOnOverlayClick: e.configureExitOnOverlayClick, customMetadata: e.customMetadata, endCard: e.endCard, envId: e.envId, eventEmitFn: o, fontFamily: e.fontFamily, forceBrandedLogo: e.forceBrandedLogo, frame: l, headers: e.headers, hasViewedEmbed: !1, isPreview: e.isPreview, marketingUrl: "https://sprig.com", meta: Qi({ mode: e.mode, viewWindow: p, viewDocument: h, trackPageViewUrl: e.trackPageViewUrl }), mode: e.mode, previewKey: d, previewMode: e.previewMode, productConfig: e.productConfig, recorder: ot, recorderEventEmitter: m, responseGroupUid: e.responseGroupUid, showStripes: e.showStripes, showSurveyBrand: e.showSurveyBrand, slugName: e.slugName, styleNonce: e.styleNonce, studyType: e.studyType, surveyId: e.surveyId, tabTitle: e.tabTitle, uploadingCardViewed: !1, uploadProgress: {}, useMobileStyling: e.useMobileStyling, useDesktopPrototype: e.useDesktopPrototype, userId: e.userId, viewDocument: e.viewDocument, visitorAttributes: e.visitorAttributes, viewedCardCount: e.startingQuestionIdx || 0 });
1906
1917
  const { head: g } = h;
1907
1918
  if (xt({ document: h, elementId: "sprig-style", styleString: '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-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)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:start;min-width:200px;min-height:0;justify-content:center}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026;margin:15px}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.sprig-container{display:flex;flex-direction:column;width:100%;height:fit-content;flex:1 1 auto;min-height:0;justify-content:center}.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;padding:0;min-height:0;position:relative;text-align:center;word-break:break-word;overflow:auto}.ul-card__container--desktop_feedbackButton{box-shadow:unset}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;display:flex;gap:16px;justify-content:center;align-self:stretch}.sprig-question-footer-container{align-items:center;width:100%;height:fit-content;display:flex;flex-direction:column;padding:12px 20px 0}.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,.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;z-index:2;height:fit-content}.sprig-border-bottom{border-bottom:1px solid rgba(0,0,0,.1)}.sprig-border-top{border-top:1px solid rgba(0,0,0,.1)}.question-header-container{z-index:1}.sprig-header-container{padding:16px}.question-header-button-container{display:grid;grid-template-columns:97fr 3fr;align-items:center;justify-content:space-between;width:100%;height:fit-content}.ul-card--thanks-content .question-header-button-container{justify-content:center}.sprig-question-body{padding:0 20px;min-height:0;flex-shrink:1;overflow:auto;position:relative;align-self:stretch;width:100%}.sprig-stretch{align-self:stretch}.ul-question{color:#343442;display:block;font-size:17px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-question ol,.ul-question ul,.ul-caption ol,.ul-caption ul{margin-left:1em}.ul-caption{flex:1 0 auto;font-size:14px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start;margin-top:4px}.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}.select-checkbox{height:16px;width:16px;display:flex;box-sizing:border-box;background-color:"transparent";align-items:center;justify-content:center;border-radius:4px;border:1px solid #b0b5b7;flex-shrink:0}.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}.footer{width:100%;margin-top:12px;font-size:12px;line-height:12px;color:#000000b3}[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;align-self:stretch}.sprig-accordion{width:100%;margin-bottom:8px}.sprig-accordion-body{width:100%;overflow:hidden}.sprig-accordion-header-container{background:transparent;border:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;cursor:pointer;margin:8px 0 0;padding:0;font-family:inherit}.sprig-header-label-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex:1 1 0}.sprig-header-label{color:#343442;font-size:15px;font-weight:590;line-height:21px;text-align:start;overflow:hidden}.sprig-check-background{flex:0 0 16px;height:16px;width:16px;border-radius:8px;margin-right:8px;background-color:#efefee;display:flex;align-items:center;justify-content:center}.sprig-check{height:9px;width:9px;margin-left:-1px}.sprig-check path{stroke:#506067;stroke-width:1.5}.sprig-caret{height:20px;width:20px;transition-property:transform}.sprig-caret path{stroke:#000}.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}.ul-card--likert__numbers>button{padding:unset}.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;background:unset;border:unset}.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;background:unset;border:unset}.likert-smiley>svg{margin:0 auto}.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(107px,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;padding:unset}.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{margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-direction:column;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-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}.select-button{align-items:center;background-color:transparent;border-radius:8px;border:1px solid #0b2330;box-shadow:0 0 0 2px #c8cccc;cursor:pointer;display:flex;font-size:15px;justify-content:space-between;margin-bottom:8px;padding:4px 8px 4px 16px;width:100%}.select-button:hover{background-color:#f3f3f3}.select-button:active{background-color:#eee}.select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-button.select-button-placeholder{color:#b0b5b7}.select-button svg{flex-shrink:0}.select-list{position:relative;height:fit-content;padding:4px 0;z-index:100;background-color:#fff;border:1px solid #E2E3E1;box-shadow:0 16px 24px #0b23300d,0 4px 12px #0b233008;border-radius:8px;overflow-y:scroll;width:100%}.select-option{align-items:center;cursor:pointer;display:flex;font-size:15px;gap:16px;line-height:20px;padding:8px 16px}.select-option:hover{background-color:#f3f3f3}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}form{margin-block-end:0;margin-block-start:0}#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;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin-top:auto;flex-grow:0;width:100%;min-height:10px;height:fit-content;flex-shrink:0}.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%;height:0}.close-btn{cursor:pointer;height:16px;margin-inline-end:-10px;position:relative;top:-10px;width:16px;z-index:1;align-self:flex-start;justify-self:end;flex-shrink:0}.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:16px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{align-self:stretch;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:0;height:fit-content;line-height:16.5px;margin:0 20px;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}' }), e.customStyles && xt({ document: h, elementId: "ul-custom-style", styleString: e.customStyles, nonce: e.styleNonce }), e.fontFamily && a && parent) {
1908
- const v = h.createElement("link");
1909
- v.rel = "stylesheet", v.href = a, g.appendChild(v);
1919
+ const b = h.createElement("link");
1920
+ b.rel = "stylesheet", b.href = a, g.appendChild(b);
1910
1921
  }
1911
- const y = o || ((b = l.eventEmitter) == null ? void 0 : b.emit);
1912
- y == null || y("verify.view.version", { "view.version": "2.32.10" }), c && t && fe(s(Gi, {}), c);
1922
+ const y = o || ((v = l.eventEmitter) == null ? void 0 : v.emit);
1923
+ y == null || y("verify.view.version", { "view.version": "2.33.1" }), c && t && fe(s(Gi, {}), c);
1913
1924
  } };
1914
1925
  export {
1915
1926
  Ji as default