let e=require("vue");function t({valueTexts:t,onTextChange:n}){let r=(0,e.ref)(``);function i(e){r.value=e,n(e)}function a(){r.value=t.value[0]}return(0,e.watch)(()=>[...t.value],(e,n=[])=>{e.join(`||`)!==n.join(`||`)&&t.value.every(e=>e!==r.value)&&a()},{immediate:!0}),[r,i,a]}exports.default=t;