import{_ as V,a as S}from"./line.js";import{o as i,c as l,a as n,e as K,t as _,F as d,i as w,n as r,_ as v,d as z,r as g,b as N,y as m}from"./index.js";const F=n("div",{class:"new-year-arms-race-top__shadow"},null,-1),J={class:"new-year-arms-race-top__position"},O={class:"new-year-arms-race-top__position__total"},R={key:0,class:"new-year-arms-race-top__line",src:V},Y={key:1,class:"new-year-arms-race-top__line",src:S},D={class:"new-year-arms-race-top__items"},E={class:"new-year-arms-race-top__item__position"},q={class:"new-year-arms-race-top__item__name"};function G(u,y,e,s,p,c){return i(),l("div",{class:r(["new-year-arms-race-top",{"new-year-arms-race-top_mobile":e.isMobile}])},[F,n("div",J,[K(_(e.currentPosition),1),n("div",O,"/"+_(e.totalPosition),1)]),e.isMobile?(i(),l("img",R)):(i(),l("img",Y)),n("div",D,[(i(!0),l(d,null,w(e.isMobile?e.players.slice(0,3):e.players,(o,t)=>(i(),l("div",{class:r(["new-year-arms-race-top__item",{"new-year-arms-race-top__item_current":e.currentPosition===t+1}]),key:t},[n("div",E,_(t+1),1),n("div",q,_(o.split("_").join(" ")),1)],2))),128))])],2)}const H={props:{isMobile:Boolean,players:Array,currentPosition:Number,totalPosition:Number},setup(){}},Q=v(H,[["render",G]]),U=n("div",{class:"new-year-arms-race-info__bg"},null,-1),X={class:"new-year-arms-race-info__kill-name"},Z={class:"new-year-arms-race-info__kill-name new-year-arms-race-info__kill-name_victim"},j={class:"new-year-arms-race-info__next-weapon-count"},$={class:"new-year-arms-race-info__next-weapon-skulls"};function ee(u,y,e,s,p,c){return i(),l("div",{class:r(["new-year-arms-race-info",{"new-year-arms-race-info_mobile":e.isMobile}])},[U,n("div",{class:r(["new-year-arms-race-info__kill-list",{"new-year-arms-race-info__kill-list_mobile":e.isMobile}])},[(i(!0),l(d,null,w(e.killList,(o,t)=>(i(),l("div",{class:r(["new-year-arms-race-info__kill",{"new-year-arms-race-info__kill_mobile":e.isMobile}]),key:t},[n("div",X,_(o[0]),1),n("div",{class:r(["new-year-arms-race-info__kill-weapon",{"new-year-arms-race-info__kill-weapon_fist":o[1],"new-year-arms-race-info__kill-weapon_mobile":e.isMobile}])},null,2),n("div",Z,_(o[2]),1)],2))),128))],2),n("div",{class:r(["new-year-arms-race-info__next-weapon",{"new-year-arms-race-info__next-weapon_mobile":e.isMobile}]),style:z({backgroundImage:`url(/images/hud/${e.nextWeaponImage}.png)`})},[n("div",j,[n("div",$,[(i(!0),l(d,null,w(e.nextWeaponKillsTotal,o=>(i(),l("div",{class:r(["new-year-arms-race-info__next-weapon-skull",{"new-year-arms-race-info__next-weapon-skull_active":e.nextWeaponKillsCurrent>=o,"new-year-arms-race-info__next-weapon-skull_mobile":e.isMobile}]),key:o},null,2))),128))]),n("div",{class:r(["new-year-arms-race-info__next-weapon-amount",{"new-year-arms-race-info__next-weapon-amount_mobile":e.isMobile}])},[n("span",null,_(e.nextWeaponKillsCurrent),1),K("/"+_(e.nextWeaponKillsTotal),1)],2)]),n("div",{class:r(["new-year-arms-race-info__next-weapon-helper",{"new-year-arms-race-info__next-weapon-helper_mobile":e.isMobile}])},_(e.nextWeaponImage===-1?"До победы в событии":"Следующее оружие"),3)],6)],2)}const ae={props:{isMobile:Boolean,nextWeaponImage:Number,nextWeaponKillsCurrent:Number,nextWeaponKillsTotal:Number,killList:Array}},ne=v(ae,[["render",ee]]),oe={class:"new-year-arms-race iface-container"};function te(u,y,e,s,p,c){const o=g("Top"),t=g("Info");return i(),l("div",oe,[N(o,{isMobile:c.isMobile,players:s.players,currentPosition:s.currentPosition,totalPosition:s.totalPosition},null,8,["isMobile","players","currentPosition","totalPosition"]),N(t,{isMobile:c.isMobile,nextWeaponImage:s.nextWeaponImage,nextWeaponKillsCurrent:s.nextWeaponKillsCurrent,nextWeaponKillsTotal:s.nextWeaponKillsTotal,killList:s.killList},null,8,["isMobile","nextWeaponImage","nextWeaponKillsCurrent","nextWeaponKillsTotal","killList"])])}const se={props:["openParams"],components:{Top:Q,Info:ne},data:()=>({noAdaptation:!0}),setup(u){const y=m(["Pavel_Nabokov","Pavel_Nabokov","Pavel_Nabokov","Pavel_Nabokov","Pavel_Nabokov"]),e=m(3),s=m(40),p=m(22),c=m(2),o=m(3),t=m([["Killer_Name_1",!1,"Victim_Name_1"],["Killer_Name_2",!0,"Victim_Name_2"]]),f=a=>y.value=typeof a=="string"?JSON.parse(a):a,x=a=>e.value=a,b=a=>s.value=a,k=a=>{p.value=a},W=a=>c.value=a,P=a=>o.value=a,h=a=>t.value=a,M=a=>{t.value.unshift(typeof a=="string"?JSON.parse(a):a),t.value.length>2&&t.value.pop()};if(u.openParams){const[a,T,I,C,L,A,B]=u.openParams;x(a),b(T),k(I),W(C),P(L),h(A),f(B)}return{currentPosition:e,totalPosition:s,nextWeaponImage:p,nextWeaponKillsCurrent:c,nextWeaponKillsTotal:o,killList:t,players:y,setCurrentPosition:x,setTotalPosition:b,setNextWeaponImage:k,setNextWeaponKillsCurrent:W,setNextWeaponKillsTotal:P,setKillList:h,pushKillList:M,setPlayers:f}},computed:{isMobile(){return this.$root.isMobile}}},re=v(se,[["render",te]]);export{re as default};
