(window.webpackJsonp=window.webpackJsonp||[]).push([["store-profile"],{"151c":function(t,a,s){"use strict";s.d(a,"c",(function(){return r})),s.d(a,"a",(function(){return c})),s.d(a,"d",(function(){return u})),s.d(a,"f",(function(){return l})),s.d(a,"e",(function(){return d})),s.d(a,"b",(function(){return h})),s.d(a,"g",(function(){return p})),s.d(a,"h",(function(){return o}));a=s("bc3a");var e=s.n(a),i=s("4195");const n="profile";async function r({id:t=null},a){return e.a.get(Object(i.b)({base:n,id:t,slug:"finished-series"}),{params:a})}async function c({id:t=null},a){return e.a.get(Object(i.b)({base:n,id:t,slug:"favorites-series"}),{params:a})}async function u(t){if(t=await e.a.get(n+"/paths",{params:{per_page:10,page:t}}),200===t.status)return t.data}async function l(t){if(t=await e.a.get(n+"/career-paths",{params:{per_page:10,page:t}}),200===t.status)return t.data}async function d({id:t=null}){return e.a.get(Object(i.b)({base:n,id:t,slug:"user-path"}))}async function h(){return e.a.get(Object(i.b)({base:n,slug:"finished-paths"}))}async function p({params:t={}}){return e.a.get(Object(i.b)({base:n,slug:"user-stats"}),{params:t})}async function o({params:t={}}){return e.a.get(Object(i.b)({base:n,slug:"user-watchtime-stats"}),{params:t})}},"2cc2":function(t,a,s){"use strict";s.r(a);var e=s("151c");a.default={namespaced:!0,state:{list:[],finished:{paths:null,series:null},path:null,stats:null,watchTimeStats:null},getters:{getList:t=>t.list?t.list.data:null,getFinishedPaths:t=>t.finished.paths.data||null,getFinishedSeries:t=>t.finished.series.data||null,getPath:t=>t.path?t.path.data:null,getStats:t=>t.stats?t.stats.data:null,getUserWatchTimeStats:t=>t.watchTimeStats||null},actions:{async profileList({commit:t}){t("setList",[]);var a=await Object(e.a)({});a&&200===a.status&&t("setList",a.data)},async profileFinishedSeries({commit:t}){t("setFinishedSeries",[]);var a=await Object(e.c)({});a&&200===a.status&&t("setFinishedSeries",a.data)},async profileUserPath({commit:t}){t("setPath",null);var a=await Object(e.e)({});a&&200===a.status&&t("setPath",a.data)},async profileFinishedPaths({commit:t}){t("setFinishedPaths",[]);var a=await Object(e.b)({});a&&200===a.status&&t("setFinishedPaths",a.data)},async profileUserStats({commit:t},{params:a}){a=await Object(e.g)({params:a}),a&&200===a.status&&t("setUserStats",a.data)},async profileUserWatchTimeStats({commit:t},{params:a=null}){a=await Object(e.h)({params:a}),a&&200===a.status&&t("setUserWatchTimeStats",a.data)}},mutations:{setList(t,a){t.list=a},setFinishedSeries(t,a){t.finished.series=a},setFinishedPaths(t,a){t.finished.paths=a},setPath(t,a){t.path=a},setUserStats(t,a){t.stats=a},setUserWatchTimeStats(t,a){t.watchTimeStats=a}}}}}]);