PageSourceSearch

https://www.flexispot.pl/assets/js/chunk-reactPlayerPreview-ef1831ab1bb3dfb1dbc4.js

js flexispot.pl collected 2026-10-08 08:47:43 UTC 7,979 bytes, 1 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7664],{73051:(function(W,P,E){var p=Object.defineProperty,h=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,O=(t,e,a)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,_=(t,e)=>{for(var a in e||(e={}))I.call(e,a)&&O(t,a,e[a]);if(h)for(var a of h(e))D.call(e,a)&&O(t,a,e[a]);return t},C=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,w=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,m=(t,e)=>{for(var a in e)l(t,a,{get:e[a],enumerable:!0})},S=(t,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of N(e))!k.call(t,u)&&u!==a&&l(t,u,{get:()=>e[u],enumerable:!(o=j(e,u))||o.enumerable});return t},g=(t,e,a)=>(a=t!=null?C(w(t)):{},S(e||!t||!t.__esModule?l(a,"default",{value:t,enumerable:!0}):a,t)),v=t=>S(l({},"__esModule",{value:!0}),t),d=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),b={};m(b,{default:()=>i}),W.exports=v(b);var s=g(E(67294));const r="64px",n={};class i extends s.Component{constructor(){super(...arguments),d(this,"mounted",!1),d(this,"state",{image:null}),d(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:a,light:o}=this.props;(e.url!==a||e.light!==o)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:a,oEmbedUrl:o}){if(!s.default.isValidElement(a)){if(typeof a=="string"){this.setState({image:a});return}if(n[e]){this.setState({image:n[e]});return}return this.setState({image:null}),window.fetch(o.replace("{url}",e)).then(u=>u.json()).then(u=>{if(u.thumbnail_url&&this.mounted){const c=u.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:c}),n[e]=c}})}}render(){const{light:e,onClick:a,playIcon:o,previewTabIndex:u,previewAriaLabel:c}=this.props,{image:f}=this.state,y=s.default.isValidElement(e),x={display:"flex",alignItems:"center",justifyContent:"center"},M={preview:_({width:"100%",height:"100%",backgroundImage:f&&!y?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},x),shadow:_({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:r,width:r,height:r,position:y?"absolute":void 0},x),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},K=s.default.createElement("div",{style:M.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:M.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",_({style:M.preview,className:"react-player__preview",onClick:a,tabIndex:u,onKeyPress:this.handleKeyPress},c?{"aria-label":c}:{}),y?e:null,o||K)}}}),57284:(function(W,P,E){"use strict";function p(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(i){return typeof i}:p=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},p(r)}Object.defineProperty(P,"__esModule",{value:!0}),P.default=void 0;var h=D(E(67294));function I(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return I=function(){return r},r}function D(r){if(r&&r.__esModule)return r;if(r===null||p(r)!=="object"&&typeof r!="function")return{default:r};var n=I();if(n&&n.has(r))return n.get(r);var i={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var a=t?Object.getOwnPropertyDescriptor(r,e):null;a&&(a.get||a.set)?Object.defineProperty(i,e,a):i[e]=r[e]}return i.default=r,n&&n.set(r,i),i}function O(r,n){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);n&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),i.push.apply(i,t)}return i}function _(r){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};
1n%2?O(Object(i),!0).forEach(function(t){v(r,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):O(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function C(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function l(r,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,t.key,t)}}function j(r,n,i){return n&&l(r.prototype,n),i&&l(r,i),r}function N(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),n&&w(r,n)}function w(r,n){return w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},w(r,n)}function k(r){var n=S();return function(){var t=g(r),e;if(n){var a=g(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return R(this,e)}}function R(r,n){return n&&(p(n)==="object"||typeof n=="function")?n:m(r)}function m(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function S(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}function g(r){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},g(r)}function v(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}var d="64px",b={},s=(function(r){N(i,r);var n=k(i);function i(){var t;C(this,i);for(var e=arguments.length,a=new Array(e),o=0;o<e;o++)a[o]=arguments[o];return t=n.call.apply(n,[this].concat(a)),v(m(t),"mounted",!1),v(m(t),"state",{image:null}),v(m(t),"handleKeyPress",function(u){(u.key==="Enter"||u.key===" ")&&t.props.onClick()}),t}return j(i,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(e){var a=this.props,o=a.url,u=a.light;(e.url!==o||e.light!==u)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(e){var a=this,o=e.url,u=e.light;if(typeof u=="string"){this.setState({image:u});return}if(b[o]){this.setState({image:b[o]});return}return this.setState({image:null}),window.fetch("https://noembed.com/embed?url=".concat(o)).then(function(c){return c.json()}).then(function(c){if(c.thumbnail_url&&a.mounted){var f=c.thumbnail_url.replace("height=100","height=480");a.setState({image:f}),b[o]=f}})}},{key:"render",value:function(){var e=this.props,a=e.onClick,o=e.playIcon,u=e.previewTabIndex,c=this.state.image,f={display:"flex",alignItems:"center",justifyContent:"center"},y={preview:_({width:"100%",height:"100%",backgroundImage:c?"url(".concat(c,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},f),shadow:_({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d},f),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=h.default.createElement("div",{style:y.shadow,className:"react-player__shadow"},h.default.createElement("div",{style:y.playIcon,className:"react-player__play-icon"}));return h.default.createElement("div",{style:y.preview,className:"react-player__preview",onClick:a,tabIndex:u,onKeyPress:this.handleKeyPress},o||x)}}]),i})(h.Component);P.default=s})}]);

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.