Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-slot-counter

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slot-counter - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

lib/index.esm.js
'use client';
import n,{memo as e,useState as t,useRef as r,useEffect as i,useMemo as u,useCallback as a,forwardRef as l,useImperativeHandle as o}from"react";var c=function(){return c=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},c.apply(this,arguments)};var s=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(Boolean).join(" ")},d=function(n,e){for(var t=[],r=n;r<e;r+=1)t.push(r);return t},m=function(n,e){for(var t=[],r=n;r!==e;)t.push(r),10===(r+=1)&&(r=0);return t},f=function(n,e){var t=Math.random()*(e-n);return Math.floor(t+n)},v=function(n){for(var e,t=function(n,e,t){if(t||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))}([],n,!0),r=t.length-1;r>0;r-=1){var i=Math.floor(Math.random()*(r+1));e=[t[i],t[r]],t[r]=e[0],t[i]=e[1]}return t},h=function(n){return"number"==typeof n?n:(Array.isArray(n)?n.join(""):n).replace(/[,.]/g,"")},p=function(n){return"object"!=typeof n&&!Number.isNaN(h(n))},y=function(n){return"object"==typeof n};var g="index-module_slot_wrap__ZT-DX",_="index-module_slot__DpPgW",b="index-module_separator__7GhtE",N="index-module_numbers__sqlqm",x="index-module_num__j6XH3";!function(n,e){void 0===e&&(e={});var t=e.insertAt;if(n&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}(".index-module_slot_wrap__ZT-DX {\n display: inline-block;\n white-space: nowrap;\n}\n\n.index-module_slot__DpPgW {\n display: inline-block;\n overflow: hidden;\n text-align: center;\n vertical-align: bottom;\n will-change: transform;\n}\n\n.index-module_separator__7GhtE {\n display: inline-block;\n vertical-align: bottom;\n text-align: center;\n}\n\n.index-module_numbers__sqlqm {\n display: block;\n}\n\n.index-module_num__j6XH3 {\n display: block;\n}");var A="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var C=e((function(e){var a,l,o=e.isNew,d=e.charClassName,m=e.numbersRef,f=e.active,h=e.isChanged,p=e.effectiveDuration,y=e.delay,g=e.value,b=e.startValue,C=e.disableStartValue,S=e.dummyList,E=e.hasSequentialDummyList,w=e.hasInfiniteList,M=e.valueClassName,D=e.reverse,j=e.sequentialAnimationMode,T=e.useMonospaceWidth,q=e.maxNumberWidth,k=t(!1),L=k[0],P=k[1],W=t(g),O=W[0],V=W[1],B=r(),X=r(g),Y=r(null),F=t(E?S:v(S)),H=F[0],I=F[1],R=t(0),G=R[0],Z=R[1],J=t(!1),U=J[0],z=J[1],K=G*(S.length+1);A((function(){z(!0)}),[]),A((function(){var n,e;Z(null!==(e=null===(n=Y.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:0)}),[U]),i((function(){f?requestAnimationFrame((function(){P(f)})):P(f)}),[f]),u((function(){C&&(B.current=X.current)}),[C]),i((function(){L&&(B.current=X.current,X.current=g,setTimeout((function(){return V(g)}),j?0:1e3*p*1.3/S.length+1e3*y))}),[L,g,p,y,S.length,j]),i((function(){I(E?S:v(S))}),[g,S,E]);var Q=function(){return H.map((function(e,t){return n.createElement("span",{key:t,className:x,"aria-hidden":"true"},e)}))},$=D?O:null!=b?b:O;j&&($=D?O:null!==(a=null!=b?b:B.current)&&void 0!==a?a:O,j&&o&&($=""));var nn=D&&null!=b?b:O;return j&&(nn=D&&null!==(l=null!=b?b:B.current)&&void 0!==l?l:O),n.createElement("span",{className:s(_,d),style:{display:"inline-block",width:U&&T?q:void 0,height:U?G:void 0}},n.createElement("span",{ref:m,className:N,style:c({transition:"none",transform:D?"translateY(-".concat(K,"px)"):"translateY(0px)"},L&&h&&{transform:D?"translateY(0px)":"translateY(-".concat(K,"px)"),transition:"transform ".concat(p,"s ").concat(y,"s ease-in-out")})},U?n.createElement(n.Fragment,null,n.createElement("span",{className:x,"aria-hidden":"true",style:{height:G}},$),Q(),n.createElement("span",{className:s(x,M),ref:Y},nn),w?Q():null):n.createElement("span",{className:x,"aria-hidden":"true"},null!=b?b:O)))}));var S=[",","."," "];var E=e(l((function(e,l){var c,v,_,N,x,E,w,M,D,j,T=e.value,q=e.startValue,k=e.startValueOnce,L=void 0!==k&&k,P=e.duration,W=void 0===P?.7:P,O=e.dummyCharacters,V=e.dummyCharacterCount,B=void 0===V?6:V,X=e.autoAnimationStart,Y=void 0===X||X,F=e.containerClassName,H=e.charClassName,I=e.separatorClassName,R=e.animateUnchanged,G=void 0!==R&&R,Z=e.hasInfiniteList,J=void 0!==Z&&Z,U=e.valueClassName,z=e.sequentialAnimationMode,K=void 0!==z&&z,Q=e.useMonospaceWidth,$=void 0!==Q&&Q,nn=e.direction,en=e.debounceDelay,tn=function(n,e){var r=t(n),u=r[0],a=r[1];return i((function(){if(0===e)return a(n);var t=setTimeout((function(){a(n)}),e);return function(){clearTimeout(t)}}),[n,e]),u}(T,null!=en?en:0),rn=u((function(){return function(n){return Array.isArray(n)&&y(n[0])}(tn)?"":"object"==typeof tn?JSON.stringify(tn):tn.toString()}),[tn]),un=t(!1),an=un[0],ln=un[1],on=r(),cn=r(null),sn=r(q),dn=r(null==q||Y?tn:q),mn=r(q),fn=r(0),vn=r(0),hn=t([]),pn=hn[0],yn=hn[1],gn=r(),_n=t(0),bn=_n[0],Nn=_n[1],xn=t(),An=xn[0],Cn=xn[1],Sn=r(!1),En=null!=q&&(!L||fn.current<1),wn=null!==(v=null===(c=on.current)||void 0===c?void 0:c.dummyCharacterCount)&&void 0!==v?v:B,Mn=null!==(N=null===(_=on.current)||void 0===_?void 0:_.duration)&&void 0!==N?N:W;A((function(){var n,e=cn.current;if(e&&$){var t=function(){var n=d(0,10).map((function(n){var t=document.createElement("span");t.className=null!=U?U:"",t.style.position="absolute",t.style.top="0",t.style.left="-9999px",t.style.visibility="hidden",t.textContent=n.toString(),e.appendChild(t);var r=t.getBoundingClientRect().width;return e.removeChild(t),r})),t=Math.max.apply(Math,n);Cn(t)};t(),null===(n=document.fonts)||void 0===n||n.ready.then((function(){t()}))}}),[]),i((function(){yn(d(0,wn-1).map((function(n){if(!O)return f(0,10);var e=n>=O.length?f(0,O.length):n;return O[e]})))}),[O,wn]),dn.current!==tn&&Sn.current&&vn.current>0&&(mn.current=dn.current,dn.current=tn);var Dn=Array.isArray(mn.current)?mn.current:null!==(E=null===(x=mn.current)||void 0===x?void 0:x.toString().split(""))&&void 0!==E?E:[],jn=Array.isArray(dn.current)?dn.current:null!==(M=null===(w=dn.current)||void 0===w?void 0:w.toString().split(""))&&void 0!==M?M:[],Tn=Array.isArray(sn.current)?sn.current:null!==(j=null===(D=sn.current)||void 0===D?void 0:D.toString().split(""))&&void 0!==j?j:[],qn=u((function(){return Array.isArray(tn)?tn:null==tn?void 0:tn.toString().split("")}),[tn]),kn=u((function(){return Array.isArray(q)?q:null==q?void 0:q.toString().split("")}),[q]),Ln=Dn.length!==jn.length,Pn=[];jn.forEach((function(n,e){var t=jn.length-e-1,r=En?Tn:Dn;(jn[t]!==r[t]||Ln||G)&&Pn.push(t)})),Pn.reverse();var Wn=u((function(){return Math.min(.1,Mn/qn.length)}),[Mn,qn.length]),On=a((function(){gn.current&&clearTimeout(gn.current),ln(!1),fn.current=vn.current,fn.current+=1,gn.current=setTimeout((function(){vn.current+=1,ln(!0)}),20)}),[]),Vn=a((function(n){var e=En?q:mn.current;if(null==e||!p(e)||!p(tn))return[];var t=e.toString().length,r=tn.toString().length,i=t<r,u=Math.abs(t-r),a=Number(h(e)),l=Number(h(tn)),o=Number(a.toString()[i?-u+n:u+n]||0),c=Number(l.toString()[n]||0);return c===o?[]:a<l?m((o+1)%10,c):m((c+1)%10,o)}),[En,tn,q]),Bn=a((function(){Nn((function(n){return n+1}))}),[]);i((function(){(Sn.current||null!=mn.current)&&(Sn.current||null==sn.current)&&(Sn.current||Y)&&On()}),[rn,On,Y]),i((function(){Y&&On()}),[Y,On]),i((function(){requestAnimationFrame((function(){Sn.current=!0}))}),[]),o(l,(function(){return{startAnimation:Un,refreshStyles:Bn}}));var Xn,Yn,Fn,Hn=null==q||Y||0!==fn.current?qn:kn||[],In=((null==kn?void 0:kn.length)||0)-Hn.length,Rn=(Yn=r(Xn=Hn),Fn=r(Yn.current),i((function(){var n,e,t=null===(n=Fn.current)||void 0===n?void 0:n.join(","),r=Xn.join(","),i=null===(e=Yn.current)||void 0===e?void 0:e.join(",");t!==r&&i!==r&&(Fn.current=Yn.current,Yn.current=Xn)})),{getPrevDependencies:a((function(){return Fn.current}),[]),setPrevDependenciesToSameAsCurrent:a((function(){Fn.current=Yn.current}),[])}),Gn=Rn.getPrevDependencies,Zn=Rn.setPrevDependenciesToSameAsCurrent,Jn=Hn.length-Gn().length,Un=a((function(n){null==q||L||(mn.current=void 0),on.current=n,On(),Zn()}),[q,L,On,Zn]),zn=-1;return n.createElement("span",{key:bn,className:s(F,g)},Hn.map((function(e,t){var r,i,u=Pn.includes(t),a=(u?Pn.indexOf(t):0)*Wn,l=mn.current,o=null!=q&&!!L&&fn.current>1,c=null!=tn&&null!=l&&p(tn)&&p(l)&&h(tn)<h(l);if((null===(r=on.current)||void 0===r?void 0:r.direction)&&(c="top-down"===(null===(i=on.current)||void 0===i?void 0:i.direction)),nn&&(c="top-down"===nn),!y(e)&&S.includes(e))return n.createElement("span",{key:jn.length-t-1,className:s(b,I)},e);var d=K&&(!Y||vn.current>1);return zn+=1,n.createElement(C,{key:Hn.length-t-1,index:t,isNew:Jn>0&&t<Jn,maxNumberWidth:An,numbersRef:cn,active:an,isChanged:u,charClassName:H,effectiveDuration:Mn,delay:a,value:e,startValue:o||null==kn?void 0:kn[t+In],disableStartValue:o,dummyList:d?Vn(zn):pn,hasSequentialDummyList:d,hasInfiniteList:J,valueClassName:U,reverse:c,sequentialAnimationMode:K,useMonospaceWidth:$})})))})));export{E as default};
import n,{memo as e,useState as t,useRef as r,useEffect as i,useMemo as u,useCallback as a,forwardRef as l,useImperativeHandle as o}from"react";var c=function(){return c=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},c.apply(this,arguments)};var s=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(Boolean).join(" ")},d=function(n,e){for(var t=[],r=n;r<e;r+=1)t.push(r);return t},m=function(n,e){for(var t=[],r=n;r!==e;)t.push(r),10===(r+=1)&&(r=0);return t},f=function(n,e){var t=Math.random()*(e-n);return Math.floor(t+n)},v=function(n){for(var e,t=function(n,e,t){if(t||2===arguments.length)for(var r,i=0,u=e.length;i<u;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return n.concat(r||Array.prototype.slice.call(e))}([],n,!0),r=t.length-1;r>0;r-=1){var i=Math.floor(Math.random()*(r+1));e=[t[i],t[r]],t[r]=e[0],t[i]=e[1]}return t},h=function(n){return"number"==typeof n?n:(Array.isArray(n)?n.join(""):n).replace(/[,.]/g,"")},p=function(n){return"object"!=typeof n&&!Number.isNaN(h(n))},y=function(n){return"object"==typeof n};var g="index-module_slot_wrap__ZT-DX",_="index-module_slot__DpPgW",b="index-module_separator__7GhtE",N="index-module_numbers__sqlqm",x="index-module_num__j6XH3";!function(n,e){void 0===e&&(e={});var t=e.insertAt;if(n&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===t&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n))}}(".index-module_slot_wrap__ZT-DX {\n display: inline-block;\n white-space: nowrap;\n}\n\n.index-module_slot__DpPgW {\n display: inline-block;\n overflow: hidden;\n text-align: center;\n vertical-align: bottom;\n will-change: transform;\n}\n\n.index-module_separator__7GhtE {\n display: inline-block;\n vertical-align: bottom;\n text-align: center;\n}\n\n.index-module_numbers__sqlqm {\n display: block;\n}\n\n.index-module_num__j6XH3 {\n display: block;\n}");var A="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;var C=e((function(e){var a,l,o=e.isNew,d=e.charClassName,m=e.numbersRef,f=e.active,h=e.isChanged,p=e.effectiveDuration,y=e.delay,g=e.value,b=e.startValue,C=e.disableStartValue,S=e.dummyList,E=e.hasSequentialDummyList,w=e.hasInfiniteList,M=e.valueClassName,D=e.reverse,T=e.sequentialAnimationMode,j=e.useMonospaceWidth,q=e.maxNumberWidth,k=t(!1),L=k[0],P=k[1],W=t(g),O=W[0],V=W[1],B=r(),X=r(g),Y=r(null),F=t(E?S:v(S)),H=F[0],I=F[1],R=t(0),G=R[0],Z=R[1],J=t(!1),U=J[0],z=J[1],K=G*(S.length+1);A((function(){z(!0)}),[]),A((function(){var n,e;Z(null!==(e=null===(n=Y.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:0)}),[U]),i((function(){f?requestAnimationFrame((function(){P(f)})):P(f)}),[f]),u((function(){C&&(B.current=X.current)}),[C]),i((function(){L&&(B.current=X.current,X.current=g,setTimeout((function(){return V(g)}),T?0:1e3*p*1.3/S.length+1e3*y))}),[L,g,p,y,S.length,T]),i((function(){I(E?S:v(S))}),[g,S,E]);var Q=function(){return H.map((function(e,t){return n.createElement("span",{key:t,className:x,"aria-hidden":"true"},e)}))},$=D?O:null!=b?b:O;T&&($=D?O:null!==(a=null!=b?b:B.current)&&void 0!==a?a:O,T&&o&&($=""));var nn=D&&null!=b?b:O;return T&&(nn=D&&null!==(l=null!=b?b:B.current)&&void 0!==l?l:O),n.createElement("span",{className:s(_,d),style:{display:"inline-block",width:U&&j?q:void 0,height:U?G:void 0}},n.createElement("span",{ref:m,className:N,style:c({transition:"none",transform:D?"translateY(-".concat(K,"px)"):"translateY(0px)"},L&&h&&{transform:D?"translateY(0px)":"translateY(-".concat(K,"px)"),transition:"transform ".concat(p,"s ").concat(y,"s ease-in-out")})},U?n.createElement(n.Fragment,null,n.createElement("span",{className:x,"aria-hidden":"true",style:{height:G}},$),Q(),n.createElement("span",{className:s(x,M),ref:Y},nn),w?Q():null):n.createElement("span",{className:x,"aria-hidden":"true"},null!=b?b:O)))}));var S=[",","."," "];var E=e(l((function(e,l){var c,v,_,N,x,E,w,M,D,T,j=e.value,q=e.startValue,k=e.startValueOnce,L=void 0!==k&&k,P=e.duration,W=void 0===P?.7:P,O=e.dummyCharacters,V=e.dummyCharacterCount,B=void 0===V?6:V,X=e.autoAnimationStart,Y=void 0===X||X,F=e.containerClassName,H=e.charClassName,I=e.separatorClassName,R=e.animateUnchanged,G=void 0!==R&&R,Z=e.hasInfiniteList,J=void 0!==Z&&Z,U=e.valueClassName,z=e.sequentialAnimationMode,K=void 0!==z&&z,Q=e.useMonospaceWidth,$=void 0!==Q&&Q,nn=e.direction,en=e.debounceDelay,tn=function(n,e){var r=t(n),u=r[0],a=r[1];return i((function(){if(0===e)return a(n);var t=setTimeout((function(){a(n)}),e);return function(){clearTimeout(t)}}),[n,e]),u}(j,null!=en?en:0),rn=u((function(){return function(n){return Array.isArray(n)&&y(n[0])}(tn)?"":"object"==typeof tn?JSON.stringify(tn):tn.toString()}),[tn]),un=t(!1),an=un[0],ln=un[1],on=r(),cn=r(null),sn=r(q),dn=r(null==q||Y?tn:q),mn=r(q),fn=r(0),vn=r(0),hn=t([]),pn=hn[0],yn=hn[1],gn=r(),_n=t(0),bn=_n[0],Nn=_n[1],xn=t(),An=xn[0],Cn=xn[1],Sn=r(!1),En=null!=q&&(!L||fn.current<1),wn=null!==(v=null===(c=on.current)||void 0===c?void 0:c.dummyCharacterCount)&&void 0!==v?v:B,Mn=null!==(N=null===(_=on.current)||void 0===_?void 0:_.duration)&&void 0!==N?N:W;A((function(){var n,e=cn.current;if(e&&$){var t=function(){var n=d(0,10).map((function(n){var t=document.createElement("span");t.className=null!=U?U:"",t.style.position="absolute",t.style.top="0",t.style.left="-9999px",t.style.visibility="hidden",t.textContent=n.toString(),e.appendChild(t);var r=t.getBoundingClientRect().width;return e.removeChild(t),r})),t=Math.max.apply(Math,n);Cn(t)};t(),null===(n=document.fonts)||void 0===n||n.ready.then((function(){t()}))}}),[]),i((function(){yn(d(0,wn-1).map((function(n){if(!O)return f(0,10);var e=n>=O.length?f(0,O.length):n;return O[e]})))}),[O,wn]),dn.current!==tn&&Sn.current&&vn.current>0&&(mn.current=dn.current,dn.current=tn);var Dn=Array.isArray(mn.current)?mn.current:null!==(E=null===(x=mn.current)||void 0===x?void 0:x.toString().split(""))&&void 0!==E?E:[],Tn=Array.isArray(dn.current)?dn.current:null!==(M=null===(w=dn.current)||void 0===w?void 0:w.toString().split(""))&&void 0!==M?M:[],jn=Array.isArray(sn.current)?sn.current:null!==(T=null===(D=sn.current)||void 0===D?void 0:D.toString().split(""))&&void 0!==T?T:[],qn=u((function(){return Array.isArray(tn)?tn:null==tn?void 0:tn.toString().split("")}),[tn]),kn=u((function(){return Array.isArray(q)?q:null==q?void 0:q.toString().split("")}),[q]),Ln=Dn.length!==Tn.length,Pn=[];Tn.forEach((function(n,e){var t=Tn.length-e-1,r=En?jn:Dn;(Tn[t]!==r[t]||Ln||G)&&Pn.push(t)})),Pn.reverse();var Wn=u((function(){return Math.min(.1,Mn/qn.length)}),[Mn,qn.length]),On=a((function(){gn.current&&clearTimeout(gn.current),ln(!1),fn.current=vn.current,fn.current+=1,gn.current=setTimeout((function(){vn.current+=1,ln(!0)}),20)}),[]),Vn=a((function(n){var e=En?q:mn.current;if(null==e||!p(e)||!p(tn))return[];var t=e.toString().length,r=tn.toString().length,i=t<r,u=Math.abs(t-r),a=Number(h(e)),l=Number(h(tn)),o=Number(a.toString()[i?-u+n:u+n]||0),c=Number(l.toString()[n]||0);return c===o?[]:a<l?m((o+1)%10,c):m((c+1)%10,o)}),[En,tn,q]),Bn=a((function(){Nn((function(n){return n+1}))}),[]);i((function(){(Sn.current||null!=mn.current)&&(Sn.current||null==sn.current)&&(Sn.current||Y)&&On()}),[rn,On,Y]),i((function(){Y&&On()}),[Y,On]),i((function(){requestAnimationFrame((function(){Sn.current=!0}))}),[]),o(l,(function(){return{startAnimation:Gn,refreshStyles:Bn}}));var Xn=null==q||Y||0!==fn.current?qn:kn||[],Yn=((null==kn?void 0:kn.length)||0)-Xn.length,Fn=function(n){var e,t=r(n),u=r(t.current),l=n.join(","),o=null===(e=t.current)||void 0===e?void 0:e.join(",");return i((function(){o!==l&&(u.current=(null==o?void 0:o.split(","))||[],t.current=l.split(","))}),[l,o]),{getPrevDependencies:a((function(){return u.current}),[]),setPrevDependenciesToSameAsCurrent:a((function(){u.current=t.current}),[])}}(Xn),Hn=Fn.getPrevDependencies,In=Fn.setPrevDependenciesToSameAsCurrent,Rn=Xn.length-Hn().length,Gn=a((function(n){null==q||L||(mn.current=void 0),on.current=n,On(),In()}),[q,L,On,In]),Zn=-1;return n.createElement("span",{key:bn,className:s(F,g)},Xn.map((function(e,t){var r,i,u=Pn.includes(t),a=(u?Pn.indexOf(t):0)*Wn,l=mn.current,o=null!=q&&!!L&&fn.current>1,c=null!=tn&&null!=l&&p(tn)&&p(l)&&h(tn)<h(l);if((null===(r=on.current)||void 0===r?void 0:r.direction)&&(c="top-down"===(null===(i=on.current)||void 0===i?void 0:i.direction)),nn&&(c="top-down"===nn),!y(e)&&S.includes(e))return n.createElement("span",{key:Tn.length-t-1,className:s(b,I)},e);var d=K&&(!Y||vn.current>1);return Zn+=1,n.createElement(C,{key:Xn.length-t-1,index:t,isNew:Rn>0&&t<Rn,maxNumberWidth:An,numbersRef:cn,active:an,isChanged:u,charClassName:H,effectiveDuration:Mn,delay:a,value:e,startValue:o||null==kn?void 0:kn[t+Yn],disableStartValue:o,dummyList:d?Vn(Zn):pn,hasSequentialDummyList:d,hasInfiniteList:J,valueClassName:U,reverse:c,sequentialAnimationMode:K,useMonospaceWidth:$})})))})));export{E as default};
//# sourceMappingURL=index.esm.js.map
'use client';
"use strict";var e=require("react"),n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var u in n=arguments[t])Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u]);return e},n.apply(this,arguments)};var t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},r=function(e,n){for(var t=[],r=e;r<n;r+=1)t.push(r);return t},u=function(e,n){for(var t=[],r=e;r!==n;)t.push(r),10===(r+=1)&&(r=0);return t},a=function(e,n){var t=Math.random()*(n-e);return Math.floor(t+e)},i=function(e){for(var n,t=function(e,n,t){if(t||2===arguments.length)for(var r,u=0,a=n.length;u<a;u++)!r&&u in n||(r||(r=Array.prototype.slice.call(n,0,u)),r[u]=n[u]);return e.concat(r||Array.prototype.slice.call(n))}([],e,!0),r=t.length-1;r>0;r-=1){var u=Math.floor(Math.random()*(r+1));n=[t[u],t[r]],t[r]=n[0],t[u]=n[1]}return t},l=function(e){return"number"==typeof e?e:(Array.isArray(e)?e.join(""):e).replace(/[,.]/g,"")},o=function(e){return"object"!=typeof e&&!Number.isNaN(l(e))},s=function(e){return"object"==typeof e};var c="index-module_slot_wrap__ZT-DX",d="index-module_slot__DpPgW",f="index-module_separator__7GhtE",m="index-module_numbers__sqlqm",v="index-module_num__j6XH3";!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css","top"===t&&r.firstChild?r.insertBefore(u,r.firstChild):r.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}(".index-module_slot_wrap__ZT-DX {\n display: inline-block;\n white-space: nowrap;\n}\n\n.index-module_slot__DpPgW {\n display: inline-block;\n overflow: hidden;\n text-align: center;\n vertical-align: bottom;\n will-change: transform;\n}\n\n.index-module_separator__7GhtE {\n display: inline-block;\n vertical-align: bottom;\n text-align: center;\n}\n\n.index-module_numbers__sqlqm {\n display: block;\n}\n\n.index-module_num__j6XH3 {\n display: block;\n}");var h="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var p=e.memo((function(r){var u,a,l=r.isNew,o=r.charClassName,s=r.numbersRef,c=r.active,f=r.isChanged,p=r.effectiveDuration,y=r.delay,g=r.value,b=r.startValue,S=r.disableStartValue,_=r.dummyList,C=r.hasSequentialDummyList,N=r.hasInfiniteList,x=r.valueClassName,E=r.reverse,A=r.sequentialAnimationMode,M=r.useMonospaceWidth,R=r.maxNumberWidth,k=e.useState(!1),w=k[0],D=k[1],j=e.useState(g),q=j[0],T=j[1],L=e.useRef(),P=e.useRef(g),W=e.useRef(null),O=e.useState(C?_:i(_)),V=O[0],B=O[1],H=e.useState(0),I=H[0],X=H[1],Y=e.useState(!1),F=Y[0],G=Y[1],Z=I*(_.length+1);h((function(){G(!0)}),[]),h((function(){var e,n;X(null!==(n=null===(e=W.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:0)}),[F]),e.useEffect((function(){c?requestAnimationFrame((function(){D(c)})):D(c)}),[c]),e.useMemo((function(){S&&(L.current=P.current)}),[S]),e.useEffect((function(){w&&(L.current=P.current,P.current=g,setTimeout((function(){return T(g)}),A?0:1e3*p*1.3/_.length+1e3*y))}),[w,g,p,y,_.length,A]),e.useEffect((function(){B(C?_:i(_))}),[g,_,C]);var J=function(){return V.map((function(n,t){return e.createElement("span",{key:t,className:v,"aria-hidden":"true"},n)}))},U=E?q:null!=b?b:q;A&&(U=E?q:null!==(u=null!=b?b:L.current)&&void 0!==u?u:q,A&&l&&(U=""));var z=E&&null!=b?b:q;return A&&(z=E&&null!==(a=null!=b?b:L.current)&&void 0!==a?a:q),e.createElement("span",{className:t(d,o),style:{display:"inline-block",width:F&&M?R:void 0,height:F?I:void 0}},e.createElement("span",{ref:s,className:m,style:n({transition:"none",transform:E?"translateY(-".concat(Z,"px)"):"translateY(0px)"},w&&f&&{transform:E?"translateY(0px)":"translateY(-".concat(Z,"px)"),transition:"transform ".concat(p,"s ").concat(y,"s ease-in-out")})},F?e.createElement(e.Fragment,null,e.createElement("span",{className:v,"aria-hidden":"true",style:{height:I}},U),J(),e.createElement("span",{className:t(v,x),ref:W},z),N?J():null):e.createElement("span",{className:v,"aria-hidden":"true"},null!=b?b:q)))}));var y=[",","."," "];var g=e.memo(e.forwardRef((function(n,i){var d,m,v,g,b,S,_,C,N,x,E=n.value,A=n.startValue,M=n.startValueOnce,R=void 0!==M&&M,k=n.duration,w=void 0===k?.7:k,D=n.dummyCharacters,j=n.dummyCharacterCount,q=void 0===j?6:j,T=n.autoAnimationStart,L=void 0===T||T,P=n.containerClassName,W=n.charClassName,O=n.separatorClassName,V=n.animateUnchanged,B=void 0!==V&&V,H=n.hasInfiniteList,I=void 0!==H&&H,X=n.valueClassName,Y=n.sequentialAnimationMode,F=void 0!==Y&&Y,G=n.useMonospaceWidth,Z=void 0!==G&&G,J=n.direction,U=n.debounceDelay,z=function(n,t){var r=e.useState(n),u=r[0],a=r[1];return e.useEffect((function(){if(0===t)return a(n);var e=setTimeout((function(){a(n)}),t);return function(){clearTimeout(e)}}),[n,t]),u}(E,null!=U?U:0),K=e.useMemo((function(){return function(e){return Array.isArray(e)&&s(e[0])}(z)?"":"object"==typeof z?JSON.stringify(z):z.toString()}),[z]),Q=e.useState(!1),$=Q[0],ee=Q[1],ne=e.useRef(),te=e.useRef(null),re=e.useRef(A),ue=e.useRef(null==A||L?z:A),ae=e.useRef(A),ie=e.useRef(0),le=e.useRef(0),oe=e.useState([]),se=oe[0],ce=oe[1],de=e.useRef(),fe=e.useState(0),me=fe[0],ve=fe[1],he=e.useState(),pe=he[0],ye=he[1],ge=e.useRef(!1),be=null!=A&&(!R||ie.current<1),Se=null!==(m=null===(d=ne.current)||void 0===d?void 0:d.dummyCharacterCount)&&void 0!==m?m:q,_e=null!==(g=null===(v=ne.current)||void 0===v?void 0:v.duration)&&void 0!==g?g:w;h((function(){var e,n=te.current;if(n&&Z){var t=function(){var e=r(0,10).map((function(e){var t=document.createElement("span");t.className=null!=X?X:"",t.style.position="absolute",t.style.top="0",t.style.left="-9999px",t.style.visibility="hidden",t.textContent=e.toString(),n.appendChild(t);var r=t.getBoundingClientRect().width;return n.removeChild(t),r})),t=Math.max.apply(Math,e);ye(t)};t(),null===(e=document.fonts)||void 0===e||e.ready.then((function(){t()}))}}),[]),e.useEffect((function(){ce(r(0,Se-1).map((function(e){if(!D)return a(0,10);var n=e>=D.length?a(0,D.length):e;return D[n]})))}),[D,Se]),ue.current!==z&&ge.current&&le.current>0&&(ae.current=ue.current,ue.current=z);var Ce=Array.isArray(ae.current)?ae.current:null!==(S=null===(b=ae.current)||void 0===b?void 0:b.toString().split(""))&&void 0!==S?S:[],Ne=Array.isArray(ue.current)?ue.current:null!==(C=null===(_=ue.current)||void 0===_?void 0:_.toString().split(""))&&void 0!==C?C:[],xe=Array.isArray(re.current)?re.current:null!==(x=null===(N=re.current)||void 0===N?void 0:N.toString().split(""))&&void 0!==x?x:[],Ee=e.useMemo((function(){return Array.isArray(z)?z:null==z?void 0:z.toString().split("")}),[z]),Ae=e.useMemo((function(){return Array.isArray(A)?A:null==A?void 0:A.toString().split("")}),[A]),Me=Ce.length!==Ne.length,Re=[];Ne.forEach((function(e,n){var t=Ne.length-n-1,r=be?xe:Ce;(Ne[t]!==r[t]||Me||B)&&Re.push(t)})),Re.reverse();var ke=e.useMemo((function(){return Math.min(.1,_e/Ee.length)}),[_e,Ee.length]),we=e.useCallback((function(){de.current&&clearTimeout(de.current),ee(!1),ie.current=le.current,ie.current+=1,de.current=setTimeout((function(){le.current+=1,ee(!0)}),20)}),[]),De=e.useCallback((function(e){var n=be?A:ae.current;if(null==n||!o(n)||!o(z))return[];var t=n.toString().length,r=z.toString().length,a=t<r,i=Math.abs(t-r),s=Number(l(n)),c=Number(l(z)),d=Number(s.toString()[a?-i+e:i+e]||0),f=Number(c.toString()[e]||0);return f===d?[]:s<c?u((d+1)%10,f):u((f+1)%10,d)}),[be,z,A]),je=e.useCallback((function(){ve((function(e){return e+1}))}),[]);e.useEffect((function(){(ge.current||null!=ae.current)&&(ge.current||null==re.current)&&(ge.current||L)&&we()}),[K,we,L]),e.useEffect((function(){L&&we()}),[L,we]),e.useEffect((function(){requestAnimationFrame((function(){ge.current=!0}))}),[]),e.useImperativeHandle(i,(function(){return{startAnimation:Ie,refreshStyles:je}}));var qe,Te,Le,Pe=null==A||L||0!==ie.current?Ee:Ae||[],We=((null==Ae?void 0:Ae.length)||0)-Pe.length,Oe=(qe=Pe,Te=e.useRef(qe),Le=e.useRef(Te.current),e.useEffect((function(){var e,n,t=null===(e=Le.current)||void 0===e?void 0:e.join(","),r=qe.join(","),u=null===(n=Te.current)||void 0===n?void 0:n.join(",");t!==r&&u!==r&&(Le.current=Te.current,Te.current=qe)})),{getPrevDependencies:e.useCallback((function(){return Le.current}),[]),setPrevDependenciesToSameAsCurrent:e.useCallback((function(){Le.current=Te.current}),[])}),Ve=Oe.getPrevDependencies,Be=Oe.setPrevDependenciesToSameAsCurrent,He=Pe.length-Ve().length,Ie=e.useCallback((function(e){null==A||R||(ae.current=void 0),ne.current=e,we(),Be()}),[A,R,we,Be]),Xe=-1;return e.createElement("span",{key:me,className:t(P,c)},Pe.map((function(n,r){var u,a,i=Re.includes(r),c=(i?Re.indexOf(r):0)*ke,d=ae.current,m=null!=A&&!!R&&ie.current>1,v=null!=z&&null!=d&&o(z)&&o(d)&&l(z)<l(d);if((null===(u=ne.current)||void 0===u?void 0:u.direction)&&(v="top-down"===(null===(a=ne.current)||void 0===a?void 0:a.direction)),J&&(v="top-down"===J),!s(n)&&y.includes(n))return e.createElement("span",{key:Ne.length-r-1,className:t(f,O)},n);var h=F&&(!L||le.current>1);return Xe+=1,e.createElement(p,{key:Pe.length-r-1,index:r,isNew:He>0&&r<He,maxNumberWidth:pe,numbersRef:te,active:$,isChanged:i,charClassName:W,effectiveDuration:_e,delay:c,value:n,startValue:m||null==Ae?void 0:Ae[r+We],disableStartValue:m,dummyList:h?De(Xe):se,hasSequentialDummyList:h,hasInfiniteList:I,valueClassName:X,reverse:v,sequentialAnimationMode:F,useMonospaceWidth:Z})})))})));module.exports=g;
"use strict";var e=require("react"),n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var u in n=arguments[t])Object.prototype.hasOwnProperty.call(n,u)&&(e[u]=n[u]);return e},n.apply(this,arguments)};var t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")},r=function(e,n){for(var t=[],r=e;r<n;r+=1)t.push(r);return t},u=function(e,n){for(var t=[],r=e;r!==n;)t.push(r),10===(r+=1)&&(r=0);return t},a=function(e,n){var t=Math.random()*(n-e);return Math.floor(t+e)},i=function(e){for(var n,t=function(e,n,t){if(t||2===arguments.length)for(var r,u=0,a=n.length;u<a;u++)!r&&u in n||(r||(r=Array.prototype.slice.call(n,0,u)),r[u]=n[u]);return e.concat(r||Array.prototype.slice.call(n))}([],e,!0),r=t.length-1;r>0;r-=1){var u=Math.floor(Math.random()*(r+1));n=[t[u],t[r]],t[r]=n[0],t[u]=n[1]}return t},l=function(e){return"number"==typeof e?e:(Array.isArray(e)?e.join(""):e).replace(/[,.]/g,"")},o=function(e){return"object"!=typeof e&&!Number.isNaN(l(e))},s=function(e){return"object"==typeof e};var c="index-module_slot_wrap__ZT-DX",d="index-module_slot__DpPgW",f="index-module_separator__7GhtE",m="index-module_numbers__sqlqm",v="index-module_num__j6XH3";!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css","top"===t&&r.firstChild?r.insertBefore(u,r.firstChild):r.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}(".index-module_slot_wrap__ZT-DX {\n display: inline-block;\n white-space: nowrap;\n}\n\n.index-module_slot__DpPgW {\n display: inline-block;\n overflow: hidden;\n text-align: center;\n vertical-align: bottom;\n will-change: transform;\n}\n\n.index-module_separator__7GhtE {\n display: inline-block;\n vertical-align: bottom;\n text-align: center;\n}\n\n.index-module_numbers__sqlqm {\n display: block;\n}\n\n.index-module_num__j6XH3 {\n display: block;\n}");var h="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var p=e.memo((function(r){var u,a,l=r.isNew,o=r.charClassName,s=r.numbersRef,c=r.active,f=r.isChanged,p=r.effectiveDuration,y=r.delay,g=r.value,b=r.startValue,S=r.disableStartValue,_=r.dummyList,C=r.hasSequentialDummyList,N=r.hasInfiniteList,x=r.valueClassName,E=r.reverse,A=r.sequentialAnimationMode,M=r.useMonospaceWidth,R=r.maxNumberWidth,k=e.useState(!1),w=k[0],D=k[1],q=e.useState(g),T=q[0],j=q[1],L=e.useRef(),P=e.useRef(g),W=e.useRef(null),O=e.useState(C?_:i(_)),V=O[0],B=O[1],H=e.useState(0),I=H[0],X=H[1],Y=e.useState(!1),F=Y[0],G=Y[1],Z=I*(_.length+1);h((function(){G(!0)}),[]),h((function(){var e,n;X(null!==(n=null===(e=W.current)||void 0===e?void 0:e.offsetHeight)&&void 0!==n?n:0)}),[F]),e.useEffect((function(){c?requestAnimationFrame((function(){D(c)})):D(c)}),[c]),e.useMemo((function(){S&&(L.current=P.current)}),[S]),e.useEffect((function(){w&&(L.current=P.current,P.current=g,setTimeout((function(){return j(g)}),A?0:1e3*p*1.3/_.length+1e3*y))}),[w,g,p,y,_.length,A]),e.useEffect((function(){B(C?_:i(_))}),[g,_,C]);var J=function(){return V.map((function(n,t){return e.createElement("span",{key:t,className:v,"aria-hidden":"true"},n)}))},U=E?T:null!=b?b:T;A&&(U=E?T:null!==(u=null!=b?b:L.current)&&void 0!==u?u:T,A&&l&&(U=""));var z=E&&null!=b?b:T;return A&&(z=E&&null!==(a=null!=b?b:L.current)&&void 0!==a?a:T),e.createElement("span",{className:t(d,o),style:{display:"inline-block",width:F&&M?R:void 0,height:F?I:void 0}},e.createElement("span",{ref:s,className:m,style:n({transition:"none",transform:E?"translateY(-".concat(Z,"px)"):"translateY(0px)"},w&&f&&{transform:E?"translateY(0px)":"translateY(-".concat(Z,"px)"),transition:"transform ".concat(p,"s ").concat(y,"s ease-in-out")})},F?e.createElement(e.Fragment,null,e.createElement("span",{className:v,"aria-hidden":"true",style:{height:I}},U),J(),e.createElement("span",{className:t(v,x),ref:W},z),N?J():null):e.createElement("span",{className:v,"aria-hidden":"true"},null!=b?b:T)))}));var y=[",","."," "];var g=e.memo(e.forwardRef((function(n,i){var d,m,v,g,b,S,_,C,N,x,E=n.value,A=n.startValue,M=n.startValueOnce,R=void 0!==M&&M,k=n.duration,w=void 0===k?.7:k,D=n.dummyCharacters,q=n.dummyCharacterCount,T=void 0===q?6:q,j=n.autoAnimationStart,L=void 0===j||j,P=n.containerClassName,W=n.charClassName,O=n.separatorClassName,V=n.animateUnchanged,B=void 0!==V&&V,H=n.hasInfiniteList,I=void 0!==H&&H,X=n.valueClassName,Y=n.sequentialAnimationMode,F=void 0!==Y&&Y,G=n.useMonospaceWidth,Z=void 0!==G&&G,J=n.direction,U=n.debounceDelay,z=function(n,t){var r=e.useState(n),u=r[0],a=r[1];return e.useEffect((function(){if(0===t)return a(n);var e=setTimeout((function(){a(n)}),t);return function(){clearTimeout(e)}}),[n,t]),u}(E,null!=U?U:0),K=e.useMemo((function(){return function(e){return Array.isArray(e)&&s(e[0])}(z)?"":"object"==typeof z?JSON.stringify(z):z.toString()}),[z]),Q=e.useState(!1),$=Q[0],ee=Q[1],ne=e.useRef(),te=e.useRef(null),re=e.useRef(A),ue=e.useRef(null==A||L?z:A),ae=e.useRef(A),ie=e.useRef(0),le=e.useRef(0),oe=e.useState([]),se=oe[0],ce=oe[1],de=e.useRef(),fe=e.useState(0),me=fe[0],ve=fe[1],he=e.useState(),pe=he[0],ye=he[1],ge=e.useRef(!1),be=null!=A&&(!R||ie.current<1),Se=null!==(m=null===(d=ne.current)||void 0===d?void 0:d.dummyCharacterCount)&&void 0!==m?m:T,_e=null!==(g=null===(v=ne.current)||void 0===v?void 0:v.duration)&&void 0!==g?g:w;h((function(){var e,n=te.current;if(n&&Z){var t=function(){var e=r(0,10).map((function(e){var t=document.createElement("span");t.className=null!=X?X:"",t.style.position="absolute",t.style.top="0",t.style.left="-9999px",t.style.visibility="hidden",t.textContent=e.toString(),n.appendChild(t);var r=t.getBoundingClientRect().width;return n.removeChild(t),r})),t=Math.max.apply(Math,e);ye(t)};t(),null===(e=document.fonts)||void 0===e||e.ready.then((function(){t()}))}}),[]),e.useEffect((function(){ce(r(0,Se-1).map((function(e){if(!D)return a(0,10);var n=e>=D.length?a(0,D.length):e;return D[n]})))}),[D,Se]),ue.current!==z&&ge.current&&le.current>0&&(ae.current=ue.current,ue.current=z);var Ce=Array.isArray(ae.current)?ae.current:null!==(S=null===(b=ae.current)||void 0===b?void 0:b.toString().split(""))&&void 0!==S?S:[],Ne=Array.isArray(ue.current)?ue.current:null!==(C=null===(_=ue.current)||void 0===_?void 0:_.toString().split(""))&&void 0!==C?C:[],xe=Array.isArray(re.current)?re.current:null!==(x=null===(N=re.current)||void 0===N?void 0:N.toString().split(""))&&void 0!==x?x:[],Ee=e.useMemo((function(){return Array.isArray(z)?z:null==z?void 0:z.toString().split("")}),[z]),Ae=e.useMemo((function(){return Array.isArray(A)?A:null==A?void 0:A.toString().split("")}),[A]),Me=Ce.length!==Ne.length,Re=[];Ne.forEach((function(e,n){var t=Ne.length-n-1,r=be?xe:Ce;(Ne[t]!==r[t]||Me||B)&&Re.push(t)})),Re.reverse();var ke=e.useMemo((function(){return Math.min(.1,_e/Ee.length)}),[_e,Ee.length]),we=e.useCallback((function(){de.current&&clearTimeout(de.current),ee(!1),ie.current=le.current,ie.current+=1,de.current=setTimeout((function(){le.current+=1,ee(!0)}),20)}),[]),De=e.useCallback((function(e){var n=be?A:ae.current;if(null==n||!o(n)||!o(z))return[];var t=n.toString().length,r=z.toString().length,a=t<r,i=Math.abs(t-r),s=Number(l(n)),c=Number(l(z)),d=Number(s.toString()[a?-i+e:i+e]||0),f=Number(c.toString()[e]||0);return f===d?[]:s<c?u((d+1)%10,f):u((f+1)%10,d)}),[be,z,A]),qe=e.useCallback((function(){ve((function(e){return e+1}))}),[]);e.useEffect((function(){(ge.current||null!=ae.current)&&(ge.current||null==re.current)&&(ge.current||L)&&we()}),[K,we,L]),e.useEffect((function(){L&&we()}),[L,we]),e.useEffect((function(){requestAnimationFrame((function(){ge.current=!0}))}),[]),e.useImperativeHandle(i,(function(){return{startAnimation:Ve,refreshStyles:qe}}));var Te=null==A||L||0!==ie.current?Ee:Ae||[],je=((null==Ae?void 0:Ae.length)||0)-Te.length,Le=function(n){var t,r=e.useRef(n),u=e.useRef(r.current),a=n.join(","),i=null===(t=r.current)||void 0===t?void 0:t.join(",");return e.useEffect((function(){i!==a&&(u.current=(null==i?void 0:i.split(","))||[],r.current=a.split(","))}),[a,i]),{getPrevDependencies:e.useCallback((function(){return u.current}),[]),setPrevDependenciesToSameAsCurrent:e.useCallback((function(){u.current=r.current}),[])}}(Te),Pe=Le.getPrevDependencies,We=Le.setPrevDependenciesToSameAsCurrent,Oe=Te.length-Pe().length,Ve=e.useCallback((function(e){null==A||R||(ae.current=void 0),ne.current=e,we(),We()}),[A,R,we,We]),Be=-1;return e.createElement("span",{key:me,className:t(P,c)},Te.map((function(n,r){var u,a,i=Re.includes(r),c=(i?Re.indexOf(r):0)*ke,d=ae.current,m=null!=A&&!!R&&ie.current>1,v=null!=z&&null!=d&&o(z)&&o(d)&&l(z)<l(d);if((null===(u=ne.current)||void 0===u?void 0:u.direction)&&(v="top-down"===(null===(a=ne.current)||void 0===a?void 0:a.direction)),J&&(v="top-down"===J),!s(n)&&y.includes(n))return e.createElement("span",{key:Ne.length-r-1,className:t(f,O)},n);var h=F&&(!L||le.current>1);return Be+=1,e.createElement(p,{key:Te.length-r-1,index:r,isNew:Oe>0&&r<Oe,maxNumberWidth:pe,numbersRef:te,active:$,isChanged:i,charClassName:W,effectiveDuration:_e,delay:c,value:n,startValue:m||null==Ae?void 0:Ae[r+je],disableStartValue:m,dummyList:h?De(Be):se,hasSequentialDummyList:h,hasInfiniteList:I,valueClassName:X,reverse:v,sequentialAnimationMode:F,useMonospaceWidth:Z})})))})));module.exports=g;
//# sourceMappingURL=index.js.map
{
"name": "react-slot-counter",
"version": "2.1.0",
"version": "2.1.1",
"description": "Make Your Numbers Pop: Simple and Dynamic Counters for Your UI",

@@ -5,0 +5,0 @@ "author": "almond-bongbong",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc