import{c as e,s as t,z as n}from"./useRouterState-DkU0JPAO.js";import{Vt as r}from"./button-cdxnqcgzwko8ooha-DW4HgSd6.js";var i=e(),a=n(t(),1),o=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),s=(e,t)=>(Math.random()*(t-e)+e).toFixed(2),c=({minWidth:e=30,maxWidth:t=100,minDuration:n=1.3,maxDuration:c=1.7,minDelay:l=0,maxDelay:u=.5,blockHeight:d,className:f})=>{let{width:p,duration:m,delay:h}=(0,a.useMemo)(()=>({width:o(e,t),duration:s(n,c),delay:s(l,u)}),[e,t,n,c,l,u]),g={"--skeleton-width":`${p}%`,"--shimmer-duration":`${m}s`,"--shimmer-delay":`${h}s`},_=(0,i.jsx)(`div`,{className:r(`skeleton-line`,f),style:g});return d===void 0?_:(0,i.jsx)(`div`,{className:`flex items-center`,style:{height:typeof d==`number`?`${d}px`:d},children:_})};export{c as t};