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