"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),c=require("../../_util/raf.js");function s(f){const e=a.shallowRef(f);let t;const u=a.shallowRef([]);function o(n){u.value.push(n),c.default.cancel(t),t=c.default(()=>{const l=u.value;u.value=[],l.forEach(r=>{e.value=r(e.value)})})}return a.onBeforeUnmount(()=>{c.default.cancel(t)}),[e,o]}function i(f){const e=a.ref(null),t=a.ref();function u(){clearTimeout(t.value)}function o(l){e.value=l,u(),t.value=setTimeout(()=>{e.value=null,t.value=void 0},100)}function n(){return e.value}return a.onBeforeUnmount(()=>{u()}),[o,n]}exports.useLayoutState=s;exports.useTimeoutLock=i;
