import{p as m,i as v,b as A}from"./i18n-Dnhn5Rxr.js";import{R as E,a6 as f,S as p,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-DWyDLubb.js";import{V as z}from"./Video-B_oD6cFy.js";import"./snippet-BWgYNF9D.js";import"./actions-CLThs9VH.js";import"./universal-CFOISHmx.js";var B=Y("<div><!></div>");function K(c,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=p(i);{var b=l=>{var u=f(),h=p(u);{var x=s=>{var r=B();let d;var V=R(r);{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(r),W(()=>d=A(r,1,"container svelte-1nl1glk",null,d,{table:a.type==="table",gallery:a.type==="gallery",selected:_()})),o(s,r)};v(h,s=>{s(x)})}o(l,u)};v(y,l=>{n()&&l(b)})}o(c,i),I()}export{K as default};
