@sprig-technologies/sprig-browser 2.32.4 → 2.32.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { C as Ht, A as Se, a as Gr, D as Kr, i as Yr, E as Qr, b as De, d as Ct, r as Jr, e as At } from "./core-DX7Qkopv.js";
2
- import { b as Xr, D as Bt, e as Be, h as We, S as ve, s as ht, v as mt } from "./metricsReporter-Dh_342TQ.js";
1
+ import { C as Ht, A as Se, a as Gr, D as Kr, i as Yr, E as Qr, b as De, d as Ct, r as Jr, e as At } from "./core-GM5ainPn.js";
2
+ import { b as Xr, D as Bt, e as Be, h as We, S as ve, s as ht, v as mt } from "./metricsReporter-IUVTL7s6.js";
3
3
  var Le, D, Rn, xe, qt, Nn, gt, Mn, Me = {}, Ln = [], eo = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ze = Array.isArray;
4
4
  function ue(e, t) {
5
5
  for (var n in t)
@@ -26,7 +26,7 @@ function Re(e, t, n, r, o) {
26
26
  function Un() {
27
27
  return { current: null };
28
28
  }
29
- function K(e) {
29
+ function G(e) {
30
30
  return e.children;
31
31
  }
32
32
  function oe(e, t) {
@@ -65,7 +65,7 @@ function Vt(e, t, n, r, o, i, s, d, l, p, h) {
65
65
  for (n.__d = l, function(x, T, S) {
66
66
  var w, k, j, P, g, v = T.length, E = S.length, I = E, O = 0;
67
67
  for (x.__k = [], w = 0; w < v; w++)
68
- (k = x.__k[w] = (k = T[w]) == null || typeof k == "boolean" || typeof k == "function" ? null : typeof k == "string" || typeof k == "number" || typeof k == "bigint" || k.constructor == String ? Re(null, k, null, null, k) : Ze(k) ? Re(K, { children: k }, null, null, null) : k.constructor === void 0 && k.__b > 0 ? Re(k.type, k.props, k.key, k.ref ? k.ref : null, k.__v) : k) != null ? (k.__ = x, k.__b = x.__b + 1, g = to(k, S, P = w + O, I), k.__i = g, j = null, g !== -1 && (I--, (j = S[g]) && (j.__u |= 131072)), j == null || j.__v === null ? (g == -1 && O--, typeof k.type != "function" && (k.__u |= 65536)) : g !== P && (g === P + 1 ? O++ : g > P ? I > v - P ? O += g - P : O-- : O = g < P && g == P - 1 ? g - P : 0, g !== w + O && (k.__u |= 65536))) : (j = S[w]) && j.key == null && j.__e && (j.__e == x.__d && (x.__d = je(j)), vt(j, j, !1), S[w] = null, I--);
68
+ (k = x.__k[w] = (k = T[w]) == null || typeof k == "boolean" || typeof k == "function" ? null : typeof k == "string" || typeof k == "number" || typeof k == "bigint" || k.constructor == String ? Re(null, k, null, null, k) : Ze(k) ? Re(G, { children: k }, null, null, null) : k.constructor === void 0 && k.__b > 0 ? Re(k.type, k.props, k.key, k.ref ? k.ref : null, k.__v) : k) != null ? (k.__ = x, k.__b = x.__b + 1, g = to(k, S, P = w + O, I), k.__i = g, j = null, g !== -1 && (I--, (j = S[g]) && (j.__u |= 131072)), j == null || j.__v === null ? (g == -1 && O--, typeof k.type != "function" && (k.__u |= 65536)) : g !== P && (g === P + 1 ? O++ : g > P ? I > v - P ? O += g - P : O-- : O = g < P && g == P - 1 ? g - P : 0, g !== w + O && (k.__u |= 65536))) : (j = S[w]) && j.key == null && j.__e && (j.__e == x.__d && (x.__d = je(j)), vt(j, j, !1), S[w] = null, I--);
69
69
  if (I)
70
70
  for (w = 0; w < E; w++)
71
71
  (j = S[w]) != null && !(131072 & j.__u) && (j.__e == x.__d && (x.__d = je(j)), vt(j, j));
@@ -180,13 +180,13 @@ function Et(e, t, n, r, o, i, s, d, l, p) {
180
180
  do
181
181
  c.__d = !1, w && w(t), h = c.render(c.props, c.state, c.context), c.state = c.__s;
182
182
  while (c.__d && ++k < 25);
183
- c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), u || c.getSnapshotBeforeUpdate == null || (b = c.getSnapshotBeforeUpdate(m, f)), Vt(e, Ze(P = h != null && h.type === K && h.key == null ? h.props.children : h) ? P : [P], t, n, r, o, i, s, d, l, p), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), _ && (c.__E = c.__ = null);
183
+ c.state = c.__s, c.getChildContext != null && (r = ue(ue({}, r), c.getChildContext())), u || c.getSnapshotBeforeUpdate == null || (b = c.getSnapshotBeforeUpdate(m, f)), Vt(e, Ze(P = h != null && h.type === G && h.key == null ? h.props.children : h) ? P : [P], t, n, r, o, i, s, d, l, p), c.base = t.__e, t.__u &= -161, c.__h.length && s.push(c), _ && (c.__E = c.__ = null);
184
184
  } catch (v) {
185
185
  t.__v = null, l || i != null ? (t.__e = d, t.__u |= l ? 160 : 32, i[i.indexOf(d)] = null) : (t.__e = n.__e, t.__k = n.__k), D.__e(v, t, n);
186
186
  }
187
187
  else
188
188
  i == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = function(v, E, I, O, C, M, A, H, q) {
189
- var R, W, Y, le, F, Q, be, te = I.props, de = E.props, ne = E.type;
189
+ var R, W, K, le, F, Y, be, te = I.props, de = E.props, ne = E.type;
190
190
  if (ne === "svg" && (C = !0), M != null) {
191
191
  for (R = 0; R < M.length; R++)
192
192
  if ((F = M[R]) && "setAttribute" in F == !!ne && (ne ? F.localName === ne : F.nodeType === 3)) {
@@ -206,15 +206,15 @@ function Et(e, t, n, r, o, i, s, d, l, p) {
206
206
  for (te = {}, R = 0; R < v.attributes.length; R++)
207
207
  te[(F = v.attributes[R]).name] = F.value;
208
208
  for (R in te)
209
- F = te[R], R == "children" || (R == "dangerouslySetInnerHTML" ? Y = F : R === "key" || R in de || Ae(v, R, null, F, C));
209
+ F = te[R], R == "children" || (R == "dangerouslySetInnerHTML" ? K = F : R === "key" || R in de || Ae(v, R, null, F, C));
210
210
  for (R in de)
211
- F = de[R], R == "children" ? le = F : R == "dangerouslySetInnerHTML" ? W = F : R == "value" ? Q = F : R == "checked" ? be = F : R === "key" || H && typeof F != "function" || te[R] === F || Ae(v, R, F, te[R], C);
211
+ F = de[R], R == "children" ? le = F : R == "dangerouslySetInnerHTML" ? W = F : R == "value" ? Y = F : R == "checked" ? be = F : R === "key" || H && typeof F != "function" || te[R] === F || Ae(v, R, F, te[R], C);
212
212
  if (W)
213
- H || Y && (W.__html === Y.__html || W.__html === v.innerHTML) || (v.innerHTML = W.__html), E.__k = [];
214
- else if (Y && (v.innerHTML = ""), Vt(v, Ze(le) ? le : [le], E, I, O, C && ne !== "foreignObject", M, A, M ? M[0] : I.__k && je(I, 0), H, q), M != null)
213
+ H || K && (W.__html === K.__html || W.__html === v.innerHTML) || (v.innerHTML = W.__html), E.__k = [];
214
+ else if (K && (v.innerHTML = ""), Vt(v, Ze(le) ? le : [le], E, I, O, C && ne !== "foreignObject", M, A, M ? M[0] : I.__k && je(I, 0), H, q), M != null)
215
215
  for (R = M.length; R--; )
216
216
  M[R] != null && On(M[R]);
217
- H || (R = "value", Q !== void 0 && (Q !== v[R] || ne === "progress" && !Q || ne === "option" && Q !== te[R]) && Ae(v, R, Q, te[R], !1), R = "checked", be !== void 0 && be !== v[R] && Ae(v, R, be, te[R], !1));
217
+ H || (R = "value", Y !== void 0 && (Y !== v[R] || ne === "progress" && !Y || ne === "option" && Y !== te[R]) && Ae(v, R, Y, te[R], !1), R = "checked", be !== void 0 && be !== v[R] && Ae(v, R, be, te[R], !1));
218
218
  }
219
219
  return v;
220
220
  }(n.__e, t, n, r, o, i, s, l, p);
@@ -262,7 +262,7 @@ function no(e, t, n) {
262
262
  }
263
263
  function Ie(e, t, n) {
264
264
  var r, o, i, s;
265
- D.__ && D.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], Et(t, e = (!r && n || t).__k = z(K, null, [e]), o || Me, Me, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? Le.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Bn(i, e, s);
265
+ D.__ && D.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, i = [], s = [], Et(t, e = (!r && n || t).__k = z(G, null, [e]), o || Me, Me, t.ownerSVGElement !== void 0, !r && n ? [n] : o ? null : t.firstChild ? Le.call(t.childNodes) : null, i, !r && n ? n : o ? o.__e : t.firstChild, r, s), Bn(i, e, s);
266
266
  }
267
267
  function qn(e, t) {
268
268
  Ie(e, t, qn);
@@ -309,7 +309,7 @@ Le = Ln.slice, D = { __e: function(e, t, n, r) {
309
309
  n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = ue({}, this.state), typeof e == "function" && (e = e(ue({}, n), this.props)), e && ue(n, e), e != null && this.__v && (t && this._sb.push(t), ft(this));
310
310
  }, oe.prototype.forceUpdate = function(e) {
311
311
  this.__v && (this.__e = !0, e && this.__h.push(e), ft(this));
312
- }, oe.prototype.render = K, xe = [], Nn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, gt = function(e, t) {
312
+ }, oe.prototype.render = G, xe = [], Nn = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, gt = function(e, t) {
313
313
  return e.__v.__b - t.__v.__b;
314
314
  }, Ge.__r = 0, Mn = 0;
315
315
  var he, V, rt, Wt, Te = 0, zn = [], qe = [], Zt = D.__b, Gt = D.__r, Kt = D.diffed, Yt = D.__c, Qt = D.unmount;
@@ -357,7 +357,7 @@ function jt(e, t, n) {
357
357
  }
358
358
  return r.__N || r.__;
359
359
  }
360
- function G(e, t) {
360
+ function Q(e, t) {
361
361
  var n = we(he++, 3);
362
362
  !D.__s && Tt(n.__H, t) && (n.__ = e, n.i = t, V.__H.__h.push(n));
363
363
  }
@@ -604,8 +604,8 @@ D.unmount = function(e) {
604
604
  }
605
605
  this.__b = null;
606
606
  }
607
- var o = t.__a && z(K, null, e.fallback);
608
- return o && (o.__u &= -33), [z(K, null, t.__a ? null : e.children), o];
607
+ var o = t.__a && z(G, null, e.fallback);
608
+ return o && (o.__u &= -33), [z(G, null, t.__a ? null : e.children), o];
609
609
  };
610
610
  var nn = function(e, t, n) {
611
611
  if (++n[1] === n[0] && e.o.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.o.size))
@@ -727,7 +727,7 @@ function He(e) {
727
727
  return !!e && e.$$typeof === nr;
728
728
  }
729
729
  function ar(e) {
730
- return He(e) && e.type === K;
730
+ return He(e) && e.type === G;
731
731
  }
732
732
  function lr(e) {
733
733
  return He(e) ? ro.apply(null, arguments) : e;
@@ -742,7 +742,7 @@ var ur = function(e, t) {
742
742
  return e(t);
743
743
  }, pr = function(e, t) {
744
744
  return e(t);
745
- }, hr = K;
745
+ }, hr = G;
746
746
  function Rt(e) {
747
747
  e();
748
748
  }
@@ -757,7 +757,7 @@ function _r(e, t) {
757
757
  var n = t(), r = $({ h: { __: n, v: t } }), o = r[0].h, i = r[1];
758
758
  return Oe(function() {
759
759
  o.__ = n, o.v = t, ot(o) && i({ h: o });
760
- }, [e, n, t]), G(function() {
760
+ }, [e, n, t]), Q(function() {
761
761
  return ot(o) && i({ h: o }), e(function() {
762
762
  ot(o) && i({ h: o });
763
763
  });
@@ -772,8 +772,8 @@ function ot(e) {
772
772
  return !0;
773
773
  }
774
774
  }
775
- var yo = { useState: $, useId: Wn, useReducer: jt, useEffect: G, useLayoutEffect: Oe, useInsertionEffect: fr, useTransition: gr, useDeferredValue: mr, useSyncExternalStore: _r, startTransition: Rt, useRef: ee, useImperativeHandle: $n, useMemo: Ue, useCallback: Ke, useContext: Fn, useDebugValue: It, version: "17.0.2", Children: Yn, render: rr, hydrate: or, unmountComponentAtNode: dr, createPortal: tr, createElement: z, createContext: Vn, createFactory: sr, cloneElement: lr, createRef: Un, Fragment: K, isValidElement: He, isElement: vr, isFragment: ar, findDOMNode: cr, Component: oe, PureComponent: Ye, memo: Kn, forwardRef: Pt, flushSync: pr, unstable_batchedUpdates: ur, StrictMode: hr, Suspense: Ne, SuspenseList: Ee, lazy: er, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ir };
776
- const xo = Object.freeze(Object.defineProperty({ __proto__: null, Children: Yn, Component: oe, Fragment: K, PureComponent: Ye, StrictMode: hr, Suspense: Ne, SuspenseList: Ee, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ir, cloneElement: lr, createContext: Vn, createElement: z, createFactory: sr, createPortal: tr, createRef: Un, default: yo, findDOMNode: cr, flushSync: pr, forwardRef: Pt, hydrate: or, isElement: vr, isFragment: ar, isValidElement: He, lazy: er, memo: Kn, render: rr, startTransition: Rt, unmountComponentAtNode: dr, unstable_batchedUpdates: ur, useCallback: Ke, useContext: Fn, useDebugValue: It, useDeferredValue: mr, useEffect: G, useErrorBoundary: function(e) {
775
+ var yo = { useState: $, useId: Wn, useReducer: jt, useEffect: Q, useLayoutEffect: Oe, useInsertionEffect: fr, useTransition: gr, useDeferredValue: mr, useSyncExternalStore: _r, startTransition: Rt, useRef: ee, useImperativeHandle: $n, useMemo: Ue, useCallback: Ke, useContext: Fn, useDebugValue: It, version: "17.0.2", Children: Yn, render: rr, hydrate: or, unmountComponentAtNode: dr, createPortal: tr, createElement: z, createContext: Vn, createFactory: sr, cloneElement: lr, createRef: Un, Fragment: G, isValidElement: He, isElement: vr, isFragment: ar, findDOMNode: cr, Component: oe, PureComponent: Ye, memo: Kn, forwardRef: Pt, flushSync: pr, unstable_batchedUpdates: ur, StrictMode: hr, Suspense: Ne, SuspenseList: Ee, lazy: er, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ir };
776
+ const xo = Object.freeze(Object.defineProperty({ __proto__: null, Children: Yn, Component: oe, Fragment: G, PureComponent: Ye, StrictMode: hr, Suspense: Ne, SuspenseList: Ee, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ir, cloneElement: lr, createContext: Vn, createElement: z, createFactory: sr, createPortal: tr, createRef: Un, default: yo, findDOMNode: cr, flushSync: pr, forwardRef: Pt, hydrate: or, isElement: vr, isFragment: ar, isValidElement: He, lazy: er, memo: Kn, render: rr, startTransition: Rt, unmountComponentAtNode: dr, unstable_batchedUpdates: ur, useCallback: Ke, useContext: Fn, useDebugValue: It, useDeferredValue: mr, useEffect: Q, useErrorBoundary: function(e) {
777
777
  var t = we(he++, 10), n = $();
778
778
  return t.__ = e, V.componentDidCatch || (V.componentDidCatch = function(r, o) {
779
779
  t.__ && t.__(r, o), n[1](r);
@@ -1154,11 +1154,11 @@ function a(e, t, n, r, o, i) {
1154
1154
  }
1155
1155
  const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", style: { opacity: e ? 1 : 0 }, children: a(Sr, { className: "sprig-check" }) }), mn = "250ms", Go = Pt(({ animate: e, children: t, header: n, isOpen: r, onClick: o, showHeaderCheck: i }, s) => {
1156
1156
  const d = ee(null), [l, p] = $(0), [h, c] = $("none"), [u, m] = $(!0);
1157
- return G(() => {
1157
+ return Q(() => {
1158
1158
  var b;
1159
1159
  const f = (b = d.current) == null ? void 0 : b.getBoundingClientRect();
1160
1160
  p(r && f ? f.height : 0);
1161
- }, [r]), G(() => {
1161
+ }, [r]), Q(() => {
1162
1162
  !l && r || !u || m(!1), c(e && !u ? `height ${mn} ease` : "none");
1163
1163
  }, [e, u, l, r]), a("div", { className: "sprig-accordion", ref: s, children: [a("button", { className: "sprig-accordion-header-container", onClick: o, type: "button", children: [a("div", { className: "sprig-header-label-container", children: [a("span", { className: "sprig-header-label", children: n }), a(Zo, { visible: i })] }), a(Er, { className: "sprig-caret", style: { transitionDuration: e ? mn : "0", transform: r ? "rotate(-180deg)" : "none" } })] }), a("div", { className: "sprig-accordion-body", style: { transition: h, height: l }, children: a("div", { ref: d, children: t }) })] });
1164
1164
  }), L = (...e) => e.filter(Boolean).join(" "), Z = (e, t, n) => {
@@ -1166,7 +1166,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1166
1166
  return `${e + r} ${e + (n ? `${r}_${n}` : "")} ${e}`;
1167
1167
  }, Ko = (e, t) => `${e} ${e}__${t}`, X = (e) => a("button", { ...e, className: L("ul-card-text__button", e.className), id: "ul-card-text__button" }), jr = () => {
1168
1168
  const { viewDocument: e } = B((r) => ({ viewDocument: r.viewDocument })), [t, n] = $(!1);
1169
- return G(() => {
1169
+ return Q(() => {
1170
1170
  const r = e.querySelector(".sprig-question-body"), o = new ResizeObserver(() => {
1171
1171
  window.requestAnimationFrame(() => {
1172
1172
  n(!!(r && Yr(r) && r.scrollHeight > r.offsetHeight));
@@ -1201,15 +1201,15 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1201
1201
  }
1202
1202
  return e();
1203
1203
  }, Ir = ({ isSelected: e, id: t, divId: n, themeColor: r }) => a("div", { "aria-checked": e, "aria-labelledby": `label-${t}`, className: "select-checkbox", id: n, role: "checkbox", style: e ? { backgroundColor: r, borderColor: r, boxShadow: "none" } : {}, tabIndex: 0, children: e && a(Sr, {}) }), Tr = (e, t) => {
1204
- const n = ee(0), r = () => {
1204
+ const n = ee(0);
1205
+ return () => {
1205
1206
  if (e.current) {
1206
- const o = e.current;
1207
- o.style.height = "1px";
1208
- const i = o.scrollHeight + (o.offsetHeight - o.clientHeight), s = parseInt(window.getComputedStyle(o).getPropertyValue("max-height")), d = i <= s ? i : s;
1209
- n.current !== d && t(), n.current = d, o.style.height = `${d}px`;
1207
+ const r = e.current;
1208
+ r.style.height = "1px";
1209
+ const o = r.scrollHeight + (r.offsetHeight - r.clientHeight), i = parseInt(window.getComputedStyle(r).getPropertyValue("max-height")), s = o <= i ? o : i;
1210
+ n.current !== s && t(), n.current = s, r.style.height = `${s}px`;
1210
1211
  }
1211
1212
  };
1212
- return G(r, []), r;
1213
1213
  }, et = ({ ariaLabel: e, border: t, choiceStyle: n = {}, label: r, isSelected: o, value: i, text: s, id: d, isRadio: l, useMobileStyling: p, error: h, allowTextEntry: c, noneOfTheAbove: u, promptText: m, onUserInputChanged: f }) => {
1214
1214
  const { styleNonce: b, viewDocument: _ } = B((I) => ({ styleNonce: I.styleNonce, viewDocument: I.viewDocument })), [y, x] = $(!1);
1215
1215
  Jo(_, t, b);
@@ -1229,8 +1229,8 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1229
1229
  return a("div", { className: L(Z("choice", p), ...v), id: `choice-div-${d}`, style: { ...n, ...h ? { borderColor: De } : {} }, ...j, children: [a("div", { className: L("choice-label-container"), children: [l ? a("div", { ...E, className: L("select-radio", ...g), id: P, role: "radio", tabIndex: 0 }) : a(Ir, { divId: P, id: d, isSelected: o, themeColor: t }), r && a("label", { className: L(Z("select-label", p)), htmlFor: P, id: `label-${d}`, children: r })] }), c && o && a("div", { className: L("choice-text-entry-container", ...g), children: a(Qo, { onTextChange: (I) => T({ isSelected: o, userText: I }), promptText: m || "Please specify", textValue: s, useMobileStyling: p }) })] });
1230
1230
  }, Qo = ({ promptText: e, textValue: t, onTextChange: n, useMobileStyling: r }) => {
1231
1231
  const o = ee(null), { update: i } = B((d) => ({ update: d.update })), s = Tr(o, () => i());
1232
- return G(() => {
1233
- o.current && o.current.focus();
1232
+ return Q(() => {
1233
+ s(), o.current && o.current.focus();
1234
1234
  }, []), a("textarea", { "aria-label": e, "aria-multiline": "true", "aria-placeholder": e, className: L(Z("choice-text-input", r)), "data-gramm": "false", maxLength: 5e3, name: "text", onChange: (d) => {
1235
1235
  s(), d.stopPropagation(), n(d.currentTarget.value);
1236
1236
  }, onClick: (d) => {
@@ -1274,7 +1274,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1274
1274
  }, P = () => a(_e, { children: [a("div", { className: "sprig-stretch", children: [a(et, { allowTextEntry: !1, border: d, error: u && !l, id: "consent", isRadio: !1, isSelected: l, label: _, onUserInputChanged: ({ selected: g }) => {
1275
1275
  g !== l && p(!l);
1276
1276
  }, useMobileStyling: s }), f && a("input", { "aria-label": b, "aria-placeholder": b, className: L(Z("ul-consent-legal__name-input", s)), "data-gramm": "false", maxLength: 250, name: "name", onBlur: j, onFocus: k, onInput: w, placeholder: b, style: u && !x ? { borderColor: De } : {}, tabIndex: 0, value: h })] }), a("div", { className: "ul-card__button-wrapper ul-card-vertical__button-wrapper", children: [a(X, { className: T ? "" : "sprig-button-disabled", onClick: S, children: y }), r.required === !1 && a("button", { className: "ul-card-skip__button", onClick: (g) => S(g, !0), children: Mt(r) })] })] });
1277
- return a("div", { className: L(e, "ul-card__consent-legal", "fade-in-transition"), children: [a(ie, { message: t, properties: { questionHtml: r.questionHtml } }), a(K, { children: [a(ge, { children: a("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: r != null && r.richTextBody ? { __html: r.richTextBody } : void 0, id: "ul-card__consent-legal-body-container" }) }), a(me, { properties: r, defaultBody: P, embeddedType: "pdf" })] })] }, o);
1277
+ return a("div", { className: L(e, "ul-card__consent-legal", "fade-in-transition"), children: [a(ie, { message: t, properties: { questionHtml: r.questionHtml } }), a(G, { children: [a(ge, { children: a("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: r != null && r.richTextBody ? { __html: r.richTextBody } : void 0, id: "ul-card__consent-legal-body-container" }) }), a(me, { properties: r, defaultBody: P, embeddedType: "pdf" })] })] }, o);
1278
1278
  }, ti = ({ activeValue: e, border: t, icon: n, isPressed: r, onSubmit: o, range: i, scaleLabelType: s, setActiveValue: d, setIsPressed: l, useMobileStyling: p, value: h, viewDocument: c }) => {
1279
1279
  const u = `option-${h}`, m = s === "number", f = s === "star", b = m && h === e, [_, y] = h <= e && f || h === e ? r ? [t, 1] : [t, 0.3] : ["", 1];
1280
1280
  return a("button", { "aria-label": m ? void 0 : String(h), className: (() => {
@@ -1314,7 +1314,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1314
1314
  }), j = (P) => {
1315
1315
  P.preventDefault(), P.stopPropagation(), r({ value: null, questionId: i, type: s });
1316
1316
  };
1317
- return a("form", { className: L(e, "ul-card--likert", "fade-in-transition"), children: [a(ie, { message: n, properties: o }), a(me, { properties: o, defaultBody: () => a(K, { children: [a(ge, { children: [a("div", { "aria-label": `Rating (1 - ${S})`, className: "ul-card--likert__numbers", role: "radiogroup", children: k }), a("div", { className: "ul-card--likert__labels", children: [a("span", { children: f }), a("span", { children: b })] })] }), !o.required && a(_e, { children: a("div", { className: "ul-vertical-centered-container", children: a(X, { onClick: j, children: Ce(o) }) }) })] }) })] }, i);
1317
+ return a("form", { className: L(e, "ul-card--likert", "fade-in-transition"), children: [a(ie, { message: n, properties: o }), a(me, { properties: o, defaultBody: () => a(G, { children: [a(ge, { children: [a("div", { "aria-label": `Rating (1 - ${S})`, className: "ul-card--likert__numbers", role: "radiogroup", children: k }), a("div", { className: "ul-card--likert__labels", children: [a("span", { children: f }), a("span", { children: b })] })] }), !o.required && a(_e, { children: a("div", { className: "ul-vertical-centered-container", children: a(X, { onClick: j, children: Ce(o) }) }) })] }) })] }, i);
1318
1318
  }, Dr = (e) => e && (e.scrollHeight > e.offsetHeight ? e : Dr(e.parentElement)), ri = (e) => {
1319
1319
  if (!e || !((n) => n instanceof HTMLElement)(e))
1320
1320
  return 0;
@@ -1341,7 +1341,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1341
1341
  return a("div", { children: n.map((u, m) => c(m, u)) });
1342
1342
  }, ii = ({ columns: e, onSelect: t, options: n, selectedOptions: r }) => {
1343
1343
  const { border: o, useMobileStyling: i } = B((c) => ({ border: c.border, useMobileStyling: c.useMobileStyling })), s = n.length, d = e.length, l = ee(null), [p, h] = $(!1);
1344
- return G(() => {
1344
+ return Q(() => {
1345
1345
  const c = l.current, u = new ResizeObserver((m) => {
1346
1346
  window.requestAnimationFrame(() => {
1347
1347
  c && h(Math.round(m[0].contentRect.width) < c.scrollWidth);
@@ -1355,7 +1355,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1355
1355
  const c = l.current;
1356
1356
  c && h(c.clientWidth + Math.abs(c.scrollLeft) < c.scrollWidth);
1357
1357
  })();
1358
- }, ref: l, children: a("div", { className: "ul-card--matrix_grid", style: `--numColumns: ${d}; --numRows: ${s + 1}`, children: [a("div", {}), " ", e.map((c) => a("div", { className: "ul-matrix-column-label", children: c.label }, c.label)), n.map((c) => a(K, { children: [a("div", { "aria-label": c.label, className: "ul-matrix-row-label", children: c.label }, c.label), a("div", { className: "ul-matrix-row-options", role: "radiogroup", children: e.map((u, m) => a("div", { className: L("ul-matrix-option-wrapper", m === d - 1 && "ul-matrix-last-option"), children: a(et, { allowTextEntry: !1, ariaLabel: `${c.label}-${u.label}`, border: o, choiceStyle: { background: "transparent", border: "none", marginBottom: "0", padding: "0" }, error: !1, id: `${c.id}-${u.value}`, isRadio: !0, isSelected: r[c.id] === u.value, onUserInputChanged: () => t(c.id, u.value), useMobileStyling: i }) }, u.value)) })] }))] }) }), p && a("button", { className: "ul-matrix-scroll-arrow", onClick: (c) => {
1358
+ }, ref: l, children: a("div", { className: "ul-card--matrix_grid", style: `--numColumns: ${d}; --numRows: ${s + 1}`, children: [a("div", {}), " ", e.map((c) => a("div", { className: "ul-matrix-column-label", children: c.label }, c.label)), n.map((c) => a(G, { children: [a("div", { "aria-label": c.label, className: "ul-matrix-row-label", children: c.label }, c.label), a("div", { className: "ul-matrix-row-options", role: "radiogroup", children: e.map((u, m) => a("div", { className: L("ul-matrix-option-wrapper", m === d - 1 && "ul-matrix-last-option"), children: a(et, { allowTextEntry: !1, ariaLabel: `${c.label}-${u.label}`, border: o, choiceStyle: { background: "transparent", border: "none", marginBottom: "0", padding: "0" }, error: !1, id: `${c.id}-${u.value}`, isRadio: !0, isSelected: r[c.id] === u.value, onUserInputChanged: () => t(c.id, u.value), useMobileStyling: i }) }, u.value)) })] }))] }) }), p && a("button", { className: "ul-matrix-scroll-arrow", onClick: (c) => {
1359
1359
  c.preventDefault();
1360
1360
  const u = l.current;
1361
1361
  if (u) {
@@ -1369,7 +1369,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1369
1369
  }, f = p && Object.values(c).every((_) => _ == null), b = o.displayMatrixAsAccordion || d;
1370
1370
  return a("form", { className: L(e, "fade-in-transition", "ul-card__matrix"), id: "text-form", onSubmit: (_) => {
1371
1371
  _.preventDefault(), _.stopPropagation(), n({ value: c, questionId: i, type: s });
1372
- }, children: [a(ie, { message: t, properties: o }), a(me, { properties: o, defaultBody: () => a(K, { children: [a(ge, { children: a(b ? oi : ii, { columns: l, onSelect: m, options: r, selectedOptions: c }) }), a(_e, { children: a("div", { className: "ul-card__button-wrapper", children: a(X, { disabled: f, children: Ce(o) }) }) })] }) })] }, i);
1372
+ }, children: [a(ie, { message: t, properties: o }), a(me, { properties: o, defaultBody: () => a(G, { children: [a(ge, { children: a(b ? oi : ii, { columns: l, onSelect: m, options: r, selectedOptions: c }) }), a(_e, { children: a("div", { className: "ul-card__button-wrapper", children: a(X, { disabled: f, children: Ce(o) }) }) })] }) })] }, i);
1373
1373
  }, ai = ({ options: e, selectItem: t, selectedOptions: n, showCheckbox: r }) => {
1374
1374
  const { themeColor: o } = B((i) => ({ doc: i.viewDocument, themeColor: i.border }));
1375
1375
  return a("div", { className: "select-list", children: e.map((i) => {
@@ -1382,7 +1382,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1382
1382
  const [s, d] = $(!1), { viewDocument: l, update: p } = B((u) => ({ viewDocument: u.viewDocument, update: u.update })), h = () => {
1383
1383
  d(!s), p();
1384
1384
  };
1385
- G(() => {
1385
+ Q(() => {
1386
1386
  var m;
1387
1387
  const u = () => {
1388
1388
  d(!1), p();
@@ -1393,7 +1393,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1393
1393
  };
1394
1394
  }, [l, p]);
1395
1395
  const c = i.length === 0 ? ["select-button-placeholder"] : [];
1396
- return a(K, { children: [a("button", { "aria-label": "choice dropdown button", className: L("select-button", ...c), onClick: (u) => {
1396
+ return a(G, { children: [a("button", { "aria-label": "choice dropdown button", className: L("select-button", ...c), onClick: (u) => {
1397
1397
  u.stopPropagation(), h();
1398
1398
  }, type: "button", children: [a("span", { children: i.length === 0 ? o : i.length === 1 ? i[0].label : `${i.length} ${t}` }), a(Er, {})] }), s && a(ai, { options: r, selectedOptions: i, selectItem: (u) => {
1399
1399
  var b;
@@ -1426,7 +1426,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1426
1426
  f && !P && h[f.id].isSelected && (g[f.id].isSelected = !1);
1427
1427
  g[w] = { isSelected: k, userText: j }, c(g);
1428
1428
  };
1429
- return a("form", { className: L(e, "ul-card--multiple", "fade-in-transition"), id: "text-form", onSubmit: T, children: [a(ie, { message: t, properties: o }), a(me, { properties: o, defaultBody: () => a(K, { children: [a(ge, { children: o.isDropdown ? a(li, { isMultiSelect: !u, multiselectText: o.dropdownMultiselectedText ?? "choices selected", onChange: (w) => {
1429
+ return a("form", { className: L(e, "ul-card--multiple", "fade-in-transition"), id: "text-form", onSubmit: T, children: [a(ie, { message: t, properties: o }), a(me, { properties: o, defaultBody: () => a(G, { children: [a(ge, { children: o.isDropdown ? a(li, { isMultiSelect: !u, multiselectText: o.dropdownMultiselectedText ?? "choices selected", onChange: (w) => {
1430
1430
  const k = { ...h };
1431
1431
  for (const j of r)
1432
1432
  w.includes(j) ? k[j.id].isSelected = !0 : k[j.id].isSelected = !1;
@@ -1461,7 +1461,7 @@ const Zo = ({ visible: e }) => a("div", { className: "sprig-check-background", s
1461
1461
  }, tabIndex: 0, children: b }, b)), m = (f) => {
1462
1462
  f.preventDefault(), f.stopPropagation(), o({ value: null, questionId: i, type: s });
1463
1463
  };
1464
- return a("form", { className: L(e, "ul-card--nps", "fade-in-transition"), children: [a(ie, { message: n, properties: r }), a(me, { properties: r, defaultBody: () => a(K, { children: [a(ge, { children: [a("div", { className: "ul-card--nps__numbers", children: u }), a("div", { className: "ul-card--nps__labels", children: [a("span", { children: h }), a("span", { children: c })] })] }), !r.required && a(_e, { children: a("div", { className: "ul-vertical-centered-container", children: a(X, { onClick: m, children: Ce(r) }) }) })] }) })] }, i);
1464
+ return a("form", { className: L(e, "ul-card--nps", "fade-in-transition"), children: [a(ie, { message: n, properties: r }), a(me, { properties: r, defaultBody: () => a(G, { children: [a(ge, { children: [a("div", { className: "ul-card--nps__numbers", children: u }), a("div", { className: "ul-card--nps__labels", children: [a("span", { children: h }), a("span", { children: c })] })] }), !r.required && a(_e, { children: a("div", { className: "ul-vertical-centered-container", children: a(X, { onClick: m, children: Ce(r) }) }) })] }) })] }, i);
1465
1465
  }, pi = ({ className: e, message: t, next: n, properties: r, questionId: o, type: i }) => {
1466
1466
  const { border: s, useMobileStyling: d, update: l } = B((S) => ({ border: S.border, useMobileStyling: S.useMobileStyling, update: S.update })), [p, h] = $(""), c = ee(null), u = p.trim(), m = r.required === !0 && !u, f = Tr(c, () => l()), b = (S) => {
1467
1467
  f(), S.preventDefault(), S.stopPropagation(), h(S.currentTarget.value);
@@ -1531,7 +1531,7 @@ function Lt({ pages: e, setIsRequestingPermission: t }) {
1531
1531
  }
1532
1532
  const Or = "ul-permission-graphics-container", Ur = "ul-permission-body", Hr = L(Or, "ul_recorded-task-inset-spacing"), tt = L("ul-horizontal-button-container", "ul-horizontal-button-container-left"), Ar = ({ richTextBody: e }) => a("div", { className: "ul-rich-text-body", dangerouslySetInnerHTML: { __html: e }, id: "ul-task-detail-container" }), nt = ({ required: e, skipButtonText: t, bottom: n = !1 }) => e ? null : a(X, { className: L(n && "ul-skip-button-below", "ul-button-inactive"), onClick: kt.bind(null, { status: "abandoned" }), children: t || "Skip" }), Ot = (e) => {
1533
1533
  const { avStream: t, captureStream: n, recordingMediaTypes: r, updatePage: o } = ae.getState(), i = (r == null ? void 0 : r.includes("audio")) || (r == null ? void 0 : r.includes("video"));
1534
- G(() => {
1534
+ Q(() => {
1535
1535
  const s = setInterval(() => {
1536
1536
  i && t && !t.active ? o({ avStream: null, currentPage: e[0] }) : n && n.active || o({ captureStream: void 0, currentPage: e[i ? 1 : 0] });
1537
1537
  }, 1e3);
@@ -1550,7 +1550,7 @@ const Or = "ul-permission-graphics-container", Ur = "ul-permission-body", Hr = L
1550
1550
  return a("div", { children: [a("div", { className: Hr, children: [a("p", { style: { marginTop: "auto" }, children: e.selectTabText }), a("div", { className: "ul-select-tab-container", children: a("p", { className: Ur, children: i }) })] }), a("div", { className: n ? "" : tt, children: [a(X, { disabled: s, onClick: Lt.bind(null, { pages: t, setIsRequestingPermission: d }), children: r }), a(nt, { required: n, skipButtonText: o })] })] });
1551
1551
  }, fi = ({ content: e }) => a("div", { className: L(Or, "ul_permission_svg_container", "ul_recorded-task-inset-spacing", "ul-center-horizontally"), dangerouslySetInnerHTML: { __html: e.svg } }, "ul-permission-request-graphic"), vi = ({ content: e, pages: t, required: n }) => {
1552
1552
  const { permissionDeniedHeadline: r, permissionDeniedBody: o, skipButtonText: i, tryAgainButtonText: s } = e, d = Qe(t[0]) ? t[0] : null;
1553
- return G(() => {
1553
+ return Q(() => {
1554
1554
  const l = setInterval(() => {
1555
1555
  d !== null && xt({ currentPage: d, pages: t });
1556
1556
  }, 1e3);
@@ -1627,7 +1627,7 @@ const Or = "ul-permission-graphics-container", Ur = "ul-permission-body", Hr = L
1627
1627
  var h, c;
1628
1628
  }, Ci = ({ className: e, questionId: t }) => {
1629
1629
  const { border: n, destroy: r, endCard: o, forceBrandedLogo: i } = B((l) => ({ border: l.border, destroy: l.destroy, endCard: l.endCard, forceBrandedLogo: l.forceBrandedLogo }));
1630
- G(() => {
1630
+ Q(() => {
1631
1631
  setTimeout(() => {
1632
1632
  r(Se);
1633
1633
  }, i ? 4e3 : 2e3);
@@ -2429,28 +2429,28 @@ const fe = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
2429
2429
  O(v.uploadProgressLabel, "start", 0);
2430
2430
  const R = ut(v, lt);
2431
2431
  if (!M) {
2432
- const Q = "internal error: missing fields in payload";
2433
- return I && I(U.ERROR, { type: U.OTHER }), ce(new Error(Q), "finishRecord", E, C, H, q), null;
2432
+ const Y = "internal error: missing fields in payload";
2433
+ return I && I(U.ERROR, { type: U.OTHER }), ce(new Error(Y), "finishRecord", E, C, H, q), null;
2434
2434
  }
2435
2435
  v.record().stopDevice();
2436
- const W = v.cameraOff ? U.MEDIA_TYPE_AUDIO : U.MEDIA_TYPE_VIDEO, Y = mt();
2437
- fe({ event: "Video Record Finish", apiBase: E, headers: C, visitorId: H, envId: q, metadata: { mediaRecordingUid: Y, questionId: R, responseGroupUid: A, surveyId: M, mediaType: W } });
2438
- const le = { surveyId: M, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaType: W, mediaRecordingUid: Y };
2436
+ const W = v.cameraOff ? U.MEDIA_TYPE_AUDIO : U.MEDIA_TYPE_VIDEO, K = mt();
2437
+ fe({ event: "Video Record Finish", apiBase: E, headers: C, visitorId: H, envId: q, metadata: { mediaRecordingUid: K, questionId: R, responseGroupUid: A, surveyId: M, mediaType: W } });
2438
+ const le = { surveyId: M, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaType: W, mediaRecordingUid: K };
2439
2439
  R && (le.questionId = R), A && (le.responseGroupUid = A), H && (le.visitorId = H);
2440
2440
  const F = await (async () => {
2441
- const Q = await fetch(`${E}/2/environments/integrations/upload`, { method: "POST", cache: "no-cache", headers: { "Content-Type": "application/json" }, body: JSON.stringify(le) });
2442
- if (Q.ok) {
2443
- const be = await Q.json();
2444
- return I && I(U.UPLOAD_STARTED, { [U.UPLOAD_ID]: be.upload.id, [U.MEDIA_TYPE]: W, [U.MEDIA_RECORDING_UID]: Y }), be.upload.url;
2441
+ const Y = await fetch(`${E}/2/environments/integrations/upload`, { method: "POST", cache: "no-cache", headers: { "Content-Type": "application/json" }, body: JSON.stringify(le) });
2442
+ if (Y.ok) {
2443
+ const be = await Y.json();
2444
+ return I && I(U.UPLOAD_STARTED, { [U.UPLOAD_ID]: be.upload.id, [U.MEDIA_TYPE]: W, [U.MEDIA_RECORDING_UID]: K }), be.upload.url;
2445
2445
  }
2446
- return I && I(U.ERROR, { type: U.OTHER, response: Q }), ce(new Error("failed to get upload response with url"), "finishRecord", E, C, H, q), null;
2446
+ return I && I(U.ERROR, { type: U.OTHER, response: Y }), ce(new Error("failed to get upload response with url"), "finishRecord", E, C, H, q), null;
2447
2447
  })();
2448
- F && (se = N.document.defaultView.UpChunk.createUpload({ endpoint: F, file: new N.document.defaultView.File([v.recordedData], `recording ${W} ${Date.now()}`), chunkSize: 5120 }), se.startTime = Date.now(), fe({ event: "Video Upload Start", apiBase: E, headers: C, visitorId: H, envId: q, metadata: { mediaRecordingUid: Y, questionId: R, responseGroupUid: A, surveyId: M, mediaType: W, url: F } }), se.on("error", (Q) => {
2449
- O(v.uploadProgressLabel, "none"), I && I(U.UPLOAD_FINISHED, { [U.MEDIA_RECORDING_UID]: Y }), ce(Q, "finishRecord", E, C, H, q);
2450
- }), se.on("progress", (Q) => {
2451
- I && I(U.UPLOAD_PROGRESS, { [U.MEDIA_RECORDING_UID]: Y, [U.UPLOAD_PROGRESS_PCT]: Q.detail }), O(v.uploadProgressLabel, "progress", Q.detail);
2448
+ F && (se = N.document.defaultView.UpChunk.createUpload({ endpoint: F, file: new N.document.defaultView.File([v.recordedData], `recording ${W} ${Date.now()}`), chunkSize: 5120 }), se.startTime = Date.now(), fe({ event: "Video Upload Start", apiBase: E, headers: C, visitorId: H, envId: q, metadata: { mediaRecordingUid: K, questionId: R, responseGroupUid: A, surveyId: M, mediaType: W, url: F } }), se.on("error", (Y) => {
2449
+ O(v.uploadProgressLabel, "none"), I && I(U.UPLOAD_FINISHED, { [U.MEDIA_RECORDING_UID]: K }), ce(Y, "finishRecord", E, C, H, q);
2450
+ }), se.on("progress", (Y) => {
2451
+ I && I(U.UPLOAD_PROGRESS, { [U.MEDIA_RECORDING_UID]: K, [U.UPLOAD_PROGRESS_PCT]: Y.detail }), O(v.uploadProgressLabel, "progress", Y.detail);
2452
2452
  }), se.on("success", () => {
2453
- O(v.uploadProgressLabel, "success"), I && I(U.UPLOAD_FINISHED, { [U.MEDIA_RECORDING_UID]: Y }), fe({ event: "Video Upload Success", apiBase: E, headers: C, visitorId: H, envId: q, metadata: { mediaRecordingUid: Y, questionId: R, responseGroupUid: A, surveyId: M, mediaType: W, url: F, elapsedMs: se.startTime && Date.now() - se.startTime } });
2453
+ O(v.uploadProgressLabel, "success"), I && I(U.UPLOAD_FINISHED, { [U.MEDIA_RECORDING_UID]: K }), fe({ event: "Video Upload Success", apiBase: E, headers: C, visitorId: H, envId: q, metadata: { mediaRecordingUid: K, questionId: R, responseGroupUid: A, surveyId: M, mediaType: W, url: F, elapsedMs: se.startTime && Date.now() - se.startTime } });
2454
2454
  }));
2455
2455
  });
2456
2456
  })(l, r, o, Cn, s);
@@ -2550,14 +2550,14 @@ const fe = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
2550
2550
  const v = ((E, I = {}, O = "https://api.userleap.com", C, M, A, H = !1, q = document) => {
2551
2551
  N.document = q;
2552
2552
  const R = E + kn, W = Wr(R);
2553
- return N.document.addEventListener("securitypolicyviolation", (Y) => {
2554
- ce(new Error(`Voice & Video feature violates ${Y.violatedDirective} web page CSP policies for the recorder player.`), "recorderDeviceError", O, A, I.visitorId, I.envId);
2553
+ return N.document.addEventListener("securitypolicyviolation", (K) => {
2554
+ ce(new Error(`Voice & Video feature violates ${K.violatedDirective} web page CSP policies for the recorder player.`), "recorderDeviceError", O, A, I.visitorId, I.envId);
2555
2555
  }), Vr(Br.concat(Ei), () => {
2556
2556
  wt(R, W), N.document.getElementById(Ut(R)).remove();
2557
2557
  try {
2558
2558
  ji(W, R, I, O, C, M, A, H);
2559
- } catch (Y) {
2560
- return void ce(new Error(`Error when creating video recorder player object ${Y}`), "recorderDeviceError", O, A, I.visitorId, I.envId);
2559
+ } catch (K) {
2560
+ return void ce(new Error(`Error when creating video recorder player object ${K}`), "recorderDeviceError", O, A, I.visitorId, I.envId);
2561
2561
  }
2562
2562
  }), W;
2563
2563
  })(ye, { surveyId: c, responseGroupUid: h, questionId: o, visitorId: m, envId: d }, s, j, void 0, { ...p, "x-ul-video-recorder-origin": "sdk" }, r.mediaType === U.MEDIA_TYPE_AUDIO, u);
@@ -2605,25 +2605,25 @@ const fe = async ({ event: e, apiBase: t, headers: n, visitorId: r, envId: o, me
2605
2605
  }
2606
2606
  return w[x];
2607
2607
  })(t, o), m = p + 1, f = m / (m + u), b = `${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${d}&utm_content=${l}${n && "&utm_term=poweredby_pill"}`;
2608
- G(() => {
2608
+ Q(() => {
2609
2609
  h.current && (h.current.style.width = 100 * f + "%");
2610
2610
  }, [f]);
2611
2611
  const _ = t[o].type === "thanks";
2612
- return a("footer", { className: "ul-footer " + (r["userleap-platform"] === "link" ? "ul-footer__link" : ""), children: _ && n ? a("a", { dir: "ltr", href: b, rel: "noreferrer", target: "_blank", children: a("div", { className: "thank-you-card-link", children: [a("div", { className: "sprig-box-logo", children: a(jn, { logoOnly: !0, style: { margin: "auto" } }) }), a("div", { children: a("p", { children: ["Capture insights about your own product", a(In, { style: { display: "inline-flex", marginInlineStart: "4px", verticalAlign: "middle" } })] }) })] }) }) : a(K, { children: [c.length > 1 && a("div", { id: "ul-progress-bar-container", children: a("div", { id: "ul-progress-bar-current", ref: h, style: { border: `1px solid ${e || "#000"}` } }) }), s ? a("div", { className: n ? "yellow-footer-logo" : "", style: { marginTop: "4px", marginBottom: "4px" }, children: a("a", { href: b, rel: "noreferrer", target: "_blank", children: a("div", { style: { display: "flex" }, children: [a(jn, { logoOnly: !1 }), n && a(In, { style: { display: "block", margin: "auto 0 auto 4px", transform: "rotateY(0deg) rotate(-45deg)" } })] }) }) }) : null] }) });
2612
+ return a("footer", { className: "ul-footer " + (r["userleap-platform"] === "link" ? "ul-footer__link" : ""), children: _ && n ? a("a", { dir: "ltr", href: b, rel: "noreferrer", target: "_blank", children: a("div", { className: "thank-you-card-link", children: [a("div", { className: "sprig-box-logo", children: a(jn, { logoOnly: !0, style: { margin: "auto" } }) }), a("div", { children: a("p", { children: ["Capture insights about your own product", a(In, { style: { display: "inline-flex", marginInlineStart: "4px", verticalAlign: "middle" } })] }) })] }) }) : a(G, { children: [c.length > 1 && a("div", { id: "ul-progress-bar-container", children: a("div", { id: "ul-progress-bar-current", ref: h, style: { border: `1px solid ${e || "#000"}` } }) }), s ? a("div", { className: n ? "yellow-footer-logo" : "", style: { marginTop: "4px", marginBottom: "4px" }, children: a("a", { href: b, rel: "noreferrer", target: "_blank", children: a("div", { style: { display: "flex" }, children: [a(jn, { logoOnly: !1 }), n && a(In, { style: { display: "block", margin: "auto 0 auto 4px", transform: "rotateY(0deg) rotate(-45deg)" } })] }) }) }) : null] }) });
2613
2613
  }, In = ({ style: e }) => a("svg", { fill: "none", height: "10", style: e, viewBox: "0 0 12 10", width: "12", xmlns: "http://www.w3.org/2000/svg", children: [a("path", { d: "M1.47839 5.2085L10.9384 5.2085", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" }), a("path", { d: "M7.0686 1.15845L10.9386 5.20845L7.0686 9.25845", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.35" })] }), Mi = () => {
2614
2614
  const { answers: e, border: t, cards: n, close: r, configureExitOnOverlayClick: o, destroy: i, endCard: s, eventEmitFn: d, fontFamily: l, headers: p, index: h, minScrollableHeight: c, next: u, previewMode: m, productConfig: f, seen: b, showStripes: _, studyType: y, surveyId: x, update: T, useMobileStyling: S, viewDocument: w } = B((C) => ({ answers: C.answers, border: C.border, cards: C.cards, close: C.close, configureExitOnOverlayClick: C.configureExitOnOverlayClick, destroy: C.destroy, endCard: C.endCard, eventEmitFn: C.eventEmitFn, fontFamily: C.fontFamily, headers: C.headers, index: C.index, previewMode: C.previewMode, productConfig: C.productConfig, minScrollableHeight: C.minScrollableHeight, next: C.next, seen: C.seen, showStripes: C.showStripes, studyType: C.studyType, surveyId: C.surveyId, update: C.update, useMobileStyling: C.useMobileStyling, viewDocument: C.viewDocument })), k = ee(null), j = ee(!1), P = p["userleap-platform"], { props: g, type: v, name: E } = n[h];
2615
- G(() => {
2615
+ Q(() => {
2616
2616
  k.current && (k.current.classList.contains("ul-app--visible") || k.current.classList.add("ul-app--visible"), !j.current && d && (j.current = !0, d(ve.SurveyAppeared, { name: ve.SurveyAppeared, "survey.id": x })));
2617
- }, [d, x]), G(() => {
2617
+ }, [d, x]), Q(() => {
2618
2618
  const C = () => {
2619
2619
  w.visibilityState === "visible" && (b(), w.removeEventListener("visibilitychange", C));
2620
2620
  };
2621
2621
  return w.addEventListener("visibilitychange", C), C(), () => {
2622
2622
  w.removeEventListener("visibilitychange", C);
2623
2623
  };
2624
- }, [b, w]), G(() => {
2624
+ }, [b, w]), Q(() => {
2625
2625
  T();
2626
- }, [h, T]), G(() => {
2626
+ }, [h, T]), Q(() => {
2627
2627
  o(() => r());
2628
2628
  }, [r, o]);
2629
2629
  const I = async function(C) {
@@ -2834,7 +2834,7 @@ const Oi = ({ mode: e = null, viewWindow: t, viewDocument: n, trackPageViewUrl:
2834
2834
  }, b.appendChild(x);
2835
2835
  }
2836
2836
  const _ = i || ((y = d.eventEmitter) == null ? void 0 : y.emit);
2837
- _ == null || _("verify.view.version", { "view.version": "2.32.4" }), c && t && Ie(a(Mi, {}), c);
2837
+ _ == null || _("verify.view.version", { "view.version": "2.32.6" }), c && t && Ie(a(Mi, {}), c);
2838
2838
  } };
2839
2839
  export {
2840
2840
  Ai as default