import{a4 as n,J as c,H as r,I as o}from"./main-fine-mails-rush.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function g(){const{data:t,isLoading:e}=n({queryFn:()=>c("plugin-improvement",void 0,void 0,"GET"),queryKey:["tracking"]});return{isTrackingLoading:e,tracking:t==null?void 0:t.data}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,e){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,e),e)}};function h(){const t=r(),{isPending:e,mutateAsync:s}=o({mutationFn:i=>c("plugin-improvement",{allowTracking:i},void 0,"POST"),mutationKey:["update-tracking"],onSuccess:i=>{var a;i.status==="success"&&t.setQueryData(["tracking"],{data:{allowTracking:(a=i==null?void 0:i.data)==null?void 0:a.allowTracking}})}});return{isUpdatingTracking:e,updateTracking:s}}export{h as a,g as u};
