import{b$ as T,dM as E,ay as F,aX as I,aZ as g,bI as R,az as a,bu as w,aj as q,b4 as H,c3 as n,dx as N}from"./app-k0jcl5PQ.js";function B(s){var c,p,d;const{locationContext:h,mtv:P,flightNamespace:C,sharedPlaylist:L}=s||{},{isPlugin:A,params:t}=T(),{setFavourite:k,canFavourite:G}=E(h,C),{hasTopicDirectories:f,isLoadingSettings:v,hasPreviewVideos:y,hasUserEnabledPreviewVideos:x}=F(null),{hasPermissions:o,isLoaded:b}=I(),S=o(g.StudentExperience),V=o(g.GuestExperience),{activePresentation:i}=R(),r=a(w.config()),e=a(q.currentUser()),u=a(((c=e.data)==null?void 0:c.isAuthenticated)&&H.yearGroups(e.data.customerId));function U(l){var m;return!("series"in l)||L&&!((m=e.data)!=null&&m.isAuthenticated)?null:N.getSeriesAppLink(l.series,{mtv:P},i==null?void 0:i.vanitySlug)}return{hasCommonVideoPropsCompleted:!v&&b&&r.hasCompleted&&e.hasCompleted&&(!((p=e.data)!=null&&p.isAuthenticated)||u.hasCompleted),commonVideoProps:{subTextType:"series",getSubTextAppLink:U,isPlugin:A,isPluginPopup:!!(t!=null&&t.popup),canFavourite:G,setFavourite:k,imageCdnUrl:(d=r.data)==null?void 0:d.imageCdnUrl,yearGroups:u.data,getClassroomGuideAppLink:n.getClassroomGuideAppLink,getInteractiveGuidanceAppLink:n.getInteractiveGuidanceAppLink,getResourceGuidanceAppLink:n.getResourceGuidanceAppLink,showNewVideoIndicator:f,companyLogoFallbackUrl:null,hasStudentExperience:S,hasGuestExperience:V,hoverToPlay:y&&x&&(s==null?void 0:s.hoverToPlay)!==!1}}}export{B as u};
//# sourceMappingURL=DDxzgH2W.chunk.js.map
