const e=require("../../_util/raf.js"),t=require("./useValueTexts.js");let n=require("vue");function r(r,{formatList:i,generateConfig:a,locale:o}){let s=(0,n.ref)(null),c;function l(t,n=!1){if(e.default.cancel(c),n){s.value=t;return}c=e.default(()=>{s.value=t})}let[,u]=t.default(s,{formatList:i,generateConfig:a,locale:o});function d(e){l(e)}function f(e=!1){l(null,e)}return(0,n.watch)(r,()=>{f(!0)}),(0,n.onBeforeUnmount)(()=>{e.default.cancel(c)}),[u,d,f]}exports.default=r;