import{m as a,b as s,c as t,cg as n,b_ as e,i as o,ch as i}from"./page_layout.js?v=1753954525509";import{d as l}from"./public.js?v=1753954525509";import{c}from"./soft.js?v=1753954525509";const r=async n=>{const{close:o}=a.loading("Processing, please wait...");try{const{message:a}=await s({sName:n});if(t(a)){const s=a.versions[0].full_version;l({title:"Install plugin",content:"Are you sure to install [".concat(a.title," v").concat(s,"] plugin?"),onConfirm:async()=>{a.status?await i({sName:a.name,version:s,upgrade:s}):await i({sName:a.name,version:s}),e()}})}}finally{o()}},m=async(i,r)=>{const{close:m}=a.loading("Processing, please wait...");try{const{message:a}=await s({sName:i});if(t(a)){const s=a.versions[0].full_version;l({title:"Install plugin",content:"Are you sure to install [".concat(a.title," v").concat(s,"] plugin?"),onConfirm:async()=>{const{message:i}=await n({sName:a.name,version:s,upgrade:s,type:1});if(t(i)){if(i.result)return void e();await c({name:i.name,tmp_path:i.tmp_path,title:o.global.t("Soft.index_21")},(()=>{null==r||r()}))}}})}}finally{m()}},p=a=>{const s=a.replace(/-+[{0-9},.,]+$/,"");return"/static/img/soft_ico/ico-".concat(s,".png")};export{p as g,r as i,m as u};
