PageSourceSearch

https://7bet.lt/reactPlayerPreview.7c1f2ee9.chunk.js

js 7bet.lt collected 2026-10-05 01:58:21 UTC 2,810 bytes, 2 lines download raw bytes

1(self.webpackChunk_perlas_7bet=self.webpackChunk_perlas_7bet||[]).push([[7664],{"0ZcZ":(e,t,r)=>{var a,i=Object.create,l=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,__copyProps=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))p.call(e,i)||i===r||l(e,i,{get:()=>t[i],enumerable:!(a=n(t,i))||a.enumerable});return e},__publicField=(e,t,r)=>(((e,t,r)=>{t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),c={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(c,{default:()=>Preview}),e.exports=(a=c,__copyProps(l({},"__esModule",{value:!0}),a));var u=((e,t,r)=>(r=null!=e?i(o(e)):{},__copyProps(!t&&e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)))(r("q1tI"));const d="64px",h={};class Preview extends u.Component{constructor(){super(...arguments),__publicField(this,"mounted",!1),__publicField(this,"state",{image:null}),__publicField(this,"handleKeyPress",(e=>{"Enter"!==e.key&&" "!==e.key||this.props.onClick()}))}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:r}=this.props;e.url===t&&e.light===r||this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:r}){if(!u.default.isValidElement(t))if("string"!=typeof t){if(!h[e])return this.setState({image:null}),window.fetch(r.replace("{url}",e)).then((e=>e.json())).then((t=>{if(t.thumbnail_url&&this.mounted){const r=t.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:r}),h[e]=r}}));this.setState({image:h[e]})}else this.setState({image:t})}render(){const{light:e,onClick:t,playIcon:r,previewTabIndex:a,previewAriaLabel:i}=this.props,{image:l}=this.state,n=u.default.isValidElement(e),s={display:"flex",alignItems:"center",justifyContent:"center"},o={preview:{width:"100%",height:"100%",backgroundImage:l&&!n?`url(${l})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...s},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d,position:n?"absolute":void 0,...s},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},p=u.default.createElement("div",{style:o.shadow,className:"react-player__shadow"},u.default.createElement("div",{style:o.playIcon,className:"react-player__play-icon"}));return u.default.createElement("div",{style:o.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...i?{"aria-label":i}:{}},n?e:null,r||p)}}}}]);
2//# sourceMappingURL=reactPlayerPreview.7c1f2ee9.chunk.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.