"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3774,19830,66884],{3774:function(e,t,r){r.r(t),r.d(t,{default:function(){return o}}),r.dn(o),r(44962),r(78557),r(90076),r(83994),r(82367);var n=r(95569),i=r(24468),s=r(76542),u=r(8566);function o(e,t,o){var a=this;function c(){var e=d(),r=m[e];return r||((r=m[e]={query:{SortBy:"SortName",SortOrder:"Ascending",Recursive:!0,Fields:"PrimaryImageAspectRatio,ItemCounts",StartIndex:0},view:n.jS(e)||"Poster"}).query.ParentId=t.topParentId,n.YE(e,r.query)),r}function h(){return c().query}function d(){return"".concat(t.topParentId,"-genres")}var l,m={};this.getViewStyles=function(){return"Poster,PosterCard,Thumb,ThumbCard".split(",")},this.getCurrentViewStyle=function(){return c().view},this.setCurrentViewStyle=function(e){c().view=e,n.hz(d(),e),function(){this.preRender(),this.renderTab()}()},this.enableViewSelection=!0,this.preRender=function(){l=function(){u.Ay.show();var e=h();return ApiClient.getGenres(ApiClient.getCurrentUserId(),e)}()},this.renderTab=function(){!function(e,t){var o=h();t.then((function(t){var c="",h=a.getCurrentViewStyle();"Thumb"==h?c=i.Ay.getCardsHtml({items:t.Items,shape:"backdrop",preferThumb:!0,context:"music",centerText:!0,overlayMoreButton:!0,showTitle:!0}):"ThumbCard"==h?c=i.Ay.getCardsHtml({items:t.Items,shape:"backdrop",preferThumb:!0,context:"music",cardLayout:!0,showTitle:!0}):"PosterCard"==h?c=i.Ay.getCardsHtml({items:t.Items,shape:"auto",context:"music",cardLayout:!0,showTitle:!0}):"Poster"==h&&(c=i.Ay.getCardsHtml({items:t.Items,shape:"auto",context:"music",centerText:!0,overlayMoreButton:!0,showTitle:!0}));var l=e.querySelector("#items");l.innerHTML=c,s.Ay.lazyChildren(l),n.Pp(d(),o),u.Ay.hide(),Promise.resolve().then(r.bind(r,84069)).then((function(t){t.default.autoFocus(e)}))}))}(o,l)}}}}]);