1import{aP as ae,c_ as se,aQ as re,aR as ie,aS as ne,dR as le,aX as o,aT as a,aU as s,aV as r,aW as b,ds as ce,bw as c,aZ as y,bi as P,b0 as g,bk as de,d0 as A,fN as L,cR as W,bj as I,e_ as O,d2 as ue,d3 as _e,b4 as M,b1 as d,eh as q,b5 as pe}from"./C0l3ak4x.js";import{_ as fe}from"./CabgQiY5.js";import{_ as me}from"./BhxIGyr_.js";import{t as ve}from"./ZpOrz8AY.js";import{_ as he}from"./CROWfdvl.js";import{_ as be}from"./DC0_5HXx.js";import{a as ye}from"./MC6H92cZ.js";import{u as ge}from"./y6pPMwO5.js";import{n as Te}from"./B_0rHO6U.js";import{_ as ke}from"./TVJbFfVC.js";import"./BjntVU6r.js";import"./285x_fAs.js";import"./BZ7F-ZO-.js";import"./D-FOJSLc.js";import"./DPPncmyr.js";import"./DfARzI89.js";import"./Z41dS4pz.js";import"./Cx_wWW34.js";import"./Baa9SlDb.js";import"./BFyDinDl.js";import"./DtmKwLjs.js";import"./CYanDiGV.js";import"./DTLiLKyH.js";import"./XeF1v-xD.js";import"./Bem_Kjcs.js";import"./CpKB6ugy.js";import"./C71XnU-o.js";import"./DJHbYnek.js";import"./eerhqZ9S.js";import"./CDBnV0qM.js";import"./BFKQksSR.js";import"./Dt4lojsp.js";import"./CcAZXR9o.js";import"./BbYLwKhv.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"f2535d841cdd2b4a49d7fb72025d6267e58b2144"};var i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="182ca4e9-d323-45a4-a9a6-b51ceae75943",n._sentryDebugIdIdentifier="sentry-dbid-182ca4e9-d323-45a4-a9a6-b51ceae75943")}catch{}})();const Ce={key:0,class:"offer"},Pe={class:"banner"},Ae={class:"picture-wrapper"},Ne={class:"banner-text"},Ee={class:"button-container lg"},Se={key:0,class:"offer__cta__text"},Ve={key:1,class:"offer__cta__text"},we={class:"buybox-row__quality-tv__offers"},We=["src","alt"],Ie={key:1,class:"place-holder__container"},Oe={class:"title-container"},Re={class:"title"},xe={class:"poster-info"},Ue={key:0,class:"imdb-rating"},Be={key:0,class:"promoted-text lg"},De={class:"button-container sm"},Fe={key:0,class:"offer__cta__text"},Qe={key:1,class:"offer__cta__text"},$e={key:0,class:"promoted-text sm"},Le=ae({__name:"QualityTV",props:{catalogueItem:{},title:{},offers:{},additionalContexts:{},seasonNumber:{},episodeNumber:{},swiperIndex:{},hardcodedShortName:{},displayPromotedTag:{type:Boolean,default:!0},providerFilter:{},adServerCreative:{}},setup(n){const i=n,N=M(null),{t:m}=se(),{country:R}=re(ie()),T=d(()=>i.hardcodedShortName??i.catalogueItem.shortName),E=d(()=>Te[T.value]),v=d(()=>_.value[0].offers[0].package),S=d(()=>E.value==="FREE"),x=d(()=>!S.value),Y=d(()=>R.value==="ES"&&T.value==="sst"?"Ve a SkyShowtime ahora":E.value==="SVOD"?m("WEBAPP_PROVIDER_QUALITY_TV_STREAM",{provider:v.value.clearName}):E.value==="TVOD"?m("WEBAPP_PROVIDER_QUALITY_TV_RENT_OR_BUY",{provider:v.value.clearName}):m("WEBAPP_PROVIDER_QUALITY_TV_BANNER",{provider:v.value.clearName})),z=d(()=>{const e=N.value?.clientWidth||0;return Math.round(e/(80+8))}),u=new Map,{qtvTitles:_,onVisibilityChanged:H,clickoutUrls:V,ctaClickoutUrl:p,onCTAVisibilityChanged:j,retailPrice:U}=ye({shortName:()=>T.value,sourceTitle:()=>i.title,titlesShownCount:z,additionalContexts:()=>i.additionalContexts,seasonNumber:()=>i.seasonNumber,episodeNumber:()=>i.episodeNumber,swiperIndex:()=>i.swiperIndex,titleCount:10,providerFilter:()=>i.providerFilter,adServerCreative:()=>i.adServerCreative}),B=d(()=>["AU","CA"].includes(R.value)?m("WEBAPP_WATCHNOW"):m("WEBAPP_QUALITY_TV_CTA")),{isModalProvider:k,openPlayerModal:X}=ge(T),D=M(!1),Z={once:!1,throttle:0,intersection:{root:null,rootMargin:"0px 0px 0px 0px",threshold:.95}};function G(e,t){t===_.value.length-1&&(D.value=e)}function J(e){return ve()({url:e,imageType:"poster"})}function F(e){return e.content.scoring?.imdbScore?.toFixed(1)}async function w(e,t){!k.value||!t||await X({offer:e.offers[0],title:e,clickoutUrl:t,rentalOptions:{overrideRedirectUrl:!0}})}function K(e,t){return u.has(e.id)||u.set(e.id,f=>H(e,t,f)),u.get(e.id)}function ee(){return u.has("cta")||u.set("cta",e=>{j(e)}),u.get("cta")}function Q(){const e=ee();return{...q,callback:e}}function te(e,t){const f=K(e,t);return{...q,callback:f}}return(e,t)=>{const f=de,$=ne("FontAwesomeIcon"),C=le("observe-visibility");return o(_).length?(a(),s("div",Ce,[r("div",Pe,[r("div",Ae,[b(be,{iconUrl:v.value.iconWide,lazy:!1,providerShortName:v.value.shortName},null,8,["iconUrl","providerShortName"])]),r("span",Ne,[ce(e.$slots,"banner-text",{},()=>[r("span",null,c(Y.value),1),b(f,null,{default:y(()=>[o(U)?(a(),P(ke,{key:0,price:o(U)},null,8,["price"])):g("",!0)]),_:1})],!0)]),A((a(),s("div",Ee,[(a(),P(I(o(k)?"div":O),{class:W(["offer__cta",{"offer__cta--highlight":S.value}]),rel:"nofollow noopener",href:o(p),key:`${o(p).toString()}_cta`,onClick:t[0]||(t[0]=()=>w(o(_)[0],o(p)))},{default:y(()=>[b($,{icon:o(L),size:"lg",class:"play-icon"},null,8,["icon"]),x.value?(a(),s("span",Se,c(e.$t("WEBAPP_WATCHNOW")),1)):(a(),s("span",Ve,c(B.value),1))]),_:1},8,["class","href"]))])),[[C,Q()]])]),r("div",{class:"qtv_titles",ref_key:"titleListContainer",ref:N},[b(he,{class:"qtv-scrollbar"},{default:y(()=>[r("div",{class:W(["scroll-fade-right",{"hide-fade":D.value}])},null,2),r("div",we,[(a(!0),s(ue,null,_e(o(_),(l,h)=>A((a(),s("div",{key:l.id},[(a(),P(I(o(k)?"div":O),{href:o(V)[h],key:o(V)[h].toString(),rel:"nofollow noopener",class:"quality-tv-title",onClick:()=>w(l,o(V)[h])},{default:y(()=>[l.content.posterUrl?A((a(),s("img",{key:0,src:l.content.posterUrl?J(l.content.posterUrl).replace("{format}","jpg"):void 0,alt:l.content.title,class:"poster"},null,8,We)),[[C,{...Z,callback:oe=>G(oe,h)}]]):(a(),s("div",Ie,[t[2]||(t[2]=r("img",{src:fe}
1,null,-1)),r("div",Oe,[r("span",Re,c(l.content.title),1)])])),t[4]||(t[4]=r("div",{class:"poster-fade"},null,-1)),r("div",xe,[t[3]||(t[3]=r("img",{class:"logo",src:me},null,-1)),F(l)?(a(),s("div",Ue,c(F(l)),1)):g("",!0)])]),_:2},1032,["href","onClick"]))])),[[C,te(l,h)]])),128))])]),_:1}),n.displayPromotedTag?(a(),s("p",Be,c(e.$t("WEBAPP_PROMOTED")),1)):g("",!0)],512),A((a(),s("div",De,[(a(),P(I(o(k)?"div":O),{class:W(["offer__cta",{"offer__cta--highlight":S.value}]),rel:"nofollow noopener",href:o(p),key:`${o(p).toString()}_cta`,onClick:t[1]||(t[1]=()=>w(o(_)[0],o(p)))},{default:y(()=>[b($,{icon:o(L),size:"lg",class:"play-icon"},null,8,["icon"]),x.value?(a(),s("span",Fe,c(e.$t("WEBAPP_WATCHNOW")),1)):(a(),s("span",Qe,c(B.value),1))]),_:1},8,["class","href"]))])),[[C,Q()]]),n.displayPromotedTag?(a(),s("p",$e,c(e.$t("WEBAPP_PROMOTED")),1)):g("",!0)])):g("",!0)}}}),Ct=pe(Le,[["__scopeId","data-v-cde2e1ad"]]);export{Ct as default}; 2//# sourceMappingURL=CCP_JEkd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.