(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{296:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("main",{staticClass:"main-container main-container--fullheight"},[i("div",{staticClass:"container"},[t.displayCategories?i("config-editor",{attrs:{fields:t.fields,categories:t.categories,model:t.model}}):i("config-editor",{attrs:{fields:t.fields,model:t.model}}),t._v(" "),i("div",{staticClass:"form-item"},[i("button",{staticClass:"button button--confirm",on:{click:t.save}},[t._v(t._s(t.$t("save")))])])],1)])};s._withStripped=!0;var o=i(3);function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var r={name:"ui-configuration",metaInfo(){return{title:this.$t("ui-configuration")}},components:{ConfigEditor:i(177).a},data(){const t=[{name:this.$t("general"),fields:[this.$t("default-page"),this.$t("notification-position"),this.$t("notify-release"),this.$t("display-categories")]},{name:this.$t("commands"),fields:[this.$t("timestamps")]},{name:this.$t("bots"),fields:[this.$t("bot-nicknames"),this.$t("bot-game-name"),this.$t("bot-fav-buttons")]}];return{fields:[{param:this.$t("default-page"),paramName:"defaultView",type:"enum",defaultValue:"home",values:{[this.$t("bots")]:"home",[this.$t("commands")]:"commands",[this.$t("log")]:"log",[this.$t("releases")]:"releases",[this.$t("last-visited-page")]:"_last-visited-page"},description:this.$t("default-page-description")},{param:this.$t("notification-position"),paramName:"notificationPosition",type:"enum",defaultValue:"rightBottom",values:{[this.$t("notification-position-left-top")]:"leftTop",[this.$t("notification-position-left-bottom")]:"leftBottom",[this.$t("notification-position-right-top")]:"rightTop",[this.$t("notification-position-right-bottom")]:"rightBottom",[this.$t("notification-position-center-top")]:"centerTop",[this.$t("notification-position-center-bottom")]:"centerBottom"},description:this.$t("notification-position-description")},{param:this.$t("notify-release"),paramName:"notifyRelease",type:"boolean",description:this.$t("notify-release-description")},{param:this.$t("display-categories"),paramName:"displayCategories",type:"boolean",description:this.$t("display-categories-description")},{param:this.$t("timestamps"),paramName:"timestamps",type:"boolean",description:this.$t("timestamps-description")},{param:this.$t("bot-nicknames"),paramName:"nicknames",type:"boolean",description:this.$t("bot-nicknames-description")},{param:this.$t("bot-game-name"),paramName:"gameName",type:"boolean",description:this.$t("bot-game-name-description")},{param:this.$t("bot-fav-buttons"),paramName:"favButtons",type:"flag",defaultValue:0,values:{[this.$t("bot-fav-buttons-none")]:0,[this.$t("bot-fav-buttons-2fa")]:1,[this.$t("bot-fav-buttons-bgr")]:2,[this.$t("bot-fav-buttons-config")]:4,[this.$t("bot-fav-buttons-pause")]:8},description:this.$t("bot-fav-buttons-description")}],categories:t,model:{defaultView:this.$store.getters["settings/defaultView"],notificationPosition:this.$store.getters["settings/notificationPosition"],notifyRelease:this.$store.getters["settings/notifyRelease"],displayCategories:this.$store.getters["settings/displayCategories"],timestamps:this.$store.getters["settings/timestamps"],nicknames:this.$store.getters["settings/nicknames"],gameName:this.$store.getters["settings/gameName"],favButtons:this.$store.getters["settings/favButtons"]}}},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},Object(o.c)({displayCategories:"settings/displayCategories"})),methods:{save(){this.$store.dispatch("settings/setDefaultView",this.model.defaultView),this.$store.dispatch("settings/setNotificationPosition",this.model.notificationPosition),this.$store.dispatch("settings/setNotifyRelease",this.model.notifyRelease),this.$store.dispatch("settings/setDisplayCategories",this.model.displayCategories),this.$store.dispatch("settings/setTimestamps",this.model.timestamps),this.$store.dispatch("settings/setNicknames",this.model.nicknames),this.$store.dispatch("settings/setGameName",this.model.gameName),this.$store.dispatch("settings/setFavButtons",this.model.favButtons),this.$snotify.setDefaults({toast:{position:this.model.notificationPosition}}),this.$success(this.$t("settings-saved"))}}},c=i(1),p=Object(c.a)(r,s,[],!1,null,null,null);p.options.__file="src/views/UIConfiguration.vue";e.default=p.exports}}]);