import './async-D55cHugf.js';
import { f as attr_class } from './index-u8mz_F03.js';
import { c as ch } from './Video2-BN5I0jvO.js';
import './2-EyCg4N-O.js';
import './escaping-CBnpiEl5.js';
import './context-CBkBucIx.js';
import './index5-BoOEKc6P.js';
import './dev-fallback-Bc5Ork7Y.js';
import './index-Cg-Pg6j3.js';

function g(i,n){i.component(o=>{let{type:u,selected:p=false,value:a=null,loop:m}=n,t;async function d(){t&&(t.muted=true,t.playsInline=true,t.controls=false,t.setAttribute("muted",""),await t.play(),t.pause());}let l=true,s;function c(e){a?(e.push("<!--[-->"),e.push("<!--[-->"),e.push(`<div${attr_class("container svelte-1nl1glk",void 0,{table:u==="table",gallery:u==="gallery",selected:p})}>`),ch(e,{muted:true,playsinline:true,onloadeddata:d,onmouseover:()=>t?.play(),onmouseout:()=>t?.pause(),src:a?.url,is_stream:false,loop:m,get node(){return t},set node(f){t=f,l=false;}}),e.push("<!----></div>"),e.push("<!--]-->")):e.push("<!--[!-->"),e.push("<!--]-->");}do l=true,s=o.copy(),c(s);while(!l);o.subsume(s);});}

export { g as default };
//# sourceMappingURL=Example28-CbCB35eF.js.map
