"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),i={create:()=>Promise.resolve({data:null}),deleteOne:()=>Promise.resolve({data:null}),getList:()=>Promise.resolve({data:Array.from({length:30}).map((t,r)=>({name:r,id:r})),total:20}),getMany:()=>Promise.resolve({data:[]}),getManyReference:()=>Promise.resolve({data:[],total:0}),getOne:()=>Promise.resolve({data:null}),update:()=>Promise.resolve({data:null})},o=new WeakMap,c=(t,r)=>{var a;const e=(a=n.getCurrentInstance())==null?void 0:a.proxy;if(e==null)throw new Error("provideLocal must be called in setup");o.has(e)||o.set(e,Object.create(null));const s=o.get(e);s[t]=r,n.provide(t,r)},d=(...t)=>{var r;const a=t[0],e=(r=n.getCurrentInstance())==null?void 0:r.proxy;if(e==null)throw new Error("injectLocal must be called in setup");return o.has(e)&&a in o.get(e)?o.get(e)[a]:n.inject(...t)};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const l=Symbol("DATA_PROVIDER_CONTEXT"),u=t=>c(l,t),v=()=>d(l,i);exports.DATA_PROVIDER_CONTEXT=l;exports.createDataProviderProvider=u;exports.useDataProviderContext=v;
//# sourceMappingURL=data-provider.js.map
