File: /www/server/panel/BTPanel/static/js/useMethod10.js
import{e as u,_ as l}from"./utils-lib.js?v=1777008528";import{r as i,H as d}from"./base-lib.js?v=1777008528";import{p as m}from"./index3.js?v=1777008528";function C(t="",e={}){return d({show:!1,title:t,data:e})}function E(t){const e=i([]),a=d({data:[],total:0,loading:!1}),o=i(t);return{keys:e,table:a,columns:o,setLoading:(s,n=!0)=>{n&&(a.loading=s)}}}const b=t=>Number.isNaN(Number(t))?0:Number(t);function k(t=!1){const e=i(t);return{loading:e,setLoading:(o,r=!0)=>{r&&(e.value=o)}}}const c=new Set,p=(t,e,a)=>new Promise((o,r)=>{if(c.has(t)){o(!0);return}const s=document.createElement("script");s.type="text/javascript",s.src=t,document.body.appendChild(s),s.onload=n=>{c.add(t),o(n)},s.onerror=()=>{r(new Error("Failed to load JS: ".concat(t)))}}),v=async t=>{await p("/static/ckeditor/ckeditor.js?v=1777008528"),CKEDITOR.replace(t,{customConfig:"/static/ckeditor/config.js?v1.0",removeButtons:"Save"})},I=()=>CKEDITOR.instances.editor.getData(),T=t=>{CKEDITOR.instances.editor.setData(t)},_=()=>{CKEDITOR.remove(CKEDITOR.instances.editor)},w=({path:t,size:e,uploadData:a,refreshEvent:o})=>{u({title:"上传文件到 【".concat(t,"】"),area:80,showFooter:!0,confirmText:"上传",compData:{path:t,size:e,uploadData:a,refreshEvent:o},component:()=>l(()=>import("./upload.js?v=1777008528"),__vite__mapDeps([]),import.meta.url)})},L=(t,e="i")=>m({type:e,name:t});export{C as a,E as b,I as c,_ as d,L as e,b as g,w as o,v as r,T as s,k as u};
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}