import{_,a as m}from"./bg4.js";import{_ as n,o,c as l,a as s,r as g,b as p,e as d,t,d as y,n as h}from"./index.js";const u={},P={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"rgba(255, 255, 255, 0.7)","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-clock"},v=s("circle",{cx:"12",cy:"12",r:"10"},null,-1),b=s("polyline",{points:"12 6 12 12 16 14"},null,-1),w=[v,b];function f(e,a){return o(),l("svg",P,w)}const k=n(u,[["render",f]]),x={class:"waiting-players__slug"},$={class:"waiting-players__text"};function B(e,a,r,M,N,i){const c=g("Time");return o(),l("div",{class:h(["waiting-players",{"waiting-players_mobile":i.isMobile}])},[s("div",{class:"waiting-players__container",style:y({background:`url(${i.background}) center / contain no-repeat`})},[p(c),d(t(e.currentPlayers),1),s("div",x,"/"+t(e.maxPlayers),1)],4),s("div",$,"Ожидание игроков... "+t(e.minPlayers>e.currentPlayers?`Мин. ${e.minPlayers} игроков`:null),1)],2)}const T={props:["openParams"],components:{Time:k},data:()=>({noAdaptation:!0,minPlayers:0,currentPlayers:0,maxPlayers:0}),computed:{isMobile(){return this.$root.isMobile},images(){return Object.assign({"/src/assets/images/waiting-players/bg-min.svg":_,"/src/assets/images/waiting-players/bg.svg":m})},background(){return this.minPlayers>this.currentPlayers?this.images["/src/assets/images/waiting-players/bg-min.svg"]:this.images["/src/assets/images/waiting-players/bg.svg"]}},created(){this!=null&&this.openParams&&(this.minPlayers=this.openParams[0],this.currentPlayers=this.openParams[1],this.maxPlayers=this.openParams[2])},methods:{update(e,a,r){this.minPlayers=e,this.currentPlayers=a,this.maxPlayers=r}}},z=n(T,[["render",B],["__scopeId","data-v-1c5ae895"]]);export{z as default};
