import{p as E,e as O,i as c,b as P,k as Q,a as G,u as Z}from"./i18n-Dnhn5Rxr.js";import{R as $,t as x,a as v,T as aa,U as R,W as o,G as T,z as s,V as p,a6 as Y,S as j,w as e,X as U,Y as _,a0 as A}from"./index-DWyDLubb.js";var ea=o('<span class="caption svelte-xds4q5"> </span>'),sa=o('<div class="image-container svelte-xds4q5"><img class="svelte-xds4q5"/> <!></div>'),ra=o('<span class="caption svelte-xds4q5"> </span>'),ta=o('<div class="image-container svelte-xds4q5"><video preload="metadata" class="svelte-xds4q5"></video> <!></div>',2),va=o('<div class="more-indicator svelte-xds4q5">…</div>'),la=o('<div class="images-wrapper svelte-xds4q5"><!> <!></div>'),da=o("<div><!></div>");function ia(B,q){$(q,!1);let r=E(q,"value",12),h=E(q,"type",12),b=E(q,"selected",12,!1);var C={get value(){return r()},set value(t){r(t),R()},get type(){return h()},set type(t){h(t),R()},get selected(){return b()},set selected(t){b(t),R()}};O();var y=da();let V;var D=p(y);{var F=t=>{var m=la(),W=p(m);Q(W,1,()=>(T(r()),s(()=>r().slice(0,3))),Z,(u,a)=>{var X=Y(),J=j(X);{var K=n=>{var i=sa(),f=p(i),k=U(f,2);{var g=d=>{var l=ea(),w=p(l,!0);_(l),x(()=>A(w,(e(a),s(()=>e(a).caption)))),v(d,l)};c(k,d=>{e(a),s(()=>e(a).caption)&&d(g)})}_(i),x(()=>{G(f,"src",(e(a),s(()=>e(a).image.url))),G(f,"alt",(e(a),s(()=>e(a).caption||"")))}),v(n,i)},L=n=>{var i=Y(),f=j(i);{var k=g=>{var d=ta(),l=p(d);l.controls=!1,l.muted=!0;var w=U(l,2);{var M=S=>{var z=ra(),N=p(z,!0);_(z),x(()=>A(N,(e(a),s(()=>e(a).caption)))),v(S,z)};c(w,S=>{e(a),s(()=>e(a).caption)&&S(M)})}_(d),x(()=>G(l,"src",(e(a),s(()=>e(a).video.url)))),v(g,d)};c(f,g=>{e(a),s(()=>"video"in e(a)&&e(a).video)&&g(k)},!0)}v(n,i)};c(J,n=>{e(a),s(()=>"image"in e(a)&&e(a).image)?n(K):n(L,!1)})}v(u,X)});var H=U(W,2);{var I=u=>{var a=va();v(u,a)};c(H,u=>{T(r()),s(()=>r().length>3)&&u(I)})}_(m),v(t,m)};c(D,t=>{T(r()),s(()=>r()&&r().length>0)&&t(F)})}return _(y),x(()=>V=P(y,1,"container svelte-xds4q5",null,V,{table:h()==="table",gallery:h()==="gallery",selected:b()})),v(B,y),aa(C)}export{ia as default};
