PageSourceSearch

https://www.tennischannel.com/build/assets/ContentWidget-028f8f43.js

js tennischannel.com collected 2026-09-24 09:18:30 UTC 3,890 bytes, 1 lines download raw bytes

1import{h as s}from"./vendor-77a14847.js";import{i as a}from"./imageUrl-47ade6c7.js";import{n as g}from"./app-3eadc2dd.js";import"./imageUrlUtils-ab823e00.js";var r=function(){var e=this,i=e._self._c;return i("div",{staticClass:"contentWidget flex-active"},[i("div",{staticClass:"contentWidget__grid flex-active",class:{"no-img":!e.backgroundImage}},[i("a",{attrs:{target:"_blank",href:e.linkToVideo}},[i("img",{attrs:{src:e.backgroundImage}}),i("div",{staticClass:"contentWidget__grid__overlay flex-active"},[i("div",{staticClass:"contentWidget__grid__logos flex-active"},[e.showRightsHolderLogo?i("div",{staticClass:"contentWidget__grid__logos__img img_1 flex-active"},[i("img",{attrs:{src:e.rightsHolderLogo}})]):e._e(),e.showBaseConfigLogo?i("div",{staticClass:"contentWidget__grid__logos__img img_2 flex-active"},[i("img",{attrs:{src:e.baseConfigLogo}})]):e._e()]),i("div",{staticClass:"contentWidget__grid__text flex-active"},[i("h1",[e._v(e._s(e.title))]),i("h3",[e._v(e._s(e.description))])])])])])])},n=[];const l={mixins:[a],props:{module:{type:Object,default:()=>({})}},data(){return{title:null,description:null,rightsHolderLogo:null,baseConfigLogo:null,backgroundImage:null,showRightsHolderLogo:!1,showBaseConfigLogo:!1,linkToVideo:null}},computed:{...s({baseConfig:"baseConfig",selectedLanguage:"currentLanguage",currentPortal:"currentPortal"})},mounted(){this.loadPlayerPageData(this.$route.params.id),this.setVideoUrl(this.$route.params.slug)},methods:{loadPlayerPageData(t){this.$API.playerPage.fetch(t,{params:{portal:this.currentPortal.id}}).then(({data:e})=>{this.baseConfigEventContent=e.data.baseConfigEventContent,this.baseConfigEventContent.widget===null&&delete this.baseConfigEventContent.widget,this.title=this.getTextEntry(this.baseConfigEventContent,"title"),this.description=this.getTextEntry(this.baseConfigEventContent,"description"),this.showBaseConfigLogo=this.getShowCustomerLogoFromWidget(this.baseConfigEventContent),this.showRightsHolderLogo=this.getShowRightsHolderLogoFromWidget(this.baseConfigEventContent),this.baseConfigLogo=this.getCustomerLogo(this.baseConfig),this.showRightsHolderLogo&&(this.rightsHolderLogo=this.getRightsholderLogo(this.baseConfigEventContent)),this.backgroundImage=this.getBackgroundImage(this.baseConfigEventContent)}).catch(e=>{})},setVideoUrl(t){const e="/"+this.$route.params.locale+"-"+this.$route.params.portal;t?this.$store.state.website.pages.find(o=>o.type_id===2&&o.slug===t)?this.linkToVideo=e+"/page/"+t+"/"+this.$route.params.id:this.linkToVideo=e+"/playerpage/"+this.$route.params.id:this.linkToVideo=e+"/playerpage/"+this.$route.params.id},getTextEntry({widget:{languages:t=[]}={}},e){let i=t.find(o=>o.language_id===this.selectedLanguage.id);return!i||!i[e]?"":i[e]},getShowCustomerLogoFromWidget({widget:{show_customer_logo:t=1}={}}){return t===1},getShowRightsHolderLogoFromWidget({widget:{show_rightsholder_logo:t=1}={}}){return t===1},getCustomerLogo({website:{logo:{path:t=null,version:e=null}}}){return t?this.getLogoImage(t,e):null},getRightsholderLogo({widget:{base_config_rightsholder:{image:{path:t=null,version:e=null}}}={base_config_rightsholder:{image:{path:null,version:null}}}}){return t?this.getLogoImage(t,e):null},getBackgroundImage(t){if(t&&t.widget&&t.widget.alternative_image)return this.getOriginalImage(t.widget.alternative_image.path,t.widget.alternative_image.version);if(t&&t.editorial&&t.editorial.images.length>0){const e=t.editorial.images.find(i=>i.image.preview==="1920x1080");if(e)return this.makeForDimension(t.id,"1920x1080",e.image)}else if(this.baseConfig&&this.baseConfig.website&&this.baseConfig.website.defaultImages){const e=this.baseConfig.website.defaultImages.find(i=>i.image.preview==="1920x1080");if(e)return this.makeForDimension(this.baseConfig.id,"1920x1080",e.image)}return null}}};var d=g(l,r,n,!1,null,null,null,null);const _=d.exports;export{_ as default};

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.