(window.webpackJsonp=window.webpackJsonp||[]).push([["store-homepage"],{"3c6f":function(e,t,a){"use strict";t.a={HIDDEN_SERIES:[]}},4325:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"g",(function(){return d})),a.d(t,"i",(function(){return c})),a.d(t,"j",(function(){return u})),a.d(t,"f",(function(){return l})),a.d(t,"h",(function(){return m})),a.d(t,"a",(function(){return b})),a.d(t,"b",(function(){return g})),a.d(t,"e",(function(){return p}));t=a("bc3a");var s=a.n(t),n=a("4195");const r="homepage";async function i(){return s.a.get(Object(n.b)({base:r}))}async function o({id:e=null,data:t=null}){let a="keep-watching";return e&&(a+="/"+e),Object(n.a)({url:Object(n.b)({base:r,slug:a}),data:t,id:e})}async function d(){return s.a.get(Object(n.b)({base:r,slug:"most-popular"}))}async function c(){return s.a.get(Object(n.b)({base:r,slug:"recommended"}))}async function u(){return s.a.get(Object(n.b)({base:r,slug:"tips-of-week"}))}async function l(){return s.a.get(Object(n.b)({base:r,slug:"popular-youniversity"}))}async function m(){return s.a.get(Object(n.b)({base:r,slug:"last-month"}))}async function b(){return s.a.get(Object(n.b)({base:r,slug:"announcements"}))}async function g(){return s.a.get(Object(n.b)({base:r,slug:"categories-series"}))}async function p(){var e,t=await s.a.get("live-sessions-sliders");if(200===t.status&&void 0!==(null==t||null==(e=t.data)?void 0:e.data))return t}},fa9a:function(e,t,a){"use strict";a.r(t);var s=a("3c6f"),n=a("4325"),r=a("53d1"),i=a("af37"),o=a("78bd"),d=a("bee9");const c=s.a.HIDDEN_SERIES,u={career:null,userHistory:null,mostPopularCompany:null,recommended:null,recommendedThisWeek:null,seriesInspirations:null,mostPopularAll:null,mostPopularLastMonth:null,announcements:null,authors:null,slider:[],categoriesSeries:null,allSeries:null,seriesManual:null,seriesOnboarding:null,categoriesOnboarding:null,liveSessions:null,singleSeries:{},randomizeTrigger:0};t.default={namespaced:!0,state:u,getters:{allSeries:e=>null==(e=e.allSeries)?void 0:e.filter(e=>!c.includes(e.ser_id))},actions:{async hero({commit:e,state:t}){var a=await Object(n.c)();return void 0!==a&&(void 0!==a.data.slider&&0===t.slider.length&&e("setSlider",a.data.slider),void 0!==a.data.career&&e("setCareer",a.data.career),void 0!==a.data.user_history)&&e("setUserHistory",a.data.user_history),a},async mostPopularCompany({commit:e}){var t=await Object(n.g)();return void 0!==t&&void 0!==t.data.data&&e("setMostPopularCompany",t.data.data),t},async recommended({commit:e}){var t=await Object(n.i)();return void 0!==t&&void 0!==t.data.data&&e("setRecommended",t.data.data),t},async recommendedThisWeek({commit:e}){var t,a=await Object(n.j)();return null!=a&&null!=(t=a.data)&&t.data&&e("setRecommendedThisWeek",a.data.data.map((e,t)=>({...e,id:t}))),a},async seriesInspirations({commit:e}){var t=await Object(i.g)();return void 0!==t&&void 0!==t.data.data&&e("setSeriesInspirations",t.data.data),t},async mostPopularAll({commit:e}){var t=await Object(n.f)({params:{per_page:15}});return void 0!==t&&void 0!==t.data.data&&e("setMostPopularAll",t.data.data),t},async mostPopularLastMonth({commit:e}){var t=await Object(n.h)();return void 0!==t&&void 0!==t.data.data&&e("setMostPopularLastMonth",t.data.data),t},async announcements({commit:e}){var t=await Object(n.a)();return void 0!==t&&void 0!==t.data.data&&e("setAnnouncements",t.data.data),t},async categoriesSeries({commit:e}){var t=await Object(n.b)();return void 0!==t&&void 0!==t.data&&e("setCategoriesSeries",t.data),t},async authors({commit:e},t={params:{per_page:100}}){return t=await Object(r.a)(t),void 0!==t&&void 0!==t.data.data&&e("setAuthors",Object(d.a)(t.data.data)),t},async singleSerie({commit:e},t){return t=await Object(i.c)({id:t}),t&&e("setSerie",t),t},async allSeries({commit:e},t={params:{per_page:100}}){return t=await Object(i.c)(t),t&&e("setSeries",t),t},async getSeriesOnboarding({commit:e}){null===u.seriesOnboarding&&e("setSeriesOnboarding",(null==(e=await Object(i.h)())||null==(e=e.data)?void 0:e.data)||[])},async getCategoriesOnboarding({commit:e,state:t}){null===t.categoriesOnboarding&&e("setCategoriesOnboarding",(null==(t=await Object(o.c)())||null==(e=t.data)?void 0:e.data)||[])},async getLiveSessions({commit:e,state:t}){null===t.liveSessions&&e("setLiveSessions",(null==(t=await Object(n.e)())||null==(e=t.data)?void 0:e.data)||[])}},mutations:{randomizeFlag(e){e.randomizeTrigger+=1},setSlider(e,t){e.slider=Object.freeze(t)},setCareer(e,t){e.career=Object.freeze(t)},setUserHistory(e,t){e.userHistory=Object.assign([],t)},removeUserHistoryItem(e,t){e.userHistory=e.userHistory.filter(e=>e.series_id!==t)},setMostPopularCompany(e,t){e.mostPopularCompany=Object.freeze(t)},setRecommended(e,t){e.recommended=Object.freeze(t)},setRecommendedThisWeek(e,t){e.recommendedThisWeek=Object.freeze(t)},setSeriesInspirations(e,t){e.seriesInspirations=Object.freeze(t)},setMostPopularAll(e,t){e.mostPopularAll=Object.freeze(t)},setMostPopularLastMonth(e,t){e.mostPopularLastMonth=Object.freeze(t)},setAnnouncements(e,t){e.announcements=Object.freeze(t)},setAuthors(e,t){e.authors=t},setCategoriesSeries(e,t){e.categoriesSeries=t},setSeries(e,t){e.allSeries=t},setSeriesManual(e,t){e.seriesManual={name:t.ser_name,videos:t.videos}},setSeriesOnboarding(e,t){e.seriesOnboarding=t},setCategoriesOnboarding(e,t){e.categoriesOnboarding=t},setLiveSessions(e,t){e.liveSessions=t},setSerie(e,t){e.singleSeries[t.ser_id]=t}}}}}]);