plutonium/launcher/assets/js/chunk-d15685cc.589056ed.js
2023-12-10 07:55:13 -05:00

2 lines
3.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d15685cc"],{"0eef":function(t,e,n){},1092:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.backgroundClass,attrs:{id:"app"}},[n("app-bar"),n("div",{staticClass:"row one"},[n("sidebar"),n("div",{staticClass:"main"},[n("router-view")],1)],1)],1)},a=[],i=(n("caad"),n("2532"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"sidebar"},on:{mouseenter:function(e){t.big=!0},mouseleave:function(e){t.big=!1}}},t._l(t.games,(function(e){return n("game-button",{key:e.title,attrs:{button:e,"full-button":t.big},nativeOn:{click:function(n){return t.selectOption(e)}}})})),1)}),c=[],u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"button",staticClass:"button",class:{selected:t.selected}},[n("div",{staticClass:"row"},[n("div",[t.button.icon?n("img",{attrs:{src:t.button.icon,width:"35px"}}):t._e()]),t.fullButton?n("div",{staticClass:"buttonName"},[t._v(" "+t._s(t.button.title)+" ")]):t._e()])])},o=[],r=(n("b0c0"),{name:"MenuButton",props:{button:{type:Object,required:!1},fullButton:{type:Boolean,default:!1}},computed:{selected:function(){var t=this.$route;return"games"===t.name&&t.path.includes(this.button.tag)}}}),l=r,d=(n("326b"),n("2877")),p=Object(d["a"])(l,u,o,!1,null,"0428b96f",null),f=p.exports,b=n("9193"),m={name:"Sidebar",components:{gameButton:f},data:function(){return{big:!1}},computed:{games:function(){return b["a"].all()}},methods:{selectOption:function(t){this.$router.push({path:"/game/".concat(t.tag)})}}},v=m,h=(n("1c3f"),Object(d["a"])(v,i,c,!1,null,"e9aa2ffe",null)),g=h.exports,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"appbar"},[n("div",{staticClass:"content"},[n("div",{staticClass:"title"},[t._v(" Plutonium ")]),n("div",{staticClass:"user"},[n("div",{staticClass:"avatar",on:{click:t.openPeek}},[n("div",{staticClass:"avatarImage clickable round-highlight",style:t.avatarStyle})])])])])},k=[],C=n("5530"),w=n("2f62"),O={name:"AppBar",computed:Object(C["a"])(Object(C["a"])({},Object(w["b"])({user:"authentication/user"})),{},{avatarStyle:function(){return this.user.profilePic?"background-image: url('".concat(this.user.profilePic,"');"):""}}),methods:{openPeek:function(){this.$store.dispatch("ui/setPeek","profile")}}},j=O,$=(n("9c35"),Object(d["a"])(j,_,k,!1,null,"f8ef4b46",null)),B=$.exports,y={components:{sidebar:g,appBar:B},computed:{backgroundClass:function(){var t=this.$route.path;return t.includes("iw5mp")?"iw5mp":t.includes("t6mp")?"t6mp":t.includes("t6zm")?"t6zm":t.includes("t5mp")?"t5mp":t.includes("t5sp")?"t5sp":t.includes("t4mp")?"t4mp":t.includes("t4sp")?"t4sp":"default"}}},P=y,x=(n("1d22"),Object(d["a"])(P,s,a,!1,null,"6f4f723e",null));e["default"]=x.exports},"1c3f":function(t,e,n){"use strict";n("f8ea")},"1d22":function(t,e,n){"use strict";n("0eef")},"29c8":function(t,e,n){},"326b":function(t,e,n){"use strict";n("29c8")},"37eb":function(t,e,n){},"9c35":function(t,e,n){"use strict";n("37eb")},f8ea:function(t,e,n){}}]);
//# sourceMappingURL=chunk-d15685cc.589056ed.js.map