(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["games"],{2526:function(t,a,e){"use strict";e("5170")},"48b1":function(t,a,e){"use strict";e("ee55")},5170:function(t,a,e){},"88e6":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"gamePage"},[e("div",{staticClass:"vertical-grid"},[e("div",{staticClass:"grid"},[e("div",[t.game.logo?e("img",{attrs:{src:t.game.logo,width:"350px"}}):e("div",{staticClass:"gameTitle"},[t._v(" "+t._s(t.gameTag)+" ")])])]),e("div",{staticClass:"grid"},[e("game-action-button",{attrs:{game:t.game,installed:!!t.gamePath},on:{click:t.gameActionButton}}),e("div",[t.gamePath?e("div",{staticClass:"settings clickable no-backdrop-highlight",on:{click:t.openGameSettings}},[e("i",{staticClass:"fas fa-cog"}),t._v(" Game Settings"),e("br")]):t._e()])],1)])])},n=[],s=(e("7db0"),e("d3b7"),e("9193")),o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticStyle:{display:"inline-flex"}},[e("div",{staticClass:"button clickable",class:{installed:t.installed,lanMode:t.lanMode},on:{click:function(a){return t.loading?null:t.$emit("click",{lanMode:t.lanMode})}}},[t.actionLabel?e("div",{staticClass:"text"},[t._v(" "+t._s(t.actionLabel)+" ")]):t._e(),t.lanMode?e("div",{staticClass:"caption"},[t._v(" Anticheat disabled ")]):t._e()]),t.installed?e("div",{key:(t.lanMode?"up":"down")+"arrow",staticClass:"options clickable",class:{lanMode:t.lanMode},on:{click:t.toggleLan}},[t.lanMode?e("i",{key:t.upArrow,staticClass:"fas fa-chevron-up"}):e("i",{key:t.dwnArrow,staticClass:"fas fa-chevron-down"})]):t._e()])},l=[],c=e("5530"),d=e("2f62"),r={name:"MainButton",props:{game:{type:Object,required:!0},installed:{type:Boolean}},data:function(){return{lanMode:!1}},computed:Object(c["a"])(Object(c["a"])({},Object(d["b"])({loading:"ui/showLoadingModal"})),{},{actionLabel:function(){return this.installed?this.lanMode?"Play in LAN Mode":"Play":"Setup"}}),methods:{toggleLan:function(){this.lanMode=!this.lanMode}}},g=r,u=(e("2526"),e("2877")),m=Object(u["a"])(g,o,l,!1,null,"9e56bc9e",null),h=m.exports,f={components:{gameActionButton:h},props:{gameTag:{type:String,required:!0}},data:function(){return{gamePath:null}},computed:{game:function(){return s["a"].find(this.gameTag)}},watch:{gameTag:function(t){this.refreshGamePath()}},mounted:function(){this.refreshGamePath()},methods:{gameActionButton:function(t){this.gamePath?this.$store.dispatch("entities/games/play",{gameTag:this.game.tag,params:t.lanMode?"-lan":""}):this.setGameDir()},setGameDir:function(){var t=this;this.$store.dispatch("entities/games/selectDir",this.game.tag).then((function(a){t.gamePath=a||t.gamePath}))},refreshGamePath:function(){this.gamePath=launcherGetGameFolder(this.gameTag)},openGameSettings:function(){this.$store.dispatch("ui/setPeek","game/".concat(this.game.tag))}}},p=f,b=(e("48b1"),Object(u["a"])(p,i,n,!1,null,"d152bae2",null));a["default"]=b.exports},ee55:function(t,a,e){}}]); //# sourceMappingURL=games.2559cd9a.js.map