@sprig-technologies/sprig-browser 2.41.1 → 2.41.2

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,6 +1,6 @@
1
- import { A as ee, b as Kr, d as Jr, C as lt, e as Fe, r as Yr } from "./core-DE_-33ff.js";
2
- import { e as se, h as ke, S as M, s as ye, b as Le, D as ut, t as Be, u as Xr, v as ct } from "./metricsReporter-CJzT7qY-.js";
3
- var de, v, Xt, Z, dt, er, $e, tr, ue = {}, rr = [], en = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ie = Array.isArray;
1
+ import { A as ee, b as Kr, d as Jr, C as lt, e as Fe, r as Yr } from "./core-BAftYDJ4.js";
2
+ import { e as se, h as ke, S as M, s as ye, b as Le, D as ut, t as Be, u as Xr, v as ct } from "./metricsReporter-CJIq-5XV.js";
3
+ var de, x, Xt, Z, dt, er, $e, tr, ue = {}, rr = [], en = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Ie = Array.isArray;
4
4
  function B(e, t) {
5
5
  for (var r in t) e[r] = t[r];
6
6
  return e;
@@ -17,7 +17,7 @@ function T(e, t, r) {
17
17
  }
18
18
  function le(e, t, r, n, o) {
19
19
  var i = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o ?? ++Xt, __i: -1, __u: 0 };
20
- return o == null && v.vnode != null && v.vnode(i), i;
20
+ return o == null && x.vnode != null && x.vnode(i), i;
21
21
  }
22
22
  function or() {
23
23
  return { current: null };
@@ -44,18 +44,18 @@ function ir(e) {
44
44
  }
45
45
  }
46
46
  function We(e) {
47
- (!e.__d && (e.__d = !0) && Z.push(e) && !we.__r++ || dt !== v.debounceRendering) && ((dt = v.debounceRendering) || er)(we);
47
+ (!e.__d && (e.__d = !0) && Z.push(e) && !we.__r++ || dt !== x.debounceRendering) && ((dt = x.debounceRendering) || er)(we);
48
48
  }
49
49
  function we() {
50
50
  var e, t, r, n, o, i, a, s, l;
51
- for (Z.sort($e); e = Z.shift(); ) e.__d && (t = Z.length, n = void 0, i = (o = (r = e).__v).__e, s = [], l = [], (a = r.__P) && ((n = B({}, o)).__v = o.__v + 1, v.vnode && v.vnode(n), Ye(a, n, o, r.__n, a.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, s, i ?? re(o), !!(32 & o.__u), l), n.__.__k[n.__i] = n, lr(s, n, l), n.__e != i && ir(n)), Z.length > t && Z.sort($e));
51
+ for (Z.sort($e); e = Z.shift(); ) e.__d && (t = Z.length, n = void 0, i = (o = (r = e).__v).__e, s = [], l = [], (a = r.__P) && ((n = B({}, o)).__v = o.__v + 1, x.vnode && x.vnode(n), Ye(a, n, o, r.__n, a.ownerSVGElement !== void 0, 32 & o.__u ? [i] : null, s, i ?? re(o), !!(32 & o.__u), l), n.__.__k[n.__i] = n, lr(s, n, l), n.__e != i && ir(n)), Z.length > t && Z.sort($e));
52
52
  we.__r = 0;
53
53
  }
