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