import{o as r,c as l,F as _,i as u,d as f,_ as h,y}from"./index.js";const p={class:"snowflakes"};function k(a,s,i,e,t,o){return r(),l("div",p,[(r(!0),l(_,null,u(e.snowflakes,n=>(r(),l("div",{class:"snowflakes__item",key:n.id,style:f(n.style)},null,4))),128))])}const v={props:{smallArea:{type:Boolean,default:!1},quantity:{type:Number,default:100}},setup(a){const s=y([]),i=()=>{const e=[];for(let t=0;t<a.quantity;t++){const o=a.smallArea?.5+Math.random()*.4:1.2+Math.random()*2,n=.22+Math.random()*.08;let d=7+Math.random()*7;a.smallArea&&(d*=2);const c=a.smallArea?Math.random()*15:Math.random()*8,m=.3+Math.random()*.6;e.push({id:t,style:{left:`${Math.random()*100}%`,width:`${o}vh`,height:`${(o*n).toFixed(3)}vh`,animationDuration:`${d}s`,animationDelay:`${c}s`,opacity:m}})}return e};return s.value=i(),{snowflakes:s}}},M=h(v,[["render",k],["__scopeId","data-v-e3f8dbc2"]]);export{M as S};
