import{cu as u,cm as b,cy as j,ao as e,at as N,gV as B,gW as p,gX as S}from"./app-k0jcl5PQ.js";import{m as f}from"./CovOloHp.chunk.js";const k="_playButtonCircle_191s1_1",y={playButtonCircle:k};function E(a,n,s){if(!a)return"";if(!s||!n)return a;const t=p.padNumber(s,2),r=p.padNumber(n,2);return`${a} S${t} • E${r}`}function $(a){var i,l,d,m;const{onClick:n,video:s}=a,t=(i=u.getRating(s))==null?void 0:i.code,r=(l=u.getRating(s))==null?void 0:l.value,g=f(r),v="series"in s&&((d=s.series)==null?void 0:d.name),h="episodeNumber"in s&&s.episodeNumber,x="season"in s&&((m=s.season)==null?void 0:m.number),o=b.getImageUrl(s);let c="";o||(c=j(s.name,S));const C={backgroundImage:o?`url('${o}')`:"",backgroundColor:c};return e.jsxs(N,{className:`cv-embed-splash ${c||"cv-embed-splash-black"}`,style:C,onClick:n,children:[!!o&&e.jsx("div",{className:"cv-splash-mask"}),e.jsxs("div",{className:"cv-splash-metadata",children:[e.jsxs("h1",{children:[e.jsx("div",{className:"cv-splash-series",children:E(v,h,x)}),s.name]}),e.jsx("div",{className:`cv-splash-rating ${g}`,children:t})]}),e.jsx("div",{className:y.playButtonCircle,children:e.jsx("svg",{viewBox:"0 0 1800 1800",children:e.jsx("path",{d:"M597.3333333333334 1418.6666666666665V373.3333333333333L1418.6666666666667 896z"})})}),e.jsx("div",{className:"cv-splash-logo",children:e.jsx(B,{})})]})}export{$ as E};
//# sourceMappingURL=CaJ4Zmva.chunk.js.map
