import{aX as P,fa as w,az as f,aj as m,ay as h,fi as p,fj as r,aZ as s,bR as R,fk as L}from"./app-k0jcl5PQ.js";function C(t){const{hasPermissions:e,hasLocalPermissions:i}=P(),{hasProduct:u}=w(),o=f(m.currentUser()),{hasPlayPageTranscript:V}=h(null),a=u(p.Primary);function l(){return i(r.WatchVideos)?!1:L.hasRegionPrefix()}function d(c){var n;return(n=o.data)!=null&&n.isAuthenticated?V:c?R.PublicTranscriptVideoIds.includes(c):!1}return{canViewGlance:e(s.ViewVideoGlance),canViewResources:!0,canViewInteractives:a&&e(s.ViewVideoInteractives),canViewClips:a&&e(s.ViewVideoClips),canViewCurriculumLinks:e(s.ViewCurriculums),canUseActions:i(r.UseVideoActions),canViewPublicLayout:l(),canViewResourceItems:i(r.ViewVideoResourceItems),canNavigate:a,canViewTranscript:d(t)}}export{C as u};
//# sourceMappingURL=GqZ33xmI.chunk.js.map
