import{p as m,i as v,b as A}from"./i18n-eTakDDhg.js";import{R as E,a6 as f,S as c,a as o,T as I,V as R,x as S,w as t,Y as T,t as W,W as Y,u as j,a5 as q}from"./index-BkylzejB.js";import{V as z}from"./Video-BImfEEkZ.js";import"./snippet-CC9u6I34.js";import"./actions-CWv1ghz2.js";var B=Y("<div><!></div>");function J(p,a){E(a,!0);let _=m(a,"selected",3,!1),n=m(a,"value",3,null),e=j(void 0);async function g(){t(e)&&(t(e).muted=!0,t(e).playsInline=!0,t(e).controls=!1,t(e).setAttribute("muted",""),await t(e).play(),t(e).pause())}var i=f(),y=c(i);{var b=r=>{var u=f(),h=c(u);{var x=s=>{var l=B();let d;var V=R(l);{let k=q(()=>n()?.url);z(V,{muted:!0,playsinline:!0,onloadeddata:g,onmouseover:()=>t(e)?.play(),onmouseout:()=>t(e)?.pause(),get src(){return t(k)},is_stream:!1,get loop(){return a.loop},get node(){return t(e)},set node(w){S(e,w,!0)}})}T(l),W(()=>d=A(l,1,"container svelte-1nl1glk",null,d,{table:a.type==="table",gallery:a.type==="gallery",selected:_()})),o(s,l)};v(h,s=>{s(x)})}o(r,u)};v(y,r=>{n()&&r(b)})}o(p,i),I()}export{J as default};
