import"./svelte/svelte_internal_flags_async.js";import*as e from"./svelte/svelte_internal_client.js";import{V as b}from"./Video-DZ7QGqqT.js";import"./index-xGeN4i2A.js";import"./svelte/svelte_svelte.js";import"./svelte/svelte_animate.js";import"./svelte/svelte_attachments.js";import"./svelte/svelte_easing.js";import"./svelte/svelte_internal_flags_legacy.js";import"./svelte/svelte_internal_flags_tracing.js";import"./svelte/svelte_internal_server.js";import"./svelte/svelte_legacy.js";import"./svelte/svelte_motion.js";import"./svelte/svelte_reactivity.js";import"./svelte/svelte_reactivity_window.js";import"./svelte/svelte_server.js";import"./svelte/svelte_store.js";import"./svelte/svelte_transition.js";import"./svelte/svelte_events.js";var x=e.from_html("<div><!></div>");e.from_html("<div> </div>");function M(d,r){e.push(r,!0);let s=e.prop(r,"selected",3,!1),l=e.prop(r,"value",3,null),t=e.state(void 0);async function u(){e.get(t)&&(e.get(t).muted=!0,e.get(t).playsInline=!0,e.get(t).controls=!1,e.get(t).setAttribute("muted",""),await e.get(t).play(),e.get(t).pause())}var m=e.comment(),v=e.first_child(m);{var f=i=>{var n=e.comment(),g=e.first_child(n);{var c=a=>{var o=x();let p;var _=e.child(o);{let y=e.derived(()=>l()?.url);b(_,{muted:!0,playsinline:!0,onloadeddata:u,onmouseover:()=>e.get(t)?.play(),onmouseout:()=>e.get(t)?.pause(),get src(){return e.get(y)},is_stream:!1,get loop(){return r.loop},get node(){return e.get(t)},set node(h){e.set(t,h,!0)}})}e.reset(o),e.template_effect(()=>p=e.set_class(o,1,"container svelte-1nl1glk",null,p,{table:r.type==="table",gallery:r.type==="gallery",selected:s()})),e.append(a,o)};e.if(g,a=>{a(c)})}e.append(i,n)};e.if(v,i=>{l()&&i(f)})}e.append(d,m),e.pop()}export{M as default};
