1import{a as k}from"/assets/chunk-LUWP36BP.digested.js";import{d as E}from"/assets/chunk-5K5H3KHV.digested.js";var t=E(k(),1),d="64px",u={},N=({src:s,light:a,oEmbedUrl:o,onClickPreview:n,playIcon:g,previewTabIndex:b,previewAriaLabel:p})=>{let[f,r]=(0,t.useState)(null);(0,t.useEffect)(()=>{!s||!a||!o||_({src:s,light:a,oEmbedUrl:o})},[s,a,o]);let _=async({src:e,light:c,oEmbedUrl:x})=>{if(t.default.isValidElement(c))return;if(typeof c=="string"){r(c);return}if(u[e]){r(u[e]);return}r(null);let m=await(await fetch(x.replace("{url}",e))).json();if(m.thumbnail_url){let h=m.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");r(h),u[e]=h}},I=e=>{(e.key==="Enter"||e.key===" ")&&n?.(e)},v=e=>{n?.(e)},l=t.default.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},i={preview:{width:"100%",height:"100%",backgroundImage:f&&!l?`url(${f})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:d,width:d,height:d,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},w=t.default.createElement("div",{style:i.shadow,className:"react-player__shadow"},t.default.createElement("div",{style:i.playIcon,className:"react-player__play-icon"}));return t.default.createElement("div",{style:i.preview,className:"react-player__preview",tabIndex:b,onClick:v,onKeyDown:I,...p?{"aria-label":p}:{}},l?a:null,g||w)},C=N;export{C as default};
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.