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