import{_ as u,a as T}from"./logo_radmir.js";import{o as i,c as l,a as r,d as _,F as O,i as C,_ as M,y as m,H as E,R as p}from"./index.js";const v={class:"animated-logo"},S=["src"],y=["src"];function f(d,A,g,o,I,a){return i(),l("div",v,[r("div",{class:"animated-logo__icon",style:_({transform:`translate(-50%, -50%) scale(${o.iconScale})`})},[r("img",{class:"animated-logo__icon-background",src:o.images[`/src/assets/images/icons/logo/logo_${a.isMobile?"hassle":"radmir"}.png`],style:_({opacity:g.opacity})},null,12,S),(i(!0),l(O,null,C(o.ICON_PARTS_COUNT,(s,e)=>(i(),l("div",{class:"animated-logo__icon-part",key:e,style:_({width:`${100/o.ICON_PARTS_COUNT}%`,opacity:o.currentIconPart===e?"1":"0"})},[r("img",{class:"animated-logo__icon-part-icon",style:_({left:`-${e*100}%`}),src:o.images[`/src/assets/images/icons/logo/logo_${a.isMobile?"hassle":"radmir"}.png`]},null,12,y)],4))),128))],4)])}const b={props:{opacity:{default:.1}},setup(){const a=Object.assign({"/src/assets/images/icons/logo/logo_hassle.png":u,"/src/assets/images/icons/logo/logo_radmir.png":T}),s=m(-1),e=m(1),n=m(!0);let t=null;const c=()=>{const N=.042857142857142864;s.value+=n.value?1:-1,e.value=1+N*s.value,s.value>=6||s.value<0?(n.value=!n.value,t=setTimeout(c,1e3)):t=setTimeout(c,20)};return E(()=>{t=setTimeout(c,20)}),p(()=>{clearTimeout(t)}),{ICON_PARTS_COUNT:6,images:a,currentIconPart:s,iconScale:e}},computed:{isMobile(){return this.$root.isMobile}}},h=M(b,[["render",f],["__scopeId","data-v-bdf788e9"]]);export{h as A};
