@sprig-technologies/sprig-bundled 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-Ce9gtwb7.js +37 -0
- package/dist/index-ZlfwE4U0.cjs +37 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +174 -239
- package/dist/index.js +1 -7
- package/dist/view-BLX4LEzJ.js +28 -0
- package/dist/view-DqFVd4zL.cjs +28 -0
- package/package.json +3 -2
- package/dist/index-2R2XP7B7.js +0 -8891
- package/dist/view-MqQxb9ia.js +0 -3977
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index-ZlfwE4U0.cjs");var fe,k,Dt,X,nt,Mt,Ae,Ht,pe={},Bt=[],Zn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,we=Array.isArray;function W(e,t){for(var n in t)e[n]=t[n];return e}function Ut(e){var t=e.parentNode;t&&t.removeChild(e)}function A(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?fe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return ue(e,a,r,o,null)}function ue(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??++Dt,__i:-1,__u:0};return o==null&&k.vnode!=null&&k.vnode(i),i}function Vt(){return{current:null}}function U(e){return e.children}function j(e,t){this.props=e,this.context=t}function ie(e,t){if(t==null)return e.__?ie(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"?ie(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 $e(e){(!e.__d&&(e.__d=!0)&&X.push(e)&&!ke.__r++||nt!==k.debounceRendering)&&((nt=k.debounceRendering)||Mt)(ke)}function ke(){var e,t,n,r,o,i,a,l,c;for(X.sort(Ae);e=X.shift();)e.__d&&(t=X.length,r=void 0,i=(o=(n=e).__v).__e,l=[],c=[],(a=n.__P)&&((r=W({},o)).__v=o.__v+1,k.vnode&&k.vnode(r),qe(a,r,o,n.__n,a.ownerSVGElement!==void 0,32&o.__u?[i]:null,l,i??ie(o),!!(32&o.__u),c),r.__.__k[r.__i]=r,zt(l,r,c),r.__e!=i&&jt(r)),X.length>t&&X.sort(Ae));ke.__r=0}function qt(e,t,n,r,o,i,a,l,c,d,p){var s,f,_,h,m,b=r&&r.__k||Bt,v=t.length;for(n.__d=c,Gn(n,t,b),c=n.__d,s=0;s<v;s++)(_=n.__k[s])!=null&&typeof _!="boolean"&&typeof _!="function"&&(f=_.__i===-1?pe:b[_.__i]||pe,_.__i=s,qe(e,_,f,o,i,a,l,c,d,p),h=_.__e,_.ref&&f.ref!=_.ref&&(f.ref&&Fe(f.ref,null,_),p.push(_.ref,_.__c||h,_)),m==null&&h!=null&&(m=h),65536&_.__u||f.__k===_.__k?c=Ft(_,c,e):typeof _.type=="function"&&_.__d!==void 0?c=_.__d:h&&(c=h.nextSibling),_.__d=void 0,_.__u&=-196609);n.__d=c,n.__e=m}function Gn(e,t,n){var r,o,i,a,l,c=t.length,d=n.length,p=d,s=0;for(e.__k=[],r=0;r<c;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?ue(null,o,null,null,o):we(o)?ue(U,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?ue(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,l=Kn(o,n,a=r+s,p),o.__i=l,i=null,l!==-1&&(p--,(i=n[l])&&(i.__u|=131072)),i==null||i.__v===null?(l==-1&&s--,typeof o.type!="function"&&(o.__u|=65536)):l!==a&&(l===a+1?s++:l>a?p>c-a?s+=l-a:s--:s=l<a&&l==a-1?l-a:0,l!==r+s&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=ie(i)),De(i,i,!1),n[r]=null,p--);if(p)for(r=0;r<d;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=ie(i)),De(i,i))}function Ft(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=Ft(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function Z(e,t){return t=t||[],e==null||typeof e=="boolean"||(we(e)?e.some(function(n){Z(n,t)}):t.push(e)),t}function Kn(e,t,n,r){var o=e.key,i=e.type,a=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)?1:0))for(;a>=0||l<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(l<t.length){if((c=t[l])&&!(131072&c.__u)&&o==c.key&&i===c.type)return l;l++}}return-1}function rt(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Zn.test(t)?n:n+"px"}function be(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||rt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||rt(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?it:ot,i)):e.removeEventListener(t,i?it:ot,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 ot(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(k.event?k.event(e):e)}function it(e){return this.l[e.type+!0](k.event?k.event(e):e)}function qe(e,t,n,r,o,i,a,l,c,d){var p,s,f,_,h,m,b,v,y,x,O,T,C,R,w,g=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),i=[l=t.__e=n.__e]),(p=k.__b)&&p(t);e:if(typeof g=="function")try{if(v=t.props,y=(p=g.contextType)&&r[p.__c],x=p?y?y.props.value:p.__:r,n.__c?b=(s=t.__c=n.__c).__=s.__E:("prototype"in g&&g.prototype.render?t.__c=s=new g(v,x):(t.__c=s=new j(v,x),s.constructor=g,s.render=Yn),y&&y.sub(s),s.props=v,s.state||(s.state={}),s.context=x,s.__n=r,f=s.__d=!0,s.__h=[],s._sb=[]),s.__s==null&&(s.__s=s.state),g.getDerivedStateFromProps!=null&&(s.__s==s.state&&(s.__s=W({},s.__s)),W(s.__s,g.getDerivedStateFromProps(v,s.__s))),_=s.props,h=s.state,s.__v=t,f)g.getDerivedStateFromProps==null&&s.componentWillMount!=null&&s.componentWillMount(),s.componentDidMount!=null&&s.__h.push(s.componentDidMount);else{if(g.getDerivedStateFromProps==null&&v!==_&&s.componentWillReceiveProps!=null&&s.componentWillReceiveProps(v,x),!s.__e&&(s.shouldComponentUpdate!=null&&s.shouldComponentUpdate(v,s.__s,x)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(s.props=v,s.state=s.__s,s.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(S){S&&(S.__=t)}),O=0;O<s._sb.length;O++)s.__h.push(s._sb[O]);s._sb=[],s.__h.length&&a.push(s);break e}s.componentWillUpdate!=null&&s.componentWillUpdate(v,s.__s,x),s.componentDidUpdate!=null&&s.__h.push(function(){s.componentDidUpdate(_,h,m)})}if(s.context=x,s.props=v,s.__P=e,s.__e=!1,T=k.__r,C=0,"prototype"in g&&g.prototype.render){for(s.state=s.__s,s.__d=!1,T&&T(t),p=s.render(s.props,s.state,s.context),R=0;R<s._sb.length;R++)s.__h.push(s._sb[R]);s._sb=[]}else do s.__d=!1,T&&T(t),p=s.render(s.props,s.state,s.context),s.state=s.__s;while(s.__d&&++C<25);s.state=s.__s,s.getChildContext!=null&&(r=W(W({},r),s.getChildContext())),f||s.getSnapshotBeforeUpdate==null||(m=s.getSnapshotBeforeUpdate(_,h)),qt(e,we(w=p!=null&&p.type===U&&p.key==null?p.props.children:p)?w:[w],t,n,r,o,i,a,l,c,d),s.base=t.__e,t.__u&=-161,s.__h.length&&a.push(s),b&&(s.__E=s.__=null)}catch(S){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),k.__e(S,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Qn(n.__e,t,n,r,o,i,a,c,d);(p=k.diffed)&&p(t)}function zt(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Fe(n[r],n[++r],n[++r]);k.__c&&k.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){k.__e(i,o.__v)}})}function Qn(e,t,n,r,o,i,a,l,c){var d,p,s,f,_,h,m,b=n.props,v=t.props,y=t.type;if(y==="svg"&&(o=!0),i!=null){for(d=0;d<i.length;d++)if((_=i[d])&&"setAttribute"in _==!!y&&(y?_.localName===y:_.nodeType===3)){e=_,i[d]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),i=null,l=!1}if(y===null)b===v||l&&e.data===v||(e.data=v);else{if(i=i&&fe.call(e.childNodes),b=n.props||pe,!l&&i!=null)for(b={},d=0;d<e.attributes.length;d++)b[(_=e.attributes[d]).name]=_.value;for(d in b)_=b[d],d=="children"||(d=="dangerouslySetInnerHTML"?s=_:d==="key"||d in v||be(e,d,null,_,o));for(d in v)_=v[d],d=="children"?f=_:d=="dangerouslySetInnerHTML"?p=_:d=="value"?h=_:d=="checked"?m=_:d==="key"||l&&typeof _!="function"||b[d]===_||be(e,d,_,b[d],o);if(p)l||s&&(p.__html===s.__html||p.__html===e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(s&&(e.innerHTML=""),qt(e,we(f)?f:[f],t,n,r,o&&y!=="foreignObject",i,a,i?i[0]:n.__k&&ie(n,0),l,c),i!=null)for(d=i.length;d--;)i[d]!=null&&Ut(i[d]);l||(d="value",h!==void 0&&(h!==e[d]||y==="progress"&&!h||y==="option"&&h!==b[d])&&be(e,d,h,b[d],!1),d="checked",m!==void 0&&m!==e[d]&&be(e,d,m,b[d],!1))}return e}function Fe(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){k.__e(r,n)}}function De(e,t,n){var r,o;if(k.unmount&&k.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Fe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){k.__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]&&De(r[o],t,n||typeof e.type!="function");n||e.__e==null||Ut(e.__e),e.__=e.__e=e.__d=void 0}function Yn(e,t,n){return this.constructor(e,n)}function ae(e,t,n){var r,o,i,a;k.__&&k.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],qe(t,e=(!r&&n||t).__k=A(U,null,[e]),o||pe,pe,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?fe.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),zt(i,e,a)}function Wt(e,t){ae(e,t,Wt)}function Jn(e,t,n){var r,o,i,a,l=W({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:l[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?fe.call(arguments,2):n),ue(e.type,l,r||e.key,o||e.ref,null)}function Zt(e,t){var n={__c:t="__cC"+Ht++,__: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(a){this.props.value!==a.value&&o.some(function(l){l.__e=!0,$e(l)})},this.sub=function(a){o.push(a);var l=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),l&&l.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}fe=Bt.slice,k={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(l){e=l}throw e}},Dt=0,j.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=W({},this.state),typeof e=="function"&&(e=e(W({},n),this.props)),e&&W(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),$e(this))},j.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$e(this))},j.prototype.render=U,X=[],Mt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ae=function(e,t){return e.__v.__b-t.__v.__b},ke.__r=0,Ht=0;var G,L,Ne,at,se=0,Gt=[],ve=[],st=k.__b,lt=k.__r,ct=k.diffed,ut=k.__c,dt=k.unmount;function te(e,t){k.__h&&k.__h(L,e,se||t),se=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ve}),n.__[e]}function H(e){return se=1,ze(Jt,e)}function ze(e,t,n){var r=te(G++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Jt(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,l);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=L,!L.u)){var o=function(l,c,d){if(!r.__c.__H)return!0;var p=r.__c.__H.__.filter(function(f){return f.__c});if(p.every(function(f){return!f.__N}))return!i||i.call(this,l,c,d);var s=!1;return p.forEach(function(f){if(f.__N){var _=f.__[0];f.__=f.__N,f.__N=void 0,_!==f.__[0]&&(s=!0)}}),!(!s&&r.__c.props===l)&&(!i||i.call(this,l,c,d))};L.u=!0;var i=L.shouldComponentUpdate,a=L.componentWillUpdate;L.componentWillUpdate=function(l,c,d){if(this.__e){var p=i;i=void 0,o(l,c,d),i=p}a&&a.call(this,l,c,d)},L.shouldComponentUpdate=o}return r.__N||r.__}function B(e,t){var n=te(G++,3);!k.__s&&Ge(n.__H,t)&&(n.__=e,n.i=t,L.__H.__h.push(n))}function _e(e,t){var n=te(G++,4);!k.__s&&Ge(n.__H,t)&&(n.__=e,n.i=t,L.__h.push(n))}function F(e){return se=5,he(function(){return{current:e}},[])}function Kt(e,t,n){se=6,_e(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 he(e,t){var n=te(G++,7);return Ge(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function We(e,t){return se=8,he(function(){return e},t)}function Qt(e){var t=L.context[e.__c],n=te(G++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(L)),t.props.value):e.__}function Ze(e,t){k.useDebugValue&&k.useDebugValue(t?t(e):e)}function Xn(e){var t=te(G++,10),n=H();return t.__=e,L.componentDidCatch||(L.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Yt(){var e=te(G++,11);if(!e.__){for(var t=L.__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 er(){for(var e;e=Gt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ye),e.__H.__h.forEach(Me),e.__H.__h=[]}catch(t){e.__H.__h=[],k.__e(t,e.__v)}}k.__b=function(e){L=null,st&&st(e)},k.__r=function(e){lt&<(e),G=0;var t=(L=e.__c).__H;t&&(Ne===L?(t.__h=[],L.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ve,n.__N=n.i=void 0})):(t.__h.forEach(ye),t.__h.forEach(Me),t.__h=[],G=0)),Ne=L},k.diffed=function(e){ct&&ct(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gt.push(t)!==1&&at===k.requestAnimationFrame||((at=k.requestAnimationFrame)||tr)(er)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ve&&(n.__=n.__V),n.i=void 0,n.__V=ve})),Ne=L=null},k.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ye),n.__h=n.__h.filter(function(r){return!r.__||Me(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],k.__e(r,n.__v)}}),ut&&ut(e,t)},k.unmount=function(e){dt&&dt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ye(r)}catch(o){t=o}}),n.__H=void 0,t&&k.__e(t,n.__v))};var pt=typeof requestAnimationFrame=="function";function tr(e){var t,n=function(){clearTimeout(r),pt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);pt&&(t=requestAnimationFrame(n))}function ye(e){var t=L,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),L=t}function Me(e){var t=L;e.__c=e.__(),L=t}function Ge(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Jt(e,t){return typeof t=="function"?t(e):t}function Xt(e,t){for(var n in t)e[n]=t[n];return e}function He(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 Ce(e){this.props=e}function en(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:He(this.props,o)}function r(o){return this.shouldComponentUpdate=n,A(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ce.prototype=new j).isPureReactComponent=!0,Ce.prototype.shouldComponentUpdate=function(e,t){return He(this.props,e)||He(this.state,t)};var ft=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ft&&ft(e)};var nr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tn(e){function t(n){var r=Xt({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=nr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var _t=function(e,t){return e==null?null:Z(Z(e).map(t))},nn={map:_t,forEach:_t,count:function(e){return e?Z(e).length:0},only:function(e){var t=Z(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Z},rr=k.__e;k.__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)}rr(e,t,n,r)};var ht=k.unmount;function rn(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=Xt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return rn(r,t,n)})),e}function on(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return on(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 de(){this.__u=0,this.t=null,this.__b=null}function an(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function sn(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return A(n,i)}return o.displayName="Lazy",o.__f=!0,o}function oe(){this.u=null,this.o=null}k.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ht&&ht(e)},(de.prototype=new j).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=an(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=a;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=on(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},de.prototype.componentWillUnmount=function(){this.t=[]},de.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]=rn(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&A(U,null,e.fallback);return o&&(o.__u&=-33),[A(U,null,t.__a?null:e.children),o]};var mt=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 or(e){return this.getChildContext=function(){return e.context},e.children}function ir(e){var t=this,n=e.i;t.componentWillUnmount=function(){ae(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)}}),ae(A(or,{context:t.context},e.__v),t.l)}function ln(e,t){var n=A(ir,{__v:e,i:t});return n.containerInfo=t,n}(oe.prototype=new j).__a=function(e){var t=this,n=an(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),mt(t,e,r)):o()};n?n(i):i()}},oe.prototype.render=function(e){this.u=null,this.o=new Map;var t=Z(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},oe.prototype.componentDidUpdate=oe.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){mt(e,n,t)})};var cn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ar=/^(?: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]/,sr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,lr=/[A-Z0-9]/g,cr=typeof document<"u",ur=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function un(e,t,n){return t.__k==null&&(t.textContent=""),ae(e,t),typeof n=="function"&&n(),e?e.__c:null}function dn(e,t,n){return Wt(e,t),typeof n=="function"&&n(),e?e.__c:null}j.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(j.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gt=k.event;function dr(){}function pr(){return this.cancelBubble}function fr(){return this.defaultPrevented}k.event=function(e){return gt&&(e=gt(e)),e.persist=dr,e.isPropagationStopped=pr,e.isDefaultPrevented=fr,e.nativeEvent=e};var Ke,_r={enumerable:!1,configurable:!0,get:function(){return this.class}},bt=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||cr&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":l==="ondoubleclick"?i="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||ur(n.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":sr.test(i)?i=l:r.indexOf("-")===-1&&ar.test(i)?i=i.replace(lr,"-$&").toLowerCase():a===null&&(a=void 0):l=i="oninput",l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Z(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Z(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",_r)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=cn,bt&&bt(e)};var vt=k.__r;k.__r=function(e){vt&&vt(e),Ke=e.__c};var yt=k.diffed;k.diffed=function(e){yt&&yt(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),Ke=null};var pn={ReactCurrentDispatcher:{current:{readContext:function(e){return Ke.__n[e.__c].props.value}}}},hr="17.0.2";function fn(e){return A.bind(null,e)}function me(e){return!!e&&e.$$typeof===cn}function _n(e){return me(e)&&e.type===U}function hn(e){return me(e)?Jn.apply(null,arguments):e}function mn(e){return!!e.__k&&(ae(null,e),!0)}function gn(e){return e&&(e.base||e.nodeType===1&&e)||null}var bn=function(e,t){return e(t)},vn=function(e,t){return e(t)},yn=U;function Qe(e){e()}function xn(e){return e}function kn(){return[!1,Qe]}var Cn=_e,wn=me;function Sn(e,t){var n=t(),r=H({h:{__:n,v:t}}),o=r[0].h,i=r[1];return _e(function(){o.__=n,o.v=t,Oe(o)&&i({h:o})},[e,n,t]),B(function(){return Oe(o)&&i({h:o}),e(function(){Oe(o)&&i({h:o})})},[e]),n}function Oe(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 mr={useState:H,useId:Yt,useReducer:ze,useEffect:B,useLayoutEffect:_e,useInsertionEffect:Cn,useTransition:kn,useDeferredValue:xn,useSyncExternalStore:Sn,startTransition:Qe,useRef:F,useImperativeHandle:Kt,useMemo:he,useCallback:We,useContext:Qt,useDebugValue:Ze,version:"17.0.2",Children:nn,render:un,hydrate:dn,unmountComponentAtNode:mn,createPortal:ln,createElement:A,createContext:Zt,createFactory:fn,cloneElement:hn,createRef:Vt,Fragment:U,isValidElement:me,isElement:wn,isFragment:_n,findDOMNode:gn,Component:j,PureComponent:Ce,memo:en,forwardRef:tn,flushSync:vn,unstable_batchedUpdates:bn,StrictMode:yn,Suspense:de,SuspenseList:oe,lazy:sn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn};const gr=Object.freeze(Object.defineProperty({__proto__:null,Children:nn,Component:j,Fragment:U,PureComponent:Ce,StrictMode:yn,Suspense:de,SuspenseList:oe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pn,cloneElement:hn,createContext:Zt,createElement:A,createFactory:fn,createPortal:ln,createRef:Vt,default:mr,findDOMNode:gn,flushSync:vn,forwardRef:tn,hydrate:dn,isElement:wn,isFragment:_n,isValidElement:me,lazy:sn,memo:en,render:un,startTransition:Qe,unmountComponentAtNode:mn,unstable_batchedUpdates:bn,useCallback:We,useContext:Qt,useDebugValue:Ze,useDeferredValue:xn,useEffect:B,useErrorBoundary:Xn,useId:Yt,useImperativeHandle:Kt,useInsertionEffect:Cn,useLayoutEffect:_e,useMemo:he,useReducer:ze,useRef:F,useState:H,useSyncExternalStore:Sn,useTransition:kn,version:hr},Symbol.toStringTag,{value:"Module"})),xt=e=>{let t;const n=new Set,r=(c,d)=>{const p=typeof c=="function"?c(t):c;if(!Object.is(p,t)){const s=t;t=d??typeof p!="object"?p:Object.assign({},t,p),n.forEach(f=>f(t,s))}},o=()=>t,l={setState:r,getState:o,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>n.clear()};return t=e(r,o,l),l},br=e=>e?xt(e):xt;function vr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yr(e){if(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 En={exports:{}},Tn={};const Pn=yr(gr);var Rn={exports:{}},Nn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var le=Pn;function xr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kr=typeof Object.is=="function"?Object.is:xr,Cr=le.useState,wr=le.useEffect,Sr=le.useLayoutEffect,Er=le.useDebugValue;function Tr(e,t){var n=t(),r=Cr({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Sr(function(){o.value=n,o.getSnapshot=t,Le(o)&&i({inst:o})},[e,n,t]),wr(function(){return Le(o)&&i({inst:o}),e(function(){Le(o)&&i({inst:o})})},[e]),Er(n),n}function Le(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch{return!0}}function Pr(e,t){return t()}var Rr=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Pr:Tr;Nn.useSyncExternalStore=le.useSyncExternalStore!==void 0?le.useSyncExternalStore:Rr;Rn.exports=Nn;var Nr=Rn.exports;/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Se=Pn,Or=Nr;function Lr(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ir=typeof Object.is=="function"?Object.is:Lr,Ar=Or.useSyncExternalStore,$r=Se.useRef,Dr=Se.useEffect,Mr=Se.useMemo,Hr=Se.useDebugValue;Tn.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=$r(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Mr(function(){function c(_){if(!d){if(d=!0,p=_,_=r(_),o!==void 0&&a.hasValue){var h=a.value;if(o(h,_))return s=h}return s=_}if(h=s,Ir(p,_))return h;var m=r(_);return o!==void 0&&o(h,m)?h:(p=_,s=m)}var d=!1,p,s,f=n===void 0?null:n;return[function(){return c(t())},f===null?void 0:function(){return c(f())}]},[t,n,r,o]);var l=Ar(e,i[0],i[1]);return Dr(function(){a.hasValue=!0,a.value=l},[l]),Hr(l),l};En.exports=Tn;var Br=En.exports;const Ur=vr(Br),{useSyncExternalStoreWithSelector:Vr}=Ur;function jr(e,t=e.getState,n){const r=Vr(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ze(r),r}const kt=e=>{const t=typeof e=="function"?br(e):e,n=(r,o)=>jr(t,r,o);return Object.assign(n,t),n},On=e=>e?kt(e):kt,Ct={And:1,Or:2},wt=1,Ye={eq(e,t){return e==t},neq(e,t){return!this.eq(e,t)},gt(e,t){return e>t},gte(e,t){return e>=t},lt(e,t){return e<t},lte(e,t){return e<=t},list_exact(e,t){return!Array.isArray(e)||!Array.isArray(t)?!1:e.slice().sort().join(",")===t.slice().sort().join(",")},list_all(e,t){return!Array.isArray(e)||!Array.isArray(t)?!1:!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)}},qr=(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":return n!==null;case"multiplechoice":return n!==void 0;case"matrix":return!!(n&&Object.values(n).every(r=>r!==null));case"nps":return n!==null;case"likert":return n!==null;default:return!0}},Ln=(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},In=({cards:e,index:t,hasEndCard:n,allResponses:r,uploadProgress:o={}})=>{if(t>=e.length||t<0)return null;const i=e[t];let a=t+1;const l=i.props.routingOptions||[];for(let p=0;p<l.length;p++){const{group:s,target:f}=l[p];if(!(s!=null&&s.length))continue;const _=s[0];if(_.questionIndex===void 0||_.questionIndex>r.length)continue;let h=St({comparator:_.comparator,response:r[_.questionIndex],type:i.type,value:_.value});for(let m=1;m<s.length;m+=2){const b=s[m],v=s[m+1],y=St({comparator:v.comparator,response:r[v.questionIndex],type:e[v.questionIndex].type,value:v.value});b===Ct.And?h&&(h=y):b===Ct.Or&&(h||(h=y))}if(h){a=f===-1&&n?e.length-1:f;break}}const c=e.findIndex(p=>p.type==="uploading");let d;return c>0?d=n?e.length-3:e.length-2:d=e.length-1,t>=d||a===-1||a!==null&&a>d?c>0&&Object.values(o).some(s=>s.isSubmitted&&!s.isComplete)?c:n?e.length-1:null:a===-1?null:a},St=({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":return Number.isInteger(t);case"matrix":return Object.values(t).every(o=>o!==null);case"multiplechoice":case"multipleselect":return Object.keys(t).length>0;case"nps":return Number.isInteger(t);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":!0;if(e==="partial")return n==="matrix"?Ln(t,n):!1;if(e==="skipped")switch(n){case"texturlprompt":return t==null?void 0:t.skipped;case"consentlegal":return t===null;case"recordedtask":return"taskStatus"in t&&t.taskStatus==="abandoned";case"likert":return t===null;case"open":return(t==null?void 0:t.length)===0;case"multiplechoice":return t===void 0;case"multipleselect":return(t==null?void 0:t.length)===0;case"matrix":return Object.values(t).every(o=>o===null);case"nps":return t===null;case"videovoice":return t===null;default:return!1}return Ye[e](t,r)},Fr=13,zr=(e,t)=>e.reduce((n,r)=>n.concat(n.map(o=>[...o,r])),[[]]).filter(n=>t||n.length>0),Wr=e=>{var t,n,r;switch(e.type){case"multipleselect":return!e||!e.props||!e.props.options?null:e.props.options.length>Fr?e.props.options.map(o=>[o.value]):zr(e.props.options.map(o=>o.value),!e.props.properties.required);case"multiplechoice":{if(!e||!e.props||!e.props.options)return null;const o=e.props.options.map(i=>i.value);return e.props.properties.required||o.push(void 0),o}case"matrix":{if(!((t=e==null?void 0:e.props)!=null&&t.options))return null;const o=e.props.properties.matrixColumn,i=e.props.options,a=i.reduce((p,s)=>(p[s.id]=null,p),{}),l={...a,[i[0].id]:o[0].value},c=i.reduce((p,s)=>(p[s.id]=o[0].value,p),{}),d=[l,c];return e.props.properties.required||d.push(a),d}case"likert":{const o=Number((r=(n=e.props)==null?void 0:n.properties)==null?void 0:r.range)||5;return[...Array.from(Array(o).keys()).map(a=>a+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 o=[{taskStatus:"completed"},{taskStatus:"given.up"}];return e.props.properties.required||o.push({taskStatus:"abandoned"}),o}case"texturlprompt":return[void 0,...e.props.properties.required?[]:[{skipped:!0}]];case"consentlegal":return[wt,...e.props.properties.required?[]:[null]];default:return[wt]}},Zr=e=>e in Ye,Gr=e=>typeof e=="object"&&e!==null&&"taskStatus"in e,Kr=(e,t=[])=>t.reduce((n,r)=>{const{group:o,target:i}=r;if(!(o!=null&&o.length))return[...n];const a=o.filter(l=>Number(l)?!0:typeof l=="object"?l.questionIndex===e:!1).map(l=>{const{comparator:c,value:d}=l;return{comparator:c,target:i,value:d}});return[...n,...a]},[]),Qr=(e,t)=>{const n=new Set(["thanks","uploading"]);if(t>=e.length||t<0||n.has(e[t].type))return 0;const r=e.filter(i=>!n.has(i.type));if(t===r.length-1)return 1;const o={[r.length-1]:1,[-1]:0};for(let i=r.length-2;i>=t;i--){const a=r[i],l=Kr(i,a.props.routingOptions);if(l.length===0){o[i]=o[i+1]+1;continue}let c=0,d=Wr(a);if(d===null)return r.length-1-t;for(let p=0;p<l.length&&d.length!==0;p++){const{comparator:s,target:f,value:_}=l[p],h=d.filter(m=>{const b=qr({value:m},a.type,m),v=Ln(m,a.type);return!(b&&s==="answered"||v&&s==="partial"||!b&&!v&&s==="skipped"||s==="given_up"&&Gr(m)&&m.taskStatus==="given.up"||b&&a.type==="open"&&(s==="contains"||s==="notcontains")||b&&Zr(s)&&Ye[s](m,_))});if(h.length<d.length){const m=parseInt(String(f),10);if(m!==-1&&m<=i||m>=r.length)return r.length-1-t;c=Math.max(o[m]+1,c)}d=h}d.length>0&&(c=Math.max(o[i+1]+1,c)),o[i]=c}return o[t]},Be=new Set(["thanks","uploading"]),Yr=e=>!Be.has(e.type),I=On()((e,t)=>({allResponses:[],answers:void 0,apiURL:"",border:"#000000",cards:[],close:async(n=E.APP_ID)=>{const r=t(),{fadeout:o,remove:i,trackHistory:a,studyType:l}=r;await o(n),Ie(r)||a({event:"closed"}),E.info(`Closing survey: ${r.surveyId}`),E.ConflictingWidgets.enable(),i({initiator:E.DismissReason.Closed,studyType:l})},configureExitOnOverlayClick:()=>{},customMetadata:{},destroy:async n=>{const{eventEmitFn:r,fadeout:o,remove:i,studyType:a,surveyId:l}=t();r("survey.complete",l),await o(n),E.ConflictingWidgets.enable(),i({initiator:E.DismissReason.Complete,studyType:a})},endCard:{headline:""},envId:"",eventEmitFn:E.eventEmitter.emit.bind(E.eventEmitter),fadeout:async n=>{const{eventEmitFn:r,headers:o,viewDocument:i}=t();return E.shouldDirectEmbed(o)?Promise.resolve():(r(E.SprigEvent.SurveyFadingOut),new Promise(a=>{const l=i.getElementById(n);l?(l.addEventListener("transitionend",()=>{a()}),l.classList.remove("ul-app--visible")):a()}))},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,m;const{cards:a,destroy:l,index:c,uploadProgress:d}=t(),p=r||((_=d[n])==null?void 0:_.isComplete),s={...d,[n]:{progressPct:p?100:o||((h=d[n])==null?void 0:h.progressPct),isComplete:p,isSubmitted:i||((m=d[n])==null?void 0:m.isSubmitted)}};if(e({uploadProgress:s}),a[c].type!=="uploading")return;const f=Object.entries(d).every(([b,v])=>!v.isSubmitted||v.isComplete||n==b&&r);if(f&&c>=a.length-1)return l(E.APP_ID);e({index:f?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:a,responseGroupUid:l,submit:c,trackHistory:d,uploadProgress:p,viewedCardCount:s}=t(),f=Date.now(),_=[...o],h=_[a],{type:m}=n.data,b={...n.data},v=b.value;Yr(h)&&(h.value=v),b.answeredAt=f,delete b.type;const y={response:b,responseGroupUid:l,questionIndex:a};let x=m==="multiplechoice"?Object.values(v).find(w=>w!==!1):v;m==="multipleselect"&&(x=_[a].props.options.reduce((w,g)=>(v[g.id]&&w.push(g.value),w),[]));const O=r.slice(0);O[a]=x,e({allResponses:O});const T=In({cards:_,index:a,hasEndCard:!!n.endCard,uploadProgress:p,allResponses:O});if(T===null){y.completedAt=f,c(y),n.completeSurvey();return}else Be.has(_[T].type)&&(y.completedAt=f);const C=c(y);Be.has(_[T].type)||C.finally(()=>{d({event:"seen",index:T})});const R=_[T];_[T]&&i&&i("survey.question",{qid:R.name,props:R.props}),e({cards:_,hasViewedEmbed:!1,index:T,viewedCardCount:s+1})},pendingRemoveIframeReason:null,previewKey:null,recorder:()=>{},recorderEventEmitter:E.eventEmitter,resolveTrackedPromise:()=>{const{removeIframeIfReady:n}=t();e(r=>({unresolvedRequestCount:r.unresolvedRequestCount-1})),n()},responseGroupUid:"",remove:({initiator:n,studyType:r})=>{const{removeIframeIfReady:o}=t();e({pendingRemoveIframeReason:n,studyType:r}),o()},removeIframeIfReady:()=>{const{eventEmitFn:n,pendingRemoveIframeReason:r,unresolvedRequestCount:o,studyType:i}=t();r&&o===0&&(n(E.SprigEvent.SurveyWillClose,{name:E.SprigEvent.SurveyWillClose,initiator:r,studyType:i}),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 a=t();if(!i||Ie(a))return;const l={responseGroupUid:i,meta:a.meta,customMetadata:a.customMetadata,responses:[o],completedAt:n,previewKey:a.previewKey};E.info(`Submitting response: ${JSON.stringify(o.value,null,2)} for survey: ${a.surveyId}`),n&&E.info("Survey complete");const c=await a.trackPromise(E.sprigFetch(`${a.apiURL}/sdk/1/environments/${a.envId}/visitors/${a.userId}/responses/submit`,{body:JSON.stringify(l),headers:a.headers,method:"POST"}));if(!c.ok){c.reportError&&(console.warn("[Sprig] (ERR-427) Failed to submit response",c.error),await a.trackPromise(Et(a,"submitResponse",c.error)));return}a.eventEmitFn(E.SprigEvent.QuestionAnswered,{...o,questionIndex:r})},surveyId:0,tabTitle:"",trackHistory:async({event:n,index:r,isNew:o=!1})=>{const i=t();if(Ie(i))return;const{cards:a,index:l}=i,c=r!==void 0?a[r]:a[l],d={sid:i.surveyId,qid:c.name,action:n,vid:i.userId,eid:i.envId,isNew:o,responseGroupUid:i.responseGroupUid,previewKey:i.previewKey},p=await i.trackPromise(E.sprigFetch(`${i.apiURL}/sdk/1/visitors/${i.userId}/surveys/${i.surveyId}/history`,{body:JSON.stringify(d),headers:i.headers,method:"POST"}));!p.ok&&p.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey event",p.error),await i.trackPromise(Et(i,"trackHistory",p.error)))},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:a,useMobileStyling:l,viewDocument:c}=t(),p=n[r].type==="matrix";setTimeout(()=>{var _,h;const[s,f]=E.calculateFrameDimensions(c);E.shouldDirectEmbed(o)?i(E.SprigEvent.SurveyHeight,{name:E.SprigEvent.SurveyHeight,contentFrameHeight:s}):((_=a.setHeight)==null||_.call(a,s),l||(h=a.setWidth)==null||h.call(a,p?f:parseInt(E.DEFAULT_WIDTH)))},100)},uploadingCardViewed:!1,uploadProgress:{},useDesktopPrototype:void 0,useMobileStyling:!1,userId:"",viewDocument:window.document,viewedCardCount:0})),Ie=e=>!e.userId||e.meta&&e.meta.mode==="test"||e.isPreview,Et=async(e,t,n)=>{const{mode:r,userId:o,envId:i,apiURL:a,headers:l,viewDocument:c}=e,d=c.documentElement,p={mode:r,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:d.clientWidth,clientHeight:d.clientHeight,location:window.location.href,language:window.navigator.language},s={action:t,err:{message:n==null?void 0:n.message,stack:n==null?void 0:n.stack},meta:p,vid:o,envId:i},f=await E.sprigFetch(`${a}/sdk/1/errors`,{method:"POST",headers:Object.assign({"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},l),body:JSON.stringify(s)});if(!f.ok)console.warn("[Sprig] (ERR-444) Failed to report error to API",n);else{const{presignedUrl:_}=f.json;E.uploadLogfile(_)}},N=(...e)=>e.filter(Boolean).join(" "),M=(e,t,n)=>{const r=t?"--mobile":"--desktop",o=n?`${r}_${n}`:"";return`${e+r} ${e+o} ${e}`},Jr=(e,t)=>`${e} ${e}__${t}`;var Xr=0;function u(e,t,n,r,o,i){var a,l,c={};for(l in t)l=="ref"?a=t[l]:c[l]=t[l];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Xr,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(l in a)c[l]===void 0&&(c[l]=a[l]);return k.vnode&&k.vnode(d),d}const V=e=>u("button",{...e,className:N("ul-card-text__button",e.className),id:"ul-card-text__button"}),Tt=({plainText:e,richText:t,id:n,className:r,isHeader:o})=>t?u("div",{className:r,dangerouslySetInnerHTML:{__html:t},id:n}):e?o?u("h1",{className:r,id:n,children:e}):u("p",{className:r,id:n,children:e}):null,z=({message:e,properties:t})=>{const n=t==null?void 0:t.captionText;return u("div",{className:"question-header-container",children:[u(Tt,{className:"ul-question",id:"ul-question",isHeader:!0,plainText:e,richText:t==null?void 0:t.questionHtml}),u(Tt,{className:"ul-caption",id:"ul-caption",plainText:n,richText:t==null?void 0:t.captionHtml})]})},Pt=({buttonText:e="View Prototype",handleClick:t})=>u("button",{className:"prototype-button",onClick:t,children:e},"prototype-btn"),Y=({defaultBody:e,embeddedType:t="prototype",properties:n})=>{var s;const{handleClickEmbedButton:r,hasViewedEmbed:o,headers:i,useDesktopPrototype:a}=I(f=>({handleClickEmbedButton:f.handleClickEmbedButton,hasViewedEmbed:f.hasViewedEmbed,headers:f.headers,useDesktopPrototype:f.useDesktopPrototype})),l=(n==null?void 0:n.conceptUrl)||((s=n==null?void 0:n.consentDocument)==null?void 0:s.url),c=window.innerWidth<E.EMBED_MOBILE_MAX_WIDTH,d=i["userleap-platform"],p=(f,_)=>{f.preventDefault(),r(_)};if(!a&&c&&!o&&l&&["email","link"].includes(d)){if(t==="prototype")return u(Pt,{handleClick:f=>{p(f,"question.prototype.click")}});if(t==="pdf")return u(Pt,{buttonText:(n==null?void 0:n.viewDocumentText)||"View Document",handleClick:f=>{p(f,"question.agreement.click")}})}return e()},eo=e=>A("svg",{fill:"none",height:10,viewBox:"0 0 10 10",width:10,xmlns:"http://www.w3.org/2000/svg",...e},A("path",{d:"M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005",stroke:"white",strokeLinecap:"round",strokeWidth:2})),An=({isSelected:e,id:t,divId:n,themeColor:r})=>u("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&&u(eo,{})}),$n=(e,t)=>{const n=F(0),r=()=>{if(e.current){const o=e.current;o.style.height="1px";const i=o.scrollHeight,a=o.offsetHeight-o.clientHeight,l=i+a,c=parseInt(window.getComputedStyle(o).getPropertyValue("max-height")),d=l<=c?l:c;n.current!==d&&t(),n.current=d,o.style.height=`${d}px`}};return B(r,[]),r},Je=({ariaLabel:e,border:t,choiceStyle:n={},label:r,isSelected:o,value:i,text:a,id:l,isRadio:c,useMobileStyling:d,error:p,allowTextEntry:s,noneOfTheAbove:f,promptText:_,onUserInputChanged:h})=>{const{styleNonce:m,viewDocument:b}=I(D=>({styleNonce:D.styleNonce,viewDocument:D.viewDocument})),[v,y]=H(!1);ro(b,t,m);const x=({isSelected:D,userText:ne})=>{h&&h({id:l,selected:D,value:i,userText:ne,noneOfTheAbove:f})},O=D=>{D.stopPropagation(),x({isSelected:c||!o,userText:a}),y(!1)},T=()=>{v||y(!0)},C=()=>{v&&y(!1)},R=D=>{(D.key==="Enter"||D.key===" ")&&O(D)},w={onClick:D=>O(D),onKeyPress:D=>R(D)};"ontouchstart"in b.documentElement?(w.onTouchStart=C,w.onTouchCancel=C,w.onTouchEnd=C):(w.onMouseDown=T,w.onMouseLeave=C);const g=c?`radio-${l}`:`checkbox-${l}`,S=o||v?[xe]:[],$=[...p?[Dn]:[],...S],K=r?{"aria-labelledby":`label-${l}`}:{"aria-label":e};return u("div",{className:N(M("choice",d),...$),id:`choice-div-${l}`,style:{...n,...p?{borderColor:E.ERROR_BORDER_COLOR}:{}},...w,children:[u("div",{className:N("choice-label-container"),children:[c?u("div",{...K,className:N("select-radio",...S),id:g,role:"radio",tabIndex:0}):u(An,{divId:g,id:l,isSelected:o,themeColor:t}),r&&u("label",{className:N(M("select-label",d)),htmlFor:g,id:`label-${l}`,children:r})]}),s&&o&&u("div",{className:N("choice-text-entry-container",...S),children:u(to,{onTextChange:D=>x({isSelected:o,userText:D}),promptText:_||"Please specify",textValue:a,useMobileStyling:d})})]})},to=({promptText:e,textValue:t,onTextChange:n,useMobileStyling:r})=>{const o=F(null),{update:i}=I(l=>({update:l.update})),a=$n(o,()=>i());return B(()=>{o.current&&o.current.focus()},[]),u("textarea",{"aria-label":e,"aria-multiline":"true","aria-placeholder":e,className:N(M("choice-text-input",r)),"data-gramm":"false",maxLength:5e3,name:"text",onChange:l=>{a(),l.stopPropagation(),n(l.currentTarget.value)},onClick:l=>{l.stopPropagation()},onKeyPress:l=>{l.stopPropagation()},placeholder:e,ref:o,role:"textbox",rows:1,value:t})},Rt="ul-select-style-element",xe="ul-select-active-dynamic-style",Dn="ul-select-error-dynamic-style",no=e=>e.tagName.toLowerCase()==="style",ro=(e,t,n)=>{let r=e.getElementById(Rt),o=!1;r||(r=e.createElement("style"),o=!0),no(r)&&(r.id=Rt,n&&(r.nonce=n),r.textContent=oo(t),o&&e.head.appendChild(r))},oo=e=>`
|
|
18
|
+
.${xe} {
|
|
19
|
+
border-color: ${e};
|
|
20
|
+
}
|
|
21
|
+
.${xe} .select-radio, .${xe}.select-radio {
|
|
22
|
+
border: 6px solid ${e};
|
|
23
|
+
box-shadow: none;
|
|
24
|
+
}
|
|
25
|
+
.${Dn} {
|
|
26
|
+
border-color: ${E.ERROR_BORDER_COLOR};
|
|
27
|
+
}
|
|
28
|
+
`,ce=e=>(e==null?void 0:e.buttonText)||"Next",Mn=e=>(e==null?void 0:e.skipButtonText)||"Skip",io=({className:e,message:t,next:n,properties:r,questionId:o,type:i})=>{const{useMobileStyling:a,border:l}=I(g=>({useMobileStyling:g.useMobileStyling,border:g.border})),[c,d]=H(!1),[p,s]=H(""),[f,_]=H(!1),h=r==null?void 0:r.collectName,m=(r==null?void 0:r.nameLabelText)||"Full Name",b=(r==null?void 0:r.consentText)||"I agree to the stated conditions",v=(r==null?void 0:r.submitButtonText)||"Submit",y=!!p.trim(),x=c&&(!h||y),O=(g,S=!1)=>{g.preventDefault(),g.stopPropagation();let $=null;if(!S){if(!x){_(!0);return}$={submitted:!0},h&&($.name=p)}n({value:$,questionId:o,type:i})},T=g=>{g.preventDefault(),g.stopPropagation(),s(g.currentTarget.value)},C=g=>{g.currentTarget.style.borderColor=f&&!y?E.ERROR_BORDER_COLOR:l},R=g=>{g.currentTarget.style.borderColor=f&&!y?E.ERROR_BORDER_COLOR:E.DEFAULT_BORDER_COLOR},w=()=>u("div",{children:[u(Je,{allowTextEntry:!1,border:l,error:f&&!c,id:"consent",isRadio:!1,isSelected:c,label:b,onUserInputChanged:({selected:g})=>{g!==c&&d(!c)},useMobileStyling:a}),h&&u("input",{"aria-label":m,"aria-placeholder":m,className:N(M("ul-consent-legal__name-input",a)),"data-gramm":"false",maxLength:250,name:"name",onBlur:R,onFocus:C,onInput:T,placeholder:m,style:f&&!y?{borderColor:E.ERROR_BORDER_COLOR}:{},tabIndex:0,value:p}),u("div",{className:"ul-card__button-wrapper ul-card-vertical__button-wrapper",children:[u(V,{className:x?"":"sprig-button-disabled",onClick:O,children:v}),r.required===!1&&u("button",{className:"ul-card-skip__button",onClick:g=>O(g,!0),children:Mn(r)})]})]});return u("div",{className:N(e,"ul-card__consent-legal","fade-in-transition"),children:[u(z,{message:t}),u("div",{className:"ul-rich-text-body",dangerouslySetInnerHTML:r!=null&&r.richTextBody?{__html:r.richTextBody}:void 0,id:"ul-card__consent-legal-body-container"}),u(Y,{properties:r,defaultBody:w,embeddedType:"pdf"})]},o)},ao=({activeValue:e,border:t,icon:n,isPressed:r,onSubmit:o,range:i,scaleLabelType:a,setActiveValue:l,setIsPressed:c,useMobileStyling:d,value:p})=>{const s=`option-${p}`,f=a==="number",_=a==="star",h=f&&p===e,[m,b]=p<=e&&_||p===e?r?[t,1]:[t,.3]:["",1],v=()=>{switch(a){case"star":return N(M("likert-star",d),M(`likert-star-${p}`,d));case"smiley":return N(M("likert-smiley",d),M(`likert-smiley-${p}`,d));default:return p===i?N(M("likert-number",d),M(`likert-number-${p}`,d),M("likert-last-option",d)):N(M("likert-number",d),M(`likert-number-${p}`,d))}},y=()=>{l(-1),c(!1)};return u("div",{"aria-label":f?void 0:String(p),className:v(),dangerouslySetInnerHTML:{__html:n},id:s,onClick:()=>o(),onPointerDown:()=>c(!0),onPointerEnter:()=>l(p),onPointerLeave:y,role:"radio",style:{color:f?"":m,borderColor:h?m:"",fillOpacity:h?"":b,zIndex:h?3:"auto"},tabIndex:0})},so=({className:e,labels:t,message:n,next:r,properties:o,questionId:i,type:a})=>{const{border:l,useMobileStyling:c}=I(w=>({border:w.border,useMobileStyling:w.useMobileStyling})),[d,p]=H(-1),[s,f]=H(!1),_=t&&t.left,h=t&&t.right;let m;const{range:b,scaleLabelType:v,ratingIcons:y}=o;b&&(m=Number(b));const x=m||5,O=w=>{var g,S;switch(v){case"star":return(g=y[0])==null?void 0:g.svg;case"smiley":return(S=y[w])==null?void 0:S.svg;default:return String(w+1)}},T=[...Array(x)].map((w,g)=>{const S=g+1;return u(ao,{activeValue:d,border:l,icon:O(g),isPressed:s,onSubmit:()=>r({value:S,questionId:i,type:a}),range:x,scaleLabelType:v,setActiveValue:p,setIsPressed:f,useMobileStyling:c,value:S},g)}),C=w=>{w.preventDefault(),w.stopPropagation(),r({value:null,questionId:i,type:a})},R=()=>u(U,{children:[u("div",{"aria-label":`Rating (1 - ${x})`,className:"ul-card--likert__numbers",role:"radiogroup",children:T}),u("div",{className:"ul-card--likert__labels",children:[u("span",{children:_}),u("span",{children:h})]}),!o.required&&u("div",{className:"ul-vertical-centered-container",children:u(V,{onClick:C,children:ce(o)})})]});return u("form",{className:N(e,"ul-card--likert","fade-in-transition"),children:[u(z,{message:n,properties:o}),u(Y,{properties:o,defaultBody:R})]},i)},lo=({className:e,message:t,next:n,options:r,properties:o,questionId:i,type:a})=>{const{border:l,useMobileStyling:c}=I(g=>({border:g.border,useMobileStyling:g.useMobileStyling})),d=o.matrixColumn,p=r.length,s=d.length,f=o.required,_=F(null),[h,m]=H(!1),b=()=>{const g=_.current;g&&m(g.clientWidth+Math.abs(g.scrollLeft)<g.scrollWidth)};B(()=>{let g;if(_.current){g=_.current;const S=new ResizeObserver($=>{m(Math.round($[0].contentRect.width)<g.scrollWidth)});return S.observe(g),()=>{g&&S.unobserve(g)}}},[]);const v=g=>{g.preventDefault(),g.stopPropagation(),n({value:x,questionId:i,type:a})},y=r.reduce((g,S)=>(g[S.id]=null,g),{}),[x,O]=H(y),T=(g,S)=>{O($=>({...$,[g]:S}))},C=f&&Object.values(x).every(g=>g==null),R=r.map(g=>u(U,{children:[u("div",{"aria-label":g.label,className:"ul-matrix-row-label",children:g.label},g.label),u("div",{className:"ul-matrix-row-options",role:"radiogroup",children:d.map((S,$)=>{const K=$===s-1;return u("div",{className:N("ul-matrix-option-wrapper",K&&"ul-matrix-last-option"),children:u(Je,{allowTextEntry:!1,ariaLabel:`${g.label}-${S.label}`,border:l,choiceStyle:{background:"transparent",border:"none",marginBottom:"0",padding:"0"},error:!1,id:`${g.id}-${S.value}`,isRadio:!0,isSelected:x[g.id]===S.value,onUserInputChanged:()=>T(g.id,S.value),useMobileStyling:c})},S.value)})})]})),w=()=>u("div",{className:"ul-card--matrix_question_container",children:[u("div",{className:N("ul-card--matrix_container",h&&"ul-matrix-scroll-gradient"),onScroll:()=>{b()},ref:_,children:u("div",{className:"ul-card--matrix_grid",style:`--numColumns: ${s}; --numRows: ${p+1}`,children:[u("div",{})," ",d.map(g=>u("div",{className:"ul-matrix-column-label",children:g.label},g.label)),R]})}),h&&u("button",{className:"ul-matrix-scroll-arrow",onClick:g=>{g.preventDefault();const S=_.current;if(S){const $=getComputedStyle(S).direction==="rtl";S.scrollLeft=$?S.clientWidth-S.scrollWidth:S.scrollWidth}},children:u("svg",{fill:"currentColor",height:"32",viewBox:"0 0 256 256",width:"32",xmlns:"http://www.w3.org/2000/svg",children:u("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"})})}),u("div",{className:"ul-card__button-wrapper",children:u(V,{disabled:C,children:ce(o)})})]});return u("form",{className:N(e,"fade-in-transition","ul-card__matrix"),id:"text-form",onSubmit:v,children:[u(z,{message:t,properties:o}),u(Y,{properties:o,defaultBody:w})]},i)},co=e=>A("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",...e},A("path",{d:"M17 10L12 15L7 10",stroke:"#0B2330",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),uo=({options:e,selectItem:t,selectedOptions:n,showCheckbox:r})=>{const[o,i]=H("0px"),a=F(!1),{themeColor:l,doc:c}=I(s=>({doc:s.viewDocument,themeColor:s.border})),d=We(s=>{if(a.current)return;const f=c.documentElement.clientHeight,_=30,h=(s==null?void 0:s.getBoundingClientRect().height)??0,m=f-_;let b=h;const v=(s==null?void 0:s.getBoundingClientRect().bottom)??0;v>m&&(b-=v-m),i(`-${b}px`),a.current=!0},[c.documentElement.clientHeight]),p=s=>`checkbox-div-${s}`;return u("div",{className:"select-list",ref:d,style:{marginBottom:o},children:e.map(s=>u("div",{className:"select-option",onClick:f=>{t(s),f.stopPropagation()},role:"option",children:[r&&u(An,{divId:p(s.id),id:s.id,isSelected:n.includes(s),themeColor:l}),s.label]},s.id))})},po=({isMultiSelect:e=!1,multiselectText:t="choices selected",onChange:n,options:r,placeholderText:o,value:i})=>{const[a,l]=H(!1),{viewDocument:c,update:d}=I(h=>({viewDocument:h.viewDocument,update:h.update})),p=()=>i.length===0?o:i.length===1?i[0].label:`${i.length} ${t}`,s=()=>{l(!a),d()};B(()=>{var m;const h=()=>{l(!1),d()};return c.addEventListener("click",h),(m=window.parent)==null||m.addEventListener("click",h),()=>{var b;(b=window.parent)==null||b.removeEventListener("click",h),c.removeEventListener("click",h)}},[c,d]);const f=h=>{var v;const m=i.some(y=>y.id===h.id),b=i.some(y=>{var x;return(x=y.optionProperties)==null?void 0:x.noneOfTheAbove});(v=h.optionProperties)!=null&&v.noneOfTheAbove&&!m?n([h]):e?n(m?i.filter(y=>y.id!==h.id):b?[h]:[...i,h]):m||n([h]),e||s()},_=i.length===0?["select-button-placeholder"]:[];return u(U,{children:[u("button",{"aria-label":"choice dropdown button",className:N("select-button",..._),onClick:h=>{h.stopPropagation(),s()},type:"button",children:[u("span",{children:p()}),u(co,{})]}),a&&u(uo,{options:r,selectedOptions:i,selectItem:f,showCheckbox:e})]})},Hn=({className:e,message:t,onSubmit:n,options:r=[],properties:o,questionId:i,type:a})=>{const{border:l,useMobileStyling:c}=I(C=>({border:C.border,useMobileStyling:C.useMobileStyling})),d=r.reduce((C,R)=>(C[R.id]={isSelected:!1},C),{}),[p,s]=H(d),f=a==="multiplechoice",_=o.required,h=r.find(C=>{var R;return(R=C.optionProperties)==null?void 0:R.noneOfTheAbove}),m=Object.entries(p).some(([C,R])=>{var S;const w=r.find($=>`${$.id}`===C),g=R.userText===void 0||R.userText.trim()==="";return((S=w==null?void 0:w.optionProperties)==null?void 0:S.allowsTextEntry)&&g&&R.isSelected}),b=Object.values(p).some(C=>C.isSelected),v=m||_&&!b,y=r.map(({id:C,label:R,value:w,optionProperties:g})=>{var D,ne;const S=`${C}`,{allowsTextEntry:$,noneOfTheAbove:K}={allowsTextEntry:!1,noneOfTheAbove:!1,...g};return u(Je,{allowTextEntry:$,border:l,error:!1,id:S,isRadio:f,isSelected:!!((D=p[S])!=null&&D.isSelected),label:R,noneOfTheAbove:K,onUserInputChanged:re=>O(re.id,re.selected,re.userText,re.noneOfTheAbove),promptText:"Please specify",text:(ne=p[C])==null?void 0:ne.userText,useMobileStyling:c,value:w},S)}),x=C=>{C.preventDefault(),C.stopPropagation(),n(p)},O=(C,R,w,g)=>{const S=Object.assign({},p);if((f||g)&&R)for(const $ of Object.values(S))$.isSelected=!1,delete $.userText;else h&&!g&&p[h.id].isSelected&&(S[h.id].isSelected=!1);S[C]={isSelected:R,userText:w},s(S)},T=()=>u("div",{children:[o.isDropdown?u(po,{isMultiSelect:!f,multiselectText:o.dropdownMultiselectedText??"choices selected",onChange:C=>{const R={...p};for(const w of r)C.includes(w)?R[w.id].isSelected=!0:R[w.id].isSelected=!1;s(R)},options:r,placeholderText:o.dropdownPlaceholderText??(f?"Select choice":"Select choice(s)"),value:r.filter(C=>p[C.id].isSelected)}):u("div",{className:N(M("ul-card__choices",c)),role:f?"radiogroup":"group",children:y}),u("div",{className:"ul-card__button-wrapper",children:u(V,{disabled:v,onClick:x,children:ce(o)})})]});return u("form",{className:N(e,"ul-card--multiple","fade-in-transition"),id:"text-form",onSubmit:x,children:[u(z,{message:t,properties:o}),u(Y,{properties:o,defaultBody:T})]},i)},fo=e=>{const{questionId:t,type:n,next:r,options:o}=e;return u(Hn,{...e,onSubmit:a=>{const l=Object.entries(a).find(([,f])=>f.isSelected)||[void 0,void 0],[c,d]=l,p=o.find(f=>`${f.id}`===c),s=d!=null&&d.userText?{[c]:{userText:d.userText}}:null;r({value:p&&c?{[c]:p.value}:{},secondaryValue:s,questionId:t,type:n})}})},_o=e=>{const{questionId:t,type:n,next:r}=e;return u(Hn,{...e,onSubmit:i=>{const a={},l=Object.entries(i).reduce((d,[p,s])=>(d[p]=s.isSelected,d),a),c=Object.entries(i).reduce((d,[p,s])=>{if(!s.userText)return d;const f=d||{};return f[p]={userText:s.userText},f},null);r({value:l,secondaryValue:c,questionId:t,type:n})}})},ho=({className:e,props:{labels:t,message:n,properties:r},next:o,questionId:i,type:a})=>{const{border:l,useMobileStyling:c}=I(h=>({border:h.border,useMobileStyling:h.useMobileStyling})),d=t&&t.left,p=t&&t.right,s=[...Array(11)].map((h,m)=>u("div",{className:N(M("nps-number",c),M(`nps-number-${m}`,c)),id:`option-${m}`,onClick:()=>o({value:m,questionId:i,type:a}),onKeyPress:b=>{b.preventDefault(),(b.key==="Enter"||b.key===" ")&&o({value:m,questionId:i,type:a})},onPointerDown:b=>{b.currentTarget.style.zIndex="2",b.currentTarget.style.borderColor=l},onPointerLeave:b=>{b.currentTarget.style.zIndex="auto",b.currentTarget.style.borderColor=E.DEFAULT_BORDER_COLOR},role:"radio",tabIndex:0,children:m},m)),f=h=>{h.preventDefault(),h.stopPropagation(),o({value:null,questionId:i,type:a})},_=()=>u("div",{children:[u("div",{className:"ul-card--nps__numbers",children:s}),u("div",{className:"ul-card--nps__labels",children:[u("span",{children:d}),u("span",{children:p})]}),!r.required&&u("div",{className:"ul-vertical-centered-container",children:u(V,{onClick:f,children:ce(r)})})]});return u("form",{className:N(e,"ul-card--nps","fade-in-transition"),children:[u(z,{message:n,properties:r}),u(Y,{properties:r,defaultBody:_})]},i)},mo=({className:e,message:t,next:n,properties:r,questionId:o,type:i})=>{const{border:a,useMobileStyling:l,update:c}=I(T=>({border:T.border,useMobileStyling:T.useMobileStyling,update:T.update})),[d,p]=H(""),s=F(null),f=d.trim(),_=r.required===!0&&!f,h=$n(s,()=>c()),m=T=>{h(),T.preventDefault(),T.stopPropagation(),p(T.currentTarget.value)},b=T=>{T.preventDefault(),T.stopPropagation(),n({value:d,questionId:o,type:i})},v=r&&r.openTextPlaceholder?r.openTextPlaceholder:"",y=T=>{T.currentTarget.style.borderColor=a},x=T=>{T.currentTarget.style.borderColor=E.DEFAULT_BORDER_COLOR},O=()=>u("div",{className:"ul-card-text",children:[u("div",{className:"ul-card-text__container",children:u("textarea",{"aria-label":v,"aria-labelledby":"ul-question","aria-multiline":"true","aria-placeholder":v,className:N(M("ul-card-text__input",l)),"data-gramm":"false",maxLength:5e3,name:"text",onBlur:x,onChange:m,onFocus:y,placeholder:v,ref:s,role:"textbox",tabIndex:0})}),u(V,{disabled:_,onClick:b,style:{backgroundColor:_?"":a},children:ce(r)}),r.footerHtml&&u("div",{className:"footer",dangerouslySetInnerHTML:{__html:r.footerHtml}})]});return u("form",{className:N(e,"ul-card--text","fade-in-transition"),id:"text-form",children:[u(z,{message:t,properties:r}),u(Y,{defaultBody:O,properties:r})]},o)},ee={RequestNeeded:1,TryAgain:2,Ready:3},Ee=e=>e.type==="av_permission",Bn=e=>e.type==="screen_permission",go=(e,t)=>!(Ee(t)?t.permissionDescriptors:[]).includes("camera")||e.getVideoTracks().length>0,Un=(e,t)=>{if(e===void 0)return ee.RequestNeeded;if(e){if(!go(e,t))return ee.RequestNeeded}else return ee.TryAgain;return ee.Ready},Nt={avStream:null,currentPage:null,mediaRecordingUids:null,nextQuestion:()=>{},passthroughData:void 0,recordingMediaTypes:void 0,screenPermissionRequested:!1,type:void 0},q=On(e=>({...Nt,reset:()=>{e(Nt)},updatePage:t=>{e(t)}}));function Ue({currentPage:e,pages:t}){const{avStream:n,recordingMediaTypes:r,updatePage:o}=q.getState(),{recorderEventEmitter:i}=I.getState();i.emit("av.permission",{"permission.descriptors":e.permissionDescriptors,"stream.ready":(a,l)=>{if(n===a)return;let c=e;if(a&&!e.permissionDescriptors.includes("camera")){const d=t.indexOf(e),p=l!=null&&l.active?d+2:d+1;l!=null&&l.active&&r&&i.emit("begin.recording",{"recording.media.types":r,"start.recording.callback":s=>o({mediaRecordingUids:s})}),c=t[p]}o({currentPage:c,avStream:a})}})}function bo({pages:e,userId:t,responseGroupUid:n,surveyId:r,questionId:o,next:i}){const{updatePage:a}=q.getState(),{eventEmitFn:l,recorderEventEmitter:c}=I.getState(),d={questionId:o,surveyId:r,visitorId:t,responseGroupUid:n};let p=0;c.emit("recorded.task.permission.screen"),l("recorded.task.permission.screen"),c.emit("permission.status",{"permission.status.callback":(f,_,h,m)=>{const b=e[p],{type:v}=b,y=["screen"];if(Ee(b)){const{permissionDescriptors:x}=b,O=x==null?void 0:x.includes("microphone"),T=x==null?void 0:x.includes("camera");O&&y.push("audio"),T&&y.push("video");const C=(f==null?void 0:f.active)&&!T,R=(f==null?void 0:f.active)&&_;(C||R)&&p++}Bn(e[p])&&h&&(p++,c.emit("begin.recording",{"recording.media.types":y,"start.recording.callback":x=>a({mediaRecordingUids:x})})),a({currentPage:e[p],avStream:f,screenPermissionRequested:h,nextQuestion:i,type:v,passthroughData:d,recordingMediaTypes:y,captureStream:m})}});const s=e[p];return s.type==="av_permission"&&Ue({currentPage:s,pages:e}),s}function Ve({status:e}){const{nextQuestion:t,passthroughData:n,mediaRecordingUids:r,reset:o}=q.getState(),{recorderEventEmitter:i,handleUploadUpdate:a,index:l}=I.getState(),c={value:{taskStatus:e},type:"recordedtask",questionId:(n==null?void 0:n.questionId)||1};n&&i.emit("finish.task",{"begin.callback":d=>{a({mediaRecordingUid:d,isSubmitted:!0,progressPct:0,isComplete:!1})},"progress.callback":(d,p)=>{a({mediaRecordingUid:d,progressPct:p.detail,isSubmitted:!1,isComplete:!1})},"upload.callback":d=>{d&&a({mediaRecordingUid:d,isComplete:!0,isSubmitted:!0,progressPct:100})},"passthrough.data":n,"current.index":l,"task.response":c,"task.complete.callback":d=>{c.value.taskDurationMillisecond=d,r&&(c.value.mediaRecordingUids=r),o(),t(c)}})}function Xe({pages:e,setIsRequestingPermission:t}){const{recorderEventEmitter:n,eventEmitFn:r}=I.getState(),{updatePage:o,currentPage:i,recordingMediaTypes:a,screenPermissionRequested:l}=q.getState();if(!i)return;const c=e.indexOf(i);switch(i.type){case"av_permission":{const d=l?c+2:c+1;l&&a&&n.emit("begin.recording",{"recording.media.types":a,"start.recording.callback":p=>{o({mediaRecordingUids:p})}}),o({currentPage:e[d]});return}case"screen_permission":n.emit("screen.permission",{"screen.permission.requested":t,"stream.ready.callback":(d,p)=>{const s=p?e[c+1]:i;p&&a&&n.emit("begin.recording",{"recording.media.types":a,"start.recording.callback":f=>{o({captureStream:p,mediaRecordingUids:f})}}),o({currentPage:s,screenPermissionRequested:!0,captureStream:p})}});return;case"start_task":r("recorded.task.start"),n.emit("recorded.task.start"),n.emit("start.task"),o({currentPage:e[c+1],screenPermissionRequested:!0});return;case"complete_task":return}}const Vn="ul-permission-graphics-container",jn="ul-permission-body",qn=N(Vn,"ul_recorded-task-inset-spacing"),Te=N("ul-horizontal-button-container","ul-horizontal-button-container-left"),Fn=({richTextBody:e})=>u("div",{className:"ul-rich-text-body",dangerouslySetInnerHTML:{__html:e},id:"ul-task-detail-container"}),Pe=({required:e,skipButtonText:t,bottom:n=!1})=>e?null:u(V,{className:N(n&&"ul-skip-button-below","ul-button-inactive"),onClick:Ve.bind(null,{status:"abandoned"}),children:t||"Skip"}),et=e=>{const{avStream:t,captureStream:n,recordingMediaTypes:r,updatePage:o}=q.getState(),i=(r==null?void 0:r.includes("audio"))||(r==null?void 0:r.includes("video"));B(()=>{const a=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(a)},[t,n,i,e,r,o])},vo=({content:e,pages:t,required:n})=>{const{buttonText:r,skipButtonText:o,taskDetail:i}=e;return et(t),u("div",{className:"ul-task-page",children:[i&&u(Fn,{richTextBody:i}),u("div",{className:Te,children:[u(V,{onClick:Xe.bind(null,{pages:t}),children:r}),u(Pe,{required:n,skipButtonText:o})]})]},"start-task")},yo=({content:e,pages:t,properties:n})=>{const{buttonText:r,skipButtonText:o}=e;et(t);const a=u(Y,{properties:n,defaultBody:()=>u("div",{className:Te,children:[u(V,{className:"ul-complete-task-button",onClick:Ve.bind(null,{status:"completed"}),children:r}),u(V,{className:N("ul-button-inactive"),onClick:Ve.bind(null,{status:"given.up"}),children:o})]})});return u("div",{className:"ul-task-page",children:[e.taskDetail&&u(Fn,{richTextBody:e.taskDetail}),a]},"complete-task")},xo=({content:e,pages:t,required:n})=>{const{buttonText:r,skipButtonText:o}=e,[i]=I(c=>[c.tabTitle]),[a,l]=H(!1);return u("div",{children:[u("div",{className:qn,children:[u("p",{style:{marginTop:"auto"},children:e.selectTabText}),u("div",{className:"ul-select-tab-container",children:u("p",{className:jn,children:i})})]}),u("div",{className:n?"":Te,children:[u(V,{disabled:a,onClick:Xe.bind(null,{pages:t,setIsRequestingPermission:l}),children:r}),u(Pe,{required:n,skipButtonText:o})]})]})},ko=({content:e})=>u("div",{className:N(Vn,"ul_permission_svg_container","ul_recorded-task-inset-spacing","ul-center-horizontally"),dangerouslySetInnerHTML:{__html:e.svg}},"ul-permission-request-graphic"),Co=({content:e,pages:t,required:n})=>{const{permissionDeniedHeadline:r,permissionDeniedBody:o,skipButtonText:i,tryAgainButtonText:a}=e,l=Ee(t[0])?t[0]:null;return B(()=>{const c=setInterval(()=>{l!==null&&Ue({currentPage:l,pages:t})},1e3);return()=>clearInterval(c)},[l,t]),l?u("div",{children:[u("div",{className:qn,children:u("p",{className:"ul-av-permission-denied-paragraph",children:[u("span",{className:"ul-av-permission-denied-headline",children:r}),u("span",{className:jn,children:o})]})}),u("div",{className:Te,children:[u(V,{onClick:Ue.bind(null,{currentPage:l,pages:t}),children:a}),u(Pe,{required:n,skipButtonText:i})]})]}):null},wo=({stream:e})=>u("video",{autoPlay:!0,className:N("ul_recorded-task-inset-spacing"),id:"ul-record-task-video-preview",muted:!0,ref:t=>{t&&(t.srcObject=e||null)}}),So=({content:e,pages:t,required:n})=>{const{skipButtonText:r}=e,{avStream:o}=q.getState();return et(t),u("div",{children:[u(wo,{stream:o}),u("div",{className:"ul-vertical-button-container-center",children:[u(V,{onClick:Xe.bind(null,{pages:t}),children:e.buttonText}),u(Pe,{bottom:!0,required:n,skipButtonText:r})]})]})},Eo=({properties:e})=>{const{pages:t,required:n}=e,{avStream:r,currentPage:o}=q.getState();if(o===void 0)return null;switch(o==null?void 0:o.type){case"av_permission":{const i=Un(r,o);return i===ee.RequestNeeded?u(ko,{content:o}):i===ee.TryAgain?u(Co,{content:o,pages:t,required:n}):u(So,{content:o,pages:t,required:n})}case"screen_permission":return u(xo,{content:o,pages:t,required:n});case"start_task":return u(vo,{content:o,pages:t,required:n});case"complete_task":return u(yo,{content:o,pages:t,properties:e});default:return null}},To=({className:e,properties:t,next:n,questionId:r})=>{const o=I(),{surveyId:i,responseGroupUid:a,userId:l}=o,c=q(),{screenPermissionRequested:d}=c,p=q(m=>m.avStream);let s=q(m=>m.currentPage);s||(s=bo({questionId:r,surveyId:i,next:m=>{n(m)},pages:t.pages,responseGroupUid:a,userId:l}));let f=s.headline,_=s.captionText;const h=Un(p,s);return Bn(s)&&d&&(f=s.permissionDeniedHeadline,_=s.permissionDeniedCaptionText),Ee(s)&&h===ee.Ready&&(f=s.permissionGrantedHeadline,_=s.permissionGrantedCaptionText),u("div",{className:N(e,"ul-center-horizontally","fade-in-transition"),children:[u(z,{message:f,properties:{captionText:_}}),u(Eo,{properties:t})]})},Po={"{{user_id}}":"externalUserId","{{email}}":"email"},Ro=(e=void 0,t={})=>{if(!e)return e;let n=e;const r=[];for(const[c,d]of Object.entries(Po))if(n.toLowerCase().includes(c))if(t[d]){const p=new RegExp(c,"gi");n=n.replace(p,t[d])}else r.push(c);if(r.length===0||!n.includes("?"))return n;const o=n.slice(0,n.indexOf("?")),a=n.slice(n.indexOf("?")+1).split("&").map(c=>c.split("=")).filter(c=>!r.includes(c[1]));if(a.length===0)return o;const l=a.map(c=>c.join("=")).join("&");return`${o}?${l}`},No=({className:e,message:t,next:n,properties:r,questionId:o,type:i})=>{const{visitorAttributes:a}=I(s=>({visitorAttributes:s.visitorAttributes})),l=(s,f=!1)=>{n({value:f?{skipped:!0}:void 0,questionId:o,type:i})},c=s=>{(s.key==="Enter"||s.key===" ")&&n({value:void 0,questionId:o,type:i})},d=()=>{const s=Ro(r&&r.buttonUrl,a);return u("div",{className:"ul-card-button-group",children:[u("a",{className:"ul-card-text__button ul-card__text-url-prompt-button",href:s,id:"ul-card-text__button",onClick:l,onKeyPress:c,rel:"noreferrer",role:s?"link":"button",tabIndex:0,target:"_blank",children:ce(r)}),r.required===!1&&u("button",{className:"ul-card-skip__button",onClick:f=>l(f,!0),children:Mn(r)})]})},p=(s,f)=>s?u("div",{className:"ul-rich-text-body",dangerouslySetInnerHTML:{__html:s},id:"ul-card__text-url-body-container"}):u("div",{className:"ul-rich-text-body",id:"ul-card__text-url-body-container",children:(f?f.split(/\n\s*\n/g):[]).map((_,h)=>u("p",{children:_},h))});return u("div",{className:N(e,"ul-card__text-url-prompt","fade-in-transition"),children:[u(z,{message:t}),p(r==null?void 0:r.richTextBody,r==null?void 0:r.body),u(Y,{defaultBody:d,properties:r})]},o)},Oo=({className:e,questionId:t})=>{const{border:n,destroy:r,endCard:o,forceBrandedLogo:i}=I(c=>({border:c.border,destroy:c.destroy,endCard:c.endCard,forceBrandedLogo:c.forceBrandedLogo}));B(()=>{setTimeout(()=>{r(E.APP_ID)},i?4e3:2e3)},[r,i]);const a=o&&o.subheader?u("p",{className:"ul-caption",children:o.subheader}):null,l=o&&o.headline?o.headline:"";return u("div",{className:N(e,"ul-card--thanks","fade-in-transition"),children:u("div",{children:u("div",{className:"ul-card--thanks-content",children:[u("div",{className:"ul-thanks-check",children:u("svg",{"aria-labelledby":"title",fill:"none",height:"99",viewBox:"0 0 81 99",width:"81",xmlns:"http://www.w3.org/2000/svg",children:[u("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"}),u("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"}),u("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"})]})}),u(z,{message:l}),a]})})},t)},Lo=({className:e})=>{const{uploadProgress:t}=I(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 u("div",{className:N(e,"ul-card--uploading","fade-in-transition"),children:[u("div",{"aria-busy":"true","aria-label":"Processing...","aria-live":"polite",className:"ul-loading-spinner-container",role:"progressbar",children:u("div",{className:"ul-loading-spinner",children:[u("div",{className:"first"}),u("div",{className:"second"}),u("div",{className:"third"}),u("div",{className:"fourth"})]})}),u(z,{message:`${n} (${o}% complete)`}),u("p",{className:"ul-caption",children:r})]})},Ot=({logoOnly:e=!1,style:t={}})=>u("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&&u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"})]}),Io=()=>{const{border:e,cards:t,forceBrandedLogo:n,headers:r,index:o,marketingUrl:i,showSurveyBrand:a,slugName:l,surveyId:c,viewedCardCount:d}=I(x=>({border:x.border,cards:x.cards,forceBrandedLogo:x.forceBrandedLogo,headers:x.headers,index:x.index,marketingUrl:x.marketingUrl,showSurveyBrand:x.showSurveyBrand,slugName:x.slugName,surveyId:x.surveyId,viewedCardCount:x.viewedCardCount})),p=F(null),s=t.filter(x=>x.type!=="uploading"&&x.type!=="thanks"),f=Qr(t,o),_=d+1,h=_/(_+f),m=`${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${l}&utm_content=${c}${n&&"&utm_term=poweredby_pill"}`;B(()=>{p.current&&(p.current.style.width=`${h*100}%`)},[h]);const b=()=>u(U,{children:[s.length>1&&u("div",{id:"ul-progress-bar-container",children:u("div",{id:"ul-progress-bar-current",ref:p,style:{border:`1px solid ${e||"#000"}`}})}),a?u("div",{className:n?"yellow-footer-logo":"",style:{marginTop:"4px"},children:u("a",{href:m,rel:"noreferrer",target:"_blank",children:u("div",{style:{display:"flex"},children:[u(Ot,{logoOnly:!1}),n&&u(Lt,{style:{display:"block",margin:"auto 0 auto 4px",transform:"rotateY(0deg) rotate(-45deg)"}})]})})}):null]}),v=()=>u("a",{dir:"ltr",href:m,rel:"noreferrer",target:"_blank",children:u("div",{className:"thank-you-card-link",children:[u("div",{className:"sprig-box-logo",children:u(Ot,{logoOnly:!0,style:{margin:"auto"}})}),u("div",{children:u("p",{children:["Capture insights about your own product",u(Lt,{style:{display:"inline-flex",marginInlineStart:"4px",verticalAlign:"middle"}})]})})]})}),y=t[o].type==="thanks";return u("footer",{className:`ul-footer ${r["userleap-platform"]==="link"?"ul-footer__link":""}`,style:a?{}:{marginBottom:"10px"},children:y&&n?v():b()})},Lt=({style:e})=>u("svg",{fill:"none",height:"10",style:e,viewBox:"0 0 12 10",width:"12",xmlns:"http://www.w3.org/2000/svg",children:[u("path",{d:"M1.47839 5.2085L10.9384 5.2085",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.35"}),u("path",{d:"M7.0686 1.15845L10.9386 5.20845L7.0686 9.25845",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.35"})]}),Ao=()=>{const{answers:e,border:t,cards:n,close:r,configureExitOnOverlayClick:o,destroy:i,endCard:a,eventEmitFn:l,fontFamily:c,headers:d,index:p,next:s,productConfig:f,showStripes:_,studyType:h,surveyId:m,update:b,useMobileStyling:v,viewDocument:y}=I(P=>({answers:P.answers,border:P.border,cards:P.cards,close:P.close,configureExitOnOverlayClick:P.configureExitOnOverlayClick,destroy:P.destroy,endCard:P.endCard,eventEmitFn:P.eventEmitFn,fontFamily:P.fontFamily,headers:P.headers,index:P.index,productConfig:P.productConfig,next:P.next,showStripes:P.showStripes,studyType:P.studyType,surveyId:P.surveyId,update:P.update,useMobileStyling:P.useMobileStyling,viewDocument:P.viewDocument})),x=F(null),O=F(!1),T=d["userleap-platform"],{props:C,type:R,name:w}=n[p],g=n.length;B(()=>{x.current&&(x.current.classList.contains("ul-app--visible")||x.current.classList.add("ul-app--visible"),!O.current&&l&&(O.current=!0,l(E.SprigEvent.SurveyAppeared,{name:E.SprigEvent.SurveyAppeared,"survey.id":m})))},[l,m]),B(()=>{b()},[p,b]),B(()=>{o(()=>r())},[r,o]);const S=he(()=>()=>r(E.APP_ID),[r]),$=P=>{P.key==="Enter"&&S()},K=async function(P){s({data:P,completeSurvey:()=>{i(E.APP_ID)},endCard:a}),E.resetScrollPosition(y)};if(e){for(const P of e)if(P.questionId===w){let Q;if(R==="multiplechoice"){const J=C.options.find(({value:Re})=>Re===P.value);if(!J)break;Q={[J.id]:J.value}}else Q=P.value;K({value:Q,type:R,questionId:P.questionId});break}}const D=()=>["email","link"].includes(d["userleap-platform"])?!1:!a||p+1!==g,ne=()=>{const P={className:"ul-card",next:K,questionId:w,type:R};switch(R){case"consentlegal":return A(io,{...P,...C,key:w});case"likert":return A(so,{...P,...C,key:w});case"matrix":return A(lo,{...P,...C,key:w});case"multiplechoice":return A(fo,{...P,...C,key:w});case"multipleselect":return A(_o,{...P,...C,key:w});case"nps":return A(ho,{...P,key:w,props:C});case"open":return A(mo,{...P,...C,key:w});case"recordedtask":return A(To,{...P,...C,key:w});case"texturlprompt":return A(No,{...P,...C,key:w});case"thanks":return A(Oo,{...P,...C,key:w});case"uploading":return A(Lo,{...P,...C,key:w});case"videovoice":return null;default:return null}},re=P=>{var tt;const Q=window.sprigAPI,J=P.target;if(!Q||!J)return;const Re=[J,J.parentElement];for(const ge of Re)if(((tt=ge==null?void 0:ge.tagName)==null?void 0:tt.toLowerCase())==="a"){P.preventDefault(),Q==null||Q.openUrl(ge.href);return}},Wn=!v&&((f==null?void 0:f.framePosition)==="center"||(f==null?void 0:f.desktopDisplay)==="center-modal"||((f==null?void 0:f.placement)||"").includes("center"));return u("div",{className:N("ul-app",E.shouldDirectEmbed(d)?"ul-app--visible":"ul-app--overlay"),dir:"auto",id:E.APP_ID,onClick:re,ref:x,style:{"--theme":t,...c?{fontFamily:c.replace(";","")}:{},...Wn?{position:"relative"}:{}},children:u("div",{className:"ul-app__container",children:u("div",{className:N(M("ul-card__container",v,h)),style:{...h!=="feedbackButton"||(f==null?void 0:f.desktopDisplay)==="center-modal"?{borderColor:t}:{},...(f==null?void 0:f.desktopDisplay)==="slider"?{margin:"0px"}:{}},children:[D()&&u("div",{className:N(M("close-container",v)),children:u("div",{"aria-label":"Close button",className:"close-btn",onClick:S,onKeyPress:$,role:"button",tabIndex:0,children:u("svg",{fill:"none",height:"18px",viewBox:"0 0 13 13",width:"18px",xmlns:"http://www.w3.org/2000/svg",children:u("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"})})})}),_&&u("div",{className:"ul-header__container",dir:"ltr",children:u("div",{className:"ul-header",children:"For development purposes only"})}),u("div",{className:N(Jr("ul-card-main-content",T)),children:ne()}),u(Io,{})]})})})},$o='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;margin:auto;text-align:start;min-width:200px}.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{background:#fff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center;word-break:break-word}.ul-card__container--desktop_feedbackButton{box-shadow:unset}.ul-card-vertical__button-wrapper{flex-direction:column;align-items:center}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;gap:16px;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:start;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web,.ul-card-main-content__android,.ul-card-main-content__ios{margin-bottom:5px}.question-header-container{margin-bottom:15px}.ul-question{color:#343442;display:block;font-size:20px;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:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:start;margin-top:8px}.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}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:#6c6c6e80}.ul-consent-legal__name-input:focus{outline:none;background:#fff}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:#00000003}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:#0000000d}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6}.likert-number--mobile:not(:first-child){margin-inline-start:-2px}.likert-number--desktop{border:1px solid #e6e6e6}.likert-number--desktop:not(:first-child){margin-inline-start:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.likert-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.likert-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.likert-number:active,.likert-number--desktop:hover{background-color:#0000000d;font-weight:500}.likert-star--mobile:not(:first-child){margin-inline-start:-2px}.likert-star--desktop:not(:first-child){margin-inline-start:-1px}.likert-star{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;font-size:18px;line-height:24px;height:67px}.likert-smiley--mobile:not(:first-child){margin-inline-start:-2px}.likert-smiley--desktop:not(:first-child){margin-inline-start:-1px}.likert-smiley{align-items:center;cursor:pointer;display:flex;justify-content:space-between;flex:1 0;color:transparent;line-height:24px;height:67px}.likert-smiley circle:not(:first-child){fill-opacity:1}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--matrix_grid{display:grid;grid-template-columns:max-content repeat(var(--numColumns),minmax(107px,1fr));grid-template-rows:repeat(var(--numRows),min-content);margin:0 auto;row-gap:4px;width:max-content}.ul-matrix-row-options{display:grid;grid-column:2/-1;grid-template-columns:subgrid}.ul-matrix-column-label{font-size:15px;max-width:150px;padding:10px 12px;text-align:center}.ul-card--matrix_container{margin-bottom:16px;overflow:auto}.ul-card--matrix_question_container{display:flex;flex-direction:column}.ul-matrix-scroll-gradient{-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent);mask-image:linear-gradient(90deg,#000 90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl){-webkit-mask-image:linear-gradient(270deg,#000,90%,transparent);mask-image:linear-gradient(270deg,#000,90%,transparent)}.ul-matrix-scroll-gradient:dir(rtl)+.ul-matrix-scroll-arrow{rotate:180deg}.ul-matrix-scroll-arrow{align-self:flex-end;background:none;border:none;color:#000;padding:0;position:absolute;top:45%}.ul-matrix-scroll-arrow:hover{cursor:pointer}.ul-matrix-option-wrapper{align-items:center;background:#f9f9f8;display:flex;justify-content:center;padding:10px 12px}.ul-matrix-last-option{border-start-end-radius:4px;border-end-end-radius:4px}.ul-matrix-row-label{align-items:center;background:#f9f9f8;border-end-start-radius:4px;border-start-start-radius:4px;display:flex;font-size:15px;left:0;right:0;max-width:200px;min-width:100px;padding:10px 12px;position:sticky}.ul-matrix-option-selected{border:6px solid var(--border);box-shadow:none}.ul-card__matrix{max-width:100%}.select-label{cursor:pointer;flex:1;overflow-wrap:anywhere;text-align:start}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6}.nps-number--mobile:not(:first-child){margin-inline-start:-2px}.nps-number--desktop{border:1px solid #e6e6e6}.nps-number--desktop:not(:first-child){margin-inline-start:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:#00000003;font-size:18px;line-height:24px;height:67px}.nps-number:first-child{border-start-start-radius:5px;border-end-start-radius:5px}.nps-number:last-child{border-start-end-radius:5px;border-end-end-radius:5px}.nps-number:active,.nps-number--desktop:hover{background-color:#0000000d;font-weight:500}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:#00000003;box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:auto;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px;overflow-wrap:break-word}.ul-card-text__input::placeholder{color:#6c6c6e80}.ul-card-text__input:focus{outline:none;background:#fff}.ul-card-text__input--desktop:hover:not(:focus){background-color:#0000000d}.ul-card__text-url-prompt-button{text-decoration:none;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:-webkit-fill-available}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-voice__video>div{margin-bottom:10px;width:100%}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px}.ul-permission-graphics-container{width:100%;height:150px;background-color:#0000000d;text-align:center;flex-direction:column;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:#000000b3}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#fff;border-radius:5px;text-align:start;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}button.ul-task-skip-button{color:#000;background-color:#fff}#ul-task-detail-container{margin-top:0;margin-bottom:0;overflow:auto}#ul-task-detail-container.ul-rich-text-body p,#ul-task-detail-container.ul-rich-text-body li,#ul-task-detail-container.ul-rich-text-body{color:#4c4c4c}#ul-task-detail-container :first-child{margin-top:0}#ul-task-detail-container :last-child{margin-bottom:20px}.ul-horizontal-button-container{width:100%;display:flex;flex-direction:row}.ul-skip-button-below{margin-top:5px}.ul-horizontal-button-container-center{justify-content:center}.ul-vertical-button-container-center{display:flex;flex-direction:column;align-items:center}.ul-horizontal-button-container-left{justify-content:flex-start}.ul_recorded-task-inset-spacing{margin-top:5px;margin-bottom:24px}.ul_permission_svg_container{justify-content:center}.ul-card-text__button{background-color:var(--theme);border-radius:3px;border:none;color:#fff;cursor:pointer;font-size:15px;font-weight:500;line-height:18px;padding:10.5px 21px}.ul-card-text__button:disabled,.ul-card-text__button.sprig-button-disabled{background-color:#0000001a;color:#0003}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-skip__button{color:#00000080;background:none;border:none;font-size:15px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;cursor:pointer}.ul-card-button-group{align-items:center;display:flex;gap:15px;justify-content:center;flex-direction:column}.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;max-height:190px;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}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out;transition-delay:.1s}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer>.yellow-footer-logo{background:#fad133;border:1px solid #f9c600;border-radius:14px;padding:6px 12px}.ul-footer>.yellow-footer-logo:hover{background:#f9c600}.ul-footer .thank-you-card-link{background:#00000003;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;display:inline-flex;font-size:14px;gap:12px;margin-bottom:15px;padding:12px;text-align:initial;width:280px}.ul-footer .thank-you-card-link:hover{background:#00000008}.ul-footer>a{color:inherit}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.sprig-box-logo{background:#f9c600;border-radius:5px;display:flex;padding:4px}.close-container{display:flex;justify-content:flex-end;width:100%}.close-btn{cursor:pointer;height:18px;margin-inline-end:-10px;position:relative;top:-10px;width:18px;z-index:1}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:#0000001a;border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{transition:width 1s ease;width:0%;height:0;border-radius:2px}.prototype-button{width:100%;background:#00000003;border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}',Do=async(e,t)=>{var r;const n=await fetch(t,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(n.ok){const o=await n.json();return(r=o==null?void 0:o.upload)==null?void 0:r.url}else return null},zn=()=>MediaRecorder.isTypeSupported("video/webm")?"video/webm":"video/mp4",It=e=>{const t={audioBitsPerSecond:128e3,videoBitsPerSecond:25e5,mimeType:zn()};return new MediaRecorder(e,t)},At=(e,t,n)=>{n[t]=[],e.ondataavailable=function(r){n[t].push(r.data)},e.currentMediaRecordingUid=t,e.start()};function $t(e,t,n,r,o,i){if(e&&e.state!=="inactive"){const{"begin.callback":a}=r,l=e.currentMediaRecordingUid;if(!l)return;a&&a(l),e.onstop=()=>Mo(t,e,n,r,l,o,i),e.stop()}}async function Mo(e,t,n,r,o,i,a){const l=I.getState().viewDocument,{"upload.callback":c,"progress.callback":d}=r,p={mediaType:n,updatedAt:new Date().toISOString(),mediaRecordingUid:o,...r["passthrough.data"]},s=await Do(p,e);if(!s){c&&c(null,{message:"failed to get upload url"});return}const f=new Blob(a,{type:zn()});if(!l.defaultView)return;const _=new l.defaultView.File([f],`recording video ${Date.now()}`),h=i.createUpload({endpoint:s,file:_,chunkSize:5120});h.on("error",m=>{c&&c(null,m)}),h.on("progress",m=>{d&&d(o,m)}),h.on("success",()=>{c&&c(o,!0)})}const Ho={chunks:{}},Bo={state:{...Ho},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&&$t(n,t,i,e,o,this.state.chunks[n==null?void 0:n.currentMediaRecordingUid]),r!=null&&r.currentMediaRecordingUid&&$t(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(a=>a.readyState==="live"&&a.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(a){console.warn("Error: failed to get permissions: "+a),t&&t(null,null);return}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){t==null||t(!1),console.warn("Error: failed to get permissions: "+r),n&&n(null,null);return}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=It(this.state.avStream);const o=E.v4();At(this.state.avRecorder,o,this.state.chunks),r.push(o)}if(t.includes("screen")&&this.state.captureStream){this.state.screenRecorder=It(this.state.captureStream);const o=E.v4();At(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:!1,!!((r=this.state.captureStream)!=null&&r.active),this.state.captureStream)},lookAheadAndStopStream(e,t,n,r){const{avRecorder:o,screenRecorder:i}=this.state,{allResponses:a}=I.getState(),l=In({cards:n,index:e,hasEndCard:r,allResponses:a});l!==null&&n[l].type==="recordedtask"||[o,i].map(c=>{c&&(c.state==="recording"&&c.stop(),c.stream.getTracks().map(d=>{d.readyState==="live"&&d.stop()}))})}},je=Object.create(Bo);Object.freeze(je);const Uo=(e,t)=>{const n=[...e],r=new Set(["videovoice","recordedtask"]);return e.some(o=>r.has(o.type))&&n.push({name:-2,props:{routingOptions:[]},type:"uploading"}),t&&n.push({name:-1,props:{routingOptions:[]},type:"thanks"}),n},Vo=({mode:e=null,viewWindow:t,viewDocument:n})=>{const r=n.documentElement;let o;try{o=t.parent.location.href}catch{o=t.location.href}return{mode:e,sw:t.screen.width,sh:t.screen.height,cw:r.clientWidth,ch:r.clientHeight,p:o,l:t.navigator.language}};function jo(e,t=!0){var T;const{answers:n,apiURL:r,customStyles:o,endCard:i,eventEmitFn:a,fontFamilyURL:l,frame:c,previewKey:d,viewDocument:p,viewWindow:s}=e,f=E.shouldDirectEmbed(e.headers)?e.frame:p.body,_=e.UpChunk||window.UpChunk,h=E.eventEmitter,m=Uo(e.cards,!!i);je.configure(h,{cards:m,hasEndCard:!!i,apiURL:r,UpChunk:_}),I.setState({apiURL:r,answers:n,border:e.border,index:e.startingQuestionIdx||0,cards:m,configureExitOnOverlayClick:e.configureExitOnOverlayClick,customMetadata:e.customMetadata,endCard:e.endCard,envId:e.envId,eventEmitFn:a,fontFamily:e.fontFamily,forceBrandedLogo:e.forceBrandedLogo,frame:c,headers:e.headers,hasViewedEmbed:!1,isPreview:e.isPreview,marketingUrl:"https://sprig.com",meta:Vo({mode:e.mode,viewWindow:s,viewDocument:p}),mode:e.mode,previewKey:d,productConfig:e.productConfig,recorder:je,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{seen:b}=I.getState();b();const{head:v}=p,y=p.createElement("style");if(y.id="sprig-style",y.textContent=$o,y.nonce=e.styleNonce,v.appendChild(y),e.fontFamily&&l&&parent){const C=p.createElement("link");C.rel="stylesheet",C.href=l,v.appendChild(C)}e.customStyles&&E.overrideStyles(p,o,e.styleNonce);const x="2.28.0",O=a||((T=c.eventEmitter)==null?void 0:T.emit);O==null||O("verify.view.version",{"view.version":x}),f&&t&&ae(u(Ao,{}),f)}const qo={configure:jo};exports.default=qo;
|
package/package.json
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
14
15
|
"types": "./dist/index.d.ts",
|
|
@@ -29,5 +30,5 @@
|
|
|
29
30
|
],
|
|
30
31
|
"author": "Sprig",
|
|
31
32
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
32
|
-
"version": "1.1.
|
|
33
|
+
"version": "1.1.4"
|
|
33
34
|
}
|