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