"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),i=require("../_util/classNames.js"),h=require("../_util/props-util/index.js"),x=require("../_util/vnode.js"),a=require("../_util/vue-types/index.js"),S=require("../config-provider/hooks/useConfigInject.js"),v=require("./SingleNumber.js"),q={prefixCls:String,count:a.default.any,component:String,title:a.default.any,show:Boolean},y=n.defineComponent({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:q,setup(r,{attrs:d,slots:f}){const{prefixCls:o}=S.default("scroll-number",r);return()=>{const{prefixCls:w,count:e,title:m,show:P,component:p="sup",class:b,style:t,...g}={...r,...d},s={...g,style:t,"data-show":r.show,class:i.default(o.value,b),title:m};let u=e;if(e&&Number(e)%1===0){const c=String(e).split("");u=c.map((N,C)=>n.createVNode(v.default,{prefixCls:o.value,count:Number(e),value:N,key:c.length-C},null))}t&&t.borderColor&&(s.style={...t,boxShadow:`0 0 0 1px ${t.borderColor} inset`});const l=h.filterEmpty(f.default?.());return l&&l.length?x.cloneElement(l,{class:i.default(`${o.value}-custom-component`)},!1):n.createVNode(p,s,{default:()=>[u]})}}});exports.default=y;
