import e from"../_util/classNames.mjs";import{filterEmpty as t}from"../_util/props-util/index.mjs";import n from"../config-provider/hooks/useConfigInject.mjs";import r from"../_util/vue-types/index.mjs";import{cloneElement as i}from"../_util/vnode.mjs";import a from"./SingleNumber.mjs";import{createVNode as o,defineComponent as s}from"vue";var c=s({compatConfig:{MODE:3},name:`ScrollNumber`,inheritAttrs:!1,props:{prefixCls:String,count:r.any,component:String,title:r.any,show:Boolean},setup(r,{attrs:s,slots:c}){let{prefixCls:l}=n(`scroll-number`,r);return()=>{let{prefixCls:n,count:u,title:d,show:f,component:p=`sup`,class:m,style:h,...g}={...r,...s},_={...g,style:h,"data-show":r.show,class:e(l.value,m),title:d},v=u;if(u&&Number(u)%1==0){let e=String(u).split(``);v=e.map((t,n)=>o(a,{prefixCls:l.value,count:Number(u),value:t,key:e.length-n},null))}h&&h.borderColor&&(_.style={...h,boxShadow:`0 0 0 1px ${h.borderColor} inset`});let y=t(c.default?.());return y&&y.length?i(y,{class:e(`${l.value}-custom-component`)},!1):o(p,_,{default:()=>[v]})}}});export{c as default};