@sprig-technologies/sprig-bundled 1.1.6 → 1.1.8

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.
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index-MkVSshrN.cjs");var ve,M,Qt,se,at,Wt,Ue,Zt,_e={},Gt=[],sr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ee=Array.isArray;function X(e,t){for(var n in t)e[n]=t[n];return e}function Kt(e){var t=e.parentNode;t&&t.removeChild(e)}function G(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ve.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return fe(e,s,r,o,null)}function fe(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Qt,__i:-1,__u:0};return o==null&&M.vnode!=null&&M.vnode(i),i}function Yt(){return{current:null}}function V(e){return e.children}function K(e,t){this.props=e,this.context=t}function de(e,t){if(t==null)return e.__?de(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?de(e):null}function Jt(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Jt(e)}}function Fe(e){(!e.__d&&(e.__d=!0)&&se.push(e)&&!Ce.__r++||at!==M.debounceRendering)&&((at=M.debounceRendering)||Wt)(Ce)}function Ce(){var e,t,n,r,o,i,s,l,c;for(se.sort(Ue);e=se.shift();)e.__d&&(t=se.length,r=void 0,i=(o=(n=e).__v).__e,l=[],c=[],(s=n.__P)&&((r=X({},o)).__v=o.__v+1,M.vnode&&M.vnode(r),We(s,r,o,n.__n,s.ownerSVGElement!==void 0,32&o.__u?[i]:null,l,i??de(o),!!(32&o.__u),c),r.__.__k[r.__i]=r,tn(l,r,c),r.__e!=i&&Jt(r)),se.length>t&&se.sort(Ue));Ce.__r=0}function Xt(e,t,n,r,o,i,s,l,c,p,m){var u,d,h,g,x,y=r&&r.__k||Gt,k=t.length;for(n.__d=c,function(v,C,N){var f,b,_,E,I,P=C.length,S=N.length,w=S,L=0;for(v.__k=[],f=0;f<P;f++)(b=v.__k[f]=(b=C[f])==null||typeof b=="boolean"||typeof b=="function"?null:typeof b=="string"||typeof b=="number"||typeof b=="bigint"||b.constructor==String?fe(null,b,null,null,b):Ee(b)?fe(V,{children:b},null,null,null):b.constructor===void 0&&b.__b>0?fe(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)!=null?(b.__=v,b.__b=v.__b+1,I=ar(b,N,E=f+L,w),b.__i=I,_=null,I!==-1&&(w--,(_=N[I])&&(_.__u|=131072)),_==null||_.__v===null?(I==-1&&L--,typeof b.type!="function"&&(b.__u|=65536)):I!==E&&(I===E+1?L++:I>E?w>P-E?L+=I-E:L--:L=I<E&&I==E-1?I-E:0,I!==f+L&&(b.__u|=65536))):(_=N[f])&&_.key==null&&_.__e&&(_.__e==v.__d&&(v.__d=de(_)),Ae(_,_,!1),N[f]=null,w--);if(w)for(f=0;f<S;f++)(_=N[f])!=null&&!(131072&_.__u)&&(_.__e==v.__d&&(v.__d=de(_)),Ae(_,_))}(n,t,y),c=n.__d,u=0;u<k;u++)(h=n.__k[u])!=null&&typeof h!="boolean"&&typeof h!="function"&&(d=h.__i===-1?_e:y[h.__i]||_e,h.__i=u,We(e,h,d,o,i,s,l,c,p,m),g=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Ze(d.ref,null,h),m.push(h.ref,h.__c||g,h)),x==null&&g!=null&&(x=g),65536&h.__u||d.__k===h.__k?c=en(h,c,e):typeof h.type=="function"&&h.__d!==void 0?c=h.__d:g&&(c=g.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=x}function en(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=en(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function ee(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ee(e)?e.some(function(n){ee(n,t)}):t.push(e)),t}function ar(e,t,n,r){var o=e.key,i=e.type,s=n-1,l=n+1,c=t[n];if(c===null||c&&o==c.key&&i===c.type)return n;if(r>(c==null||131072&c.__u?0:1))for(;s>=0||l<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(l<t.length){if((c=t[l])&&!(131072&c.__u)&&o==c.key&&i===c.type)return l;l++}}return-1}function lt(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||sr.test(t)?n:n+"px"}function xe(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||lt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||lt(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?ut:ct,i)):e.removeEventListener(t,i?ut:ct,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function ct(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(M.event?M.event(e):e)}function ut(e){return this.l[e.type+!0](M.event?M.event(e):e)}function We(e,t,n,r,o,i,s,l,c,p){var m,u,d,h,g,x,y,k,v,C,N,f,b,_,E,I=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[l=t.__e=n.__e]),(m=M.__b)&&m(t);e:if(typeof I=="function")try{if(k=t.props,v=(m=I.contextType)&&r[m.__c],C=m?v?v.props.value:m.__:r,n.__c?y=(u=t.__c=n.__c).__=u.__E:("prototype"in I&&I.prototype.render?t.__c=u=new I(k,C):(t.__c=u=new K(k,C),u.constructor=I,u.render=cr),v&&v.sub(u),u.props=k,u.state||(u.state={}),u.context=C,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),I.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=X({},u.__s)),X(u.__s,I.getDerivedStateFromProps(k,u.__s))),h=u.props,g=u.state,u.__v=t,d)I.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(I.getDerivedStateFromProps==null&&k!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(k,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(k,u.__s,C)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=k,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(P){P&&(P.__=t)}),N=0;N<u._sb.length;N++)u.__h.push(u._sb[N]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(k,u.__s,C),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,g,x)})}if(u.context=C,u.props=k,u.__P=e,u.__e=!1,f=M.__r,b=0,"prototype"in I&&I.prototype.render){for(u.state=u.__s,u.__d=!1,f&&f(t),m=u.render(u.props,u.state,u.context),_=0;_<u._sb.length;_++)u.__h.push(u._sb[_]);u._sb=[]}else do u.__d=!1,f&&f(t),m=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++b<25);u.state=u.__s,u.getChildContext!=null&&(r=X(X({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(x=u.getSnapshotBeforeUpdate(h,g)),Xt(e,Ee(E=m!=null&&m.type===V&&m.key==null?m.props.children:m)?E:[E],t,n,r,o,i,s,l,c,p),u.base=t.__e,t.__u&=-161,u.__h.length&&s.push(u),y&&(u.__E=u.__=null)}catch(P){t.__v=null,c||i!=null?(t.__e=l,t.__u|=c?160:32,i[i.indexOf(l)]=null):(t.__e=n.__e,t.__k=n.__k),M.__e(P,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=lr(n.__e,t,n,r,o,i,s,c,p);(m=M.diffed)&&m(t)}function tn(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Ze(n[r],n[++r],n[++r]);M.__c&&M.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){M.__e(i,o.__v)}})}function lr(e,t,n,r,o,i,s,l,c){var p,m,u,d,h,g,x,y=n.props,k=t.props,v=t.type;if(v==="svg"&&(o=!0),i!=null){for(p=0;p<i.length;p++)if((h=i[p])&&"setAttribute"in h==!!v&&(v?h.localName===v:h.nodeType===3)){e=h,i[p]=null;break}}if(e==null){if(v===null)return document.createTextNode(k);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,k.is&&k),i=null,l=!1}if(v===null)y===k||l&&e.data===k||(e.data=k);else{if(i=i&&ve.call(e.childNodes),y=n.props||_e,!l&&i!=null)for(y={},p=0;p<e.attributes.length;p++)y[(h=e.attributes[p]).name]=h.value;for(p in y)h=y[p],p=="children"||(p=="dangerouslySetInnerHTML"?u=h:p==="key"||p in k||xe(e,p,null,h,o));for(p in k)h=k[p],p=="children"?d=h:p=="dangerouslySetInnerHTML"?m=h:p=="value"?g=h:p=="checked"?x=h:p==="key"||l&&typeof h!="function"||y[p]===h||xe(e,p,h,y[p],o);if(m)l||u&&(m.__html===u.__html||m.__html===e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(u&&(e.innerHTML=""),Xt(e,Ee(d)?d:[d],t,n,r,o&&v!=="foreignObject",i,s,i?i[0]:n.__k&&de(n,0),l,c),i!=null)for(p=i.length;p--;)i[p]!=null&&Kt(i[p]);l||(p="value",g!==void 0&&(g!==e[p]||v==="progress"&&!g||v==="option"&&g!==y[p])&&xe(e,p,g,y[p],!1),p="checked",x!==void 0&&x!==e[p]&&xe(e,p,x,y[p],!1))}return e}function Ze(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){M.__e(r,n)}}function Ae(e,t,n){var r,o;if(M.unmount&&M.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ze(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){M.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ae(r[o],t,n||typeof e.type!="function");n||e.__e==null||Kt(e.__e),e.__=e.__e=e.__d=void 0}function cr(e,t,n){return this.constructor(e,n)}function pe(e,t,n){var r,o,i,s;M.__&&M.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],We(t,e=(!r&&n||t).__k=G(V,null,[e]),o||_e,_e,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ve.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),tn(i,e,s)}function nn(e,t){pe(e,t,nn)}function ur(e,t,n){var r,o,i,s,l=X({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:l[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?ve.call(arguments,2):n),fe(e.type,l,r||e.key,o||e.ref,null)}function rn(e,t){var n={__c:t="__cC"+Zt++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(l){l.__e=!0,Fe(l)})},this.sub=function(s){o.push(s);var l=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),l&&l.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ve=Gt.slice,M={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(l){e=l}throw e}},Qt=0,K.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=X({},this.state),typeof e=="function"&&(e=e(X({},n),this.props)),e&&X(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fe(this))},K.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fe(this))},K.prototype.render=V,se=[],Wt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ue=function(e,t){return e.__v.__b-t.__v.__b},Ce.__r=0,Zt=0;var dr=0;function a(e,t,n,r,o,i){var s,l,c={};for(l in t)l=="ref"?s=t[l]:c[l]=t[l];var p={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--dr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)c[l]===void 0&&(c[l]=s[l]);return M.vnode&&M.vnode(p),p}var te,F,Re,dt,me=0,on=[],ke=[],pt=M.__b,mt=M.__r,ht=M.diffed,ft=M.__c,gt=M.unmount;function le(e,t){M.__h&&M.__h(F,e,me||t),me=0;var n=F.__H||(F.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ke}),n.__[e]}function B(e){return me=1,Ge(cn,e)}function Ge(e,t,n){var r=le(te++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):cn(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],p=r.t(c,l);c!==p&&(r.__N=[p,r.__[1]],r.__c.setState({}))}],r.__c=F,!F.u)){var o=function(l,c,p){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(d){return d.__c});if(m.every(function(d){return!d.__N}))return!i||i.call(this,l,c,p);var u=!1;return m.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(u=!0)}}),!(!u&&r.__c.props===l)&&(!i||i.call(this,l,c,p))};F.u=!0;var i=F.shouldComponentUpdate,s=F.componentWillUpdate;F.componentWillUpdate=function(l,c,p){if(this.__e){var m=i;i=void 0,o(l,c,p),i=m}s&&s.call(this,l,c,p)},F.shouldComponentUpdate=o}return r.__N||r.__}function j(e,t){var n=le(te++,3);!M.__s&&Ye(n.__H,t)&&(n.__=e,n.i=t,F.__H.__h.push(n))}function be(e,t){var n=le(te++,4);!M.__s&&Ye(n.__H,t)&&(n.__=e,n.i=t,F.__h.push(n))}function Q(e){return me=5,ne(function(){return{current:e}},[])}function sn(e,t,n){me=6,be(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ne(e,t){var n=le(te++,7);return Ye(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ae(e,t){return me=8,ne(function(){return e},t)}function an(e){var t=F.context[e.__c],n=le(te++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(F)),t.props.value):e.__}function Ke(e,t){M.useDebugValue&&M.useDebugValue(t?t(e):e)}function ln(){var e=le(te++,11);if(!e.__){for(var t=F.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function pr(){for(var e;e=on.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(we),e.__H.__h.forEach(Be),e.__H.__h=[]}catch(t){e.__H.__h=[],M.__e(t,e.__v)}}M.__b=function(e){F=null,pt&&pt(e)},M.__r=function(e){mt&&mt(e),te=0;var t=(F=e.__c).__H;t&&(Re===F?(t.__h=[],F.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ke,n.__N=n.i=void 0})):(t.__h.forEach(we),t.__h.forEach(Be),t.__h=[],te=0)),Re=F},M.diffed=function(e){ht&&ht(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(on.push(t)!==1&&dt===M.requestAnimationFrame||((dt=M.requestAnimationFrame)||mr)(pr)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ke&&(n.__=n.__V),n.i=void 0,n.__V=ke})),Re=F=null},M.__c=function(e,t){t.some(function(n){try{n.__h.forEach(we),n.__h=n.__h.filter(function(r){return!r.__||Be(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],M.__e(r,n.__v)}}),ft&&ft(e,t)},M.unmount=function(e){gt&&gt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{we(r)}catch(o){t=o}}),n.__H=void 0,t&&M.__e(t,n.__v))};var _t=typeof requestAnimationFrame=="function";function mr(e){var t,n=function(){clearTimeout(r),_t&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);_t&&(t=requestAnimationFrame(n))}function we(e){var t=F,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),F=t}function Be(e){var t=F;e.__c=e.__(),F=t}function Ye(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function cn(e,t){return typeof t=="function"?t(e):t}function un(e,t){for(var n in t)e[n]=t[n];return e}function je(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Ie(e){this.props=e}function dn(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:je(this.props,o)}function r(o){return this.shouldComponentUpdate=n,G(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ie.prototype=new K).isPureReactComponent=!0,Ie.prototype.shouldComponentUpdate=function(e,t){return je(this.props,e)||je(this.state,t)};var vt=M.__b;M.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vt&&vt(e)};var hr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Je(e){function t(n){var r=un({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=hr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var bt=function(e,t){return e==null?null:ee(ee(e).map(t))},pn={map:bt,forEach:bt,count:function(e){return e?ee(e).length:0},only:function(e){var t=ee(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ee},fr=M.__e;M.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}fr(e,t,n,r)};var yt=M.unmount;function mn(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=un({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return mn(r,t,n)})),e}function hn(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return hn(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ge(){this.__u=0,this.t=null,this.__b=null}function fn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function gn(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return G(n,i)}return o.displayName="Lazy",o.__f=!0,o}function ue(){this.u=null,this.o=null}M.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),yt&&yt(e)},(ge.prototype=new K).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=fn(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=hn(c,c.__c.__P,c.__c.__O)}var p;for(r.setState({__a:r.__b=null});p=r.t.pop();)p.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ge.prototype.componentWillUnmount=function(){this.t=[]},ge.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=mn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&G(V,null,e.fallback);return o&&(o.__u&=-33),[G(V,null,t.__a?null:e.children),o]};var xt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function gr(e){return this.getChildContext=function(){return e.context},e.children}function _r(e){var t=this,n=e.i;t.componentWillUnmount=function(){pe(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),pe(G(gr,{context:t.context},e.__v),t.l)}function _n(e,t){var n=G(_r,{__v:e,i:t});return n.containerInfo=t,n}(ue.prototype=new K).__a=function(e){var t=this,n=fn(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xt(t,e,r)):o()};n?n(i):i()}},ue.prototype.render=function(e){this.u=null,this.o=new Map;var t=ee(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ue.prototype.componentDidUpdate=ue.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){xt(e,n,t)})};var vn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,br=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yr=/[A-Z0-9]/g,xr=typeof document<"u",kr=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function bn(e,t,n){return t.__k==null&&(t.textContent=""),pe(e,t),typeof n=="function"&&n(),e?e.__c:null}function yn(e,t,n){return nn(e,t),typeof n=="function"&&n(),e?e.__c:null}K.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(K.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var kt=M.event;function wr(){}function Sr(){return this.cancelBubble}function Cr(){return this.defaultPrevented}M.event=function(e){return kt&&(e=kt(e)),e.persist=wr,e.isPropagationStopped=Sr,e.isDefaultPrevented=Cr,e.nativeEvent=e};var Xe,Ir={enumerable:!1,configurable:!0,get:function(){return this.class}},wt=M.vnode;M.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||xr&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||kr(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":br.test(i)?i=l:r.indexOf("-")===-1&&vr.test(i)?i=i.replace(yr,"-$&").toLowerCase():s===null&&(s=void 0):l=i="oninput",l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ee(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ee(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Ir)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=vn,wt&&wt(e)};var St=M.__r;M.__r=function(e){St&&St(e),Xe=e.__c};var Ct=M.diffed;M.diffed=function(e){Ct&&Ct(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Xe=null};var xn={ReactCurrentDispatcher:{current:{readContext:function(e){return Xe.__n[e.__c].props.value}}}};function kn(e){return G.bind(null,e)}function ye(e){return!!e&&e.$$typeof===vn}function wn(e){return ye(e)&&e.type===V}function Sn(e){return ye(e)?ur.apply(null,arguments):e}function et(e){return!!e.__k&&(pe(null,e),!0)}function Cn(e){return e&&(e.base||e.nodeType===1&&e)||null}var In=function(e,t){return e(t)},Tn=function(e,t){return e(t)},En=V;function tt(e){e()}function Nn(e){return e}function Ln(){return[!1,tt]}var Pn=be,Rn=ye;function Mn(e,t){var n=t(),r=B({h:{__:n,v:t}}),o=r[0].h,i=r[1];return be(function(){o.__=n,o.v=t,Me(o)&&i({h:o})},[e,n,t]),j(function(){return Me(o)&&i({h:o}),e(function(){Me(o)&&i({h:o})})},[e]),n}function Me(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Tr={useState:B,useId:ln,useReducer:Ge,useEffect:j,useLayoutEffect:be,useInsertionEffect:Pn,useTransition:Ln,useDeferredValue:Nn,useSyncExternalStore:Mn,startTransition:tt,useRef:Q,useImperativeHandle:sn,useMemo:ne,useCallback:ae,useContext:an,useDebugValue:Ke,version:"17.0.2",Children:pn,render:bn,hydrate:yn,unmountComponentAtNode:et,createPortal:_n,createElement:G,createContext:rn,createFactory:kn,cloneElement:Sn,createRef:Yt,Fragment:V,isValidElement:ye,isElement:Rn,isFragment:wn,findDOMNode:Cn,Component:K,PureComponent:Ie,memo:dn,forwardRef:Je,flushSync:Tn,unstable_batchedUpdates:In,StrictMode:En,Suspense:ge,SuspenseList:ue,lazy:gn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:xn};const Er=Object.freeze(Object.defineProperty({__proto__:null,Children:pn,Component:K,Fragment:V,PureComponent:Ie,StrictMode:En,Suspense:ge,SuspenseList:ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:xn,cloneElement:Sn,createContext:rn,createElement:G,createFactory:kn,createPortal:_n,createRef:Yt,default:Tr,findDOMNode:Cn,flushSync:Tn,forwardRef:Je,hydrate:yn,isElement:Rn,isFragment:wn,isValidElement:ye,lazy:gn,memo:dn,render:bn,startTransition:tt,unmountComponentAtNode:et,unstable_batchedUpdates:In,useCallback:ae,useContext:an,useDebugValue:Ke,useDeferredValue:Nn,useEffect:j,useErrorBoundary:function(e){var t=le(te++,10),n=B();return t.__=e,F.componentDidCatch||(F.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]},useId:ln,useImperativeHandle:sn,useInsertionEffect:Pn,useLayoutEffect:be,useMemo:ne,useReducer:Ge,useRef:Q,useState:B,useSyncExternalStore:Mn,useTransition:Ln,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),It=e=>{let t;const n=new Set,r=(s,l)=>{const c=typeof s=="function"?s(t):s;if(!Object.is(c,t)){const p=t;t=l??typeof c!="object"?c:Object.assign({},t,c),n.forEach(m=>m(t,p))}},o=()=>t,i={setState:r,getState:o,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>n.clear()};return t=e(r,o,i),i};function Nr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lr(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Tt={exports:{}},Oe={};const On=Lr(Er);var Et,Nt,Lt,Pt,Rt={exports:{}},qe={};function Pr(){return Nt||(Nt=1,Rt.exports=function(){if(Et)return qe;Et=1;var e=On,t=typeof Object.is=="function"?Object.is:function(c,p){return c===p&&(c!==0||1/c==1/p)||c!=c&&p!=p},n=e.useState,r=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function s(c){var p=c.getSnapshot;c=c.value;try{var m=p();return!t(c,m)}catch{return!0}}var l=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,p){return p()}:function(c,p){var m=p(),u=n({inst:{value:m,getSnapshot:p}}),d=u[0].inst,h=u[1];return o(function(){d.value=m,d.getSnapshot=p,s(d)&&h({inst:d})},[c,m,p]),r(function(){return s(d)&&h({inst:d}),c(function(){s(d)&&h({inst:d})})},[c]),i(m),m};return qe.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,qe}()),Rt.exports}var Rr=(Pt||(Pt=1,Tt.exports=function(){if(Lt)return Oe;Lt=1;var e=On,t=Pr(),n=typeof Object.is=="function"?Object.is:function(c,p){return c===p&&(c!==0||1/c==1/p)||c!=c&&p!=p},r=t.useSyncExternalStore,o=e.useRef,i=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Oe.useSyncExternalStoreWithSelector=function(c,p,m,u,d){var h=o(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function y(f){if(!C){if(C=!0,k=f,f=u(f),d!==void 0&&g.hasValue){var b=g.value;if(d(b,f))return v=b}return v=f}if(b=v,n(k,f))return b;var _=u(f);return d!==void 0&&d(b,_)?b:(k=f,v=_)}var k,v,C=!1,N=m===void 0?null:m;return[function(){return y(p())},N===null?void 0:function(){return y(N())}]},[p,m,u,d]);var x=r(c,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=x},[x]),l(x),x},Oe}()),Tt.exports);const Mr=Nr(Rr),{useSyncExternalStoreWithSelector:Or}=Mr,Mt=e=>{const t=typeof e=="function"?(r=>r?It(r):It)(e):e,n=(r,o)=>function(i,s=i.getState,l){const c=Or(i.subscribe,i.getState,i.getServerState||i.getState,s,l);return Ke(c),c}(t,r,o);return Object.assign(n,t),n},qn=e=>e?Mt(e):Mt,qr=1,Dr=2,nt={eq:(e,t)=>e==t,neq(e,t){return!this.eq(e,t)},gt:(e,t)=>e>t,gte:(e,t)=>e>=t,lt:(e,t)=>e<t,lte:(e,t)=>e<=t,list_exact:(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&e.slice().sort().join(",")===t.slice().sort().join(","),list_all:(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&!t.some(n=>e.indexOf(n)===-1),list_alo(e,t){if(!Array.isArray(t))return!1;const n=Array.isArray(e)?e:[e],r=new Set(n);return t.some(o=>r.has(o))},list_dni(e,t){if(!Array.isArray(t))return!1;const n=Array.isArray(e)?e:[e],r=new Set(n);return t.every(o=>!r.has(o))},contains(e,t){const n=e.toLowerCase(),r=t.toLowerCase();return n.includes(r)},notcontains(e,t){return!this.contains(e,t)}},Hr=(e,t,n)=>{switch(t){case"videovoice":return!!(e&&e.value);case"open":return!!n;case"multipleselect":return!!(n&&Object.keys(n).length);case"recordedtask":return(n==null?void 0:n.taskStatus)==="completed";case"texturlprompt":return!e.value;case"consentlegal":case"nps":case"likert":return n!==null;case"multiplechoice":return n!==void 0;case"matrix":return!!(n&&Object.values(n).every(r=>r!==null));default:return!0}},Dn=(e,t)=>{if(t==="matrix"){const n=Object.keys(e).length,r=Object.values(e).filter(o=>o!==null).length;return r>0&&r<n}return!1},Hn=({cards:e,index:t,hasEndCard:n,allResponses:r,uploadProgress:o={}})=>{if(t>=e.length||t<0)return null;const i=e[t];let s=t+1;const l=i.props.routingOptions||[];for(let m=0;m<l.length;m++){const{group:u,target:d}=l[m];if(!(u!=null&&u.length))continue;const h=u[0];if(h.questionIndex===void 0||h.questionIndex>r.length)continue;let g=Ot({comparator:h.comparator,response:r[h.questionIndex],type:i.type,value:h.value});for(let x=1;x<u.length;x+=2){const y=u[x],k=u[x+1],v=Ot({comparator:k.comparator,response:r[k.questionIndex],type:e[k.questionIndex].type,value:k.value});y===qr?g&&(g=v):y===Dr&&(g||(g=v))}if(g){s=d===-1&&n?e.length-1:d;break}}const c=e.findIndex(m=>m.type==="uploading");let p;return p=c>0?n?e.length-3:e.length-2:e.length-1,t>=p||s===-1||s!==null&&s>p?c>0&&Object.values(o).some(u=>u.isSubmitted&&!u.isComplete)?c:n?e.length-1:null:s===-1?null:s},Ot=({comparator:e,response:t,type:n,value:r})=>{if(e==="answered")switch(n){case"texturlprompt":return t===void 0;case"consentlegal":return t&&t.submitted===!0;case"recordedtask":return"taskStatus"in t&&t.taskStatus==="completed";case"likert":case"nps":return Number.isInteger(t);case"matrix":return Object.values(t).every(o=>o!==null);case"multiplechoice":return t!==void 0;case"multipleselect":return(t==null?void 0:t.length)>0;case"open":return t&&t.length>0;case"videovoice":return!!(t!=null&&t.mediaRecordingUid);default:return!1}if(e==="given_up")return n!=="recordedtask"||"taskStatus"in t&&t.taskStatus==="given.up";if(e==="partial")return n==="matrix"&&Dn(t,n);if(e==="skipped")switch(n){case"texturlprompt":return t==null?void 0:t.skipped;case"consentlegal":case"likert":case"nps":case"videovoice":return t===null;case"recordedtask":return"taskStatus"in t&&t.taskStatus==="abandoned";case"open":case"multipleselect":return(t==null?void 0:t.length)===0;case"multiplechoice":return t===void 0;case"matrix":return Object.values(t).every(o=>o===null);default:return!1}return nt[e](t,r)},Ur=e=>{var r,o,i;switch(e.type){case"multipleselect":return e&&e.props&&e.props.options?e.props.options.length>13?e.props.options.map(s=>[s.value]):(t=e.props.options.map(s=>s.value),n=!e.props.properties.required,t.reduce((s,l)=>s.concat(s.map(c=>[...c,l])),[[]]).filter(s=>n||s.length>0)):null;case"multiplechoice":{if(!e||!e.props||!e.props.options)return null;const s=e.props.options.map(l=>l.value);return e.props.properties.required||s.push(void 0),s}case"matrix":{if(!((r=e==null?void 0:e.props)!=null&&r.options))return null;const s=e.props.properties.matrixColumn,l=e.props.options,c=l.reduce((m,u)=>(m[u.id]=null,m),{}),p=[{...c,[l[0].id]:s[0].value},l.reduce((m,u)=>(m[u.id]=s[0].value,m),{})];return e.props.properties.required||p.push(c),p}case"likert":{const s=Number((i=(o=e.props)==null?void 0:o.properties)==null?void 0:i.range)||5;return[...Array.from(Array(s).keys()).map(c=>c+1),...e.props.properties.required?[]:[null]]}case"nps":return[0,1,2,3,4,5,6,7,8,9,10,...e.props.properties.required?[]:[null]];case"videovoice":case"open":return["1",...e.props.properties.required?[]:[""]];case"recordedtask":{const s=[{taskStatus:"completed"},{taskStatus:"given.up"}];return e.props.properties.required||s.push({taskStatus:"abandoned"}),s}case"texturlprompt":return[void 0,...e.props.properties.required?[]:[{skipped:!0}]];case"consentlegal":return[1,...e.props.properties.required?[]:[null]];default:return[1]}var t,n},Fr=e=>e in nt,Ar=e=>typeof e=="object"&&e!==null&&"taskStatus"in e,Br=(e,t=[])=>t.reduce((n,r)=>{const{group:o,target:i}=r;if(!(o!=null&&o.length))return[...n];const s=o.filter(l=>!!Number(l)||typeof l=="object"&&l.questionIndex===e).map(l=>{const{comparator:c,value:p}=l;return{comparator:c,target:i,value:p}});return[...n,...s]},[]),De=new Set(["thanks","uploading"]),q=qn()((e,t)=>({allResponses:[],answers:void 0,apiURL:"",border:"#000000",cards:[],close:async(n=R.APP_ID)=>{const r=t(),{fadeout:o,remove:i,trackHistory:s,studyType:l}=r;await o(n),He(r)||s({event:"closed"}),R.breadcrumbsLogger.info("SurveyClosing",{surveyId:r.surveyId}),R.ConflictingWidgets.enable(),i({initiator:R.DismissReason.Closed,studyType:l})},configureExitOnOverlayClick:()=>{},customMetadata:{},destroy:async n=>{const{eventEmitFn:r,fadeout:o,remove:i,studyType:s,surveyId:l}=t();r("survey.complete",l),await o(n),R.ConflictingWidgets.enable(),i({initiator:R.DismissReason.Complete,studyType:s})},endCard:{headline:""},envId:"",eventEmitFn:R.eventEmitter.emit.bind(R.eventEmitter),fadeout:async n=>{const{eventEmitFn:r,headers:o,viewDocument:i}=t();return R.shouldDirectEmbed(o)?Promise.resolve():(r(R.SprigEvent.SurveyFadingOut),new Promise(s=>{const l=i.getElementById(n);l?(l.addEventListener("transitionend",()=>{s()}),l.classList.remove("ul-app--visible")):s()}))},forceBrandedLogo:!1,frame:document.createElement("iframe"),handleClickEmbedButton:n=>{const{cards:r,eventEmitFn:o,index:i}=t();o(n,{qid:r[i].name,props:r[i].props}),e(()=>({hasViewedEmbed:!0}))},handleUploadUpdate:({mediaRecordingUid:n,isComplete:r,progressPct:o,isSubmitted:i})=>{var h,g,x;const{cards:s,destroy:l,index:c,uploadProgress:p}=t(),m=r||((h=p[n])==null?void 0:h.isComplete),u={...p,[n]:{progressPct:m?100:o||((g=p[n])==null?void 0:g.progressPct),isComplete:m,isSubmitted:i||((x=p[n])==null?void 0:x.isSubmitted)}};if(e({uploadProgress:u}),s[c].type!=="uploading")return;const d=Object.entries(p).every(([y,k])=>!k.isSubmitted||k.isComplete||n==y&&r);if(d&&c>=s.length-1)return l(R.APP_ID);e({index:d?c+1:c,uploadingCardViewed:!0})},hasViewedEmbed:!1,headers:{Authorization:"","Content-Type":"","userleap-platform":"web","x-ul-environment-id":"","x-ul-installation-method":"web-snippet","x-ul-sdk-version":"","x-ul-visitor-id":""},index:0,isPreview:!1,marketingUrl:"https://sprig.com",meta:{ch:0,cw:0,l:"",mode:null,p:"",sh:0,sw:0},mode:void 0,next:n=>{const{allResponses:r,cards:o,eventEmitFn:i,index:s,responseGroupUid:l,submit:c,trackHistory:p,uploadProgress:m,viewedCardCount:u}=t();e({minScrollableHeight:void 0});const d=Array.isArray(n.data)?n.data:[n.data],h=Date.now(),g=[...o],x={response:[],responseGroupUid:l,questionIndex:s};let y=null;const k=r.slice(0);d.forEach((N,f)=>{const b=g[s+f],{type:_,...E}=N,I={...E,answeredAt:h},P=I.value;(w=>w&&!De.has(w.type))(b)&&(b.value=P),x.response.push(I);let S=_==="multiplechoice"?Object.values(P).find(w=>w!==!1):P;_==="multipleselect"&&(S=g[s+f].props.options.reduce((w,L)=>(P[L.id]&&w.push(L.value),w),[])),k[s+f]=S,y=Hn({cards:g,index:s+f,hasEndCard:!!n.endCard,uploadProgress:m,allResponses:k})}),e({allResponses:k}),(y===null||De.has(g[y].type))&&(x.completedAt=h);const v=c(x);if(y===null)return void n.completeSurvey();y&&!De.has(g[y].type)&&v.finally(()=>{p({event:"seen",index:y})});const C=g[y];g[y]&&i&&i("survey.question",{qid:C.name,props:C.props}),e({cards:g,hasViewedEmbed:!1,index:y,viewedCardCount:u+1})},pendingRemoveIframeReason:null,previewKey:null,previewMode:void 0,recorder:()=>{},recorderEventEmitter:R.eventEmitter,resolveTrackedPromise:()=>{const{removeIframeIfReady:n}=t();e(r=>({unresolvedRequestCount:r.unresolvedRequestCount-1})),n()},responseGroupUid:"",remove:({initiator:n,studyType:r})=>{const{eventEmitFn:o,removeIframeIfReady:i,surveyId:s}=t();e({pendingRemoveIframeReason:n,studyType:r}),o(R.SprigEvent.SurveyCloseRequested,{name:R.SprigEvent.SurveyCloseRequested,initiator:n,studyType:r,"survey.id":s}),i()},removeIframeIfReady:()=>{const{eventEmitFn:n,pendingRemoveIframeReason:r,unresolvedRequestCount:o,studyType:i,surveyId:s}=t();r&&o===0&&(n(R.SprigEvent.SurveyWillClose,{name:R.SprigEvent.SurveyWillClose,initiator:r,studyType:i,"survey.id":s}),e({pendingRemoveIframeReason:null,studyType:i}))},seen:async()=>{const{trackHistory:n}=t();return n({event:"seen",isNew:!0})},slugName:null,showStripes:!1,showSurveyBrand:!1,styleNonce:"",submit:async({completedAt:n,questionIndex:r,response:o,responseGroupUid:i})=>{const s=t();if(!i||He(s))return;const l={responseGroupUid:i,meta:s.meta,customMetadata:s.customMetadata,responses:o,completedAt:n,previewKey:s.previewKey},c=await s.trackPromise(R.sprigFetch(`${s.apiURL}/sdk/1/environments/${s.envId}/visitors/${s.userId}/responses/submit`,{body:JSON.stringify(l),headers:s.headers,method:"POST"}));c.ok?o.forEach((p,m)=>{s.eventEmitFn(R.SprigEvent.QuestionAnswered,{...p,questionIndex:r?r+m:void 0,"survey.id":s.surveyId})}):c.reportError&&(console.warn("[Sprig] (ERR-427) Failed to submit response",c.error),await s.trackPromise(qt(s,"submitResponse",c.error)))},surveyId:0,tabTitle:"",trackHistory:async({event:n,index:r,isNew:o=!1})=>{const i=t();if(He(i))return;const{cards:s,index:l}=i;let c=r??l,p=s[c];for(;p;){const m={sid:i.surveyId,qid:p.name,action:n,vid:i.userId,eid:i.envId,isNew:o,responseGroupUid:i.responseGroupUid,previewKey:i.previewKey},u=await i.trackPromise(R.sprigFetch(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`,{method:"POST",headers:i.headers,body:JSON.stringify(m)}));!u.ok&&u.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey event",u.error),await i.trackPromise(qt(i,"trackHistory",u.error)));const d=s[c+1];if(!p.groupId||!(d!=null&&d.groupId)||d.groupId!==p.groupId)break;c++,p=d,o=!1}},trackPromise:async n=>{const{resolveTrackedPromise:r}=t();return e(o=>({unresolvedRequestCount:o.unresolvedRequestCount+1})),n.then(o=>(r(),o)).catch(o=>{throw r(),o})},unresolvedRequestCount:0,update:()=>{const{cards:n,index:r,headers:o,eventEmitFn:i,frame:s,useMobileStyling:l,surveyId:c,viewDocument:p}=t(),m=o["userleap-platform"]==="web",u=R.shouldDirectEmbed(o),d=n[r],h=d.type==="matrix"&&!(d.props.properties.displayMatrixAsAccordion||l);e({minScrollableHeight:void 0}),setTimeout(()=>{var k,v,C;!u&&!l&&((k=s==null?void 0:s.setWidth)==null||k.call(s,R.DEFAULT_WIDTH_PX));const[g,x,y]=R.calculateFrameDimensions(p,m&&!l,u);u?(i(R.SprigEvent.SurveyHeight,{name:R.SprigEvent.SurveyHeight,contentFrameHeight:g,"survey.id":c}),i(R.SprigEvent.SurveyWidth,{name:R.SprigEvent.SurveyWidth,contentFrameWidth:x,"survey.id":c})):((v=s.setHeight)==null||v.call(s,g),e({minScrollableHeight:y}),!l&&h&&((C=s.setWidth)==null||C.call(s,x)))},100)},uploadingCardViewed:!1,uploadProgress:{},useDesktopPrototype:void 0,useMobileStyling:!1,userId:"",viewDocument:window.document,viewedCardCount:0,focusedQuestionId:null,setFocusedQuestionId:n=>e({focusedQuestionId:n})})),He=e=>!e.userId||e.meta&&e.meta.mode==="test"||e.isPreview||e.previewMode,qt=async(e,t,n)=>{const{mode:r,userId:o,envId:i,apiURL:s,headers:l,viewDocument:c}=e,p=c.documentElement,m={mode:r,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:p.clientWidth,clientHeight:p.clientHeight,location:window.location.href,language:window.navigator.language},u={action:t,err:{message:`${n==null?void 0:n.name} - ${n==null?void 0:n.message}`,stack:n==null?void 0:n.stack},meta:m,vid:o,envId:i};(await R.sprigFetch(`${s}/sdk/1/errors`,{method:"POST",headers:Object.assign({"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},l),body:JSON.stringify(u)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",n)},Un=e=>G("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},G("path",{d:"M17 10L12 15L7 10",stroke:"#0B2330",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),Fn=e=>G("svg",{fill:"none",height:10,viewBox:"0 0 10 10",width:10,xmlns:"http://www.w3.org/2000/svg",...e},G("path",{d:"M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005",stroke:"white",strokeLinecap:"round",strokeWidth:2})),jr=({visible:e})=>a("div",{className:"sprig-check-background",style:{opacity:e?1:0},children:a(Fn,{className:"sprig-check"})}),Dt="250ms",Vr=Je(({animate:e,children:t,header:n,isOpen:r,onClick:o,showHeaderCheck:i},s)=>{const l=Q(null),[c,p]=B(0),[m,u]=B("none"),[d,h]=B(!0);return j(()=>{var x;const g=(x=l.current)==null?void 0:x.getBoundingClientRect();p(r&&g?g.height:0)},[r]),j(()=>{!c&&r||!d||h(!1),u(e&&!d?`height ${Dt} ease`:"none")},[e,d,c,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(jr,{visible:i})]}),a(Un,{className:"sprig-caret",style:{transitionDuration:e?Dt:"0",transform:r?"rotate(-180deg)":"none"}})]}),a("div",{className:"sprig-accordion-body",style:{transition:m,height:c},children:a("div",{ref:l,children:t})})]})}),rt=({style:e,stroke:t="black"})=>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:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.35"}),a("path",{d:"M7.0686 1.15845L10.9386 5.20845L7.0686 9.25845",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.35"})]}),O=(...e)=>e.filter(Boolean).join(" "),$=(e,t,n)=>{const r=t?"--mobile":"--desktop";return`${e+r} ${e+(n?`${r}_${n}`:"")} ${e}`},$r=(e,t)=>`${e} ${e}__${t}`,W=e=>a("button",{...e,className:O("ul-card-text__button",e.className),id:"ul-card-text__button"}),An=()=>{const{viewDocument:e}=q(r=>({viewDocument:r.viewDocument})),[t,n]=B(!1);return j(()=>{const r=e.querySelector(".sprig-question-body"),o=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{n(!!(r&&R.isHTMLElement(r)&&r.scrollHeight>r.offsetHeight))})});return r&&o.observe(r),()=>{r&&o.disconnect()}},[e]),t},Ht=({plainText:e,richText:t,id:n,className:r,isHeader:o})=>t?a("div",{className:r,dangerouslySetInnerHTML:{__html:t},id:n}):e?a(o?"h1":"p",{className:r,id:n,children:e}):null,zr=()=>{const{cards:e,close:t,endCard:n,headers:r,index:o}=q(l=>({cards:l.cards,close:l.close,endCard:l.endCard,headers:l.headers,index:l.index,useMobileStyling:l.useMobileStyling})),i=e.length,s=ne(()=>()=>t(R.APP_ID),[t]);return["email","link"].includes(r["userleap-platform"])||n&&o+1===i?null:a("div",{"aria-label":"Close button",className:"close-btn",onClick:s,onKeyPress:l=>{l.key==="Enter"&&s()},role:"button",tabIndex:0,children:a("svg",{fill:"none",height:"16px",viewBox:"0 0 13 13",width:"16px",xmlns:"http://www.w3.org/2000/svg",children:a("path",{d:"M2.54964 1.78369L1.78369 2.54964L5.73405 6.5L1.78369 10.4504L2.54964 11.2163L6.5 7.26595L10.4504 11.2163L11.2163 10.4504L7.26595 6.5L11.2163 2.54964L10.4504 1.78369L6.5 5.73405L2.54964 1.78369Z",fill:"#262136"})})})},J=({message:e,properties:t})=>{const n=Q(null),r=t==null?void 0:t.captionText,o=An();return a("div",{className:O("question-header-container","sprig-header-container",o?"sprig-border-bottom":null),ref:n,children:[a("div",{className:"question-header-button-container",children:[a(Ht,{className:"ul-question",id:"ul-question",isHeader:!0,plainText:e,richText:t==null?void 0:t.questionHtml}),a(zr,{})]}),a(Ht,{className:"ul-caption",id:"ul-caption",plainText:r,richText:t==null?void 0:t.captionHtml})]})},Qr=()=>a("svg",{fill:"none",height:"10",viewBox:"0 0 13 10",width:"13",xmlns:"http://www.w3.org/2000/svg",children:a("path",{d:"M11.5 1.5L4.5 8.5L1 5",stroke:"#FFFFFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),ot=({isSubmitDisabled:e,handleSubmit:t})=>a("div",{className:"ul-card-longform__submit-button-container",children:a(W,{className:"ul-card-longform__submit-button",disabled:e,onClick:t,children:["OK ",a(Qr,{})]})}),Ut=({buttonText:e="View Prototype",handleClick:t})=>a("button",{className:"prototype-button",onClick:t,children:e},"prototype-btn"),oe=({defaultBody:e,embeddedType:t="prototype",properties:n})=>{var u;const{handleClickEmbedButton:r,hasViewedEmbed:o,headers:i,useDesktopPrototype:s}=q(d=>({handleClickEmbedButton:d.handleClickEmbedButton,hasViewedEmbed:d.hasViewedEmbed,headers:d.headers,useDesktopPrototype:d.useDesktopPrototype})),l=(n==null?void 0:n.conceptUrl)||((u=n==null?void 0:n.consentDocument)==null?void 0:u.url),c=window.innerWidth<R.EMBED_MOBILE_MAX_WIDTH,p=i["userleap-platform"],m=(d,h)=>{d.preventDefault(),r(h)};if(!s&&c&&!o&&l&&["email","link"].includes(p)){if(t==="prototype")return a(Ut,{handleClick:d=>{m(d,"question.prototype.click")}});if(t==="pdf")return a(Ut,{buttonText:(n==null?void 0:n.viewDocumentText)||"View Document",handleClick:d=>{m(d,"question.agreement.click")}})}return e()},Bn=({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(Fn,{})}),jn=(e,t)=>{const n=Q(0);return()=>{if(e.current){const r=e.current;r.style.height="1px";const o=r.scrollHeight+(r.offsetHeight-r.clientHeight),i=parseInt(window.getComputedStyle(r).getPropertyValue("max-height")),s=o<=i?o:i;n.current!==s&&t(),n.current=s,r.style.height=`${s}px`}}},Ne=({ariaLabel:e,border:t,choiceStyle:n={},label:r,isSelected:o,value:i,text:s,id:l,isRadio:c,useMobileStyling:p,error:m,allowTextEntry:u,noneOfTheAbove:d,promptText:h,onUserInputChanged:g})=>{const{styleNonce:x,viewDocument:y}=q(w=>({styleNonce:w.styleNonce,viewDocument:w.viewDocument})),[k,v]=B(!1);Zr(y,t,x);const C=({isSelected:w,userText:L})=>{g&&g({id:l,selected:w,value:i,userText:L,noneOfTheAbove:d})},N=w=>{w.stopPropagation(),C({isSelected:c||!o,userText:s}),v(!1)},f=()=>{k||v(!0)},b=()=>{k&&v(!1)},_={onClick:w=>N(w),onKeyPress:w=>(L=>{L.key!=="Enter"&&L.key!==" "||N(L)})(w)};"ontouchstart"in y.documentElement?(_.onTouchStart=b,_.onTouchCancel=b,_.onTouchEnd=b):(_.onMouseDown=f,_.onMouseLeave=b);const E=c?`radio-${l}`:`checkbox-${l}`,I=o||k?[Se]:[],P=[...m?[Vn]:[],...I],S=r?{"aria-labelledby":`label-${l}`}:{"aria-label":e};return a("div",{className:O($("choice",p),...P),id:`choice-div-${l}`,style:{...n,...m?{borderColor:R.ERROR_BORDER_COLOR}:{}},..._,children:[a("div",{className:O("choice-label-container"),children:[c?a("div",{...S,className:O("select-radio",...I),id:E,role:"radio",tabIndex:0}):a(Bn,{divId:E,id:l,isSelected:o,themeColor:t}),r&&a("label",{className:O($("select-label",p)),htmlFor:E,id:`label-${l}`,children:r})]}),u&&o&&a("div",{className:O("choice-text-entry-container",...I),children:a(Wr,{onTextChange:w=>C({isSelected:o,userText:w}),promptText:h||"Please specify",textValue:s,useMobileStyling:p})})]})},Wr=({promptText:e,textValue:t,onTextChange:n,useMobileStyling:r})=>{const o=Q(null),{update:i}=q(l=>({update:l.update})),s=jn(o,()=>i());return j(()=>(s(),o.current&&o.current.focus(),()=>{i()}),[]),a("textarea",{"aria-label":e,"aria-multiline":"true","aria-placeholder":e,className:O($("choice-text-input",r)),"data-gramm":"false",maxLength:5e3,name:"text",onChange:l=>{s(),l.stopPropagation(),n(l.currentTarget.value)},onClick:l=>{l.stopPropagation()},onKeyPress:l=>{l.stopPropagation()},placeholder:e,ref:o,role:"textbox",rows:1,value:t})},Ft="ul-select-style-element",Se="ul-select-active-dynamic-style",Vn="ul-select-error-dynamic-style",Zr=(e,t,n)=>{let r=e.getElementById(Ft),o=!1;r||(r=e.createElement("style"),o=!0),r.tagName.toLowerCase()==="style"&&(r.id=Ft,n&&(r.nonce=n),r.textContent=Gr(t),o&&e.head.appendChild(r))},Gr=e=>`
2
+ .${Se} {
3
+ border-color: ${e};
4
+ }
5
+ .${Se} .select-radio, .${Se}.select-radio {
6
+ border: 6px solid ${e};
7
+ box-shadow: none;
8
+ }
9
+ .${Vn} {
10
+ border-color: ${R.ERROR_BORDER_COLOR};
11
+ }
12
+ `,ie=({children:e})=>a("div",{className:"sprig-question-body",children:e}),ce=({children:e})=>{const t=An();return a("div",{className:O("sprig-question-footer-container",t?"sprig-border-top":null),children:e})},$n=({logoOnly:e=!1,style:t={}})=>a("svg",{alt:(e?"Powered by ":"")+"Sprig",width:e?"35":"112",height:"15",viewBox:e?"79 0 31 15":"0 0 112 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",...t},children:[!e&&a("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"}),a("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"}),a("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"}),a("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"}),a("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"}),a("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"})]}),zn=({forceBrandedLogo:e,marketingUrlLink:t})=>a("div",{className:e?"yellow-footer-logo":"",style:{marginTop:"4px",marginBottom:"4px"},children:a("a",{href:t,rel:"noreferrer",target:"_blank",children:a("div",{style:{display:"flex"},children:[a($n,{logoOnly:!1}),e&&a(rt,{style:{display:"block",margin:"auto 0 auto 4px",transform:"rotateY(0deg) rotate(-45deg)"}})]})})}),Qn=({marketingUrlLink:e})=>a("a",{dir:"ltr",href:e,rel:"noreferrer",target:"_blank",children:a("div",{className:"thank-you-card-link",children:[a("div",{className:"sprig-box-logo",children:a($n,{logoOnly:!0,style:{margin:"auto"}})}),a("div",{children:a("p",{children:["Capture insights about your own product",a(rt,{style:{display:"inline-flex",marginInlineStart:"4px",verticalAlign:"middle"}})]})})]})}),he=e=>(e==null?void 0:e.buttonText)||"Next",Wn=e=>(e==null?void 0:e.skipButtonText)||"Skip",Zn=({marketingUrl:e,slugName:t,surveyId:n,forceBrandedLogo:r})=>`${e}?utm_source=survey_branding&utm_medium=website&utm_campaign=${t}&utm_content=${n}${r?"&utm_term=poweredby_pill":""}`,Kr=({className:e,message:t,next:n,properties:r,questionId:o,type:i})=>{const{useMobileStyling:s,border:l,isLongFormSurvey:c,focusedQuestionId:p}=q(w=>({useMobileStyling:w.useMobileStyling,border:w.border,isLongFormSurvey:R.isLongFormSurvey(w.studyType),focusedQuestionId:w.focusedQuestionId})),[m,u]=B(!1),[d,h]=B(""),[g,x]=B(!1),y=c&&p===o,k=r==null?void 0:r.collectName,v=(r==null?void 0:r.nameLabelText)||"Full Name",C=(r==null?void 0:r.consentText)||"I agree to the stated conditions",N=(r==null?void 0:r.submitButtonText)||"Submit",f=!!d.trim(),b=m&&(!k||f),_=(w,L=!1)=>{w.preventDefault(),w.stopPropagation();let H=null;if(!L){if(!b)return void x(!0);H={submitted:!0},k&&(H.name=d)}n({value:H,questionId:o,type:i},b)},E=w=>{w.preventDefault(),w.stopPropagation(),h(w.currentTarget.value)},I=w=>{w.currentTarget.style.borderColor=g&&!f?R.ERROR_BORDER_COLOR:l},P=w=>{w.currentTarget.style.borderColor=g&&!f?R.ERROR_BORDER_COLOR:R.DEFAULT_BORDER_COLOR},S=()=>a(ce,{children:[a("div",{className:"sprig-stretch",children:[a(Ne,{allowTextEntry:!1,border:l,error:g&&!m,id:"consent",isRadio:!1,isSelected:m,label:C,onUserInputChanged:({selected:w})=>{w!==m&&u(!m)},useMobileStyling:s}),k&&a("input",{"aria-label":v,"aria-placeholder":v,className:O($("ul-consent-legal__name-input",s)),"data-gramm":"false",maxLength:250,name:"name",onBlur:P,onFocus:I,onInput:E,placeholder:v,style:g&&!f?{borderColor:R.ERROR_BORDER_COLOR}:{},tabIndex:0,value:d})]}),a("div",{className:"ul-card__button-wrapper ul-card-vertical__button-wrapper",children:[a(W,{className:b?"":"sprig-button-disabled",onClick:_,children:N}),r.required===!1&&!c&&a("button",{className:"ul-card-skip__button",onClick:w=>_(w,!0),children:Wn(r)})]})]});return a("div",{className:O(e,c&&!y&&"ul-card--unfocused","ul-card__consent-legal","fade-in-transition"),children:[a(J,{message:t,properties:{questionHtml:r.questionHtml}}),a(V,{children:[r!=null&&r.richTextBody?a(ie,{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"})}):null,a(oe,{properties:r,defaultBody:S,embeddedType:"pdf"})]})]},o)},Yr=({icon:e,scaleLabelType:t,value:n,selectedValue:r})=>{if(t==="smiley"&&n===r){let o=0;return e.replace(/black/g,()=>++o==1?"black":"white")}return e},Jr=({activeValue:e,border:t,icon:n,isPressed:r,onSubmit:o,range:i,scaleLabelType:s,selectedValue:l,setSelectedValue:c,setActiveValue:p,setIsPressed:m,useMobileStyling:u,value:d,viewDocument:h})=>{const{isLongFormSurvey:g}=q(_=>({isLongFormSurvey:R.isLongFormSurvey(_.studyType)})),x=`option-${d}`,y=s==="number",k=s==="star",v=s==="smiley",C=y&&d===e||d===l,[N,f]=(()=>{const _=k&&l!==null&&d<=l;return k&&d<=e||v&&d===e||_||d===e||d===l?[t,r||_||d===l?1:.3]:["",1]})(),b=ne(()=>{const _={borderColor:C?N:"",fillOpacity:C?"":f,zIndex:C?3:"auto",color:l===d?"#fff":""};return y?{..._,backgroundColor:l===d?N:""}:{..._,color:k||v||l===d?N:""}},[C,N,f,l,d,y,k,v]);return a("button",{"aria-label":y?void 0:String(d),className:(()=>{switch(s){case"star":return O($("likert-star",u),$(`likert-star-${d}`,u));case"smiley":return O($("likert-smiley",u),$(`likert-smiley-${d}`,u));default:return d===i?O($("likert-number",u),$(`likert-number-${d}`,u),$("likert-last-option",u)):O($("likert-number",u),$(`likert-number-${d}`,u))}})(),dangerouslySetInnerHTML:{__html:Yr({icon:n,scaleLabelType:s,value:d,selectedValue:l})},id:x,onClick:_=>{g&&(_.preventDefault(),_.stopPropagation(),c(d)),o()},onKeyDown:_=>{var P,S;const E=h.querySelectorAll(`.likert-${s??"number"}`),I=d-1;_.key==="ArrowRight"?(P=E[I+1])==null||P.focus():_.key==="ArrowLeft"?(S=E[I-1])==null||S.focus():_.key!=="Enter"&&_.key!==" "||(g&&(_.preventDefault(),_.stopPropagation(),c(d)),o())},onPointerDown:()=>m(!0),onPointerEnter:()=>p(d),onPointerLeave:()=>{p(-1),m(!1)},style:b,tabIndex:0})},Xr=({className:e,labels:t,message:n,next:r,properties:o,questionId:i,type:s})=>{const{border:l,useMobileStyling:c,viewDocument:p,isLongFormSurvey:m,focusedQuestionId:u}=q(L=>({border:L.border,useMobileStyling:L.useMobileStyling,viewDocument:L.viewDocument,isLongFormSurvey:R.isLongFormSurvey(L.studyType),focusedQuestionId:L.focusedQuestionId})),[d,h]=B(-1),[g,x]=B(!1),[y,k]=B(null),v=m&&u===i,C=t&&t.left,N=t&&t.right;let f;const{range:b,scaleLabelType:_,ratingIcons:E}=o;b&&(f=Number(b));const I=f||5,P=L=>{var H,T;switch(_){case"star":return(H=E[0])==null?void 0:H.svg;case"smiley":return(T=E[L])==null?void 0:T.svg;default:return String(L+1)}},S=[...Array(I)].map((L,H)=>{const T=H+1;return a(Jr,{activeValue:d,border:l,icon:P(H),isPressed:g,onSubmit:()=>r({value:T,questionId:i,type:s},!0),range:I,scaleLabelType:_,selectedValue:y,setActiveValue:h,setIsPressed:x,setSelectedValue:k,useMobileStyling:c,value:T,viewDocument:p},H)}),w=L=>{L.preventDefault(),L.stopPropagation(),r({value:null,questionId:i,type:s},!0)};return a("form",{className:O(e,"ul-card--likert","fade-in-transition",m&&!v&&"ul-card--unfocused"),children:[a(J,{message:n,properties:o}),a(oe,{properties:o,defaultBody:()=>a(V,{children:[a(ie,{children:[a("div",{"aria-label":`Rating (1 - ${I})`,className:"ul-card--likert__numbers",role:"radiogroup",children:S}),a("div",{className:"ul-card--likert__labels",children:[a("span",{children:C}),a("span",{children:N})]})]}),!o.required&&!m&&a(ce,{children:a("div",{className:"ul-vertical-centered-container",children:a(W,{onClick:w,children:he(o)})})})]})})]},i)},Gn=e=>e&&(e.scrollHeight>e.offsetHeight?e:Gn(e.parentElement)),eo=e=>{if(!e||!(n=>n instanceof HTMLElement)(e))return 0;const t=getComputedStyle(e);return parseFloat(t.marginTop)+parseFloat(t.marginBottom)+(parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))},to=({columns:e,onSelect:t,options:n,selectedOptions:r})=>{const o=Q([]),{border:i,useMobileStyling:s}=q(d=>({border:d.border,useMobileStyling:d.useMobileStyling})),l=n.findIndex(d=>r[d.id]===null),[c,p]=B(l),m=ae((d,h)=>{t(d,h);const g=c+1,x=n[g];if(x&&r[x.id]===null){p(g);const y=o.current[c];if(y!=null&&y.firstElementChild){const k=Gn(y),v=y.firstElementChild,C=eo(y)+v.clientHeight;k==null||k.scrollTo(0,y.offsetTop+C)}}},[t,n,r,c]),u=ae((d,h)=>{const g=c===d;return a(Vr,{animate:!0,header:h.label,isOpen:g,onClick:()=>p(g&&!window.UserLeap.isMobileSDK?-1:d),ref:x=>{x&&(o.current[d]=x)},showHeaderCheck:r[h.id]!==null,children:a("div",{style:{paddingTop:"12px"},children:e.map(x=>a(Ne,{allowTextEntry:!1,ariaLabel:`${h.label}-${x.label}`,border:i,error:!1,id:`${h.id}-${x.value}`,isRadio:!0,isSelected:r[h.id]===x.value,label:x.label,onUserInputChanged:()=>m(h.id,x.value),useMobileStyling:s},x.label))})},h.id)},[i,e,c,m,r,s]);return a("div",{children:n.map((d,h)=>u(h,d))})},no=({columns:e,onSelect:t,options:n,selectedOptions:r})=>{const{border:o,useMobileStyling:i,isLongFormSurvey:s}=q(d=>({border:d.border,useMobileStyling:d.useMobileStyling,isLongFormSurvey:R.isLongFormSurvey(d.studyType)})),l=n.length,c=e.length,p=Q(null),[m,u]=B(!1);return j(()=>{const d=p.current,h=new ResizeObserver(g=>{window.requestAnimationFrame(()=>{d&&u(Math.round(g[0].contentRect.width)<d.scrollWidth)})});return d&&h.observe(d),()=>{d&&h.unobserve(d)}},[]),a("div",{className:"ul-card--matrix_question_container",children:[a("div",{className:O("ul-card--matrix_container",m&&"ul-matrix-scroll-gradient"),onScroll:()=>{(()=>{const d=p.current;d&&u(d.clientWidth+Math.abs(d.scrollLeft)<d.scrollWidth)})()},ref:p,children:a("div",{className:O(s&&"ul-card--matrix_grid_longform","ul-card--matrix_grid"),style:`--numColumns: ${c}; --numRows: ${l+1};`,children:[a("div",{})," ",e.map(d=>a("div",{className:"ul-matrix-column-label",children:d.label},d.label)),n.map(d=>a(V,{children:[a("div",{"aria-label":d.label,className:"ul-matrix-row-label",children:d.label},d.label),a("div",{className:"ul-matrix-row-options",role:"radiogroup",children:e.map((h,g)=>a("div",{className:O("ul-matrix-option-wrapper",g===c-1&&"ul-matrix-last-option"),children:a(Ne,{allowTextEntry:!1,ariaLabel:`${d.label}-${h.label}`,border:o,choiceStyle:{background:"transparent",border:"none",marginBottom:"0",padding:"0"},error:!1,id:`${d.id}-${h.value}`,isRadio:!0,isSelected:r[d.id]===h.value,onUserInputChanged:()=>t(d.id,h.value),useMobileStyling:i})},h.value))})]}))]})}),m&&a("button",{className:"ul-matrix-scroll-arrow",onClick:d=>{d.preventDefault();const h=p.current;if(h){const g=getComputedStyle(h).direction==="rtl";h.scrollLeft=g?h.clientWidth-h.scrollWidth:h.scrollWidth}},children:a("svg",{fill:"currentColor",height:"32",viewBox:"0 0 256 256",width:"32",xmlns:"http://www.w3.org/2000/svg",children:a("path",{d:"M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"})})})]})},ro=({className:e,message:t,next:n,options:r,properties:o,questionId:i,type:s,showIndividualSubmit:l=!1,onSubmitButtonClick:c})=>{const{useMobileStyling:p,isLongFormSurvey:m,focusedQuestionId:u,setFocusedQuestionId:d}=q(_=>({useMobileStyling:_.useMobileStyling,isLongFormSurvey:R.isLongFormSurvey(_.studyType),focusedQuestionId:_.focusedQuestionId,setFocusedQuestionId:_.setFocusedQuestionId})),h=o.matrixColumn,g=o.required,x=m&&u===i,y=_=>{_.preventDefault(),_.stopPropagation(),n({value:v,questionId:i,type:s},!0),c&&c()},k=r.reduce((_,E)=>(_[E.id]=null,_),{}),[v,C]=B(k),N=_=>g&&Object.values(_).every(E=>E==null),f=(_,E)=>{m&&n({value:{...v,[_]:E},questionId:i,type:s},!N({...v,[_]:E})),C(I=>({...I,[_]:E}))},b=o.displayMatrixAsAccordion||p;return a("form",{className:O(e,!m&&"ul-card__matrix","fade-in-transition",m&&!x&&"ul-card--unfocused"),id:"text-form",onClick:()=>{x&&d(i)},onSubmit:y,children:[a(J,{message:t,properties:o}),a(oe,{properties:o,defaultBody:()=>a(V,{children:[a(ie,{children:[a(b?to:no,{columns:h,onSelect:f,options:r,selectedOptions:v}),l&&a(ot,{handleSubmit:y,isSubmitDisabled:N(v)})]}),!m&&a(ce,{children:a("div",{className:"ul-card__button-wrapper",children:a(W,{disabled:N(v),children:he(o)})})})]})})]},i)},oo=({options:e,selectItem:t,selectedOptions:n,showCheckbox:r})=>{const{themeColor:o}=q(i=>({doc:i.viewDocument,themeColor:i.border}));return a("div",{className:"select-list",children:e.map(i=>{return a("div",{className:"select-option",onClick:l=>{t(i),l.stopPropagation()},role:"option",children:[r&&a(Bn,{divId:(s=i.id,`checkbox-div-${s}`),id:i.id,isSelected:n.includes(i),themeColor:o}),i.label]},i.id);var s})})},io=({isMultiSelect:e=!1,multiselectText:t="choices selected",onChange:n,options:r,placeholderText:o,value:i})=>{const[s,l]=B(!1),{viewDocument:c,update:p}=q(d=>({viewDocument:d.viewDocument,update:d.update})),m=()=>{l(!s),p()};j(()=>{var h;const d=()=>{l(!1),p()};c.addEventListener("click",d);try{(h=window.parent)==null||h.addEventListener("click",d)}catch{window.addEventListener("click",d)}return()=>{var g;c.removeEventListener("click",d);try{(g=window.parent)==null||g.removeEventListener("click",d)}catch{window.removeEventListener("click",d)}}},[c,p]);const u=i.length===0?["select-button-placeholder"]:[];return a(V,{children:[a("button",{"aria-label":"choice dropdown button",className:O("select-button",...u),onClick:d=>{d.stopPropagation(),m()},type:"button",children:[a("span",{children:i.length===0?o:i.length===1?i[0].label:`${i.length} ${t}`}),a(Un,{})]}),s&&a(oo,{options:r,selectedOptions:i,selectItem:d=>{var x;const h=i.some(y=>y.id===d.id),g=i.some(y=>{var k;return(k=y.optionProperties)==null?void 0:k.noneOfTheAbove});(x=d.optionProperties)!=null&&x.noneOfTheAbove&&!h?n([d]):e?n(h?i.filter(y=>y.id!==d.id):g?[d]:[...i,d]):h||n([d]),e||m()},showCheckbox:e})]})},Kn=({className:e,message:t,onSubmit:n,options:r=[],properties:o,questionId:i,type:s,showIndividualSubmit:l=!1,onSubmitButtonClick:c})=>{const{border:p,useMobileStyling:m,isLongFormSurvey:u,focusedQuestionId:d,setFocusedQuestionId:h}=q(S=>({border:S.border,useMobileStyling:S.useMobileStyling,isLongFormSurvey:R.isLongFormSurvey(S.studyType),focusedQuestionId:S.focusedQuestionId,setFocusedQuestionId:S.setFocusedQuestionId})),g=u&&d===i,x=r.reduce((S,w)=>(S[w.id]={isSelected:!1},S),{}),[y,k]=B(x),v=s==="multiplechoice",C=o.required,N=r.find(S=>{var w;return(w=S.optionProperties)==null?void 0:w.noneOfTheAbove}),f=S=>(w=>Object.entries(w).some(([L,H])=>{var D;const T=r.find(U=>`${U.id}`===L),A=H.userText===void 0||H.userText.trim()==="";return((D=T==null?void 0:T.optionProperties)==null?void 0:D.allowsTextEntry)&&A&&H.isSelected}))(S)||C&&!(w=>Object.values(w).some(L=>L.isSelected))(S),b=Object.entries(y).some(([S,w])=>{var L,H;return w.isSelected&&((H=(L=r.find(T=>`${T.id}`===S))==null?void 0:L.optionProperties)==null?void 0:H.allowsTextEntry)}),_=l&&(!v||b),E=r.map(({id:S,label:w,value:L,optionProperties:H})=>{var U,Z;const T=`${S}`,{allowsTextEntry:A,noneOfTheAbove:D}={allowsTextEntry:!1,noneOfTheAbove:!1,...H};return a(Ne,{allowTextEntry:A,border:p,error:!1,id:T,isRadio:v,isSelected:!!((U=y[T])!=null&&U.isSelected),label:w,noneOfTheAbove:D,onUserInputChanged:z=>{P(z.id,z.selected,z.userText,z.noneOfTheAbove),z.selected&&u&&!v&&!g&&h(i)},promptText:"Please specify",text:(Z=y[S])==null?void 0:Z.userText,useMobileStyling:m,value:L},T)}),I=S=>{S.preventDefault(),S.stopPropagation(),n(y,!0),c&&c()},P=(S,w,L,H)=>{const T=Object.assign({},y);if((v||H)&&w)for(const U of Object.values(T))U.isSelected=!1,delete U.userText;else N&&!H&&y[N.id].isSelected&&(T[N.id].isSelected=!1);T[S]={isSelected:w,userText:L};const A=v&&Object.entries(T).some(([U,Z])=>{var z,re;return Z.isSelected&&((re=(z=r.find(ir=>`${ir.id}`===U))==null?void 0:z.optionProperties)==null?void 0:re.allowsTextEntry)}),D=!f(T);u&&(n(T,D),v&&!A&&D&&c&&c()),k(T)};return a("form",{className:O(e,"ul-card--multiple","fade-in-transition",u&&!g&&"ul-card--unfocused"),id:"text-form",onClick:s==="multipleselect"?()=>{u&&d!==i&&s==="multipleselect"&&h(i)}:void 0,onSubmit:I,children:[a(J,{message:t,properties:o}),a(oe,{properties:o,defaultBody:()=>a(V,{children:[a(ie,{children:[o.isDropdown?a(io,{isMultiSelect:!v,multiselectText:o.dropdownMultiselectedText??"choices selected",onChange:S=>{const w={...y};for(const L of r)S.includes(L)?w[L.id].isSelected=!0:w[L.id].isSelected=!1;u&&n(w,!f(w)),k(w)},options:r,placeholderText:o.dropdownPlaceholderText??(v?"Select choice":"Select choice(s)"),value:r.filter(S=>y[S.id].isSelected)}):a("div",{className:O($("ul-card__choices",m)),role:v?"radiogroup":"group",children:E}),_&&a(ot,{handleSubmit:I,isSubmitDisabled:f(y)})]}),!u&&a(ce,{children:a("div",{className:"ul-card__button-wrapper",children:a(W,{disabled:f(y),onClick:I,children:he(o)})})})]})})]},i)},so=e=>{const{questionId:t,type:n,next:r,options:o}=e,{setFocusedQuestionId:i}=q(s=>({setFocusedQuestionId:s.setFocusedQuestionId}));return a(Kn,{...e,onSubmit:(s,l)=>{var h;const c=Object.entries(s).find(([,g])=>g.isSelected)||[void 0,void 0],[p,m]=c,u=o.find(g=>`${g.id}`===p);!((h=u==null?void 0:u.optionProperties)!=null&&h.allowsTextEntry)||m!=null&&m.userText&&m.userText.trim()!==""||i(t);const d=m!=null&&m.userText?{[p]:{userText:m.userText}}:null;r({value:u&&p?{[p]:u.value}:{},secondaryValue:d,questionId:t,type:n},l)}})},ao=e=>{const{questionId:t,type:n,next:r}=e;return a(Kn,{...e,onSubmit:(o,i)=>{const s=Object.entries(o).reduce((c,[p,m])=>(c[p]=m.isSelected,c),{}),l=Object.entries(o).reduce((c,[p,m])=>{if(!m.userText)return c;const u=c||{};return u[p]={userText:m.userText},u},null);r({value:s,secondaryValue:l,questionId:t,type:n},i)}})},lo=({className:e,labels:t,message:n,properties:r,next:o,questionId:i,type:s})=>{const[l,c]=B(null),{border:p,useMobileStyling:m,viewDocument:u,isLongFormSurvey:d,focusedQuestionId:h}=q(C=>({border:C.border,useMobileStyling:C.useMobileStyling,viewDocument:C.viewDocument,isLongFormSurvey:R.isLongFormSurvey(C.studyType),focusedQuestionId:C.focusedQuestionId})),g=d&&h===i,x=t&&t.left,y=t&&t.right,k=[...Array(11)].map((C,N)=>a("button",{className:O($("nps-number",m),$(`nps-number-${N}`,m)),id:`option-${N}`,onClick:f=>{d&&(f.preventDefault(),f.stopPropagation(),c(N)),o({value:N,questionId:i,type:s},!0)},onKeyDown:f=>{var _,E;const b=u.querySelectorAll("button.nps-number");f.key==="ArrowRight"?(_=b[N+1])==null||_.focus():f.key==="ArrowLeft"?(E=b[N-1])==null||E.focus():f.key!=="Enter"&&f.key!==" "||(d&&(f.preventDefault(),f.stopPropagation(),c(N)),o({value:N,questionId:i,type:s},!0))},onPointerDown:f=>{f.currentTarget.style.zIndex="2",f.currentTarget.style.borderColor=p},onPointerLeave:f=>{f.currentTarget.style.zIndex="auto",f.currentTarget.style.borderColor=R.DEFAULT_BORDER_COLOR},style:l===N?{backgroundColor:p,color:"#fff"}:void 0,tabIndex:0,children:N},N)),v=C=>{C.preventDefault(),C.stopPropagation(),o({value:null,questionId:i,type:s},!0)};return a("form",{className:O(e,"ul-card--nps","fade-in-transition",d&&!g&&"ul-card--unfocused"),children:[a(J,{message:n,properties:r}),a(oe,{properties:r,defaultBody:()=>a(V,{children:[a(ie,{children:[a("div",{className:"ul-card--nps__numbers",children:k}),a("div",{className:"ul-card--nps__labels",children:[a("span",{children:x}),a("span",{children:y})]})]}),!r.required&&!d&&a(ce,{children:a("div",{className:"ul-vertical-centered-container",children:a(W,{onClick:v,children:he(r)})})})]})})]},i)},co=({className:e,message:t,next:n,properties:r,questionId:o,type:i,showIndividualSubmit:s=!1,onSubmitButtonClick:l})=>{const{border:c,useMobileStyling:p,update:m,isLongFormSurvey:u,focusedQuestionId:d,setFocusedQuestionId:h}=q(P=>({border:P.border,useMobileStyling:P.useMobileStyling,update:P.update,isLongFormSurvey:R.isLongFormSurvey(P.studyType),focusedQuestionId:P.focusedQuestionId,setFocusedQuestionId:P.setFocusedQuestionId})),[g,x]=B(""),y=Q(null),k=u&&d===o;j(()=>{var P,S;u&&(k?(P=y.current)==null||P.focus():(S=y.current)==null||S.blur())},[u,k]);const v=g.trim(),C=r.required===!0&&!v,N=jn(y,()=>m()),f=P=>{const{value:S}=P.currentTarget;if(N(),P.preventDefault(),P.stopPropagation(),x(S),u){const w=S.trim().length>0;n({value:S,questionId:o,type:i},w)}},b=P=>{P.preventDefault(),P.stopPropagation(),n({value:g,questionId:o,type:i},v.length>0),l&&l()},_=r&&r.openTextPlaceholder?r.openTextPlaceholder:"",E=P=>{P.currentTarget.style.borderColor=c,h(o)},I=P=>{P.currentTarget.style.borderColor=R.DEFAULT_BORDER_COLOR};return a("form",{className:O(e,"ul-card-text","fade-in-transition",u&&!k&&"ul-card--unfocused"),id:"text-form",onClick:()=>{u&&d!==o&&h(o)},children:[a(J,{message:t,properties:r}),a(oe,{defaultBody:()=>a("div",{className:"ul-card-text",children:[a(ie,{children:[a("div",{className:"ul-card-text__container",children:a("textarea",{"aria-describedby":"ul-caption","aria-labelledby":"ul-question","aria-multiline":"true","aria-placeholder":_,className:O($("ul-card-text__input",p)),"data-gramm":"false",maxLength:5e3,name:"text",onBlur:I,onChange:f,onFocus:E,placeholder:_,ref:y,role:"textbox",tabIndex:0})}),s&&a(ot,{handleSubmit:b,isSubmitDisabled:C})]}),!u&&a(ce,{children:[a(W,{disabled:C,onClick:b,children:he(r)}),r.footerHtml&&a("div",{className:"footer",dangerouslySetInnerHTML:{__html:r.footerHtml}})]})]}),properties:r})]},o)},uo=new Set(["open","matrix","multipleselect","multiplechoice"]),At=({cardInstance:e,moveToNextQuestion:t,showIndividualSubmit:n,submitQuestion:r,updateCardValues:o})=>{const{isLongFormSurvey:i}=q(d=>({isLongFormSurvey:R.isLongFormSurvey(d.studyType)}));if(!e)return null;const{name:s,type:l,props:c}=e,p=n&&uo.has(l),m={className:"ul-card",next:(d,h)=>r(d,h),questionId:s,type:l,showIndividualSubmit:n,...p?{next:(d,h)=>{o(d.questionId,d,h??!0)},onSubmitButtonClick:()=>t(s)}:{}},u=(()=>{switch(l){case"consentlegal":return a(Kr,{...m,...c});case"likert":return a(Xr,{...m,...c});case"matrix":return a(ro,{...m,...c});case"multiplechoice":return a(so,{...m,...c});case"multipleselect":return a(ao,{...m,...c});case"nps":return a(lo,{...m,...c});case"open":return a(co,{...m,...c});case"recordedtask":return a(ko,{...m,...c});case"texturlprompt":return a(So,{...m,...c});case"thanks":return a(Co,{...m,...c});case"uploading":return a(Io,{...m,...c});default:return null}})();return u?i?a("div",{className:"ul-card-scroll-wrapper",children:u},s):u:null},po=({isSubmitDisabled:e=!1,onSubmit:t,buttonText:n})=>{var h;const{cards:r,forceBrandedLogo:o,index:i,marketingUrl:s,showSurveyBrand:l,slugName:c,surveyId:p,useMobileStyling:m}=q(g=>({cards:g.cards,forceBrandedLogo:g.forceBrandedLogo,index:g.index,marketingUrl:g.marketingUrl,showSurveyBrand:g.showSurveyBrand,slugName:g.slugName,surveyId:g.surveyId,useMobileStyling:g.useMobileStyling})),u=((h=r[i])==null?void 0:h.type)==="thanks",d=Zn({marketingUrl:s,slugName:c,surveyId:p,forceBrandedLogo:o});return a("footer",{className:O("long-form-question-footer-container",m&&"long-form-question-footer-container--mobile",u&&"long-form-question-footer-container-center"),children:[u&&o?a(Qn,{marketingUrlLink:d}):a("div",{className:"long-form-question-footer-container-logo",children:l?a(zn,{forceBrandedLogo:o,marketingUrlLink:d}):null}),!u&&a("div",{className:O("ul-card__button-wrapper","ul-card-vertical__button-wrapper","long-form-question-footer-container-actions"),children:a(W,{className:O("long-form-button",e&&"sprig-button-disabled"),disabled:e,onClick:t,children:a("span",{className:"long-form-button-text-container",children:n??a(rt,{stroke:"white"})})})})]})},mo=({cards:e,next:t})=>{var N;const[n,r]=B({}),[o,i]=B({}),{isLongFormSurvey:s,focusedQuestionId:l,setFocusedQuestionId:c}=q(f=>({isLongFormSurvey:R.isLongFormSurvey(f.studyType),focusedQuestionId:f.focusedQuestionId,setFocusedQuestionId:f.setFocusedQuestionId})),p=Q(null),m=Q(!1),u=Q(null),d=ae(f=>{var I,P;m.current=!0;const b=e.findIndex(S=>S.name===f);if(!s||f===null||b===-1)return void(m.current=!1);const _=(I=p.current)==null?void 0:I.querySelectorAll(".ul-card-scroll-wrapper")[b],E=(P=p.current)==null?void 0:P.closest(".ul-card__container");if(_&&E){if(_&&E){const S=_.getBoundingClientRect(),w=E.getBoundingClientRect(),L=S.top-w.top+E.scrollTop,H=L+S.height/2,T=window.innerHeight-157;let A;S.height>=T?A=L:A=H-E.clientHeight/2;const D=E.clientHeight,U=E.scrollHeight-D,Z=Math.max(0,Math.min(A,U));E.scrollTo({top:Z,behavior:"smooth"}),setTimeout(()=>{m.current=!1},500)}}else m.current=!1},[s,e]);j(()=>{l!==null&&e.findIndex(f=>f.name===l)!==-1||c(e[0].name)},[e,l,c]),j(()=>{s&&l!==null&&(u.current!==l?d(l):u.current=null)},[l,s,d]);const h=ae(()=>{var w,L;if(m.current)return;const f=(w=p.current)==null?void 0:w.closest(".ul-card__container");if(!f)return;const b=(L=p.current)==null?void 0:L.querySelectorAll(".ul-card-scroll-wrapper");if(!b||b.length===0)return;const _=f.getBoundingClientRect(),E=_.top+_.height/2;let I=0,P=1/0;b.forEach((H,T)=>{const A=H.getBoundingClientRect(),D=A.top+A.height/2,U=Math.abs(E-D);U<P&&(P=U,I=T)});const S=e[I];u.current=S.name,c(S.name)},[e,c]);j(()=>{var b;if(!s)return;const f=((b=p.current)==null?void 0:b.closest(".ul-card__container"))||null;return f&&f.addEventListener("scroll",h,{passive:!0}),()=>{f&&f.removeEventListener("scroll",h)}},[h,s]);const g=ne(()=>Object.values(o).every(f=>f),[o]),x=(f,b,_)=>{r(E=>({...E,[f]:b})),i(E=>({...E,[f]:_}))};j(()=>{if(!s)return;const f={};e.forEach(b=>{var E,I;const _=b;(I=(E=_.props)==null?void 0:E.properties)!=null&&I.required||(f[_.name]={value:null,questionId:_.name,type:_.type})}),r(f),i({})},[e,s]);const y=f=>{if(!s)return;const b=e.findIndex(_=>_.name===f)+1;if(b<e.length){const _=e[b].name;c(_)}else c(f)},k=(f,b)=>{s?(x(f.questionId,f,b),v(f.type)&&y(f.questionId)):t([f])},v=f=>new Set(["nps","likert","multiplechoice"]).has(f),C=((N=e[0])==null?void 0:N.type)==="thanks";return s?a("div",{className:"ul-card-list-container--longform",ref:p,children:[e.map((f,b)=>a(At,{cardInstance:f,moveToNextQuestion:y,showIndividualSubmit:s&&e.length>1&&b<e.length-1,submitQuestion:k,updateCardValues:x},(f==null?void 0:f.name)||b)),!C&&a(po,{isSubmitDisabled:Object.keys(n).length<e.length||!g,onSubmit:()=>{const f=e.map(b=>n[b.name]);t(f)}})]}):a(V,{children:e.map((f,b)=>a(At,{cardInstance:f,moveToNextQuestion:y,showIndividualSubmit:s&&e.length>1&&b<e.length-1,submitQuestion:k,updateCardValues:x},(f==null?void 0:f.name)||b))})},Ve=1,Yn=2,Jn=3,Te=e=>e.type==="av_permission",Bt=e=>e.type==="screen_permission",Xn=(e,t)=>e===void 0?Ve:e?((n,r)=>!(Te(r)?r.permissionDescriptors:[]).includes("camera")||n.getVideoTracks().length>0)(e,t)?Jn:Ve:Yn,jt={avStream:null,currentPage:null,mediaRecordingUids:null,nextQuestion:()=>{},passthroughData:void 0,recordingMediaTypes:void 0,screenPermissionRequested:!1,type:void 0},Y=qn(e=>({...jt,reset:()=>{e(jt)},updatePage:t=>{e(t)}}));function $e({currentPage:e,pages:t}){const{avStream:n,recordingMediaTypes:r,updatePage:o}=Y.getState(),{recorderEventEmitter:i}=q.getState();i.emit("av.permission",{"permission.descriptors":e.permissionDescriptors,"stream.ready":(s,l)=>{if(n===s)return;let c=e;if(s&&!e.permissionDescriptors.includes("camera")){const p=t.indexOf(e),m=l!=null&&l.active?p+2:p+1;l!=null&&l.active&&r&&i.emit("begin.recording",{"recording.media.types":r,"start.recording.callback":u=>o({mediaRecordingUids:u})}),c=t[m]}o({currentPage:c,avStream:s})}})}function ze({status:e}){const{nextQuestion:t,passthroughData:n,mediaRecordingUids:r,reset:o}=Y.getState(),{recorderEventEmitter:i,handleUploadUpdate:s,index:l}=q.getState(),c={value:{taskStatus:e},type:"recordedtask",questionId:(n==null?void 0:n.questionId)||1};n&&i.emit("finish.task",{"begin.callback":p=>{s({mediaRecordingUid:p,isSubmitted:!0,progressPct:0,isComplete:!1})},"progress.callback":(p,m)=>{s({mediaRecordingUid:p,progressPct:m.detail,isSubmitted:!1,isComplete:!1})},"upload.callback":p=>{p&&s({mediaRecordingUid:p,isComplete:!0,isSubmitted:!0,progressPct:100})},"passthrough.data":n,"current.index":l,"task.response":c,"task.complete.callback":p=>{c.value.taskDurationMillisecond=p,r&&(c.value.mediaRecordingUids=r),o(),t(c)}})}function it({pages:e,setIsRequestingPermission:t}){const{recorderEventEmitter:n,eventEmitFn:r}=q.getState(),{updatePage:o,currentPage:i,recordingMediaTypes:s,screenPermissionRequested:l}=Y.getState();if(!i)return;const c=e.indexOf(i);switch(i.type){case"av_permission":{const p=l?c+2:c+1;return l&&s&&n.emit("begin.recording",{"recording.media.types":s,"start.recording.callback":m=>{o({mediaRecordingUids:m})}}),void o({currentPage:e[p]})}case"screen_permission":return void n.emit("screen.permission",{"screen.permission.requested":t,"stream.ready.callback":(p,m)=>{const u=m?e[c+1]:i;m&&s&&n.emit("begin.recording",{"recording.media.types":s,"start.recording.callback":d=>{o({captureStream:m,mediaRecordingUids:d})}}),o({currentPage:u,screenPermissionRequested:!0,captureStream:m})}});case"start_task":return r("recorded.task.start"),n.emit("recorded.task.start"),n.emit("start.task"),void o({currentPage:e[c+1],screenPermissionRequested:!0});case"complete_task":return}}const er="ul-permission-graphics-container",tr="ul-permission-body",nr=O(er,"ul_recorded-task-inset-spacing"),Le=O("ul-horizontal-button-container","ul-horizontal-button-container-left"),rr=({richTextBody:e})=>a("div",{className:"ul-rich-text-body",dangerouslySetInnerHTML:{__html:e},id:"ul-task-detail-container"}),Pe=({required:e,skipButtonText:t,bottom:n=!1})=>e?null:a(W,{className:O(n&&"ul-skip-button-below","ul-button-inactive"),onClick:ze.bind(null,{status:"abandoned"}),children:t||"Skip"}),st=e=>{const{avStream:t,captureStream:n,recordingMediaTypes:r,updatePage:o}=Y.getState(),i=(r==null?void 0:r.includes("audio"))||(r==null?void 0:r.includes("video"));j(()=>{const s=setInterval(()=>{i&&t&&!t.active?o({avStream:null,currentPage:e[0]}):n&&n.active||o({captureStream:void 0,currentPage:e[i?1:0]})},1e3);return()=>clearInterval(s)},[t,n,i,e,r,o])},ho=({content:e,pages:t,required:n})=>{const{buttonText:r,skipButtonText:o,taskDetail:i}=e;return st(t),a("div",{className:"ul-task-page",children:[i&&a(rr,{richTextBody:i}),a("div",{className:Le,children:[a(W,{onClick:it.bind(null,{pages:t}),children:r}),a(Pe,{required:n,skipButtonText:o})]})]},"start-task")},fo=({content:e,pages:t,properties:n})=>{const{buttonText:r,skipButtonText:o}=e;st(t);const i=a(oe,{properties:n,defaultBody:()=>a("div",{className:Le,children:[a(W,{className:"ul-complete-task-button",onClick:ze.bind(null,{status:"completed"}),children:r}),a(W,{className:O("ul-button-inactive"),onClick:ze.bind(null,{status:"given.up"}),children:o})]})});return a("div",{className:"ul-task-page",children:[e.taskDetail&&a(rr,{richTextBody:e.taskDetail}),i]},"complete-task")},go=({content:e,pages:t,required:n})=>{const{buttonText:r,skipButtonText:o}=e,[i]=q(c=>[c.tabTitle]),[s,l]=B(!1);return a("div",{children:[a("div",{className:nr,children:[a("p",{style:{marginTop:"auto"},children:e.selectTabText}),a("div",{className:"ul-select-tab-container",children:a("p",{className:tr,children:i})})]}),a("div",{className:n?"":Le,children:[a(W,{disabled:s,onClick:it.bind(null,{pages:t,setIsRequestingPermission:l}),children:r}),a(Pe,{required:n,skipButtonText:o})]})]})},_o=({content:e})=>a("div",{className:O(er,"ul_permission_svg_container","ul_recorded-task-inset-spacing","ul-center-horizontally"),dangerouslySetInnerHTML:{__html:e.svg}},"ul-permission-request-graphic"),vo=({content:e,pages:t,required:n})=>{const{permissionDeniedHeadline:r,permissionDeniedBody:o,skipButtonText:i,tryAgainButtonText:s}=e,l=Te(t[0])?t[0]:null;return j(()=>{const c=setInterval(()=>{l!==null&&$e({currentPage:l,pages:t})},1e3);return()=>clearInterval(c)},[l,t]),l?a("div",{children:[a("div",{className:nr,children:a("p",{className:"ul-av-permission-denied-paragraph",children:[a("span",{className:"ul-av-permission-denied-headline",children:r}),a("span",{className:tr,children:o})]})}),a("div",{className:Le,children:[a(W,{onClick:$e.bind(null,{currentPage:l,pages:t}),children:s}),a(Pe,{required:n,skipButtonText:i})]})]}):null},bo=({stream:e})=>a("video",{autoPlay:!0,className:O("ul_recorded-task-inset-spacing"),id:"ul-record-task-video-preview",muted:!0,ref:t=>{t&&(t.srcObject=e||null)}}),yo=({content:e,pages:t,required:n})=>{const{skipButtonText:r}=e,{avStream:o}=Y.getState();return st(t),a("div",{children:[a(bo,{stream:o}),a("div",{className:"ul-vertical-button-container-center",children:[a(W,{onClick:it.bind(null,{pages:t}),children:e.buttonText}),a(Pe,{bottom:!0,required:n,skipButtonText:r})]})]})},xo=({properties:e})=>{const{pages:t,required:n}=e,{avStream:r,currentPage:o}=Y.getState();if(o===void 0)return null;switch(o==null?void 0:o.type){case"av_permission":{const i=Xn(r,o);return i===Ve?a(_o,{content:o}):a(i===Yn?vo:yo,{content:o,pages:t,required:n})}case"screen_permission":return a(go,{content:o,pages:t,required:n});case"start_task":return a(ho,{content:o,pages:t,required:n});case"complete_task":return a(fo,{content:o,pages:t,properties:e});default:return null}},ko=({className:e,properties:t,next:n,questionId:r})=>{const o=q(),{surveyId:i,responseGroupUid:s,userId:l}=o,c=Y(),{screenPermissionRequested:p}=c,m=Y(x=>x.avStream);let u=Y(x=>x.currentPage);u||(u=function({pages:x,userId:y,responseGroupUid:k,surveyId:v,questionId:C,next:N}){const{updatePage:f}=Y.getState(),{eventEmitFn:b,recorderEventEmitter:_}=q.getState(),E={questionId:C,surveyId:v,visitorId:y,responseGroupUid:k};let I=0;_.emit("recorded.task.permission.screen"),b("recorded.task.permission.screen"),_.emit("permission.status",{"permission.status.callback":(S,w,L,H)=>{const T=x[I],{type:A}=T,D=["screen"];if(Te(T)){const{permissionDescriptors:U}=T,Z=U==null?void 0:U.includes("microphone"),z=U==null?void 0:U.includes("camera");Z&&D.push("audio"),z&&D.push("video"),(S!=null&&S.active&&!z||S!=null&&S.active&&w)&&I++}Bt(x[I])&&L&&(I++,_.emit("begin.recording",{"recording.media.types":D,"start.recording.callback":U=>f({mediaRecordingUids:U})})),f({currentPage:x[I],avStream:S,screenPermissionRequested:L,nextQuestion:N,type:A,passthroughData:E,recordingMediaTypes:D,captureStream:H})}});const P=x[I];return P.type==="av_permission"&&$e({currentPage:P,pages:x}),P}({questionId:r,surveyId:i,next:x=>{n(x,!0)},pages:t.pages,responseGroupUid:s,userId:l}));let d=u.headline,h=u.captionText;const g=Xn(m,u);return Bt(u)&&p&&(d=u.permissionDeniedHeadline,h=u.permissionDeniedCaptionText),Te(u)&&g===Jn&&(d=u.permissionGrantedHeadline,h=u.permissionGrantedCaptionText),a("div",{className:O(e,"ul-center-horizontally","fade-in-transition"),children:[a(J,{message:d,properties:{captionText:h}}),a(ie,{children:a(xo,{properties:t})})]})},wo={"{{user_id}}":"externalUserId","{{email}}":"email"},So=({className:e,message:t,next:n,properties:r,questionId:o,type:i})=>{const{visitorAttributes:s}=q(d=>({visitorAttributes:d.visitorAttributes})),l=(d,h=!1)=>{n({value:h?{skipped:!0}:void 0,questionId:o,type:i},!0)},c=d=>{d.key!=="Enter"&&d.key!==" "||n({value:void 0,questionId:o,type:i},!0)},p=((d,h={})=>{if(!d)return d;try{const v=new URL(d);if(v.protocol!=="http:"&&v.protocol!=="https:")return}catch{return}let g=d;const x=[];for(const[v,C]of Object.entries(wo))if(g.toLowerCase().includes(v))if(h[C]){const N=new RegExp(v,"gi");g=g.replace(N,h[C])}else x.push(v);if(x.length===0||!g.includes("?"))return g;const y=g.slice(0,g.indexOf("?")),k=g.slice(g.indexOf("?")+1).split("&").map(v=>v.split("=")).filter(v=>!x.includes(v[1]));return k.length===0?y:`${y}?${k.map(v=>v.join("=")).join("&")}`})(r&&r.buttonUrl,s);return a("div",{className:O(e,"ul-card__text-url-prompt","fade-in-transition"),children:[a(J,{message:t,properties:{questionHtml:r.questionHtml}}),a(ie,{children:(m=r==null?void 0:r.richTextBody,u=r==null?void 0:r.body,m?a("div",{className:"ul-rich-text-body",dangerouslySetInnerHTML:{__html:m},id:"ul-card__text-url-body-container"}):u?a("div",{className:"ul-rich-text-body",id:"ul-card__text-url-body-container",children:(u?u.split(/\n\s*\n/g):[]).map((d,h)=>a("p",{children:d},h))}):null)}),a(oe,{defaultBody:()=>a(ce,{children:a("div",{className:"ul-card-button-group",children:[a("a",{className:"ul-card-text__button ul-card__text-url-prompt-button",href:p,id:"ul-card-text__button",onClick:l,onKeyPress:c,rel:"noreferrer",role:p?"link":"button",tabIndex:0,target:"_blank",children:he(r)}),r.required===!1&&a("button",{className:"ul-card-skip__button",onClick:d=>l(0,!0),children:Wn(r)})]})}),properties:r})]},o);var m,u},Co=({className:e,questionId:t})=>{const{border:n,destroy:r,endCard:o,forceBrandedLogo:i}=q(c=>({border:c.border,destroy:c.destroy,endCard:c.endCard,forceBrandedLogo:c.forceBrandedLogo}));j(()=>{setTimeout(()=>{r(R.APP_ID)},i?4e3:2e3)},[r,i]);const s=o&&o.subheader?a("p",{className:"ul-caption",children:o.subheader}):null,l=o&&o.headline?o.headline:"";return a("div",{className:O(e,"ul-card--thanks","fade-in-transition"),children:a("div",{children:a("div",{className:"ul-card--thanks-content",children:[a("div",{className:"ul-thanks-check",children:a("svg",{"aria-labelledby":"title",fill:"none",height:"99",viewBox:"0 0 81 99",width:"81",xmlns:"http://www.w3.org/2000/svg",children:[a("path",{clipRule:"evenodd",d:"M40.5 77C60.9345 77 77.5 60.4345 77.5 40C77.5 19.5655 60.9345 3 40.5 3C20.0655 3 3.5 19.5655 3.5 40C3.5 60.4345 20.0655 77 40.5 77ZM80.5 40C80.5 62.0914 62.5914 80 40.5 80C18.4086 80 0.5 62.0914 0.5 40C0.5 17.9086 18.4086 0 40.5 0C62.5914 0 80.5 17.9086 80.5 40Z",fill:n,fillRule:"evenodd"}),a("path",{clipRule:"evenodd",d:"M55.025 22.9046C55.6299 23.4705 55.6616 24.4198 55.0956 25.0247C54.8724 25.2634 54.6109 25.5285 54.3157 25.8277C52.2547 27.9168 48.5549 31.667 44.8135 39.6658C43.2818 42.9406 42.0864 45.8386 41.0823 48.2729C40.6539 49.3116 40.2603 50.2659 39.8902 51.129C39.287 52.5359 38.7248 53.7508 38.1744 54.625C37.8997 55.0613 37.5806 55.4905 37.2017 55.8245C36.8201 56.1607 36.2613 56.5 35.5457 56.5C34.6742 56.5 34.0892 55.9692 33.7774 55.6083C33.4502 55.2296 33.1752 54.7511 32.9396 54.301C32.7305 53.9013 32.5088 53.4367 32.2797 52.9565C32.2429 52.8794 32.2059 52.8019 32.1688 52.7243C31.8942 52.1499 31.5959 51.534 31.2537 50.8868C29.8886 48.305 27.8539 45.2878 24.2343 43.1382C23.522 42.7152 23.2875 41.7949 23.7105 41.0826C24.1335 40.3703 25.0539 40.1358 25.7662 40.5588C30.0556 43.1062 32.4149 46.6647 33.9058 49.4845C34.2776 50.1876 34.5973 50.8487 34.8753 51.4302C34.9147 51.5124 34.9529 51.5926 34.9902 51.6707C35.2222 52.1567 35.4164 52.5637 35.5978 52.9102C35.6151 52.9434 35.6321 52.9754 35.6485 53.0061C36.0565 52.3531 36.5341 51.3434 37.133 49.9468C37.4781 49.1418 37.8572 48.2229 38.2761 47.2074C39.2886 44.7532 40.5339 41.7347 42.0961 38.3948C46.0591 29.9221 50.0641 25.8648 52.1535 23.7482C52.4423 23.4556 52.6944 23.2002 52.9048 22.9753C53.4708 22.3703 54.42 22.3387 55.025 22.9046ZM35.1994 53.5892C35.1994 53.5892 35.2 53.5888 35.2012 53.5879C35.2 53.5889 35.1994 53.5893 35.1994 53.5892ZM36.0666 53.6682C36.0732 53.674 36.0765 53.6775 36.0765 53.6777C36.0765 53.678 36.0732 53.6751 36.0666 53.6682Z",fill:n,fillRule:"evenodd"}),a("path",{d:"M69.5 97C69.5 98.1046 56.2924 99 40 99C23.7076 99 10.5 98.1046 10.5 97C10.5 95.8954 23.7076 95 40 95C56.2924 95 69.5 95.8954 69.5 97Z",fill:"black",fillOpacity:"0.2"})]})}),a(J,{message:l}),s]})})},t)},Io=({className:e})=>{const{uploadProgress:t}=q(i=>({uploadProgress:i.uploadProgress}));let n,r;Object.values(t).filter(i=>i.isSubmitted).length>1?(n="Your responses are processing",r="Please keep this tab open until your responses are fully processed."):(n="Your response is processing",r="Please keep this tab open until your response is fully processed.");const o=Math.round(Math.min(99,...Object.values(t).filter(i=>i.isSubmitted).map(i=>i.progressPct||0)));return a("div",{className:O(e,"ul-card--uploading","fade-in-transition"),children:[a("div",{"aria-busy":"true","aria-label":"Processing...","aria-live":"polite",className:"ul-loading-spinner-container",role:"progressbar",children:a("div",{className:"ul-loading-spinner",children:[a("div",{className:"first"}),a("div",{className:"second"}),a("div",{className:"third"}),a("div",{className:"fourth"})]})}),a(J,{message:`${n} (${o}% complete)`}),a("p",{className:"ul-caption",children:r})]})},To=()=>{var k;const{border:e,cards:t,forceBrandedLogo:n,headers:r,index:o,marketingUrl:i,showSurveyBrand:s,slugName:l,surveyId:c,viewedCardCount:p}=q(v=>({border:v.border,cards:v.cards,forceBrandedLogo:v.forceBrandedLogo,headers:v.headers,index:v.index,marketingUrl:v.marketingUrl,showSurveyBrand:v.showSurveyBrand,slugName:v.slugName,surveyId:v.surveyId,viewedCardCount:v.viewedCardCount})),m=Q(null),u=t.filter(v=>v.type!=="uploading"&&v.type!=="thanks"),d=((v,C)=>{const N=new Set(["thanks","uploading"]);if(C>=v.length||C<0||N.has(v[C].type))return 0;const f=v.filter(_=>!N.has(_.type));if(C===f.length-1)return 1;const b={[f.length-1]:1,[-1]:0};for(let _=f.length-2;_>=C;_--){const E=f[_],I=Br(_,E.props.routingOptions);if(I.length===0){b[_]=b[_+1]+1;continue}let P=0,S=Ur(E);if(S===null)return f.length-1-C;for(let w=0;w<I.length&&S.length!==0;w++){const{comparator:L,target:H,value:T}=I[w],A=S.filter(D=>{const U=Hr({value:D},E.type,D),Z=Dn(D,E.type);return!(U&&L==="answered"||Z&&L==="partial"||!U&&!Z&&L==="skipped"||L==="given_up"&&Ar(D)&&D.taskStatus==="given.up"||U&&E.type==="open"&&(L==="contains"||L==="notcontains")||U&&Fr(L)&&nt[L](D,T))});if(A.length<S.length){const D=parseInt(String(H),10);if(D!==-1&&D<=_||D>=f.length)return f.length-1-C;P=Math.max(b[D]+1,P)}S=A}S.length>0&&(P=Math.max(b[_+1]+1,P)),b[_]=P}return b[C]})(t,o),h=p+1,g=h/(h+d),x=Zn({marketingUrl:i,slugName:l,surveyId:c,forceBrandedLogo:n});j(()=>{m.current&&(m.current.style.width=100*g+"%")},[g]);const y=((k=t[o])==null?void 0:k.type)==="thanks";return a("footer",{className:"ul-footer "+(r["userleap-platform"]==="link"?"ul-footer__link":""),children:y&&n?a(Qn,{marketingUrlLink:x}):a(V,{children:[u.length>1&&a("div",{className:"ul-progress-bar-container ul-progress-bar-container__footer",children:a("div",{className:"ul-progress-bar-current",ref:m,style:{border:`1px solid ${e||"#000"}`}})}),s?a(zn,{forceBrandedLogo:n,marketingUrlLink:x}):null]})})},Eo=()=>{const e=q(s=>s.border),t=q(s=>s.cards),n=q(s=>s.index),r=q(s=>s.focusedQuestionId),{totalQuestions:o,fraction:i}=ne(()=>{var p;const s=t.filter(m=>m.type!=="uploading"&&m.type!=="thanks"),l=s.length;if(l<=1)return{totalQuestions:l,fraction:0};if(((p=t[n])==null?void 0:p.type)==="thanks")return{totalQuestions:l,fraction:1};const c=s.findIndex(m=>m.name===r);return{totalQuestions:l,fraction:(c>=0?c:0)/l}},[t,n,r]);return o<=1?null:a("div",{className:"ul-progress-bar-container ul-progress-bar-container__header",children:a("div",{className:"ul-progress-bar-current",style:{width:100*i+"%",border:`1px solid ${e??"#000"}`}})})},No=()=>{const{answers:e,border:t,cards:n,close:r,configureExitOnOverlayClick:o,destroy:i,endCard:s,eventEmitFn:l,fontFamily:c,headers:p,index:m,minScrollableHeight:u,next:d,previewMode:h,productConfig:g,seen:x,showStripes:y,studyType:k,surveyId:v,update:C,useMobileStyling:N,viewDocument:f}=q(T=>({answers:T.answers,border:T.border,cards:T.cards,close:T.close,configureExitOnOverlayClick:T.configureExitOnOverlayClick,destroy:T.destroy,endCard:T.endCard,eventEmitFn:T.eventEmitFn,fontFamily:T.fontFamily,headers:T.headers,index:T.index,previewMode:T.previewMode,productConfig:T.productConfig,minScrollableHeight:T.minScrollableHeight,next:T.next,seen:T.seen,showStripes:T.showStripes,studyType:T.studyType,surveyId:T.surveyId,update:T.update,useMobileStyling:T.useMobileStyling,viewDocument:T.viewDocument})),b=Q(null),_=Q(!1),E=p["userleap-platform"],{props:I,type:P,name:S}=n[m];j(()=>{if(window.Sprig)return window.Sprig.trackHistory=T=>q.getState().trackHistory(T),()=>{window.Sprig.trackHistory=void 0}},[]),j(()=>{b.current&&(b.current.classList.contains("ul-app--visible")||b.current.classList.add("ul-app--visible"),!_.current&&l&&(_.current=!0,l(R.SprigEvent.SurveyAppeared,{name:R.SprigEvent.SurveyAppeared,"survey.id":v})))},[l,v]),j(()=>{const T=()=>{f.visibilityState==="visible"&&(x(),f.removeEventListener("visibilitychange",T))};return f.addEventListener("visibilitychange",T),T(),()=>{f.removeEventListener("visibilitychange",T)}},[x,f]),j(()=>{C()},[m,C]),j(()=>{o(()=>r())},[r,o]);const w=ne(()=>R.groupCards(n,m),[n,m]),L=ae(T=>{d({data:T,completeSurvey:()=>i(R.APP_ID),endCard:s}),R.resetScrollPosition(f)},[d,i,s,f]);if(e){for(const T of e)if(T.questionId===S){let A;if(P==="multiplechoice"){const D=I.options.find(({value:U})=>U===T.value);if(!D)break;A={[D.id]:D.value}}else A=T.value;L({value:A,type:P,questionId:T.questionId});break}}const H=!N&&((g==null?void 0:g.framePosition)==="center"||(g==null?void 0:g.desktopDisplay)==="center-modal"||((g==null?void 0:g.placement)||"").includes("center"));return a("div",{className:O("ul-app",R.shouldDirectEmbed(p)?"ul-app--visible":"ul-app--overlay"),dir:"auto",id:R.APP_ID,onClick:T=>{var Z;const A=window.sprigAPI,D=T.target;if(!A||!D)return;const U=[D,D.parentElement];for(const z of U)if(((Z=z==null?void 0:z.tagName)==null?void 0:Z.toLowerCase())==="a"){T.preventDefault();try{const re=new URL(z.href);re.protocol!=="http:"&&re.protocol!=="https:"||(A==null||A.openUrl(re.toString()))}catch(re){console.error(re)}return}},ref:b,style:{"--theme":t,...c?{fontFamily:c.replace(";","")}:{},...H?{position:"relative"}:{}},children:a("div",{className:"ul-app__container",children:a("div",{className:O($("ul-card__container",N,k)),style:{...k!=="feedbackButton"||(g==null?void 0:g.desktopDisplay)==="center-modal"?{borderColor:t}:{},...(g==null?void 0:g.desktopDisplay)==="slider"?{margin:"0px"}:{}},children:a("div",{className:"sprig-container",style:{minHeight:u},children:[y&&a("div",{className:"ul-header__container",dir:"ltr",children:a("div",{className:"ul-header",children:"For development purposes only"})}),h&&a("div",{className:"ul-header__container",dir:"ltr",children:a("div",{className:"ul-header",children:"Preview Mode: Response will not be recorded."})}),R.isLongFormSurvey(k)&&a(Eo,{}),a("div",{className:O($r("ul-card-main-content",E)),children:a(mo,{cards:w,next:L})}),!R.isLongFormSurvey(k)&&a(To,{})]})})})})},or=()=>MediaRecorder.isTypeSupported("video/webm")?"video/webm":"video/mp4",Vt=e=>{const t={audioBitsPerSecond:128e3,videoBitsPerSecond:25e5,mimeType:or()};return new MediaRecorder(e,t)},$t=(e,t,n)=>{n[t]=[],e.ondataavailable=function(r){n[t].push(r.data)},e.currentMediaRecordingUid=t,e.start()};function zt(e,t,n,r,o,i){if(e&&e.state!=="inactive"){const{"begin.callback":s}=r,l=e.currentMediaRecordingUid;if(!l)return;s&&s(l),e.onstop=()=>async function(c,p,m,u,d,h,g){const x=q.getState().viewDocument,{"upload.callback":y,"progress.callback":k}=u,v={mediaType:m,updatedAt:new Date().toISOString(),mediaRecordingUid:d,...u["passthrough.data"]},C=await(async(_,E)=>{var P;const I=await fetch(E,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(I.ok){const S=await I.json();return(P=S==null?void 0:S.upload)==null?void 0:P.url}return null})(v,c);if(!C)return void(y&&y(null,{message:"failed to get upload url"}));const N=new Blob(g,{type:or()});if(!x.defaultView)return;const f=new x.defaultView.File([N],`recording video ${Date.now()}`),b=h.createUpload({endpoint:C,file:f,chunkSize:5120});b.on("error",_=>{y&&y(null,_)}),b.on("progress",_=>{k&&k(d,_)}),b.on("success",()=>{y&&y(d,!0)})}(t,0,n,r,l,o,i),e.stop()}}const Lo={state:{chunks:{}},stopRecording(e){const{uploadApiEndpoint:t,avRecorder:n,screenRecorder:r,UpChunk:o}=this.state,i=this.state.avStream&&this.state.avStream.getVideoTracks().length>0?"video":"audio";this.state.chunks&&t&&o&&(n!=null&&n.currentMediaRecordingUid&&zt(n,t,i,e,o,this.state.chunks[n==null?void 0:n.currentMediaRecordingUid]),r!=null&&r.currentMediaRecordingUid&&zt(r,t,"screen",e,o,this.state.chunks[r==null?void 0:r.currentMediaRecordingUid]))},handleCancelledStream(e){const t=e.getVideoTracks(),n=e.getAudioTracks();let r=t.length&&t[0];r=r||n.length&&n[0],r&&r.addEventListener("ended",()=>{[this.state.avRecorder,this.state.screenRecorder].map(o=>{o&&(o.state==="recording"&&o.stop(),o.stream.getTracks().map(i=>{i.readyState==="live"&&i.stop()}))}),Object.assign(this.state,{avStream:null,captureStream:null,avRecorder:null,screenRecorder:null})})},taskDurationMillisecond(){return this.state.startTime?new Date().getTime()-this.state.startTime.getTime():0},setUpChunk(e){this.state.UpChunk=e},configure(e,t){Object.assign(this.state,t),this.state.uploadApiEndpoint=`${t.apiURL}/2/environments/integrations/upload`,this.state.chunks={},e.on("permission.status",this.permissionStatusCallback.bind(this)),e.on("av.permission",async n=>{this.avPermissionCallback(n)}),e.on("begin.recording",this.beginRecordingCallback.bind(this)),e.on("start.task",this.startTaskCallback.bind(this)),e.on("screen.permission",async n=>{this.screenPermissionCallback(n)}),e.on("finish.task",async n=>{this.finishTaskCallback(n)})},async avPermissionCallback(e){var r,o,i;const{"stream.ready":t,"permission.descriptors":n}=e;try{(r=this.state.avStream)!=null&&r.active&&(this.state.avStream.getTracks().map(s=>s.readyState==="live"&&s.stop()),((o=this.state.captureStream)==null?void 0:o.getAudioTracks().length)===1&&this.state.captureStream.removeTrack(this.state.captureStream.getAudioTracks()[0])),this.state.avStream=await navigator.mediaDevices.getUserMedia({video:n.includes("camera"),audio:!0}),((i=this.state.captureStream)==null?void 0:i.getAudioTracks().length)===0&&this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]),this.handleCancelledStream(this.state.avStream)}catch(s){return console.warn("Error: failed to get permissions: "+s),void(t&&t(null,null))}t&&t(this.state.avStream,this.state.captureStream)},async screenPermissionCallback(e){const{"screen.permission.requested":t,"stream.ready.callback":n}=e;t==null||t(!0);try{this.state.captureStream=await navigator.mediaDevices.getDisplayMedia({video:!0,cursor:"always",displaySurface:"browser",preferCurrentTab:!0})}catch(r){return t==null||t(!1),console.warn("Error: failed to get permissions: "+r),void(n&&n(null,null))}t==null||t(!1),this.state.avStream&&this.state.avStream.getAudioTracks().length>0&&this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]),this.handleCancelledStream(this.state.captureStream),n&&n(this.state.avStream||null,this.state.captureStream)},beginRecordingCallback(e){const{"recording.media.types":t,"start.recording.callback":n=()=>{}}=e;if(!t)return;const r=[];if(t.includes("video")&&this.state.avStream){this.state.avRecorder=Vt(this.state.avStream);const o=R.v4();$t(this.state.avRecorder,o,this.state.chunks),r.push(o)}if(t.includes("screen")&&this.state.captureStream){this.state.screenRecorder=Vt(this.state.captureStream);const o=R.v4();$t(this.state.screenRecorder,o,this.state.chunks),r.push(o)}r&&n&&n(r)},async finishTaskCallback(e){const{"current.index":t,"task.response":n,"task.complete.callback":r}=e;await this.stopRecording(e),r&&r(this.taskDurationMillisecond()),this.state.cards&&this.state.hasEndCard!==void 0&&this.lookAheadAndStopStream(t,n,this.state.cards,this.state.hasEndCard)},startTaskCallback(){this.state.startTime=new Date},permissionStatusCallback(e){var r;const{"permission.status.callback":t}=e,n=this.state.avStream;t&&t(n,!!n&&(n==null?void 0:n.getVideoTracks().length)>0,!!((r=this.state.captureStream)!=null&&r.active),this.state.captureStream)},lookAheadAndStopStream(e,t,n,r){const{avRecorder:o,screenRecorder:i}=this.state,{allResponses:s}=q.getState(),l=Hn({cards:n,index:e,hasEndCard:r,allResponses:s});l!==null&&n[l].type==="recordedtask"||[o,i].map(c=>{c&&(c.state==="recording"&&c.stop(),c.stream.getTracks().map(p=>{p.readyState==="live"&&p.stop()}))})}},Qe=Object.create(Lo);Object.freeze(Qe);const Po=({mode:e=null,viewWindow:t,viewDocument:n,trackPageViewUrl:r})=>{const o=n.documentElement;let i;try{i=t.parent.location.href}catch{i=t.location.href}return{mode:e,sw:t.screen.width,sh:t.screen.height,cw:o.clientWidth,ch:o.clientHeight,p:r??i,l:t.navigator.language}},Ro={configure:function(e,t=!0){var k;const{answers:n,apiURL:r,endCard:o,eventEmitFn:i,fontFamilyURL:s,frame:l,previewKey:c,viewDocument:p,viewWindow:m}=e,u=R.shouldDirectEmbed(e.headers)?e.frame:p.body,d=e.UpChunk||window.UpChunk,h=R.eventEmitter,g=((v,C)=>{const N=[...v],f=new Set(["videovoice","recordedtask"]);return v.some(b=>f.has(b.type))&&N.push({name:-2,props:{routingOptions:[]},type:"uploading"}),C&&N.push({name:-1,props:{routingOptions:[]},type:"thanks"}),N})(e.cards,!!o);Qe.configure(h,{cards:g,hasEndCard:!!o,apiURL:r,UpChunk:d}),q.setState({apiURL:r,answers:n,border:e.border,index:e.startingQuestionIdx||0,cards:g,configureExitOnOverlayClick:e.configureExitOnOverlayClick,customMetadata:e.customMetadata,endCard:e.endCard,envId:e.envId,eventEmitFn:i,fontFamily:e.fontFamily,forceBrandedLogo:e.forceBrandedLogo,frame:l,headers:e.headers,hasViewedEmbed:!1,isPreview:e.isPreview,marketingUrl:"https://sprig.com",meta:Po({mode:e.mode,viewWindow:m,viewDocument:p,trackPageViewUrl:e.trackPageViewUrl}),mode:e.mode,previewKey:c,previewMode:e.previewMode,productConfig:e.productConfig,recorder:Qe,recorderEventEmitter:h,responseGroupUid:e.responseGroupUid,showStripes:e.showStripes,showSurveyBrand:e.showSurveyBrand,slugName:e.slugName,styleNonce:e.styleNonce,studyType:e.studyType,surveyId:e.surveyId,tabTitle:e.tabTitle,uploadingCardViewed:!1,uploadProgress:{},useMobileStyling:e.useMobileStyling,useDesktopPrototype:e.useDesktopPrototype,userId:e.userId,viewDocument:e.viewDocument,visitorAttributes:e.visitorAttributes,viewedCardCount:e.startingQuestionIdx||0});const{head:x}=p;if(R.setSurveyStyles({document:p,elementId:"sprig-style",styleString:'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}ol,ul{padding-inline-start:1em}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fade-in-transition{animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:start;min-width:200px;justify-content:center;animation:enable-transitions 0s .3s forwards;min-height:0}@keyframes enable-transitions{to{transition:opacity .2s ease-in-out}}.ul-focus-transitions-active .ul-card,.ul-card--with-transitions{transition:opacity .2s ease-in-out}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px #00000026;margin:15px}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px #00000040;margin-top:5px}.ul-card__container--desktop_longFormSurvey,.ul-card__container--mobile_longFormSurvey{margin:0}.sprig-container{display:flex;flex-direction:column;width:100%;height:fit-content;flex:1 1 auto;min-height:0;justify-content:center}.ul-card__container{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;padding:0;min-height:0;position:relative;text-align:center;word-break:break-word;overflow:auto}.ul-card__container--desktop_feedbackButton{box-shadow:unset}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;display:flex;gap:16px;justify-content:center;align-self:stretch}.sprig-question-footer-container{align-items:center;width:100%;height:fit-content;display:flex;flex-direction:column;padding:12px 20px 0}.long-form-question-footer-container{position:fixed;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;align-items:center;overflow:visible;z-index:1000;pointer-events:none;padding:32px}.long-form-question-footer-container--mobile{background-color:#fff;border-top:1px solid #e6e6e6;padding:16px 24px}.long-form-question-footer-container-center{justify-content:center}.long-form-question-footer-container .long-form-question-footer-container-logo{width:auto;pointer-events:auto}.long-form-question-footer-container-center .long-form-question-footer-container-logo{margin-left:0}.long-form-question-footer-container .long-form-question-footer-container-actions{display:flex;gap:8px;pointer-events:auto}.long-form-question-footer-container .long-form-question-footer-container-actions .long-form-button{display:flex;justify-content:center;align-items:center;gap:8px;padding:12px;border-radius:8px;height:40px;width:40px}.long-form-question-footer-container .long-form-question-footer-container-actions .long-form-button .long-form-button-text-container{display:flex;align-items:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email,.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;z-index:2;height:fit-content}.sprig-border-bottom{border-bottom:1px solid rgba(0,0,0,.1)}.sprig-border-top{border-top:1px solid rgba(0,0,0,.1)}.question-header-container{z-index:1}.sprig-header-container{padding:16px}.question-header-button-container{display:grid;grid-template-columns:97fr 3fr;align-items:center;justify-content:space-between;width:100%;height:fit-content}.ul-card--thanks-content .question-header-button-container{justify-content:center}.sprig-question-body{padding:0 20px;min-height:0;flex-shrink:1;overflow:auto;position:relative;align-self:stretch;width:100%}.sprig-stretch{align-self:stretch}.ul-question{color:#343442;display:block;font-size:17px;line-height:125%;font-weight:500;cursor:default;text-align:start}.ul-question ol,.ul-question ul,.ul-caption ol,.ul-caption ul{margin-left:1em}.ul-caption{flex:1 0 auto;font-size:14px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start;margin-top:4px}.ul-card__choices{margin:5px 0 0;flex:1 0}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:flex-start;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;flex-direction:column;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:#00000003}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:#0000000d}.choice-label-container{align-items:center;display:flex;flex-direction:row;flex:0 0 fit-content;gap:15px;height:fit-content;justify-content:flex-start;width:100%}.choice-text-entry-container{width:100%;height:fit-content;flex:0 1 fit-content;overflow:hidden}.choice .choice-text-input--mobile{max-height:63px}.choice .choice-text-input--desktop{max-height:150px}.choice .choice-text-input{box-sizing:border-box;background-color:transparent;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:20px;max-height:60px;padding:0;margin-top:8px;resize:none;width:100%;font-size:14px;line-height:20px;outline:none;border:none;overflow-wrap:break-word}.choice .choice-text-input::placeholder{color:#6c6c6e80}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.select-checkbox{height:16px;width:16px;display:flex;box-sizing:border-box;background-color:"transparent";align-items:center;justify-content:center;border-radius:4px;border:1px solid #b0b5b7;flex-shrink:0}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px #0000001a;background-color:"transparent";align-items:center;justify-content:center}.footer{width:100%;margin-top:12px;font-size:12px;line-height:12px;color:#000000b3}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{align-self:center;box-shadow:unset;border-radius:unset;border:none!important;position:unset;width:100%}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-vertical-centered-container{display:flex;flex-direction:column;align-items:center;align-self:stretch}.sprig-accordion{width:100%;margin-bottom:8px}.sprig-accordion-body{width:100%;overflow:hidden}.sprig-accordion-header-container{background:transparent;border:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;cursor:pointer;margin:8px 0 0;padding:0;font-family:inherit}.sprig-header-label-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;flex:1 1 0}.sprig-header-label{color:#343442;font-size:15px;font-weight:590;line-height:21px;text-align:start;overflow:hidden}.sprig-check-background{flex:0 0 16px;height:16px;width:16px;border-radius:8px;margin-right:8px;background-color:#efefee;display:flex;align-items:center;justify-content:center}.sprig-check{height:9px;width:9px;margin-left:-1px}.sprig-check path{stroke:#506067;stroke-width:1.5}.sprig-caret{height:20px;width:20px;transition-property:transform}.sprig-caret path{stroke:#000}.ul-card-longform__submit-button-container{display:flex;justify-content:flex-end}.ul-card-longform__submit-button-container .ul-card-longform__submit-button{display:flex;flex-direction:row;align-items:center;white-space:nowrap;gap:4px;border-radius:8px;color:#fff;cursor:pointer}.ul-card-longform__submit-button-container .ul-card-longform__submit-button:disabled{opacity:.5;cursor:not-allowed}.ul-card-list-container--longform{display:flex;flex-direction:column;gap:2rem;width:100%;align-items:center;padding-block-start:calc(40vh - 100px);padding-block-end:calc(50vh - 100px);height:auto}@media (min-height: 1200px){.ul-card-list-container--longform{padding-block-start:calc(50vh - 100px)}}.ul-card-scroll-wrapper{width:100%;position:relative;display:flex;justify-content:center}.ul-card--unfocused{opacity:.3;transition:opacity .3s ease-in-out}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:#fff}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.ul-card--likert__numbers>button{padding:unset}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px;background:unset;border:unset}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px;background:unset;border:unset}.likert-smiley>svg{margin:0 auto}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(107px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-card--matrix_grid_longform{width:100%}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;overflow:auto}.ul-card--matrix_question_container{display:flex;flex-direction:column}.ul-matrix-scroll-gradient{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl){-webkit-mask-image:linear-gradient(270deg,#000,90%,transparent);mask-image:linear-gradient(270deg,#000,90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl)+.ul-matrix-scroll-arrow{rotate:180deg}.ul-matrix-scroll-arrow{align-self:flex-end;background:none;border:none;color:#000;padding:0;position:absolute;top:45%}.ul-matrix-scroll-arrow:hover{cursor:pointer}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{max-width:100%}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px;padding:unset}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card-text{margin-top:2px;margin-bottom:3px;display:flex;flex-direction:column;justify-content:center;padding:0;width:100%}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:-webkit-fill-available}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#fff;border-radius:5px;text-align:start;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button:disabled>svg path,.ul-card-text__button.sprig-button-disabled>svg path{stroke:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:15px;justify-content:center;flex-direction:column}.select-button{align-items:center;background-color:transparent;border-radius:8px;border:1px solid #0b2330;box-shadow:0 0 0 2px #c8cccc;cursor:pointer;display:flex;font-size:15px;justify-content:space-between;margin-bottom:8px;padding:4px 8px 4px 16px;width:100%}.select-button:hover{background-color:#f3f3f3}.select-button:active{background-color:#eee}.select-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-button.select-button-placeholder{color:#b0b5b7}.select-button svg{flex-shrink:0}.select-list{position:relative;height:fit-content;padding:4px 0;z-index:100;background-color:#fff;border:1px solid #E2E3E1;box-shadow:0 16px 24px #0b23300d,0 4px 12px #0b233008;border-radius:8px;overflow-y:scroll;width:100%}.select-option{align-items:center;cursor:pointer;display:flex;font-size:15px;gap:16px;line-height:20px;padding:8px 16px}.select-option:hover{background-color:#f3f3f3}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}form{margin-block-end:0;margin-block-start:0}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;margin-top:auto;flex-grow:0;width:100%;min-height:10px;height:fit-content;flex-shrink:0}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%;height:0}.close-btn{cursor:pointer;height:16px;margin-inline-end:-10px;position:relative;top:-10px;width:16px;z-index:1;align-self:flex-start;justify-self:end;flex-shrink:0}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}.ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px}.ul-progress-bar-container__footer{max-width:250px;margin:16px 0}.ul-progress-bar-container__header{position:fixed;top:80px;max-width:unset;margin:0;z-index:3}.ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{align-self:stretch;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:0;height:fit-content;line-height:16.5px;margin:0 20px;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}'}),e.customStyles&&R.setSurveyStyles({document:p,elementId:"ul-custom-style",styleString:e.customStyles,nonce:e.styleNonce}),e.fontFamily&&s&&parent){const v=p.createElement("link");v.rel="stylesheet",v.href=s,x.appendChild(v)}const y=i||((k=l.eventEmitter)==null?void 0:k.emit);y==null||y("verify.view.version",{"view.version":"2.33.2"}),u&&t&&(pe(a(No,{}),u),R.eventEmitter.once(R.SprigEvent.SurveyClosed,()=>{et(u)}))}};exports.default=Ro;
13
+ //# sourceMappingURL=view-VQ3LPBC1.cjs.map