import{ref as n}from"vue";import{getTextValue as o}from'../utils/get-text-value.js';import{dom as i}from'../utils/dom.js';function p(a){let t=n(""),r=n("");return()=>{let e=i(a);if(!e)return"";let l=e.innerText;if(t.value===l)return r.value;let u=o(e).trim().toLowerCase();return t.value=l,r.value=u,u}}export{p as useTextValue};
