import{ref as f,watch as c}from"vue";function g({valueTexts:n,onTextChange:r}){const e=f("");function u(t){e.value=t,r(t)}function i(){e.value=n.value[0]}return c(()=>[...n.value],(t,a=[])=>{t.join("||")!==a.join("||")&&n.value.every(o=>o!==e.value)&&i()},{immediate:!0}),[e,u,i]}export{g as default};
