PageSourceSearch

https://www.cleanhub.com/_next/static/chunks/reactPlayerPreview.807d9c3c0fd3d745.js

js cleanhub.com collected 2026-10-02 04:09:26 UTC 3,007 bytes, 2 lines download raw bytes

1try{!function(){var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2793b5b8-97ca-43cc-90ba-ac86ddefd937",e._sentryDebugIdIdentifier="sentry-dbid-2793b5b8-97ca-43cc-90ba-ac86ddefd937")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6353],{8856:(e,t,r)=>{let a,l;var n=Object.create,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,d=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))u.call(e,l)||l===r||s(e,l,{get:()=>t[l],enumerable:!(a=o(t,l))||a.enumerable});return e},p=(e,t,r)=>{let a;return(a="symbol"!=typeof t?t+"":t)in e?s(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,r},h={},b={default:()=>w};for(var f in b)s(h,f,{get:b[f],enumerable:!0});e.exports=c(s({},"__esModule",{value:!0}),h);var y=(l=null!=(a=r(14232))?n(d(a)):{},c(a&&a.__esModule?l:s(l,"default",{value:a,enumerable:!0}),a));let g="64px",m={};class w extends y.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(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(!y.default.isValidElement(t))return"string"==typeof t?void this.setState({image:t}):m[e]?void this.setState({image:m[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}),m[e]=r}}))}render(){let{light:e,onClick:t,playIcon:r,previewTabIndex:a,previewAriaLabel:l}=this.props,{image:n}=this.state,s=y.default.isValidElement(e),o={display:"flex",alignItems:"center",justifyContent:"center"},i={preview:{width:"100%",height:"100%",backgroundImage:n&&!s?`url(${n})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...o},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:g,width:g,height:g,position:s?"absolute":void 0,...o},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},d=y.default.createElement("div",{style:i.shadow,className:"react-player__shadow"},y.default.createElement("div",{style:i.playIcon,className:"react-player__play-icon"}));return y.default.createElement("div",{style:i.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress,...l?{"aria-label":l}:{}},s?e:null,r||d)}}}}]);
2//# sourceMappingURL=reactPlayerPreview.807d9c3c0fd3d745.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.