import{f as s,e as i,bG as d,dx as A,c3 as c,gd as g,T as L,ax as k,bd as C,e9 as S,ao as o,ba as b,b5 as T,g0 as m,by as h,aq as x}from"./app-k0jcl5PQ.js";import{B as u}from"./t2c-sXnZ.chunk.js";function D(n,a){return{getVideoAppLink:e=>c.getAppLink(e,{includeContext:!1},n),getSeriesAppLink:e=>A.getSeriesAppLink(e,{},n),getClassificationUpdateAppLink:e=>{const t=g.getPresentationSlugByClassification(e,a);return{application:i.CONTENT_UPDATES,action:s.ContentUpdates.CLASSIFICATION_UPDATE,args:[t,e==null?void 0:e.id,L.slugify(e==null?void 0:e.name)]}},getClassificationAppLink:e=>d.getAppLink(e,{},a),getShareAppLink:e=>({application:i.SHARE,action:s.Share.SHARE,args:[e.id],params:{entityType:"video"}}),getAddToPlaylistAppLink:e=>({application:i.PLAYLISTS,action:s.Playlists.ADD_TO_PLAYLIST,args:[e.id]}),dashboardAppLink:{application:i.DASHBOARD,action:s.Dashboard.HOME,args:[n]},whatsNewAppLink:{application:i.CONTENT_UPDATES,action:s.ContentUpdates.CONTENT_UPDATES,args:[n]},calendarAppLink:{application:i.CALENDAR,action:s.Calendar.CALENDAR,args:[n]}}}const E="_banner_120kc_1",w={banner:E},N="contentUpdates.classificationBanner";function U(n){const{classification:a,backgroundUrl:e,followed:t,follow:p,showFollowSpinner:r}=n,[l]=k(S.AUDIENCE_FILTER,void 0,{storage:C.SessionStorage});return o.jsxs("div",{className:`banner mb-2 d-flex justify-content-between align-items-center rounded ${w.banner}`,style:{backgroundImage:`url('${e}')`},children:[o.jsx(b,{className:"text-white text-shadow",appLink:n.getClassificationAppLink(a,l),children:o.jsx("h2",{className:"h3 mb-0",children:a.name})}),n.canFollow&&o.jsx(T,{className:`btn follow-btn ${t?"btn-outline-dark":"btn-dark"}`,svg:t?u:m,onClick:()=>p(a.id,a.name,!t),children:r?o.jsx(h,{as:"span",animation:"border",role:"status",size:"sm"}):o.jsx(x,{namespace:N,phrase:t?"following":"follow"})})]})}export{U as C,D as g};
//# sourceMappingURL=CCWaW_Jq.chunk.js.map