54
54
  function ar(e, t, r, n, o, i, a, s, l, u, d) {
55
55
  var c, h, f, _, R, b = n && n.__k || rr, A = t.length;
56
- for (r.__d = l, function(y, x, C) {
57
- var p, m, g, k, I, j = x.length, U = C.length, N = U, L = 0;
58
- for (y.__k = [], p = 0; p < j; p++) (m = y.__k[p] = (m = x[p]) == null || typeof m == "boolean" || typeof m == "function" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" || m.constructor == String ? le(null, m, null, null, m) : Ie(m) ? le(z, { children: m }, null, null, null) : m.constructor === void 0 && m.__b > 0 ? le(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null ? (m.__ = y, m.__b = y.__b + 1, I = tn(m, C, k = p + L, N), m.__i = I, g = null, I !== -1 && (N--, (g = C[I]) && (g.__u |= 131072)), g == null || g.__v === null ? (I == -1 && L--, typeof m.type != "function" && (m.__u |= 65536)) : I !== k && (I === k + 1 ? L++ : I > k ? N > j - k ? L += I - k : L-- : L = I < k && I == k - 1 ? I - k : 0, I !== p + L && (m.__u |= 65536))) : (g = C[p]) && g.key == null && g.__e && (g.__e == y.__d && (y.__d = re(g)), Qe(g, g, !1), C[p] = null, N--);
56
+ for (r.__d = l, function(y, v, C) {
57
+ var p, m, g, k, I, j = v.length, U = C.length, N = U, L = 0;
58
+ for (y.__k = [], p = 0; p < j; p++) (m = y.__k[p] = (m = v[p]) == null || typeof m == "boolean" || typeof m == "function" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" || m.constructor == String ? le(null, m, null, null, m) : Ie(m) ? le(z, { children: m }, null, null, null) : m.constructor === void 0 && m.__b > 0 ? le(m.type, m.props, m.key, m.ref ? m.ref : null, m.__v) : m) != null ? (m.__ = y, m.__b = y.__b + 1, I = tn(m, C, k = p + L, N), m.__i = I, g = null, I !== -1 && (N--, (g = C[I]) && (g.__u |= 131072)), g == null || g.__v === null ? (I == -1 && L--, typeof m.type != "function" && (m.__u |= 65536)) : I !== k && (I === k + 1 ? L++ : I > k ? N > j - k ? L += I - k : L-- : L = I < k && I == k - 1 ? I - k : 0, I !== p + L && (m.__u |= 65536))) : (g = C[p]) && g.key == null && g.__e && (g.__e == y.__d && (y.__d = re(g)), Qe(g, g, !1), C[p] = null, N--);
59
59
  if (N) for (p = 0; p < U; p++) (g = C[p]) != null && !(131072 & g.__u) && (g.__e == y.__d && (y.__d = re(g)), Qe(g, g));
60
60
  }(r, t, b), l = r.__d, c = 0; c < A; c++) (f = r.__k[c]) != null && typeof f != "boolean" && typeof f != "function" && (h = f.__i === -1 ? ue : b[f.__i] || ue, f.__i = c, Ye(e, f, h, o, i, a, s, l, u, d), _ = f.__e, f.ref && h.ref != f.ref && (h.ref && Xe(h.ref, null, f), d.push(f.ref, f.__c || _, f)), R == null && _ != null && (R = _), 65536 & f.__u || h.__k === f.__k ? l = sr(f, l, e) : typeof f.type == "function" && f.__d !== void 0 ? l = f.__d : _ && (l = _.nextSibling), f.__d = void 0, f.__u &= -196609);
61
61
  r.__d = l, r.__e = R;
@@ -114,30 +114,30 @@ function ft(e) {
114
114
  if (e.t) {
115
115
  if (e.t <= t.u) return;
116
116
  } else e.t = Date.now();
117
- return t(v.event ? v.event(e) : e);
117
+ return t(x.event ? x.event(e) : e);
118
118
  }
119
119
  function _t(e) {
120
- return this.l[e.type + !0](v.event ? v.event(e) : e);
120
+ return this.l[e.type + !0](x.event ? x.event(e) : e);
121
121
  }
122
122
  function Ye(e, t, r, n, o, i, a, s, l, u) {
123
- var d, c, h, f, _, R, b, A, y, x, C, p, m, g, k, I = t.type;
123
+ var d, c, h, f, _, R, b, A, y, v, C, p, m, g, k, I = t.type;
124
124
  if (t.constructor !== void 0) return null;
125
- 128 & r.__u && (l = !!(32 & r.__u), i = [s = t.__e = r.__e]), (d = v.__b) && d(t);
125
+ 128 & r.__u && (l = !!(32 & r.__u), i = [s = t.__e = r.__e]), (d = x.__b) && d(t);
126
126
  e: if (typeof I == "function") try {
127
- if (A = t.props, y = (d = I.contextType) && n[d.__c], x = d ? y ? y.props.value : d.__ : n, r.__c ? b = (c = t.__c = r.__c).__ = c.__E : ("prototype" in I && I.prototype.render ? t.__c = c = new I(A, x) : (t.__c = c = new q(A, x), c.constructor = I, c.render = nn), y && y.sub(c), c.props = A, c.state || (c.state = {}), c.context = x, c.__n = n, h = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), I.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = B({}, c.__s)), B(c.__s, I.getDerivedStateFromProps(A, c.__s))), f = c.props, _ = c.state, c.__v = t, h) I.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
127
+ if (A = t.props, y = (d = I.contextType) && n[d.__c], v = d ? y ? y.props.value : d.__ : n, r.__c ? b = (c = t.__c = r.__c).__ = c.__E : ("prototype" in I && I.prototype.render ? t.__c = c = new I(A, v) : (t.__c = c = new q(A, v), c.constructor = I, c.render = nn), y && y.sub(c), c.props = A, c.state || (c.state = {}), c.context = v, c.__n = n, h = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), I.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = B({}, c.__s)), B(c.__s, I.getDerivedStateFromProps(A, c.__s))), f = c.props, _ = c.state, c.__v = t, h) I.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
128
128
  else {
129
- if (I.getDerivedStateFromProps == null && A !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(A, x), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(A, c.__s, x) === !1 || t.__v === r.__v)) {
129
+ if (I.getDerivedStateFromProps == null && A !== f && c.componentWillReceiveProps != null && c.componentWillReceiveProps(A, v), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(A, c.__s, v) === !1 || t.__v === r.__v)) {
130
130
  for (t.__v !== r.__v && (c.props = A, c.state = c.__s, c.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.forEach(function(j) {
131
131
  j && (j.__ = t);
132
132
  }), C = 0; C < c._sb.length; C++) c.__h.push(c._sb[C]);
133
133
  c._sb = [], c.__h.length && a.push(c);
134
134
  break e;
135
135
  }
136
- c.componentWillUpdate != null && c.componentWillUpdate(A, c.__s, x), c.componentDidUpdate != null && c.__h.push(function() {
136
+ c.componentWillUpdate != null && c.componentWillUpdate(A, c.__s, v), c.componentDidUpdate != null && c.__h.push(function() {
137
137
  c.componentDidUpdate(f, _, R);
138
138
  });
139
139
  }
140
- if (c.context = x, c.props = A, c.__P = e, c.__e = !1, p = v.__r, m = 0, "prototype" in I && I.prototype.render) {
140
+ if (c.context = v, c.props = A, c.__P = e, c.__e = !1, p = x.__r, m = 0, "prototype" in I && I.prototype.render) {
141
141
  for (c.state = c.__s, c.__d = !1, p && p(t), d = c.render(c.props, c.state, c.context), g = 0; g < c._sb.length; g++) c.__h.push(c._sb[g]);
142
142
  c._sb = [];
143
143
  } else do
@@ -145,21 +145,21 @@ function Ye(e, t, r, n, o, i, a, s, l, u) {
145
145
  while (c.__d && ++m < 25);
146
146
  c.state = c.__s, c.getChildContext != null && (n = B(B({}, n), c.getChildContext())), h || c.getSnapshotBeforeUpdate == null || (R = c.getSnapshotBeforeUpdate(f, _)), ar(e, Ie(k = d != null && d.type === z && d.key == null ? d.props.children : d) ? k : [k], t, r, n, o, i, a, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && a.push(c), b && (c.__E = c.__ = null);
147
147
  } catch (j) {
148
- t.__v = null, l || i != null ? (t.__e = s, t.__u |= l ? 160 : 32, i[i.indexOf(s)] = null) : (t.__e = r.__e, t.__k = r.__k), v.__e(j, t, r);
148
+ t.__v = null, l || i != null ? (t.__e = s, t.__u |= l ? 160 : 32, i[i.indexOf(s)] = null) : (t.__e = r.__e, t.__k = r.__k), x.__e(j, t, r);
149
149
  }
150
150
  else i == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = rn(r.__e, t, r, n, o, i, a, l, u);
151
- (d = v.diffed) && d(t);
151
+ (d = x.diffed) && d(t);
152
152
  }
153
153
  function lr(e, t, r) {
154
154
  t.__d = void 0;
155
155
  for (var n = 0; n < r.length; n++) Xe(r[n], r[++n], r[++n]);
156
- v.__c && v.__c(t, e), e.some(function(o) {
156
+ x.__c && x.__c(t, e), e.some(function(o) {
157
157
  try {
158
158
  e = o.__h, o.__h = [], e.some(function(i) {
159
159
  i.call(o);
160
160
  });
161
161
  } catch (i) {
162
- v.__e(i, o.__v);
162
+ x.__e(i, o.__v);
163
163
  }
164
164
  });
165
165
  }
@@ -190,16 +190,16 @@ function Xe(e, t, r) {
190
190
  try {
191
191
  typeof e == "function" ? e(t) : e.current = t;
192
192
  } catch (n) {
193
- v.__e(n, r);
193
+ x.__e(n, r);
194
194
  }
195
195
  }
196
196
  function Qe(e, t, r) {
197
197
  var n, o;
198
- if (v.unmount && v.unmount(e), (n = e.ref) && (n.current && n.current !== e.__e || Xe(n, null, t)), (n = e.__c) != null) {
198
+ if (x.unmount && x.unmount(e), (n = e.ref) && (n.current && n.current !== e.__e || Xe(n, null, t)), (n = e.__c) != null) {
199
199
  if (n.componentWillUnmount) try {
200
200
  n.componentWillUnmount();
201
201
  } catch (i) {
202
- v.__e(i, t);
202
+ x.__e(i, t);
203
203
  }
204
204
  n.base = n.__P = null, e.__c = void 0;
205
205
  }
@@ -211,7 +211,7 @@ function nn(e, t, r) {
211
211
  }
212
212
  function ne(e, t, r) {
213
213
  var n, o, i, a;
214
- v.__ && v.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], Ye(t, e = (!n && r || t).__k = T(z, null, [e]), o || ue, ue, t.ownerSVGElement !== void 0, !n && r ? [r] : o ? null : t.firstChild ? de.call(t.childNodes) : null, i, !n && r ? r : o ? o.__e : t.firstChild, n, a), lr(i, e, a);
214
+ x.__ && x.__(e, t), o = (n = typeof r == "function") ? null : r && r.__k || t.__k, i = [], a = [], Ye(t, e = (!n && r || t).__k = T(z, null, [e]), o || ue, ue, t.ownerSVGElement !== void 0, !n && r ? [r] : o ? null : t.firstChild ? de.call(t.childNodes) : null, i, !n && r ? r : o ? o.__e : t.firstChild, n, a), lr(i, e, a);
215
215
  }
216
216
  function ur(e, t) {
217
217
  ne(e, t, ur);
@@ -242,7 +242,7 @@ function cr(e, t) {
242
242
  } };
243
243
  return r.Provider.__ = r.Consumer.contextType = r;
244
244
  }
245
- de = rr.slice, v = { __e: function(e, t, r, n) {
245
+ de = rr.slice, x = { __e: function(e, t, r, n) {
246
246
  for (var o, i, a; t = t.__; ) if ((o = t.__c) && !o.__) try {
247
247
  if ((i = o.constructor) && i.getDerivedStateFromError != null && (o.setState(i.getDerivedStateFromError(e)), a = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, n || {}), a = o.__d), a) return o.__E = o;
248
248
  } catch (s) {
@@ -263,11 +263,11 @@ function w(e, t, r, n, o, i) {
263
263
  for (s in t) s == "ref" ? a = t[s] : l[s] = t[s];
264
264
  var u = { type: e, props: l, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --an, __i: -1, __u: 0, __source: o, __self: i };
265
265
  if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
266
- return v.vnode && v.vnode(u), u;
266
+ return x.vnode && x.vnode(u), u;
267
267
  }
268
- var W, E, Ne, mt, oe = 0, dr = [], be = [], ht = v.__b, gt = v.__r, yt = v.diffed, bt = v.__c, vt = v.unmount;
268
+ var W, E, Ne, mt, oe = 0, dr = [], be = [], ht = x.__b, gt = x.__r, yt = x.diffed, bt = x.__c, vt = x.unmount;
269
269
  function K(e, t) {
270
- v.__h && v.__h(E, e, oe || t), oe = 0;
270
+ x.__h && x.__h(E, e, oe || t), oe = 0;
271
271
  var r = E.__H || (E.__H = { __: [], __h: [] });
272
272
  return e >= r.__.length && r.__.push({ __V: be }), r.__[e];
273
273
  }
@@ -310,11 +310,11 @@ function et(e, t, r) {
310
310
  }
311
311
  function H(e, t) {
312
312
  var r = K(W++, 3);
313
- !v.__s && rt(r.__H, t) && (r.__ = e, r.i = t, E.__H.__h.push(r));
313
+ !x.__s && rt(r.__H, t) && (r.__ = e, r.i = t, E.__H.__h.push(r));
314
314
  }
315
315
  function pe(e, t) {
316
316
  var r = K(W++, 4);
317
- !v.__s && rt(r.__H, t) && (r.__ = e, r.i = t, E.__h.push(r));
317
+ !x.__s && rt(r.__H, t) && (r.__ = e, r.i = t, E.__h.push(r));
318
318
  }
319
319
  function Q(e) {
320
320
  return oe = 5, J(function() {
@@ -344,7 +344,7 @@ function fr(e) {
344
344
  return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(E)), t.props.value) : e.__;
345
345
  }
346
346
  function tt(e, t) {
347
- v.useDebugValue && v.useDebugValue(t ? t(e) : e);
347
+ x.useDebugValue && x.useDebugValue(t ? t(e) : e);
348
348
  }
349
349
  function _r() {
350
350
  var e = K(W++, 11);
@@ -359,24 +359,24 @@ function sn() {
359
359
  for (var e; e = dr.shift(); ) if (e.__P && e.__H) try {
360
360
  e.__H.__h.forEach(ve), e.__H.__h.forEach(Ze), e.__H.__h = [];
361
361
  } catch (t) {
362
- e.__H.__h = [], v.__e(t, e.__v);
362
+ e.__H.__h = [], x.__e(t, e.__v);
363
363
  }
364
364
  }
365
- v.__b = function(e) {
365
+ x.__b = function(e) {
366
366
  E = null, ht && ht(e);
367
- }, v.__r = function(e) {
367
+ }, x.__r = function(e) {
368
368
  gt && gt(e), W = 0;
369
369
  var t = (E = e.__c).__H;
370
370
  t && (Ne === E ? (t.__h = [], E.__h = [], t.__.forEach(function(r) {
371
371
  r.__N && (r.__ = r.__N), r.__V = be, r.__N = r.i = void 0;
372
372
  })) : (t.__h.forEach(ve), t.__h.forEach(Ze), t.__h = [], W = 0)), Ne = E;
373
- }, v.diffed = function(e) {
373
+ }, x.diffed = function(e) {
374
374
  yt && yt(e);
375
375
  var t = e.__c;
376
- t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && mt === v.requestAnimationFrame || ((mt = v.requestAnimationFrame) || ln)(sn)), t.__H.__.forEach(function(r) {
376
+ t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && mt === x.requestAnimationFrame || ((mt = x.requestAnimationFrame) || ln)(sn)), t.__H.__.forEach(function(r) {
377
377
  r.i && (r.__H = r.i), r.__V !== be && (r.__ = r.__V), r.i = void 0, r.__V = be;
378
378
  })), Ne = E = null;
379
- }, v.__c = function(e, t) {
379
+ }, x.__c = function(e, t) {
380
380
  t.some(function(r) {
381
381
  try {
382
382
  r.__h.forEach(ve), r.__h = r.__h.filter(function(n) {
@@ -385,10 +385,10 @@ v.__b = function(e) {
385
385
  } catch (n) {
386
386
  t.some(function(o) {
387
387
  o.__h && (o.__h = []);
388
- }), t = [], v.__e(n, r.__v);
388
+ }), t = [], x.__e(n, r.__v);
389
389
  }
390
390
  }), bt && bt(e, t);
391
- }, v.unmount = function(e) {
391
+ }, x.unmount = function(e) {
392
392
  vt && vt(e);
393
393
  var t, r = e.__c;
394
394
  r && r.__H && (r.__H.__.forEach(function(n) {
@@ -397,7 +397,7 @@ v.__b = function(e) {
397
397
  } catch (o) {
398
398
  t = o;
399
399
  }
400
- }), r.__H = void 0, t && v.__e(t, r.__v));
400
+ }), r.__H = void 0, t && x.__e(t, r.__v));
401
401
  };
402
402
  var xt = typeof requestAnimationFrame == "function";
403
403
  function ln(e) {
@@ -447,8 +447,8 @@ function gr(e, t) {
447
447
  (Se.prototype = new q()).isPureReactComponent = !0, Se.prototype.shouldComponentUpdate = function(e, t) {
448
448
  return Ge(this.props, e) || Ge(this.state, t);
449
449
  };
450
- var kt = v.__b;
451
- v.__b = function(e) {
450
+ var kt = x.__b;
451
+ x.__b = function(e) {
452
452
  e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), kt && kt(e);
453
453
  };
454
454
  var un = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
@@ -467,14 +467,14 @@ var wt = function(e, t) {
467
467
  var t = $(e);
468
468
  if (t.length !== 1) throw "Children.only";
469
469
  return t[0];
470
- }, toArray: $ }, cn = v.__e;
471
- v.__e = function(e, t, r, n) {
470
+ }, toArray: $ }, cn = x.__e;
471
+ x.__e = function(e, t, r, n) {
472
472
  if (e.then) {
473
473
  for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
474
474
  }
475
475
  cn(e, t, r, n);
476
476
  };
477
- var Ct = v.unmount;
477
+ var Ct = x.unmount;
478
478
  function br(e, t, r) {
479
479
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
480
480
  typeof n.__c == "function" && n.__c();
@@ -510,7 +510,7 @@ function je(e) {
510
510
  function Y() {
511
511
  this.u = null, this.o = null;
512
512
  }
513
- v.unmount = function(e) {
513
+ x.unmount = function(e) {
514
514
  var t = e.__c;
515
515
  t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), Ct && Ct(e);
516
516
  }, (te.prototype = new q()).__c = function(e, t) {
@@ -608,7 +608,7 @@ q.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
608
608
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
609
609
  } });
610
610
  });
611
- var Rt = v.event;
611
+ var Rt = x.event;
612
612
  function yn() {
613
613
  }
614
614
  function bn() {
@@ -617,13 +617,13 @@ function bn() {
617
617
  function vn() {
618
618
  return this.defaultPrevented;
619
619
  }
620
- v.event = function(e) {
620
+ x.event = function(e) {
621
621
  return Rt && (e = Rt(e)), e.persist = yn, e.isPropagationStopped = bn, e.isDefaultPrevented = vn, e.nativeEvent = e;
622
622
  };
623
623
  var ot, xn = { enumerable: !1, configurable: !0, get: function() {
624
624
  return this.class;
625
- } }, At = v.vnode;
626
- v.vnode = function(e) {
625
+ } }, At = x.vnode;
626
+ x.vnode = function(e) {
627
627
  typeof e.type == "string" && function(t) {
628
628
  var r = t.props, n = t.type, o = {};
629
629
  for (var i in r) {
@@ -640,12 +640,12 @@ v.vnode = function(e) {
640
640
  })), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", xn)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
641
641
  }(e), e.$$typeof = wr, At && At(e);
642
642
  };
643
- var It = v.__r;
644
- v.__r = function(e) {
643
+ var It = x.__r;
644
+ x.__r = function(e) {
645
645
  It && It(e), ot = e.__c;
646
646
  };
647
- var jt = v.diffed;
648
- v.diffed = function(e) {
647
+ var jt = x.diffed;
648
+ x.diffed = function(e) {
649
649
  jt && jt(e);
650
650
  var t = e.props, r = e.__e;
651
651
  r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), ot = null;
@@ -792,8 +792,8 @@ var An = (Vt || (Vt = 1, Lt.exports = function() {
792
792
  } else _ = f.current;
793
793
  f = a(function() {
794
794
  function b(p) {
795
- if (!x) {
796
- if (x = !0, A = p, p = c(p), h !== void 0 && _.hasValue) {
795
+ if (!v) {
796
+ if (v = !0, A = p, p = c(p), h !== void 0 && _.hasValue) {
797
797
  var m = _.value;
798
798
  if (h(m, p)) return y = m;
799
799
  }
@@ -803,7 +803,7 @@ var An = (Vt || (Vt = 1, Lt.exports = function() {
803
803
  var g = c(p);
804
804
  return h !== void 0 && h(m, g) ? m : (A = p, y = g);
805
805
  }
806
- var A, y, x = !1, C = d === void 0 ? null : d;
806
+ var A, y, v = !1, C = d === void 0 ? null : d;
807
807
  return [function() {
808
808
  return b(u());
809
809
  }, C === null ? void 0 : function() {
@@ -1178,9 +1178,9 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1178
1178
  const N = k >= 0 ? k : a + m;
1179
1179
  A[N] = qr(I, U), N > y && (y = N);
1180
1180
  }), b = Fr({ cards: _, index: y, hasEndCard: !!r.endCard, uploadProgress: d, allResponses: A, surveyVisitorAttributes: t().surveyVisitorAttributes }), e({ allResponses: A }), (b === null || Me.has(_[b].type)) && (R.completedAt = f);
1181
- const x = l(R);
1181
+ const v = l(R);
1182
1182
  if (b === null) return void r.completeSurvey();
1183
- b && !Me.has(_[b].type) && x.finally(() => {
1183
+ b && !Me.has(_[b].type) && v.finally(() => {
1184
1184
  u({ event: "seen", index: b });
1185
1185
  });
1186
1186
  const C = _[b];
@@ -1200,24 +1200,25 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1200
1200
  return r({ event: "seen", isNew: !0 });
1201
1201
  }, createDynamicQuestion: async ({ parentQuestionId: r, parentResponseConfig: n }) => {
1202
1202
  var b, A, y;
1203
- const o = (x, C, p) => {
1203
+ if (!t().cards.find((v) => v.parentId === r)) return;
1204
+ const o = (v, C, p) => {
1204
1205
  let m = !1;
1205
- const g = x.map((k) => k && k.parentId === C ? (m = !0, p(k)) : k);
1206
- return m ? g : x;
1206
+ const g = v.map((k) => k && k.parentId === C ? (m = !0, p(k)) : k);
1207
+ return m ? g : v;
1207
1208
  };
1208
1209
  let i = !1;
1209
- e((x) => {
1210
+ e((v) => {
1210
1211
  var m;
1211
- const C = x.cards.find((g) => (g == null ? void 0 : g.parentId) === r);
1212
- return !(C != null && C.name) || "props" in (p = C) && "loading" in p.props && ((m = p == null ? void 0 : p.props) == null ? void 0 : m.loading) !== void 0 ? x : (i = !0, { cards: o(x.cards, r, (g) => {
1212
+ const C = v.cards.find((g) => (g == null ? void 0 : g.parentId) === r);
1213
+ return !(C != null && C.name) || "props" in (p = C) && "loading" in p.props && ((m = p == null ? void 0 : p.props) == null ? void 0 : m.loading) !== void 0 ? v : (i = !0, { cards: o(v.cards, r, (g) => {
1213
1214
  const k = g.props;
1214
1215
  return k && "message" in k && "properties" in k ? { ...g, props: { ...k, loading: !0 } } : g;
1215
1216
  }) });
1216
1217
  var p;
1217
1218
  });
1218
- const a = t(), s = { ...a.allResponsesRaw, ...n || {} }, { parentQuestionOrder: l, questionsResponses: u } = (({ cards: x, combinedReadableRawResponses: C, parentQuestionId: p }) => {
1219
+ const a = t(), s = { ...a.allResponsesRaw, ...n || {} }, { parentQuestionOrder: l, questionsResponses: u } = (({ cards: v, combinedReadableRawResponses: C, parentQuestionId: p }) => {
1219
1220
  let m = 1, g = 1;
1220
- const k = x.reduce((I, j) => {
1221
+ const k = v.reduce((I, j) => {
1221
1222
  if (j.name > 0 && Un.has(j.type)) {
1222
1223
  p === j.name && (g = m);
1223
1224
  const U = "properties" in j.props && j.props.properties && "captionText" in j.props.properties ? j.props.properties.captionText : void 0, N = ((L) => L.type !== "uploading" && L.type !== "thanks")(j) ? { order: m++, question: j.props.message, questionDescription: U, questionType: j.type, response: C == null ? void 0 : C[j.name], options: Nn(j) } : { order: m++, questionType: j.type, response: C == null ? void 0 : C[j.name] };
@@ -1226,33 +1227,33 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1226
1227
  return I;
1227
1228
  }, []);
1228
1229
  return { parentQuestionOrder: g, questionsResponses: k };
1229
- })({ cards: a.cards, combinedReadableRawResponses: s, parentQuestionId: r }), d = a.cards.find((x) => x.parentId === r);
1230
+ })({ cards: a.cards, combinedReadableRawResponses: s, parentQuestionId: r }), d = a.cards.find((v) => v.parentId === r);
1230
1231
  if (!i || !d) return;
1231
1232
  const c = { surveyId: a.surveyId, responseGroupUid: a.responseGroupUid, parentQuestionOrder: l, questionsResponses: u, childQuestionId: d.name, customMetadata: a.customMetadata, meta: a.meta, previewKey: a.previewKey, isPreview: a.isPreview };
1232
1233
  let h = !1;
1233
1234
  const f = () => {
1234
1235
  if (h) return;
1235
1236
  h = !0;
1236
- const x = t(), C = x.cards.find((p) => p.parentId === r);
1237
+ const v = t(), C = v.cards.find((p) => p.parentId === r);
1237
1238
  if (C)
1238
1239
  if (e((p) => ({ cards: o(p.cards, r, (m) => {
1239
1240
  const g = m.props;
1240
1241
  return g && "message" in g && "properties" in g ? { ...m, value: "", props: { ...g, loading: null, properties: { ...g.properties, required: !1 } } } : m;
1241
- }) })), Be(x.studyType) && (C != null && C.groupId)) {
1242
- const p = x.cards.reduce((k, I) => ((I == null ? void 0 : I.groupId) === C.groupId && k.push(I), k), []), m = p.findIndex((k) => k.name === C.name), g = m + 1;
1242
+ }) })), Be(v.studyType) && (C != null && C.groupId)) {
1243
+ const p = v.cards.reduce((k, I) => ((I == null ? void 0 : I.groupId) === C.groupId && k.push(I), k), []), m = p.findIndex((k) => k.name === C.name), g = m + 1;
1243
1244
  if (g < p.length) {
1244
1245
  const k = p[g].name;
1245
- x.setFocusedQuestionId(k);
1246
+ v.setFocusedQuestionId(k);
1246
1247
  } else {
1247
1248
  const k = p[m - 1].name;
1248
- x.setFocusedQuestionId(k);
1249
+ v.setFocusedQuestionId(k);
1249
1250
  }
1250
- } else x.next({ data: { value: "", questionId: C.name, type: C.type }, completeSurvey: () => x.destroy(ee), endCard: x.endCard });
1251
+ } else v.next({ data: { value: "", questionId: C.name, type: C.type }, completeSurvey: () => v.destroy(ee), endCard: v.endCard });
1251
1252
  }, _ = new AbortController(), R = setTimeout(() => {
1252
1253
  _.abort(), f();
1253
1254
  }, 2e3);
1254
1255
  try {
1255
- const x = a.isPreview ? `${a.apiURL}/sdk/1/environments/${a.envId}/dynamic-question-preview` : `${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/dynamic-question`, C = a.isPreview ? "0" : a.headers["x-ul-visitor-id"], p = await a.trackPromise(ye(x, { body: JSON.stringify(c), headers: { ...a.headers, "x-ul-visitor-id": C }, method: "POST", signal: _.signal }));
1256
+ const v = a.isPreview ? `${a.apiURL}/sdk/1/environments/${a.envId}/dynamic-question-preview` : `${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/dynamic-question`, C = a.isPreview ? "0" : a.headers["x-ul-visitor-id"], p = await a.trackPromise(ye(v, { body: JSON.stringify(c), headers: { ...a.headers, "x-ul-visitor-id": C }, method: "POST", signal: _.signal }));
1256
1257
  if (!p.ok || !((y = (A = (b = p == null ? void 0 : p.json) == null ? void 0 : b.props) == null ? void 0 : A.message) != null && y.length)) return f(), void await a.trackPromise(Pe(a, "dynamicQuestion", p.error));
1257
1258
  if (h) return;
1258
1259
  h = !0, e((m) => ({ cards: o(m.cards, r, (g) => {
@@ -1294,11 +1295,11 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1294
1295
  throw n(), o;
1295
1296
  });
1296
1297
  }, unresolvedRequestCount: 0, update: () => {
1297
- var y, x, C;
1298
+ var y, v, C;
1298
1299
  const { cards: r, index: n, headers: o, eventEmitFn: i, frame: a, useMobileStyling: s, surveyId: l, viewDocument: u, isConversationalUI: d } = t(), c = o["userleap-platform"] === "web", h = ke(o), f = r[n], _ = f.type === "matrix" && !(f.props.properties.displayMatrixAsAccordion || s);
1299
1300
  !h && !s && ((y = a == null ? void 0 : a.setWidth) == null || y.call(a, Kr));
1300
1301
  const [R, b] = Jr(u, c && !s, h), A = d && R < 532 ? 532 : R;
1301
- h ? (i(M.SurveyHeight, { name: M.SurveyHeight, contentFrameHeight: A, "survey.id": l }), i(M.SurveyWidth, { name: M.SurveyWidth, contentFrameWidth: b, "survey.id": l })) : ((x = a.setHeight) == null || x.call(a, A), !s && _ && ((C = a.setWidth) == null || C.call(a, b)));
1302
+ h ? (i(M.SurveyHeight, { name: M.SurveyHeight, contentFrameHeight: A, "survey.id": l }), i(M.SurveyWidth, { name: M.SurveyWidth, contentFrameWidth: b, "survey.id": l })) : ((v = a.setHeight) == null || v.call(a, A), !s && _ && ((C = a.setWidth) == null || C.call(a, b)));
1302
1303
  }, uploadingCardViewed: !1, uploadProgress: {}, useDesktopPrototype: void 0, useMobileStyling: !1, userId: "", viewDocument: window.document, viewedCardCount: 0, focusedQuestionId: null, setFocusedQuestionId: (r) => e({ focusedQuestionId: r }) })), He = (e) => !e.userId || e.meta && e.meta.mode === "test" || e.isPreview || e.previewMode, Pe = async (e, t, r) => {
1303
1304
  const { mode: n, userId: o, envId: i, apiURL: a, headers: s, viewDocument: l } = e, u = l.documentElement, d = { mode: n, screenWidth: window.screen.width, screenHeight: window.screen.height, clientWidth: u.clientWidth, clientHeight: u.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: d, vid: o, envId: i };
1304
1305
  (await ye(`${a}/sdk/1/errors`, { method: "POST", headers: Object.assign({ "x-ul-error": window.btoa(`userleap-${Date.now()}-error`) }, s), body: JSON.stringify(c) })).ok || console.warn("[Sprig] (ERR-444) Failed to report error to API", r);
@@ -1323,13 +1324,13 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1323
1324
  return `${e + n} ${e + (r ? `${n}_${r}` : "")} ${e}`;
1324
1325
  }, Bn = (e, t) => `${e} ${e}__${t}`, Zr = ({ logoOnly: e = !1, style: t = {} }) => w("svg", { alt: (e ? "Powered by " : "") + "Sprig", fill: "none", height: "15", style: { display: "block", ...t }, viewBox: e ? "79 0 31 15" : "0 0 112 15", width: e ? "35" : "112", xmlns: "http://www.w3.org/2000/svg", children: [!e && w("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" }), w("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" }), w("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" }), w("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" }), w("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" }), w("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" })] }), $n = ({ forceBrandedLogo: e, marketingUrlLink: t }) => w("div", { className: e ? "yellow-footer-logo" : "", style: { marginTop: "4px", marginBottom: "4px" }, children: w("a", { href: t, rel: "noreferrer", target: "_blank", children: w("div", { style: { display: "flex" }, children: [w(Zr, { logoOnly: !1 }), e && w(Qr, { style: { display: "block", margin: "auto 0 auto 4px", transform: "rotateY(0deg) rotate(-45deg)" } })] }) }) }), Wn = ({ marketingUrlLink: e }) => w("a", { dir: "ltr", href: e, rel: "noreferrer", target: "_blank", children: w("div", { className: "thank-you-card-link", children: [w("div", { className: "sprig-box-logo", children: w(Zr, { logoOnly: !0, style: { margin: "auto" } }) }), w("div", { children: w("p", { children: ["Capture insights about your own product", w(Qr, { style: { display: "inline-flex", marginInlineStart: "4px", verticalAlign: "middle" } })] }) })] }) }), po = (e) => (e == null ? void 0 : e.buttonText) || "Next", fo = (e) => (e == null ? void 0 : e.skipButtonText) || "Skip", Qn = ({ marketingUrl: e, slugName: t, surveyId: r, forceBrandedLogo: n }) => `${e}?utm_source=survey_branding&utm_medium=website&utm_campaign=${t}&utm_content=${r}${n ? "&utm_term=poweredby_pill" : ""}`, Zn = () => {
1325
1326
  var A;
1326
- const { border: e, cards: t, forceBrandedLogo: r, headers: n, index: o, marketingUrl: i, showSurveyBrand: a, slugName: s, surveyId: l, viewedCardCount: u } = F((y) => ({ border: y.border, cards: y.cards, forceBrandedLogo: y.forceBrandedLogo, headers: y.headers, index: y.index, marketingUrl: y.marketingUrl, showSurveyBrand: y.showSurveyBrand, slugName: y.slugName, surveyId: y.surveyId, viewedCardCount: y.viewedCardCount })), d = Q(null), c = t.filter((y) => y.type !== "uploading" && y.type !== "thanks"), h = ((y, x) => {
1327
+ const { border: e, cards: t, forceBrandedLogo: r, headers: n, index: o, marketingUrl: i, showSurveyBrand: a, slugName: s, surveyId: l, viewedCardCount: u } = F((y) => ({ border: y.border, cards: y.cards, forceBrandedLogo: y.forceBrandedLogo, headers: y.headers, index: y.index, marketingUrl: y.marketingUrl, showSurveyBrand: y.showSurveyBrand, slugName: y.slugName, surveyId: y.surveyId, viewedCardCount: y.viewedCardCount })), d = Q(null), c = t.filter((y) => y.type !== "uploading" && y.type !== "thanks"), h = ((y, v) => {
1327
1328
  const C = /* @__PURE__ */ new Set(["thanks", "uploading"]);
1328
- if (x >= y.length || x < 0 || C.has(y[x].type)) return 0;
1329
+ if (v >= y.length || v < 0 || C.has(y[v].type)) return 0;
1329
1330
  const p = y.filter((g) => !C.has(g.type));
1330
- if (x === p.length - 1) return 1;
1331
+ if (v === p.length - 1) return 1;
1331
1332
  const m = { [p.length - 1]: 1, [-1]: 0 };
1332
- for (let g = p.length - 2; g >= x; g--) {
1333
+ for (let g = p.length - 2; g >= v; g--) {
1333
1334
  const k = p[g], I = (k.props.routingOptions ?? []).filter((P) => typeof P == "object" && P !== null && "group" in P), j = Hn(g, I);
1334
1335
  if (j.length === 0) {
1335
1336
  m[g] = m[g + 1] + 1;
@@ -1337,7 +1338,7 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1337
1338
  }
1338
1339
  let U = 0;
1339
1340
  const N = Tn(k);
1340
- if (N === null) return p.length - 1 - x;
1341
+ if (N === null) return p.length - 1 - v;
1341
1342
  let L = N;
1342
1343
  for (const P of j) {
1343
1344
  if (L.length === 0) break;
@@ -1347,14 +1348,14 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1347
1348
  });
1348
1349
  if (me.length < L.length) {
1349
1350
  const S = Number.parseInt(String(_e), 10);
1350
- if (S !== -1 && S <= g || S >= p.length) return p.length - 1 - x;
1351
+ if (S !== -1 && S <= g || S >= p.length) return p.length - 1 - v;
1351
1352
  U = Math.max(m[S] + 1, U);
1352
1353
  }
1353
1354
  L = me;
1354
1355
  }
1355
1356
  L.length > 0 && (U = Math.max(m[g + 1] + 1, U)), m[g] = U;
1356
1357
  }
1357
- return m[x];
1358
+ return m[v];
1358
1359
  })(t, o), f = u + 1, _ = f / (f + h), R = Qn({ marketingUrl: i, slugName: s, surveyId: l, forceBrandedLogo: r });
1359
1360
  H(() => {
1360
1361
  d.current && (d.current.style.width = 100 * _ + "%");
@@ -1462,8 +1463,8 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1462
1463
  return u = o ? r + 1 : s.findIndex((c) => c.name === n), { totalQuestions: l, fraction: u / (l + 1) };
1463
1464
  }, [t, r, n, o]);
1464
1465
  return i <= 1 ? null : w("div", { className: "ul-progress-bar-container ul-progress-bar-container__header", children: w("div", { className: "ul-progress-bar-current", style: { width: 100 * a + "%", border: `1px solid ${e ?? "#000"}` } }) });
1465
- }, eo = je(() => import("./conversational-ui-JTauhs_T.js")), to = je(async () => ({ default: (await import("./index-Dx9Ltdmj.js")).PageCard })), ro = () => {
1466
- const { answers: e, border: t, cards: r, close: n, configureExitOnOverlayClick: o, destroy: i, endCard: a, eventEmitFn: s, fontFamily: l, headers: u, isConversationalUI: d, index: c, next: h, previewMode: f, productConfig: _, seen: R, showStripes: b, studyType: A, surveyId: y, surveyVisitorAttributes: x, update: C, useMobileStyling: p, viewDocument: m } = F((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, isConversationalUI: S.isConversationalUI, previewMode: S.previewMode, productConfig: S.productConfig, next: S.next, seen: S.seen, showStripes: S.showStripes, studyType: S.studyType, surveyId: S.surveyId, surveyVisitorAttributes: S.surveyVisitorAttributes, update: S.update, useMobileStyling: S.useMobileStyling, viewDocument: S.viewDocument })), g = Q(null), k = Q(!1), I = Q(!1), j = u["userleap-platform"], { props: U, type: N, name: L } = r[c];
1466
+ }, eo = je(() => import("./conversational-ui-BT1EO37i.js")), to = je(async () => ({ default: (await import("./index-DPlGJqsd.js")).PageCard })), ro = () => {
1467
+ const { answers: e, border: t, cards: r, close: n, configureExitOnOverlayClick: o, destroy: i, endCard: a, eventEmitFn: s, fontFamily: l, headers: u, isConversationalUI: d, index: c, next: h, previewKey: f, productConfig: _, seen: R, showStripes: b, studyType: A, surveyId: y, surveyVisitorAttributes: v, update: C, useMobileStyling: p, viewDocument: m } = F((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, isConversationalUI: S.isConversationalUI, previewKey: S.previewKey, productConfig: S.productConfig, next: S.next, seen: S.seen, showStripes: S.showStripes, studyType: S.studyType, surveyId: S.surveyId, surveyVisitorAttributes: S.surveyVisitorAttributes, update: S.update, useMobileStyling: S.useMobileStyling, viewDocument: S.viewDocument })), g = Q(null), k = Q(!1), I = Q(!1), j = u["userleap-platform"], { props: U, type: N, name: L } = r[c];
1467
1468
  H(() => {
1468
1469
  if (window.Sprig) return window.Sprig.trackHistory = (S) => F.getState().trackHistory(S), () => {
1469
1470
  window.Sprig.trackHistory = void 0;
@@ -1494,7 +1495,7 @@ const Te = (e) => e != null && typeof e == "object" && typeof Reflect.get(e, "ta
1494
1495
  }, [n, o]), H(() => {
1495
1496
  P();
1496
1497
  }, [P, m]);
1497
- const V = J(() => Xr(r, c), [r, c]), _e = Yn(r, x), ie = Ce((S) => {
1498
+ const V = J(() => Xr(r, c), [r, c]), _e = Yn(r, v), ie = Ce((S) => {
1498
1499
  h({ data: S, completeSurvey: () => i(ee), endCard: a }), Yr(m);
1499
1500
  }, [h, i, a, m]);
1500
1501
  if (e) {
@@ -1539,7 +1540,7 @@ function Yt(e, t, r, n, o, i) {
1539
1540
  const { "begin.callback": a } = n, s = e.currentMediaRecordingUid;
1540
1541
  if (!s) return;
1541
1542
  a && a(s), e.onstop = () => async function(l, u, d, c, h, f, _) {
1542
- const R = F.getState().viewDocument, { "upload.callback": b, "progress.callback": A } = c, y = { mediaType: d, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaRecordingUid: h, ...c["passthrough.data"] }, x = await (async (g, k) => {
1543
+ const R = F.getState().viewDocument, { "upload.callback": b, "progress.callback": A } = c, y = { mediaType: d, updatedAt: (/* @__PURE__ */ new Date()).toISOString(), mediaRecordingUid: h, ...c["passthrough.data"] }, v = await (async (g, k) => {
1543
1544
  var j;
1544
1545
  const I = await fetch(k, { method: "POST", cache: "no-cache", headers: { "Content-Type": "application/json" }, body: JSON.stringify(g) });
1545
1546
  if (I.ok) {
@@ -1548,10 +1549,10 @@ function Yt(e, t, r, n, o, i) {
1548
1549
  }
1549
1550
  return null;
1550
1551
  })(y, l);
1551
- if (!x) return void (b && b(null, { message: "failed to get upload url" }));
1552
+ if (!v) return void (b && b(null, { message: "failed to get upload url" }));
1552
1553
  const C = new Blob(_, { type: Gr() });
1553
1554
  if (!R.defaultView) return;
1554
- const p = new R.defaultView.File([C], `recording video ${Date.now()}`), m = f.createUpload({ endpoint: x, file: p, chunkSize: 5120 });
1555
+ const p = new R.defaultView.File([C], `recording video ${Date.now()}`), m = f.createUpload({ endpoint: v, file: p, chunkSize: 5120 });
1555
1556
  m.on("error", (g) => {
1556
1557
  b && b(null, g);
1557
1558
  }), m.on("progress", (g) => {
@@ -1682,8 +1683,8 @@ const io = { configure: function(e, t = !0) {
1682
1683
  console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure");
1683
1684
  }, y.appendChild(p);
1684
1685
  }
1685
- const x = i || ((C = s.eventEmitter) == null ? void 0 : C.emit);
1686
- x == null || x("verify.view.version", { "view.version": "2.41.1" }), c && t && (De && Re(c), ne(w(ro, {}), c), De = !0, se.once(M.SurveyClosed, () => {
1686
+ const v = i || ((C = s.eventEmitter) == null ? void 0 : C.emit);
1687
+ v == null || v("verify.view.version", { "view.version": "2.41.2" }), c && t && (De && Re(c), ne(w(ro, {}), c), De = !0, se.once(M.SurveyClosed, () => {
1687
1688
  Re(c), De = !1;
1688
1689
  }));
1689
1690
  } }, ho = Object.freeze(Object.defineProperty({ __proto__: null, default: io }, Symbol.toStringTag, { value: "Module" }));