"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),r=new WeakMap,s=(...e)=>{var t;const n=e[0],a=(t=l.getCurrentInstance())==null?void 0:t.proxy;if(a==null)throw new Error("injectLocal must be called in setup");return r.has(a)&&n in r.get(a)?r.get(a)[n]:l.inject(...e)};typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const c={rowKey:"id",title:"Fast Start",routerMode:"hash",basename:"/"},i=Symbol("FAST_START_CONTEXT"),u=()=>s(i,c),T=()=>{const{basename:e}=u();return({resource:t,id:n,type:a})=>{switch(a){case"list":return o(`${e}/${t}`);case"create":return o(`${e}/${t}/create`);case"edit":return n==null?o(`${e}/${t}/edit`):o(`${e}/${t}/edit/${encodeURIComponent(n)}`);case"detail":return n==null?o(`${e}/${t}/detail`):o(`${e}/${t}/detail/${encodeURIComponent(n)}`);default:return a}}},o=e=>e.replace("//","/");exports.removeDoubleSlashes=o;exports.useCreatePath=T;
//# sourceMappingURL=useCreatePath.js.map
