"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue");function c({valueTexts:u,onTextChange:r}){const e=n.ref("");function a(t){e.value=t,r(t)}function i(){e.value=u.value[0]}return n.watch(()=>[...u.value],(t,o=[])=>{t.join("||")!==o.join("||")&&u.value.every(l=>l!==e.value)&&i()},{immediate:!0}),[e,a,i]}exports.default=c;
