import{_ as T,a as B}from"./line.js";import{o as c,c as _,a as n,e as M,t as l,F as $,i as S,n as C,_ as w,r as N,b as f,y as k}from"./index.js";const V=n("div",{class:"new-year-parkour-top__shadow"},null,-1),A={class:"new-year-parkour-top__position"},F={class:"new-year-parkour-top__position__total"},J={key:0,class:"new-year-parkour-top__line",src:T},O={key:1,class:"new-year-parkour-top__line",src:B},Y={class:"new-year-parkour-top__items"},z={class:"new-year-parkour-top__item__position"},D={class:"new-year-parkour-top__item__name"};function E(s,p,o,t,u,r){return c(),_("div",{class:C(["new-year-parkour-top",{"new-year-parkour-top_mobile":o.isMobile}])},[V,n("div",A,[M(l(o.currentPosition),1),n("div",F,"/"+l(o.totalPosition),1)]),o.isMobile?(c(),_("img",J)):(c(),_("img",O)),n("div",Y,[(c(!0),_($,null,S(o.isMobile?o.players.slice(0,3):o.players,(a,i)=>(c(),_("div",{class:C(["new-year-parkour-top__item",{"new-year-parkour-top__item_current":o.currentPosition===i+1}]),key:i},[n("div",z,l(i+1),1),n("div",D,l(a.split("_").join(" ")),1)],2))),128))])],2)}const L={props:{isMobile:Boolean,players:Array,currentPosition:Number,totalPosition:Number},setup(){}},q=w(L,[["render",E]]),G=n("div",{class:"new-year-parkour-checkpoint__bg"},null,-1),H={class:"new-year-parkour-checkpoint__value"},I={class:"new-year-parkour-checkpoint__value__total"},K=n("div",{class:"new-year-parkour-checkpoint__text"},"Чекпоинтов пройдено",-1);function Q(s,p,o,t,u,r){return c(),_("div",{class:C(["new-year-parkour-checkpoint",{"new-year-parkour-checkpoint_mobile":o.isMobile}])},[G,n("div",H,[M(l(o.currentCheckpoint),1),n("div",I,"/"+l(o.totalCheckpoint),1)]),K],2)}const R={props:{isMobile:Boolean,currentCheckpoint:Number,totalCheckpoint:Number}},U=w(R,[["render",Q]]),W={class:"new-year-parkour iface-container"};function X(s,p,o,t,u,r){const a=N("Top"),i=N("Checkpoint");return c(),_("div",W,[f(a,{isMobile:r.isMobile,players:t.players,currentPosition:t.currentPosition,totalPosition:t.totalPosition},null,8,["isMobile","players","currentPosition","totalPosition"]),f(i,{isMobile:r.isMobile,currentCheckpoint:t.currentCheckpoint,totalCheckpoint:t.totalCheckpoint},null,8,["isMobile","currentCheckpoint","totalCheckpoint"])])}const Z={props:["openParams"],components:{Top:q,Checkpoint:U},data:()=>({noAdaptation:!0}),setup(s){const p=k(["Pavel_Nabokov","Pavel_Nabokov","Pavel_Nabokov","Pavel_Nabokov","Pavel_Nabokov"]),o=k(3),t=k(40),u=k(7),r=k(40),a=e=>p.value=typeof e=="string"?JSON.parse(e):e,i=e=>o.value=e,d=e=>t.value=e,h=e=>u.value=e,y=e=>r.value=e,g=e=>{const[v,m,P,b,x]=typeof e=="string"?JSON.parse(e):e;i(v),d(m),h(P),y(b),a(x)};if(s!=null&&s.openParams){const[e,v,m,P,b]=s.openParams;i(e),d(v),h(m),y(P),a(b)}return{players:p,currentPosition:o,totalPosition:t,currentCheckpoint:u,totalCheckpoint:r,setCurrentPosition:i,setTotalPosition:d,setCurrentCheckpoint:h,setTotalCheckpoint:y,setPlayers:a,update:g}},computed:{isMobile(){return this.$root.isMobile}}},oe=w(Z,[["render",X]]);export{oe as default};
