use-async-937fc27e-1709546248219.js 771 B

1
  1. import{a as r,p as y}from"./index-272deb89-1709546248219.js";import{S as n}from"./index-f2685a19-1709546248219.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};