import{o as s,c as o,b as _,w as c,a as r,t as h,T as m,n as d,_ as b}from"./index.js";import{a as p,_ as u}from"./logo3.js";const w={class:"helloween-boss__container"},f={key:0,class:"helloween-boss__logo",src:p},H={key:1,class:"helloween-boss__logo",src:u},N={class:"helloween-boss__label"},v={key:2,class:"helloween-boss__title"},y={key:3,class:"helloween-boss__title"};function B(e,i,a,n,l,t){return s(),o("div",{class:d(["helloween-boss iface-container",{"helloween-boss_finish":e.isFinish,"helloween-boss_mobile":t.isMobile}])},[_(m,{name:"scale",appear:""},{default:c(()=>[r("div",w,[e.isFinish?(s(),o("img",H)):(s(),o("img",f)),r("div",N,h(e.isFinish?e.bossName:"Битва"),1),e.isFinish?(s(),o("div",y,"Повержен")):(s(),o("div",v,h(e.bossName),1))])]),_:1})],2)}const F={props:["openParams"],data:()=>({noAdaptation:!0,maxHealth:300,currentHealth:100,bossName:"Велес легендарный",isFinish:!0}),computed:{isMobile(){return this.$root.isMobile}},created(){if(!this.openParams)return;const[e,i,a,n,l]=this.openParams;this.isFinish=l,this.bossName=e,this.maxHealth=n,this.currentHealth=a,this.timeout=setTimeout(t=>{window.closeInterface("HelloweenBoss"),t||window.openInterface("HelloweenBossHP",[this.bossName,this.maxHealth,this.currentHealth])},i)},beforeUnmount(){clearTimeout(this.timeout)}},P=b(F,[["render",B]]);export{P as default};
