import{C as u}from"./Close.js";import{r as h,o as a,c as l,h as b,f as r,b as _,w as c,a as e,T as m,t as d,n as f,p as y,g as C,_ as v}from"./index.js";import{a as x,_ as w}from"./illustration.js";import"./telegram-authenticator.js";import"./close2.js";import"./Button.js";import"./donate.js";import"./money.js";const n=t=>(y("data-v-7b4751cc"),t=t(),C(),t),M={class:"battle-mansion-end__content"},B=n(()=>e("img",{class:"battle-mansion-end__illustration",src:x},null,-1)),S=n(()=>e("div",{class:"battle-mansion-end__label"},"Битва за особняк",-1)),T={class:"battle-mansion-end__text"},g={key:0,class:"battle-mansion-end__family"},k=n(()=>e("img",{class:"battle-mansion-end__family__crown",src:w},null,-1)),I={class:"battle-mansion-end__family__text"};function P(t,i,F,N,o,s){const p=h("ControlsClose");return a(),l("div",{class:f(["battle-mansion-end iface-container",{"battle-mansion-end_mobile":s.isMobile}]),onClick:i[0]||(i[0]=V=>s.isMobile&&s.close())},[s.isMobile?r("",!0):(a(),b(p,{key:0,onClose:s.close},null,8,["onClose"])),_(m,{name:"slide-up",appear:""},{default:c(()=>[e("div",M,[_(m,{name:"scale-up",appear:""},{default:c(()=>[B]),_:1}),S,e("div",T,d(o.text),1),o.family.length>0?(a(),l("div",g,[k,e("div",I,d(o.family),1)])):r("",!0)])]),_:1})],2)}const E={props:["openParams"],components:{ControlsClose:u},data(){return{family:"Addams Family",text:"окончена!"}},computed:{isMobile(){return this.$root.isMobile}},created(){this.$data.noAdaptation=!0,this.openParams&&(this.setText(this.openParams[0]),this.setFamily(this.openParams[1]),this.startTimer(this.openParams[2]))},mounted(){this.playSound("open")},methods:{playSound(t){window.playSound(`battle_mansion_end/${t}.mp3`)},setFamily(t){this.family=t},setText(t){this.text=t},startTimer(t){setTimeout(()=>this.close(),t)},close(){window.closeInterface("BattleMansionEnd")}}},K=v(E,[["render",P],["__scopeId","data-v-7b4751cc"]]);export{K as default};
