import{a as r,p as y}from"./index-f5a86b16-1706882452509.js";import{S as n}from"./index-72e39448-1706882452509.js";const f=e=>{const t=r(),o=new n(t.path).get(t.path);y(()=>{e(o)})},k=(e,t="current",c)=>{const o=new n(c.path);o.update({[t]:e},void 0,"form");const s=o.get(c.path);console.log(s,"setTabsCaches")},l=e=>{const t=r();if(!e.current)return;e.key||(e.key="form"),e.saveKey||(e.saveKey=t.path);const c=new n(e.saveKey),o=c.get(e.saveKey),s=e.current,h=o[e.key];for(const i in h)if(Object.prototype.hasOwnProperty.call(s,i)){const u=h[i];s[i]=u}c.update({...s},void 0,e.key),y(()=>{e.callBack&&e.callBack(s)})},d=e=>{if(!e.current||!e.saveKey)return;e.key||(e.key="form"),new n(e.saveKey).update({...e.current},void 0,e.key)};export{k as a,f as g,l as i,d as s};
