import{o as t,c as _,b as n,w as i,a as e,t as h,d as o,T as r,_ as p}from"./index.js";import{_ as c}from"./skull.js";const d={class:"helloween-boss-hp iface-container"},u={class:"helloween-boss-hp__container"},v=e("div",{class:"helloween-boss-hp__container__before"},null,-1),b={class:"helloween-boss-hp__head"},m=e("img",{src:c},null,-1),w={class:"helloween-boss-hp__title"},V={class:"helloween-boss-hp__bar-wrapper"},f={class:"helloween-boss-hp__bar"},y=e("div",{class:"helloween-boss-hp__bar__content-wrapper"},[e("div",{class:"helloween-boss-hp__bar__content"})],-1),T=e("div",{class:"helloween-boss-hp__bar__fill"},null,-1),$=e("div",{class:"helloween-boss-hp__bar__right-edge"},null,-1),N=[T,$];function P(s,a,l,x,E,H){return t(),_("div",d,[n(r,{name:"slide-up",appear:""},{default:i(()=>[e("div",u,[v,e("div",b,[m,e("div",w,h(s.bossName),1)]),e("div",V,[e("div",f,[y,e("div",{class:"helloween-boss-hp__bar__fill-wrapper",style:o({width:`${s.value*100/s.maxValue}%`})},N,4),e("div",{class:"helloween-boss-hp__bar__stroke",style:o({width:`${s.value*100/s.maxValue}%`})},null,4),e("div",{class:"helloween-boss-hp__bar__prev",style:o({width:`${s.prevValue*100/s.maxValue}%`})},null,4)])])])]),_:1})])}const g=1e3,B={props:["openParams"],data:()=>({noAdaptation:!0,value:100,prevValue:100,maxValue:300,bossName:"КЛОУН УБИЙЦА",prevValueTimeout:null}),created(){if(this.openParams){const[s,a,l]=this.openParams;this.bossName=s,this.maxValue=a,this.value=l}},methods:{setValue(s){this.value=s,clearTimeout(this.prevValueTimeout),this.prevValueTimeout=setTimeout(()=>{this.prevValue=this.value},g)}}},D=p(B,[["render",P]]);export{D as default};
