(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["userClass"],{d728:function(t,n,e){"use strict";e.r(n),e.d(n,"contentClass",(function(){return s}));var a=e("d4ec"),o=e("bee2"),c=(e("d3b7"),e("3ca3"),e("ddb0"),e("0c12")),i=e("07a4"),s=function(){function t(){var n=this;Object(a["a"])(this,t),e.e("purchaseClass").then(e.bind(null,"af2b")).then((function(t){n.purchase=new t.purchaseClass})),c["a"].$on("featured-list",(function(t){n.featuredList(t)})),c["a"].$on("featureContentList",(function(t){n.featureContentList(t)})),c["a"].$on("category-list",(function(t){n.categoryList(t)})),c["a"].$on("trailers-list",(function(t){n.trailersList(t)})),c["a"].$on("getContentList",(function(t){n.getContentList(t)})),c["a"].$on("recommended-content",(function(t){n.recommendedContent(t)})),c["a"].$on("landingPage_contents",(function(t){n.getLandingPageContents(t)})),c["a"].$on("get-seasonnum-listing",(function(t){n.getSeasonNumListing(t)})),c["a"].$on("get-episode-list",(function(t){n.getEpisodeListing(t)})),c["a"].$on("getRelatedcontents",(function(t){n.getRelatedContents(t)})),c["a"].$on("getContentDetail",(function(t){console.log("inside on of getContentDetail----"),n.getContentDetail(t)})),c["a"].$on("search-api-call",(function(t){n.getSearchContent(t)})),c["a"].$on("search-suggestion-contents",(function(t){n.getSearchSuggestion(t)})),c["a"].$on("genre-list",(function(){n.genreList()})),c["a"].$on("list-genre-contents",(function(t){n.genreContents(t)})),c["a"].$on("getContentStreamUrl",(function(t){n.getContentStreamUrl(t)})),c["a"].$on("language-list",(function(){n.listLanguage()})),c["a"].$on("get-content-details",(function(t){n.getContentDetails(t)})),c["a"].$on("grid-see-all-data",(function(t){n.getGridCards(t)})),c["a"].$on("get-bundle-items",(function(t){n.getBundleItems(t)})),c["a"].$on("search-page-call",(function(t){n.getSearchedData(t)}))}return Object(o["a"])(t,[{key:"featuredList",value:function(t){i["a"].dispatch("contentList",t).then((function(t){t.data&&c["a"].$emit("featured-response",t.data)})).catch((function(t){return console.log(t)}))}},{key:"featureContentList",value:function(t){i["a"].dispatch("featureContentList",t).then((function(t){t.data&&c["a"].$emit("featured-response",t.data)})).catch((function(t){return console.log(t)}))}},{key:"categoryList",value:function(t){i["a"].dispatch("contentList",t).then((function(n){console.log("CONTENTS-RESP",t),n.data&&(t.type&&"bold"===t.type?c["a"].$emit("bold-contents",n.data):c["a"].$emit("".concat(t.id),n.data))})).catch((function(t){return console.log(t)}))}},{key:"trailersList",value:function(t){i["a"].dispatch("listTrailers",t).then((function(n){n&&(console.log("TRAILERS-RESP",t),t.type&&"bold"===t.type?c["a"].$emit("bold-contents",n.data.data):c["a"].$emit("trailersResponse",n.data.data))})).catch((function(t){return console.log(t)}))}},{key:"getLandingPageContents",value:function(t){i["a"].dispatch("listContent",t).then((function(t){c["a"].$emit("landing_page_contents",t)})).catch((function(t){return console.log(t)}))}},{key:"getSeasonNumListing",value:function(t){i["a"].dispatch("listContent",t).then((function(t){t.data.totalcount?c["a"].$emit("season_listing_response",t.data.totalcount):c["a"].$emit("season_listing_response",t.data)})).catch((function(t){return console.log(t)}))}},{key:"getEpisodeListing",value:function(t){i["a"].commit("setEpisodePaginationInProgress",!0),i["a"].dispatch("listContent",t).then((function(t){t.data&&c["a"].$emit("send-episode-list",t.data)})).catch((function(t){return console.log(t)}))}},{key:"genreList",value:function(){i["a"].dispatch("genreList").then((function(t){t.data.reason?console.log("error"):c["a"].$emit("genre-items",t.data.data)})).catch((function(t){return console.log(t)}))}},{key:"getContentList",value:function(t){"firebase/content"!==t.endpoint&&i["a"].dispatch("contentList",t).then((function(n){"featured"===t.title&&c["a"].$emit("featured",n)})).catch((function(t){return console.log(t)}))}},{key:"getContentDetails",value:function(t){i["a"].dispatch("getContent",t).then((function(t){c["a"].$emit("contents-for-watchlist",t.data)})).catch((function(t){return console.log("getting wrongg".err)}))}},{key:"getContentDetail",value:function(t){console.log("getContentDetail payloaddd",t),i["a"].dispatch("contentDetail",t).then((function(n){n.data.reason?c["a"].$emit("contentDetail-error-response-".concat(t.contentid),n):(console.log("complete-details--- of the respective content---- ",n),c["a"].$emit("contentDetail-response-".concat(t.contentid),n))})).catch((function(t){return console.log(t)}))}},{key:"getBundleItems",value:function(t){i["a"].dispatch("listBundleItem",t).then((function(t){t.data.reason||(console.log("response.data",t.data),c["a"].$emit("bundle-item-response",t.data))})).catch((function(t){return console.log(t)}))}},{key:"getRelatedContents",value:function(t){i["a"].dispatch("relatedContents",t).then((function(t){t.data&&c["a"].$emit("relatedcontents-response",t.data)})).catch()}},{key:"recommendedContent",value:function(t){i["a"].dispatch("recommendedContent",t).then((function(n){n.data&&(t.type&&"bold"===t.type?c["a"].$emit("bold-contents",n.data):c["a"].$emit("recommended-content-res",n.data))})).catch((function(t){return console.log(t)}))}},{key:"getSearchSuggestion",value:function(t){i["a"].dispatch("listSuggestions",t).then((function(t){t.data.reason?c["a"].$emit("show-error-alert",t.data.reason):c["a"].$emit("send-suggestions-response",t.data)})).catch((function(t){return console.log(t)}))}},{key:"getSearchContent",value:function(t){c["a"].$emit("loading",!0),i["a"].dispatch("contentSearch",t).then((function(t){c["a"].$emit("loading",!1),t.data.reason?c["a"].$emit("show-error-alert",t.data.reason):c["a"].$emit("render-search-to-dom",t.data)})).catch((function(t){return console.log(t)}))}},{key:"getSearchedData",value:function(t){i["a"].dispatch("contentSearch",t).then((function(t){t.data.reason?c["a"].$emit("no-resp",t.data.reason):c["a"].$emit("show-search-in-dom",t.data)})).catch((function(t){return console.log(t)}))}},{key:"genreContents",value:function(t){i["a"].dispatch("genreContentList",t).then((function(t){t.data.reason?(console.log(t.data.reason),c["a"].$emit("show-genre-placeholder")):c["a"].$emit("genre-specific-contents",t.data)})).catch((function(t){return console.log(t)}))}},{key:"listLanguage",value:function(){i["a"].dispatch("listi18nLanguage").then((function(t){c["a"].$emit("all-language",t)})).catch((function(t){return console.log(t)}))}},{key:"getContentStreamUrl",value:function(t){i["a"].dispatch("contentStreamUrl",t).then((function(t){t.data&&c["a"].$emit("contentStreamUrl-response",t.data)})).catch((function(){return console.log(error)}))}},{key:"getGridCards",value:function(t){i["a"].dispatch("contentList",t).then((function(t){t.data&&c["a"].$emit("get-seeAll-data",t.data)})).catch((function(t){return console.log(t)}))}}]),t}()}}]);
//# sourceMappingURL=userClass.749c5a67.js.map