import{p as c,e as h,d as z,b as S}from"./i18n-Dnhn5Rxr.js";import{R as W,aa as k,t as w,G as E,z as G,a0 as M,a as P,T as R,U as o,W as T,V as U,x as v,a3 as m,w as p,Y as V}from"./index-DWyDLubb.js";import{b as Y}from"./size-CtOeLwIl.js";/* empty css                                              */var j=T("<div> </div>");function D(y,a){W(a,!1);let l=c(a,"value",12),r=c(a,"type",12),n=c(a,"selected",12,!1),d=m(),u=m();function _(e,s){e.style.setProperty("--local-text-width",`${s&&s<150?s:200}px`),e.style.whiteSpace="unset"}function b(e,s=60){if(!e)return"";const i=String(e);return i.length<=s?i:i.slice(0,s)+"..."}k(()=>{_(p(u),p(d))});var x={get value(){return l()},set value(e){l(e),o()},get type(){return r()},set type(e){r(e),o()},get selected(){return n()},set selected(e){n(e),o()}};h();var t=j();let f;var g=U(t,!0);return V(t),z(t,e=>v(u,e),()=>p(u)),w(e=>{f=S(t,1,"svelte-xxobeb",null,f,{table:r()==="table",gallery:r()==="gallery",selected:n()}),M(g,e)},[()=>(E(l()),G(()=>b(l())))]),Y(t,"clientWidth",e=>v(d,e)),P(y,t),R(x)}export{D as default};
