import{o as g,c as d,F as x,i as T,n as o,a as i,t as _,_ as f,r as w,b as k,y as u}from"./index.js";const C={class:"new-year-hunger-game-kill-list__kill-name"},p={class:"new-year-hunger-game-kill-list__kill-name new-year-hunger-game-kill-list__kill-name_victim"};function K(r,l,e,t,c,a){return g(),d("div",{class:o(["new-year-hunger-game-kill-list",{"new-year-hunger-game-kill-list_mobile":e.isMobile}])},[(g(!0),d(x,null,T(e.killList,(s,m)=>(g(),d("div",{class:o(["new-year-hunger-game-kill-list__kill",{"new-year-hunger-game-kill-list__kill_mobile":e.isMobile}]),key:m},[i("div",C,_(s[0]),1),i("div",{class:o(["new-year-hunger-game-kill-list__kill-weapon",{"new-year-hunger-game-kill-list__kill-weapon_fist":s[1],"new-year-hunger-game-kill-list__kill-weapon_mobile":e.isMobile}])},null,2),i("div",p,_(s[2]),1)],2))),128))],2)}const S={props:{isMobile:Boolean,killList:Array}},B=f(S,[["render",K]]),I={class:"new-year-hunger-game-info__alive"},V={class:"new-year-hunger-game-info__alive-amount"},A=i("div",{class:"new-year-hunger-game-info__text"},"Живых",-1),P={class:"new-year-hunger-game-info__timer"},F={class:"new-year-hunger-game-info__timer-time"},G={class:"new-year-hunger-game-info__text new-year-hunger-game-info__text_dark"};function H(r,l,e,t,c,a){return g(),d("div",{class:o(["new-year-hunger-game-info",{"new-year-hunger-game-info_mobile":e.isMobile}])},[i("div",{class:o(["new-year-hunger-game-info__block",{"new-year-hunger-game-info__block_mobile":e.isMobile}])},[i("div",I,[i("div",{class:o(["new-year-hunger-game-info__alive-icon",{"new-year-hunger-game-info__alive-icon_mobile":e.isMobile}])},null,2),i("div",V,_(e.alive<5?"?":e.alive),1)]),A],2),i("div",{class:o(["new-year-hunger-game-info__block",{"new-year-hunger-game-info__block_mobile":e.isMobile}])},[i("div",P,[i("div",{class:o(["new-year-hunger-game-info__timer-icon",{"new-year-hunger-game-info__timer-icon_mobile":e.isMobile}])},null,2),i("div",F,_(a.formatedTime.minutes)+":"+_(a.formatedTime.seconds),1)]),i("div",G,_(e.zoneCurrent)+"/"+_(e.zoneTotal)+" зона",1)],2)],2)}const Y={props:{isMobile:Boolean,alive:Number,secondsLeft:Number,zoneCurrent:Number,zoneTotal:Number},computed:{formatedTime(){const r=Math.floor(this.secondsLeft%3600/60),l=Math.floor(this.secondsLeft%3600%60);return{minutes:r.toString().padStart(2,"0"),seconds:l.toString().padStart(2,"0")}}}},Z=f(Y,[["render",H]]),D={class:"new-year-hunger-game iface-container"};function E(r,l,e,t,c,a){const s=w("KillList"),m=w("Info");return g(),d("div",D,[k(s,{isMobile:a.isMobile,killList:t.killList},null,8,["isMobile","killList"]),k(m,{isMobile:a.isMobile,alive:t.alive,secondsLeft:t.secondsLeft,zoneCurrent:t.zoneCurrent,zoneTotal:t.zoneTotal},null,8,["isMobile","alive","secondsLeft","zoneCurrent","zoneTotal"])])}const J={props:["openParams"],components:{KillList:B,Info:Z},data:()=>({noAdaptation:!0}),setup(r){const l=u([["Killer_Name_1",!1,"Victim_Name_1"],["Killer_Name_2",!0,"Victim_Name_2"]]),e=u(4),t=u(3),c=u(5),a=u(452),s=n=>l.value=typeof n=="string"?JSON.parse(n):n,m=n=>{for(l.value.push(n);l.value.length>2;)l.value.shift()},h=n=>e.value=n,v=n=>t.value=n,y=n=>c.value=n,b=n=>a.value=n;if(r.openParams){const[n,L,M,z,N]=r.openParams;h(n),v(L),y(M),b(z),s(N)}return{killList:l,alive:e,zoneCurrent:t,zoneTotal:c,secondsLeft:a,setKillList:s,pushKillList:m,setAlive:h,setZoneCurrent:v,setZoneTotal:y,setSecondsLeft:b}},computed:{isMobile(){return this.$root.isMobile}}},q=f(J,[["render",E]]);export{q as default};
