import{p as r,e as g,b as h}from"./i18n-Dnhn5Rxr.js";import{R as y,x as o,t as x,a as _,T as b,a3 as w,U as c,W as E,a0 as R,w as S,V as T,Y as U}from"./index-DWyDLubb.js";var V=E("<div> </div>");function j(f,t){y(t,!1);let s=r(t,"value",12),a=r(t,"type",12),u=r(t,"selected",12,!1),i=r(t,"choices",12),n=w();if(s()===null)o(n,"");else{let e=i().find(p=>p[1]===s());o(n,e?e[0]:"")}var v={get value(){return s()},set value(e){s(e),c()},get type(){return a()},set type(e){a(e),c()},get selected(){return u()},set selected(e){u(e),c()},get choices(){return i()},set choices(e){i(e),c()}};g();var l=V();let d;var m=T(l,!0);return U(l),x(()=>{d=h(l,1,"svelte-g2dls0",null,d,{table:a()==="table",gallery:a()==="gallery",selected:u()}),R(m,S(n))}),_(f,l),b(v)}export{j as default};
