import{R as a}from"./index.9be5fb1a.js";import{s as u}from"./30205710.js";function c(i){var t,o;const{data:r,previewImageOptions:s,id:n=r.id,playsInline:p=!0,controls:m=!0,sourceProps:l={},...d}=i,y=u({src:(o=(t=r.previewImage)==null?void 0:t.url)!=null?o:"",...s});if(!r.sources)throw new Error("<Video/> requires a 'data.sources' array");return a.createElement("video",{...d,id:n,playsInline:p,controls:m,poster:y},r.sources.map(e=>{if(!((e==null?void 0:e.url)&&(e==null?void 0:e.mimeType)))throw new Error("<Video/> needs 'source.url' and 'source.mimeType'");return a.createElement("source",{...l,key:e.url,src:e.url,type:e.mimeType})}))}export{c as V}; //# sourceMappingURL=b84f6150.js.map