import{d as p}from"./resource-Dz96LlGH.js";const _="/api/v1/",q="/api/v1//file/uploadHtml",g="/api/v1//file/qiniuUpload",U="/api/v1//file/qiniuUploadBig",y="/api/v1//file/upload",L=void 0,Q="//qiniu.wantonly-drag.com.cn/componentListImg/",b=!1;let d=null,u=null;async function m(){if(d!==null)return d;if(u)return u;const n=!1;return u=(async()=>{var a,l;try{const i=await p({field:"upload_type"});if((i==null?void 0:i.code)===200&&((l=(a=i.data)==null?void 0:a[0])!=null&&l.default)){const e=i.data[0].default==="qiniu";return d=e,e}return n}catch(i){return console.error("获取 upload_type 失败:",i),n}finally{u=null}})(),u}let s=null,r=null;async function h(){if(s!==null)return s;if(r)return r;const n="20";return r=(async()=>{var a,l,i,e;try{const t=await p({field:"upload_limit"});if((t==null?void 0:t.code)===200&&((l=(a=t.data)==null?void 0:a[0])!=null&&l.default)){const o=(e=(i=t.data)==null?void 0:i[0])==null?void 0:e.default;return s=o,o}return n}catch(t){return console.error("获取 upload_limit 失败:",t),n}finally{r=null}})(),r}let f=null,c=null;async function B(){if(f!==null)return f;if(c)return c;const n="150";return c=(async()=>{var a,l,i,e;try{const t=await p({field:"upload_big_limit"});if((t==null?void 0:t.code)===200&&((l=(a=t.data)==null?void 0:a[0])!=null&&l.default)){const o=(e=(i=t.data)==null?void 0:i[0])==null?void 0:e.default;return f=o,o}return n}catch(t){return console.error("获取 upload_big_limit 失败:",t),n}finally{c=null}})(),c}async function v(){return await m()?g:y}async function S(){return await m()?U:L}async function C(){return await h()}async function P(){return await B()}export{Q as a,_ as b,b as c,S as d,C as e,P as f,v as g,q as u};
