1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["reactPlayerPreview"],{"./node_modules/react-player/dist/Preview.js"(e,r,t){t.r(r),t.d(r,{default:()=>n});var a=t("react");const l="64px",i={};var n=({src:e,light:r,oEmbedUrl:t,onClickPreview:n,playIcon:o,previewTabIndex:s,previewAriaLabel:c})=>{const[d,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{e&&r&&t&&u({src:e,light:r,oEmbedUrl:t})}),[e,r,t]);const u=async({src:e,light:r,oEmbedUrl:t})=>{if(a.isValidElement(r))return;if("string"==typeof r)return void p(r);if(i[e])return void p(i[e]);p(null);const l=await fetch(t.replace("{url}",e)),n=await l.json();if(n.thumbnail_url){const r=n.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");p(r),i[e]=r}},h=a.isValidElement(r),b={display:"flex",alignItems:"center",justifyContent:"center"},w={preview:{width:"100%",height:"100%",backgroundImage:d&&!h?`url(${d})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...b},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:l,width:l,height:l,position:h?"absolute":void 0,...b},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},y=a.createElement("div",{style:w.shadow,className:"react-player__shadow"},a.createElement("div",{style:w.playIcon,className:"react-player__play-icon"}));return a.createElement("div",{style:w.preview,className:"react-player__preview",tabIndex:s,onClick:e=>{null==n||n(e)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||null==n||n(e)},...c?{"aria-label":c}:{}},h?r:null,o||y)}}}]);
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.